/**
 * Menu 05JUL2000
 * John Ahlquist, July 2000
 * Copyright (c) 2000 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) {
	this.version = "990702 [Menu; menu.js]";
	this.type = "Menu";
	this.fontSize = 12;
	this.fontWeight = "plain";
	this.fontFamily = "arial,helvetica,verdana,sans-serif";
	this.fontColor = "#000000";
	this.fontColorHilite = "#ffffff";
	this.bgColor = "#ffffff";
	this.menuBorder = 1;
	this.menuItemBorder = 1;
	this.menuItemBgColor = "#cccccc";
	this.menuLiteBgColor = "#ffffff";
	this.menuBorderBgColor = "#ffffff";
	this.menuHiliteBgColor = "#000084";
	this.menuContainerBgColor = "#ffffff";
	this.childMenuIcon = "arrows.gif";
	this.items = new Array();
	this.actions = new Array();
	this.childMenus = new Array();

	this.addMenuItem = addMenuItem;
	this.addMenuSeparator = addMenuSeparator;
	this.writeMenus = writeMenus;
	this.showMenu = 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();
	if (!window.menuContainers) window.menuContainers = new Array();
	if (window.MenuAPI) MenuAPI(this);
}

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;
}

function writeMenus(container) {
	if (!container && document.layers) {
		if (eval("document.width")) 
			container = new Layer(1000);
	} else if (!container && document.all) {
		if (!document.all["menuContainer"]) 
			document.writeln('<SPAN ID="menuContainer"></SPAN>');
		container = document.all["menuContainer"];
	}
	if (!container && !window.delayWriteMenus) {
		window.delayWriteMenus = this.writeMenus;
		setTimeout('delayWriteMenus()', 500);
		window.timeCount = 1;
		return;
	}
	if (!container && window.timeCount < 6) {
		window.delayWriteMenus = this.writeMenus;
		setTimeout('delayWriteMenus()', 500);
		window.timeCount += 1;
		return;
	}
	if (!container) return;	
	container.isContainer = "menuContainer" + menuContainers.length;
	menuContainers[menuContainers.length] = container;
	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 = '';
	for (var i=0; i<container.menus.length; i++, countMenus++) {
		var menu = container.menus[i];
		if (menu.bgImageUp) {
			menu.menuBorder = 0;
			menu.menuItemBorder = 0;
		}
		content += ''+
		'<DIV ID="menuLayer'+ countMenus +'" STYLE="position:absolute;z-index:1;left:10;top:'+ (i * 100) +';visibility:hidden;">\n'+
		'  <DIV ID="menuLite'+ countMenus +'" STYLE="position:absolute;z-index:1;left:'+ menu.menuBorder +';top:'+ menu.menuBorder +';visibility:hide;" onMouseOut="hideMenu(this);">\n'+
		'	 <DIV ID="menuFg'+ countMenus +'" STYLE="position:absolute;left:'+ menu.menuBorder +';top:'+ menu.menuBorder +';visibility:hide;">\n'+
		'';
		var x=i;
		for (var i=0; i<menu.items.length; i++) {
			var item = menu.items[i];
			var childMenu = false;
			var defaultHeight = menu.fontSize+6;
			var defaultIndent = menu.fontSize;
			if (item.label) {
				item = item.label;
				childMenu = true;
			}
			menu.menuItemHeight = menu.menuItemHeight || defaultHeight;
			menu.menuItemIndent = menu.menuItemIndent || defaultIndent;
			var itemProps = 'visibility:hide;font-Family:' + menu.fontFamily +';font-Weight:' + menu.fontWeight + ';fontSize:' + menu.fontSize + ';';
			if (document.all) 
				itemProps += 'font-size:' + menu.fontSize + ';" onMouseOver="onMenuItemOver(null,this);" onClick="onMenuItemAction(null,this);';
			var dTag	= '<DIV ID="menuItem'+ countItems +'" STYLE="position:absolute;left:0;top:'+ (i * menu.menuItemHeight) +';'+ itemProps +'">';

			var dClose = '</DIV>'
			if (menu.bgImageUp) {
				menu.menuBorder = 0;
				menu.menuItemBorder = 0;
				dTag	= '<DIV ID="menuItem'+ countItems +'" STYLE="background:url('+menu.bgImageUp+');position:absolute;left:0;top:'+ (i * menu.menuItemHeight) +';'+ itemProps +'">';
				if (document.layers) {
					dTag = '<LAYER BACKGROUND="'+menu.bgImageUp+'" ID="menuItem'+ countItems +'" TOP="'+ (i * menu.menuItemHeight) +'" style="' + itemProps +'">';
					dClose = '</LAYER>';
				}
			}

			var dText	= '<DIV ID="menuItemText'+ countItems +'" STYLE="position:absolute;left:' + menu.menuItemIndent + ';top:1;color:'+ menu.fontColor +';">'+ item +'</DIV>\n<DIV ID="menuItemHilite'+ countItems +'" STYLE="position:absolute;left:' + menu.menuItemIndent + ';top:1;color:'+ menu.fontColorHilite +';visibility:hidden;">'+ item +'</DIV>';
			if (item == "separator") {
				content += ( dTag + '<DIV ID="menuSeparator'+ countItems +'" STYLE="position:absolute;left:1;top:2;"></DIV>\n<DIV ID="menuSeparatorLite'+ countItems +'" STYLE="position:absolute;left:1;top:2;"></DIV>\n' + dClose);
			} else if (childMenu) {
				content += ( dTag + dText + '<DIV ID="childMenu'+ countItems +'" STYLE="position:absolute;left:0;top:3;'+ itemProps +'"><IMG SRC="'+ menu.childMenuIcon +'"></DIV>\n' + dClose);
			} else {
				content += ( dTag + dText + dClose);
			}
			countItems++;
		}
		content += '	  <DIV ID="focusItem'+ countMenus +'" STYLE="position:absolute;left:0;top:0;visibility:hide;" onClick="onMenuItemAction(null,this);">&nbsp;</DIV>\n';
		content += '   </DIV>\n  </DIV>\n</DIV>\n';
		i=x;
	}
	if (!container) return;
	if (container.innerHTML) {
		container.innerHTML=content;
	} else {
		container.document.open("text/html");
		container.document.writeln(content);
		container.document.close();
	}
	if (container.document.layers) {
		container.clip.width = window.innerWidth;
		container.clip.height = window.innerHeight;
		container.onmouseout = this.hideMenu;
		container.menuContainerBgColor = this.menuContainerBgColor;
		for (var i=0; i<container.document.layers.length; i++) {
			proto = container.menus[i];
			var menu = container.document.layers[i];
			container.menus[i].menuLayer = menu;
			container.menus[i].menuLayer.Menu = container.menus[i];
			container.menus[i].menuLayer.Menu.container = container;
			var body = menu.document.layers[0].document.layers[0];
			body.clip.width = proto.menuWidth || body.clip.width;
			body.clip.height = proto.menuHeight || body.clip.height;
			for (var n=0; n<body.document.layers.length-1; n++) {
				var l = body.document.layers[n];
				l.Menu = container.menus[i];
				l.menuHiliteBgColor = proto.menuHiliteBgColor;
				l.document.bgColor = proto.menuItemBgColor;
				l.saveColor = proto.menuItemBgColor;
				l.onmouseover = proto.onMenuItemOver;
				l.onclick = proto.onMenuItemAction;
				l.action = container.menus[i].actions[n];
				l.focusItem = body.document.layers[body.document.layers.length-1];
				l.clip.width = proto.menuWidth || body.clip.width + proto.menuItemIndent;
				l.clip.height = proto.menuItemHeight || l.clip.height;
				if (n>0) l.top = body.document.layers[n-1].top + body.document.layers[n-1].clip.height + proto.menuItemBorder;
				l.hilite = l.document.layers[1];
				l.document.layers[1].isHilite = true;
				if (l.document.layers[0].id.indexOf("menuSeparator") != -1) {
					l.hilite = null;
					l.clip.height -= l.clip.height / 2;
					l.document.layers[0].document.bgColor = proto.bgColor;
					l.document.layers[0].clip.width = l.clip.width -2;
					l.document.layers[0].clip.height = 1;
					l.document.layers[1].document.bgColor = proto.menuLiteBgColor;
					l.document.layers[1].clip.width = l.clip.width -2;
					l.document.layers[1].clip.height = 1;
					l.document.layers[1].top = l.document.layers[0].top + 1;
				} else if (l.document.layers.length > 2) {
					l.childMenu = container.menus[i].items[n].menuLayer;
					l.document.layers[2].left = l.clip.width -13;
					l.document.layers[2].top = (l.clip.height / 2) -4;
					l.document.layers[2].clip.left += 3;
					l.Menu.childMenus[l.Menu.childMenus.length] = l.childMenu;
				}
			}
			body.document.bgColor = proto.bgColor;
			body.clip.width  = l.clip.width +proto.menuBorder;
			body.clip.height = l.top + l.clip.height +proto.menuBorder;
			body.document.layers[n].clip.width = body.clip.width;
			body.document.layers[n].Menu = l.Menu;
			body.document.layers[n].top = -30;
            body.document.layers[n].captureEvents(Event.MOUSEDOWN);
            body.document.layers[n].onmousedown = onMenuItemDown;
			menu.document.bgColor = proto.menuBorderBgColor;
			menu.document.layers[0].document.bgColor = proto.menuLiteBgColor;
			menu.document.layers[0].clip.width = body.clip.width +1;
			menu.document.layers[0].clip.height = body.clip.height +1;
			menu.clip.width = body.clip.width + (proto.menuBorder * 3) ;
			menu.clip.height = body.clip.height + (proto.menuBorder * 3);
		}
	} else if (container.document.all) {
		var menuCount = 0;
		for (var x=0; x<container.menus.length; x++) {
			var menuLayer = container.document.all("menuLayer" + x);
			container.menus[x].menuLayer = "menuLayer" + x;
			menuLayer.Menu = container.menus[x];
			menuLayer.Menu.container = "menuLayer" + x;
			menuLayer.style.zIndex = 1;

			var menu = container.menus[x];
			menu.menuItemWidth = menu.menuWidth || menu.menuIEWidth || 140;
			menuLayer.style.backgroundColor = menu.menuBorderBgColor;
			for (var i=0; i<container.menus[x].items.length; i++) {
				var l = container.document.all["menuItem" + menuCount];
				l.Menu = container.menus[x];
				l.style.pixelWidth = menu.menuItemWidth;	
				l.style.pixelHeight = menu.menuItemHeight;
				if (i>0) l.style.pixelTop = container.document.all["menuItem" + (menuCount -1)].style.pixelTop + container.document.all["menuItem" + (menuCount -1)].style.pixelHeight + menu.menuItemBorder;
				l.style.fontSize = menu.fontSize;
				l.style.backgroundColor = menu.menuItemBgColor;
				l.style.visibility = "inherit";
				l.saveColor = menu.menuItemBgColor;
				l.menuHiliteBgColor = menu.menuHiliteBgColor;
				l.action = container.menus[x].actions[i];
				l.hilite = container.document.all["menuItemHilite" + menuCount];
				l.focusItem = container.document.all["focusItem" + x];
				l.focusItem.style.pixelTop = -30;
				var childItem = container.document.all["childMenu" + menuCount];
				if (childItem) {
					l.childMenu = container.menus[x].items[i].menuLayer;
					childItem.style.pixelLeft = l.style.pixelWidth -11;
					childItem.style.pixelTop = (l.style.pixelHeight /2) -4;
					childItem.style.pixelWidth = 30 || 7;
					childItem.style.clip = "rect(0 7 7 3)";
					l.Menu.childMenus[l.Menu.childMenus.length] = l.childMenu;
				}
				var sep = container.document.all["menuSeparator" + menuCount];
				if (sep) {
					sep.style.clip = "rect(0 " + (menu.menuItemWidth - 3) + " 1 0)";
					sep.style.pixelWidth = menu.menuItemWidth;	
					sep.style.backgroundColor = menu.bgColor;
					sep = container.document.all["menuSeparatorLite" + menuCount];
					sep.style.clip = "rect(1 " + (menu.menuItemWidth - 3) + " 2 0)";
					sep.style.pixelWidth = menu.menuItemWidth;	
					sep.style.backgroundColor = menu.menuLiteBgColor;
					l.style.pixelHeight = menu.menuItemHeight/2;
					l.isSeparator = true
				} else {
					l.style.cursor = "hand"
				}
				menuCount++;
			}
			menu.menuHeight = (l.style.pixelTop + l.style.pixelHeight);
			var lite = container.document.all["menuLite" + x];
			lite.style.pixelHeight = menu.menuHeight +(menu.menuBorder * 2);
			lite.style.pixelWidth = menu.menuItemWidth + (menu.menuBorder * 2);
			lite.style.backgroundColor = menu.menuLiteBgColor;
			var body = container.document.all["menuFg" + x];
			body.style.pixelHeight = menu.menuHeight + menu.menuBorder;
			body.style.pixelWidth = menu.menuItemWidth + menu.menuBorder;
			body.style.backgroundColor = menu.bgColor;
			menuLayer.style.pixelWidth  = menu.menuWidth || menu.menuItemWidth + (menu.menuBorder * 4);
			menuLayer.style.pixelHeight  = menu.menuHeight+(menu.menuBorder*4);
		}
	}
	if (document.captureEvents) {	
		document.captureEvents(Event.MOUSEUP);
	}
	if (document.layers && window.innerWidth) {
		window.onresize = NS4resize;
		window.NS4sIW = window.innerWidth;
		window.NS4sIH = window.innerHeight;
	}

	document.onmouseup = this.hideMenu;
	window.wroteMenu = true;
}

function NS4resize() {
	if (NS4sIW < window.innerWidth || 
		NS4sIW > window.innerWidth || 
		NS4sIH > window.innerHeight || 
		NS4sIH < window.innerHeight ) 
	{
		window.location.reload();
	}
}

function onMenuItemOver(e, l) {
	l = l || this;
	a = window.ActiveMenuItem;
	if (document.layers) {
		if (a) {
			a.document.bgColor = a.saveColor;
			if (a.hilite) a.hilite.visibility = "hidden";
			if (a.Menu.bgImageOver) {
				a.background.src = a.Menu.bgImageUp;
			}
			a.focusItem.top = -100;
			a.clicked = false;
		}
		if (l.hilite) {
			l.document.bgColor = l.menuHiliteBgColor;
			l.zIndex = 1;
			l.hilite.visibility = "inherit";
			l.hilite.zIndex = 2;
			l.document.layers[1].zIndex = 1;
			l.focusItem.zIndex = this.zIndex +2;
		}
		if (l.Menu.bgImageOver) {
			l.background.src = l.Menu.bgImageOver;
		}
		l.focusItem.top = this.top;
		l.Menu.hideChildMenu(l);
	} else if (l.style && l.Menu) {
		if (a) {
			a.style.backgroundColor = a.saveColor;
			if (a.hilite) a.hilite.style.visibility = "hidden";
			if (a.Menu.bgImageUp) {
				a.style.background = "url(" + a.Menu.bgImageUp +")";;
			}
		} 
		if (l.isSeparator) return;
		l.style.backgroundColor = l.menuHiliteBgColor;
		l.zIndex = 1;  // magic IE 4.5 mac happy doohicky.	jba
		if (l.Menu.bgImageOver) {
			l.style.background = "url(" + l.Menu.bgImageOver +")";
		}
		if (l.hilite) {
			l.style.backgroundColor = l.menuHiliteBgColor;
			l.hilite.style.visibility = "inherit";
		}
		l.focusItem.style.pixelTop = l.style.pixelTop;
		l.focusItem.style.zIndex = l.zIndex +1;
		l.Menu.hideChildMenu(l);
	} else {
		return; // not a menu - magic IE 4.5 mac happy doohicky.  jba
	}
	window.ActiveMenuItem = l;
}

function onMenuItemAction(e, l) {
	l = window.ActiveMenuItem;
	if (!l) return;
	hideActiveMenus();
	if (l.action) {
		eval("" + l.action);
	}
}

function showMenu(menu, x, y, child) {
	if (!window.wroteMenu) return;
	if (document.layers) {
		if (menu) {
			var l = menu.menuLayer || menu;
			if (typeof(menu) == "string") {
				for (var n=0; n < menuContainers.length; n++) {
					l = menuContainers[n].menus[menu];
					for (var i=0; i<menuContainers[n].menus.length; i++) {
						if (menu == menuContainers[n].menus[i].label) l = menuContainers[n].menus[i].menuLayer;
						if (l) break;
					}
				}
				if (!l) return;
			}
			l.Menu.container.document.bgColor = null;
			l.left = 1;
			l.top = 1;
			hideActiveMenus();
			if (this.visibility) l = this;
			window.ActiveMenu = l;
		} else {
			var l = child;
		}
		if (!l) return;
		for (var i=0; i<l.layers.length; i++) { 			   
			if (!l.layers[i].isHilite) 
				l.layers[i].visibility = "inherit";
			if (l.layers[i].document.layers.length > 0) 
				showMenu(null, "relative", "relative", l.layers[i]);
		}
		if (l.parentLayer) {
			if (x != "relative") 
				l.parentLayer.left = x || window.pageX || 0;
			if (l.parentLayer.left + l.clip.width > window.innerWidth) 
				l.parentLayer.left -= (l.parentLayer.left + l.clip.width - window.innerWidth);
			if (y != "relative") 
				l.parentLayer.top = y || window.pageY || 0;
			if (l.parentLayer.isContainer) {
				l.Menu.xOffset = window.pageXOffset;
				l.Menu.yOffset = window.pageYOffset;
				l.parentLayer.clip.width = window.ActiveMenu.clip.width +2;
				l.parentLayer.clip.height = window.ActiveMenu.clip.height +2;
				if (l.parentLayer.menuContainerBgColor) l.parentLayer.document.bgColor = l.parentLayer.menuContainerBgColor;
			}
		}
		l.visibility = "inherit";
		if (l.Menu) l.Menu.container.visibility = "inherit";
	} else if (document.all) {
		var l = menu.menuLayer || menu;	
		hideActiveMenus();
		if (typeof(l) == "string") {
			l = document.all[l];
		}
		if (typeof(menu) == "string") {
			l = document.all[menu];
			for (var n=0; n < menuContainers.length; n++) {
				l = menuContainers[n].menus[menu];
				for (var i=0; i<menuContainers[n].menus.length; i++) {
					var menuLayer = document.all[menuContainers[n].menus[i].menuLayer];
					if (menu == menuContainers[n].menus[i].label) l = menuLayer;
					if (l) break;
				}
			}
		}
		window.ActiveMenu = l;
		l.style.visibility = "inherit";
		if (x != "relative") 
			l.style.pixelLeft = x || (window.pageX + document.body.scrollLeft) || 0;
		if (y != "relative") 
			l.style.pixelTop = y || (window.pageY + document.body.scrollTop) || 0;
		l.Menu.xOffset = document.body.scrollLeft;
		l.Menu.yOffset = document.body.scrollTop;
	}
	if (menu) {
		window.activeMenus[window.activeMenus.length] = l;
	}
}

function onMenuItemDown(e, l) {
	var a = window.ActiveMenuItem;
	if (document.layers) {
		if (a) {
			a.eX = e.pageX;
			a.eY = e.pageY;
			a.clicked = true;
		}
    }
}

function hideMenu(e) {
	var a = window.ActiveMenuItem;
	if (a && document.layers) {
		a.document.bgColor = a.saveColor;
		a.focusItem.top = -30;
		if (a.hilite) a.hilite.visibility = "hidden";
		if (a.action && a.clicked && window.ActiveMenu) {
 			if (a.eX <= e.pageX+5 && a.eX >= e.pageX-5 && a.eY <= e.pageY+5 && a.eY >= e.pageY-5) {
				setTimeout('window.ActiveMenu.Menu.onMenuItemAction();', 2);
			}
		}
		a.clicked = false;
		if (a.Menu.bgImageOver) {
			a.background.src = a.Menu.bgImageUp;
		}
	} else if (window.ActiveMenu && document.all) {
		if (a) {
			a.style.backgroundColor = a.saveColor;
			if (a.hilite) a.hilite.style.visibility = "hidden";
			if (a.Menu.bgImageUp) {
				a.style.background = "url(" + a.Menu.bgImageUp +")";;
			}
		}
	}
	if (window.ActiveMenu) {
		if (window.ActiveMenu.Menu) {
			e = window.event || e;
			if (!window.ActiveMenu.Menu.enableHideOnMouseOut && e.type == "mouseout") return true;
		}
	}
	hideActiveMenus();
	return true;
}

function hideChildMenu(hcmLayer) {
	var l = hcmLayer;
	for (var i=0; i < l.Menu.childMenus.length; i++) {
		var theLayer = l.Menu.childMenus[i];
		if (document.layers) {
			theLayer.visibility = "hidden";
		} else if (document.all) {
			theLayer = document.all[theLayer];
			theLayer.style.visibility = "hidden";
		}
		theLayer.Menu.hideChildMenu(theLayer);
	}

	if (l.childMenu) {
		var childMenu = l.childMenu;
		if (document.layers) {
			l.Menu.showMenu(null,null,null,childMenu.layers[0]);
			childMenu.zIndex = l.parentLayer.zIndex +1;
			childMenu.top = l.top + l.parentLayer.top + l.Menu.menuLayer.top + l.Menu.menuItemHeight/3;
			if (childMenu.left + childMenu.clip.width > window.innerWidth) {
				childMenu.left = l.parentLayer.left - childMenu.clip.width + l.Menu.menuLayer.top + 15;
				l.Menu.container.clip.left -= childMenu.clip.width;
			} else if (l.Menu.childMenuDirection == "left") {
				childMenu.left = l.parentLayer.left - l.parentLayer.clip.width;
				l.Menu.container.clip.left -= childMenu.clip.width;
			} else {
				childMenu.left = l.parentLayer.left + (l.parentLayer.clip.width*2)/3  + l.Menu.menuLayer.left -5;
			}
			var w = childMenu.clip.width+childMenu.left-l.Menu.container.clip.left;
			if (w > l.Menu.container.clip.width)  
				l.Menu.container.clip.width = w;
			var h = childMenu.clip.height+childMenu.top-l.Menu.container.clip.top;
			if (h > l.Menu.container.clip.height) l.Menu.container.clip.height = h;
			l.document.layers[1].zIndex = 0;
			childMenu.visibility = "inherit";
		} else if (document.all) {
			childMenu = document.all[l.childMenu];
			var menuLayer = document.all[l.Menu.menuLayer];
			childMenu.style.zIndex = menuLayer.style.zIndex+1;
			childMenu.style.pixelTop = l.style.pixelTop + menuLayer.style.pixelTop + l.Menu.menuItemHeight/3;
			if (childMenu.style.pixelLeft + childMenu.style.pixelWidth > document.width) {
				childMenu.style.pixelLeft = childMenu.style.pixelWidth + menuLayer.style.pixelTop + 15;
			} else if (l.Menu.childMenuDirection == "left") {
				//childMenu.style.pixelLeft = l.parentLayer.left - l.parentLayer.clip.width;
			} else {
				childMenu.style.pixelLeft = (menuLayer.style.pixelWidth*2/3) + menuLayer.style.pixelLeft -5;
			}
			childMenu.style.visibility = "inherit";
		} else {
			return;
		}
		window.activeMenus[window.activeMenus.length] = childMenu;
	}
}

function hideActiveMenus() {
	if (!window.activeMenus) return;
	for (var i=0; i < window.activeMenus.length; i++) {
		if (!activeMenus[i]) continue;
		if (activeMenus[i].visibility && activeMenus[i].Menu) {
			activeMenus[i].visibility = "hidden";
			activeMenus[i].Menu.container.visibility = "hidden";
			activeMenus[i].Menu.container.clip.left = 0;
		} else if (activeMenus[i].style) {
			activeMenus[i].style.visibility = "hidden";
		}
	}
	window.activeMenus.length = 0;
}


