var mMenusEnabled = false; function isMenusEnabled(pMenusEnabled) { mMenusEnabled=pMenusEnabled; } // Auxiliary method to check first check whether or // not menus have been defined, and if so call the associated method // in the main menu.js file function showMenuAfterValidation(id,hideOthers) { if (mMenusEnabled==true) { showMenu(id,hideOthers); } else { // don't show menu yet, as not active } } // Auxiliary method to check first check whether or // not menus have been defined, and if so call the associated method // in the main main.js file function delayHideMenuAfterValidation(id,secs) { if (mMenusEnabled==true) { delayHideMenu(id,secs); } else { // no action, as not active } } // Auxiliary method to check first check whether or // not menus have been defined, and if so call the associated method // in the main main.js file function hideMenusAfterValidation() { if (mMenusEnabled==true) { hideMenus(); } else { // no action, as not active } }