//var _section = "gallery"; //var _language = "en"; //var _currentMenu = "menu" + _section; // OJO: Esta variables es usa globalmente, por lo que NO SE DEBE cambiar el nombre //var menuManager = new xng.imageMenuManager(); //menuManager.setValues('','gallery','en' ); function Change_Action (act) { document.location = '/index.php?section=gallery&action='+act+'¤t_page=1'; return true; } function changeLocation (section, action, action2) { var normal_location = ''; var seo_location = ''; if(action2 != ""){ normal_location = '/index.php?section='+section+'&action='+action+'&action2='+action2+'¤t_page=1'; seo_location = '' + '/'+ section +'/'+ action +'/'+ action2 +'.html'; } else { if(action != "") { normal_location = '/index.php?section='+section+'&action='+action+'¤t_page=1'; seo_location = '' + '/'+ section + '/'+ action+'.html'; } else { normal_location = '/index.php?section='+section+'¤t_page=1'; seo_location = '' + '/'+ section + '.html'; } } document.location = seo_location; return true; } function init() { dojo.debug ('Everything ready to start'); if(document.getElementById('btngallery')){ document.getElementById('btngallery').src = '/images/btn_gallery_on.gif'; menuManager.strLastOpenedMenu = 'gallery'; menuManager.setSelected('galleryindex'); } // Muestro el submenu menu actual menuManager.showSubMenu('gallery'); } dojo.addOnLoad(init);