function Menu(label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh) { this.version = "990702 [Menu; menu.js]"; this.type = "Menu"; this.menuWidth = mw||170; this.menuItemHeight = mh||18; this.fontSize = fs||10; this.fontWeight = "plain"; this.fontFamily = fnt||"Arial"; this.fontColor = fclr||"#ffffff"; this.fontColorHilite = fhclr||"#000099"; this.bgColor = "#445583"; this.menuBorder = 0; this.menuItemBorder = 0; this.menuItemBgColor = bg||"#445583"; this.menuLiteBgColor = "#445583"; this.menuBorderBgColor = "#445583"; this.menuHiliteBgColor = bgh||"yellow"; this.menuContainerBgColor = "white"; this.childMenuIcon = "/common/stdimage.nsf/images/arrows.gif/$file/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