// $HeadURL: https://joomgallery.org/svn/joomgallery/JG-1.5/JG/trunk/administrator/components/com_joomgallery/assets/js/joomgallery.js $
// $Id: joomgallery.js 2910 2011-03-15 18:22:28Z aha $
/****************************************************************************************\
**   JoomGallery  1.5.7                                                                 **
**   By: JoomGallery::ProjectTeam                                                       **
**   Copyright (C) 2008 - 2010  JoomGallery::ProjectTeam                                **
**   Based on: JoomGallery 1.0.0 by JoomGallery::ProjectTeam                            **
**   Released under GNU GPL Public License                                              **
**   License: http://www.gnu.org/copyleft/gpl.html or have a look                       **
**   at administrator/components/com_joomgallery/LICENSE.TXT                            **
\****************************************************************************************/


function submitbutton(pressbutton) {
  if (pressbutton == 'cpanel') {
    location.href = 'index.php?option=com_joomgallery';
  } else {
    submitform(pressbutton);
  }
}

/* is not necessary in Joomla 1.6 */
var JText = {
  strings: {},
  '_': function(key, def) {
    return typeof this.strings[key.toUpperCase()] !== 'undefined' ? this.strings[key.toUpperCase()] : def;
  },
  load: function(object) {
    for (var key in object) {
      this.strings[key.toUpperCase()] = object[key];
    }
    return this;
  }
};