/**
* Menu Component 0.7 980510
* by gary smith, July 1997
* Copyright (c) 1997-1998 Netscape Communications Corp.
*
* Netscape grants you a royalty free license to use or modify this
* software provided that this copyright notice appears on all copies.
* This software is provided "AS IS," without a warranty of any kind.
*/
function Menu(label) {
this.version = "0.7 [menu.js; Menu Component; 980510]";
this.fontSize = 14;
this.fontWeight = "plain";
this.fontFamily = "arial,helvetica,espy,sans-serif";
this.fontColor = "#000000";
this.bgColor = "#555555";
this.menuBorder = 1;
this.menuItemBorder = 1;
this.menuItemIndent = 15;
this.menuItemHeight = 20;
this.menuItemBgColor = "#cccccc";
this.menuLiteBgColor = "#ffffff";
this.menuBorderBgColor = "#777777";
this.menuHiliteBgColor = "#bbbbbb";
this.menuContainerBgColor = "#cccccc";
this.childMenuIcon = "images/gs.html";
this.items = new Array();
this.actions = new Array();
this.colors = new Array();
this.childMenus = new Array();
this.addMenuItem = addMenuItem;
this.addMenuSeparator = addMenuSeparator;
this.writeMenus = writeMenus;
this.showMenu = showMenu;
this.onMenuItemOver = onMenuItemOver;
this.onMenuItemOut = onMenuItemOut;
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, color) {
this.items[this.items.length] = label;
this.actions[this.actions.length] = action;
this.colors[this.colors.length] = color;
}
function addMenuSeparator() {
this.items[this.items.length] = "separator";
this.actions[this.actions.length] = "";
}
function writeMenus(container) {
container = container || document.menuContainer;
if (!container && document.layers) {
container = new Layer(1000);
} else if (!container && document.all) {
if (!document.all["menuContainer"])
document.writeln('');
container = document.all["menuContainer"];
}
document.menuContainer = document.menuContainer || container;
container.isContainer = "menuContainer";
var countMenus = 0;
var countItems = 0;
var top = 0;
var content = '';
var proto;
for (var i=0; i