//COPYRIGHT - Todos los derechos de propiedad intelectual de este software son propiedad de Opsys Software Solutions Ltda. function Menu(label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh) { this.version = "990702 [Menu; menu.js]"; this.type = "Menu"; this.menuWidth = mw||125; this.menuItemHeight = mh||25; this.fontSize = fs||11; this.fontWeight = "plain"; this.fontFamily = fnt||"Arial"; //Color letra this.fontColor = fclr||"#004080"; // this.fontColorHilite = fhclr||"#000000"; //Color letra al seleccionar this.fontColorHilite = fhclr||"#000080"; this.bgColor = "#555555"; this.menuBorder = 1; this.menuItemBorder = 0; //this.menuItemBgColor = bg||"#2E88BA"; //Background menu this.menuItemBgColor = bg||"#EFEFEF"; this.menuLiteBgColor = "#ffffff"; this.menuBorderBgColor = "#E7E7E7"; // this.menuHiliteBgColor = bgh||"#ffffff"; //Color seleccionar this.menuHiliteBgColor = bgh||"#E7E7E7"; this.menuContainerBgColor = "#cccccc"; this.childMenuIcon = "arrows.gif"; this.items = new Array(); this.actions = new Array(); this.childMenus = new Array(); this.hideOnMouseOut = true; this.addMenuItem = addMenuItem; this.addMenuSeparator = addMenuSeparator; this.writeMenus = writeMenus; this.FW_showMenu = FW_showMenu; this.onMenuItemOver = onMenuItemOver; this.onMenuItemAction = onMenuItemAction; this.hideMenu = hideMenu; this.hideChildMenu = hideChildMenu; if (!window.menus) window.menus = new Array(); this.label = label || "menuLabel" + window.menus.length; window.menus[this.label] = this; window.menus[window.menus.length] = this; if (!window.activeMenus) window.activeMenus = new Array(); } function addMenuItem(label, action) { this.items[this.items.length] = label; this.actions[this.actions.length] = action; } function addMenuSeparator() { this.items[this.items.length] = "separator"; this.actions[this.actions.length] = ""; this.menuItemBorder = 0; } // For NS6. function FIND(item) { if (document.all) return(document.all[item]); if (document.getElementById) return(document.getElementById(item)); return(false); } function writeMenus(container) { if (window.triedToWriteMenus) return; if (!container && document.layers) { window.delayWriteMenus = this.writeMenus; var timer = setTimeout('delayWriteMenus()', 250); container = new Layer(100); clearTimeout(timer); } else if (document.all || document.hasChildNodes) { document.writeln(''); container = FIND("menuContainer"); } window.fwHideMenuTimer = null; if (!container) return; window.triedToWriteMenus = true; container.isContainer = true; container.menus = new Array(); for (var i=0; i