/** * mm_menu 20MAR2002 Version 6.0 * Andy Finnell, March 2002 * Copyright (c) 2000-2002 Macromedia, Inc. * * based on menu.js * by gary smith, July 1997 * Copyright (c) 1997-1999 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, mw, mh, fnt, fs, fclr, fhclr, bg, bgh, halgn, valgn, pad, space, to, sx, sy, srel, opq, vert, idt, aw, ah) {	this.version = "020320 [Menu; mm_menu.js]";	this.type = "Menu";	this.menuWidth = mw;	this.menuItemHeight = mh;	this.fontSize = fs;	this.fontWeight = "plain";	this.fontFamily = fnt;	this.fontColor = fclr;	this.fontColorHilite = fhclr;	this.bgColor = "#555555";	this.menuBorder = 1;	this.menuBgOpaque=opq;	this.menuItemBorder = 1;	this.menuItemIndent = idt;	this.menuItemBgColor = bg;	this.menuItemVAlign = valgn;	this.menuItemHAlign = halgn;	this.menuItemPadding = pad;	this.menuItemSpacing = space;	this.menuLiteBgColor = "#ffffff";	this.menuBorderBgColor = "#777777";	this.menuHiliteBgColor = bgh;	this.menuContainerBgColor = "#cccccc";	this.childMenuIcon = "arrows.gif";	this.submenuXOffset = sx;	this.submenuYOffset = sy;	this.submenuRelativeToItem = srel;	this.vertical = vert;	this.items = new Array();	this.actions = new Array();	this.childMenus = new Array();	this.hideOnMouseOut = true;	this.hideTimeout = to;	this.addMenuItem = addMenuItem;	this.writeMenus = writeMenus;	this.MM_showMenu = MM_showMenu;	this.onMenuItemOver = onMenuItemOver;	this.onMenuItemAction = onMenuItemAction;	this.hideMenu = hideMenu;	this.hideChildMenu = hideChildMenu;	if (!window.menus) window.menus = new Array();	this.label = " " + label;	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 FIND(item) {	if( window.mmIsOpera ) return(document.getElementById(item));	if (document.all) return(document.all[item]);	if (document.getElementById) return(document.getElementById(item));	return(false);}function writeMenus(container) {	if (window.triedToWriteMenus) return;	var agt = navigator.userAgent.toLowerCase();	window.mmIsOpera = agt.indexOf("opera") != -1;	if (!container && document.layers) {		window.delayWriteMenus = this.writeMenus;		var timer = setTimeout('delayWriteMenus()', 500);		container = new Layer(100);		clearTimeout(timer);	} else if (document.all || document.hasChildNodes || window.mmIsOpera) {		document.writeln('<span id="menuContainer"></span>');		container = FIND("menuContainer");	}	window.mmHideMenuTimer = null;	if (!container) return;		window.triedToWriteMenus = true; 	container.isContainer = true;	container.menus = new Array();	for (var i=0; i<window.menus.length; i++) 		container.menus[i] = window.menus[i];	window.menus.length = 0;	var countMenus = 0;	var countItems = 0;	var top = 0;	var content = '';	var lrs = false;	var theStat = "";	var tsc = 0;	if (document.layers) lrs = true;	for (var i=0; i<container.menus.length; i++, countMenus++) {		var menu = container.menus[i];		if (menu.bgImageUp || !menu.menuBgOpaque) {			menu.menuBorder = 0;			menu.menuItemBorder = 0;		}		if (lrs) {			var menuLayer = new Layer(100, container);			var lite = new Layer(100, menuLayer);			lite.top = menu.menuBorder;			lite.left = menu.menuBorder;			var body = new Layer(100, lite);			body.top = menu.menuBorder;			body.left = menu.menuBorder;		} else {			content += ''+			'<div id="menuLayer'+ countMenus +'" style="position:absolute;z-index:1;left:10px;top:'+ (i * 100) +'px;visibility:hidden;color:' +  menu.menuBorderBgColor + ';">\n'+			'  <div id="menuLite'+ countMenus +'" style="position:absolute;z-index:1;left:'+ menu.menuBorder +'px;top:'+ menu.menuBorder +'px;visibility:hide;" onmouseout="mouseoutMenu();">\n'+			'	 <div id="menuFg'+ countMenus +'" style="position:absolute;left:'+ menu.menuBorder +'px;top:'+ menu.menuBorder +'px;visibility:hide;">\n'+			'';		}		var x=i;		for (var i=0; i<menu.items.length; i++) {			var item = menu.items[i];			var childMenu = false;			var defau