function Menu(label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh) {	this.version = "990702 [Menu; menu.js]";	this.type = "Menu";	this.menuWidth = 165;	this.menuItemHeight = 17;	this.fontSize = 10;	this.fontWeight = "plain";	this.fontFamily = "Verdana"	this.fontColor = "#000000";	this.fontColorHilite = "#ffffff";	this.bgColor = "#888888";	this.menuBorder = 1;	this.menuItemBorder = 1;	this.menuItemBgColor = "#ffffff";	this.menuLiteBgColor = "#ffffff";	this.menuBorderBgColor = "#888888";	this.menuHiliteBgColor = bgh||"#000000";	this.menuContainerBgColor = "#000000";	this.childMenuIcon = "../../../../../images/menu/doublearrow.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;	this.menuItemHiLiteIcon = "";	this.menuItemBlank = "";	this.menuItemIconHeight = 7;	this.menuItemIconWidth = 13;	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 mark()	{		var pxSize;		if (PCNS == true)	{			pxSize = 10;		} else {			pxSize = 10;		}		var crt = '';				window.SubMenu0 = new Menu('Retail & M.I.' + crt);		SubMenu0.addMenuItem('RMX Series' + crt,'location="../../../../../products/amps/rmx/rmx.htm"');		SubMenu0.addMenuItem('PLX Series' + crt,'location="../../../../../products/amps/plx/plx.htm"');				window.SubMenu1 = new Menu('Installed Sound' + crt);		SubMenu1.addMenuItem('CX 2-Channel Series' + crt,'location="../../../../../products/amps/cx/cx2/cx2.htm"');		SubMenu1.addMenuItem('CX 4-Channel Series' + crt,'location="../../../../../products/amps/cx/cx4/cx4.htm"');		SubMenu1.addMenuItem('CX 8-Channel Series' + crt,'location="../../../../../products/amps/cx/cx8/cx8.htm"');		SubMenu1.addMenuItem('ISA Series' + crt,'location="../../../../../products/amps/isa/isa.htm"');		SubMenu1.addMenuItem('PowerLight Series' + crt,'location="../../../../../products/amps/powerlight/powerlight.htm"');		SubMenu1.addMenuItem('QSControl.net/BASIS/RAVE' + crt,'location="../../../../../products/network/basis/qscontrolnet_basis.htm"');		SubMenu1.addMenuItem('QSControl' + crt,'location="../../../../../products/network/qscontrol/qscontrol.htm"');			SubMenu1.addMenuItem('CM16a' + crt,'location="../../../../../products/network/cm16a/cm16a.htm"');			SubMenu1.addMenuItem('Rave Systems' + crt,'location="../../../../../products/network/rave/rave.htm"');			SubMenu1.addMenuItem('DSP-3' + crt,'location="../../../../../products/dsp/dsp3/dsp3.htm"');		SubMenu1.addMenuItem('DSP-30' + crt,'location="../../../../../products/dsp/dsp30/dsp30.htm"');			SubMenu1.addMenuItem('DSP-4' + crt,'location="../../../../../products/dsp/dsp4/dsp4.htm"');		SubMenu1.addMenuItem('ISIS 215PCM Subwoofer' + crt,'location="../../../../../products/speakers/isis/215pcm/215pcm.htm"');			SubMenu1.addMenuItem('ISIS Multipurpose' + crt,'location="../../../../../products/speakers/isis/multipurpose/multipurpose.htm"');		SubMenu1.addMenuItem('ISIS WideLine Array' + crt,'location="../../../../../products/speakers/isis/wideline/wideline.htm"');		SubMenu1.addMenuItem('ISIS I-282H' + crt,'location="../../../../../products/speakers/isis/i282h/i282h.htm"');		SubMenu1.addMenuItem('ISIS I-82H' + crt,'location="../../../../../products/speakers/isis/i82h/i82h.htm"');		SubMenu1.addMenuItem('AcousticDesign AD-S282H' + crt,'location="../../../../../products/speakers/acoustic_design/ad_s282/ad_s282.htm"');		SubMenu1.addMenuItem('AcousticDesign AD-S82' + crt,'location="../../../../../products/speakers/acoustic_design/ad_s82/ad_s82.htm"');		SubMenu1.addMenuItem('AcousticDesign AD-S52' + crt,'location="../../../../../products/speakers/acoustic_design/ad_s52/ads52.htm"');		SubMenu1.addMenuItem('AcousticDesign C Series' + crt,'location="../../../../../products/speakers/acoustic_design/c_series/c_series.htm"');		SubMenu1.addMenuItem('ModularDesign Series' + crt,'location="../../../../../products/speakers/modular_design/md_series.htm"');		SubMenu1.addMenuItem('ModularDesign Subwoofers' + crt,'location="../../../../../products/speakers/modular_design/mds215_s218.htm"');		SubMenu1.addMenuItem('ModularDesign Powered' + crt,'location="../../../../../products/speakers/modular_design/md_series_powered.htm"');				window.SubMenu2 = new Menu('Cinema' + crt);		SubMenu2.addMenuItem('DCA 2-Channel Series' + crt,'location="../../../../../products/amps/dca/dca2/dca2.htm"');		SubMenu2.addMenuItem('DCA 4-Channel Series' + crt,'location="../../../../../products/amps/dca/dca4/dca4.htm"');		SubMenu2.addMenuItem('Digital Cinema Monitor' + crt,'location="../../../../../products/monitor/dcm/dcm.htm"');		SubMenu2.addMenuItem('DSP-3' + crt,'location="../../../../../products/dsp/dsp3/dsp3.htm"');		SubMenu2.addMenuItem('DSP-30' + crt,'location="../../../../../products/dsp/dsp3/dsp30.htm"');		SubMenu2.addMenuItem('DSP-4' + crt,'location="../../../../../products/dsp/dsp3/dsp4.htm"');		SubMenu2.addMenuItem('ISA Series' + crt,'location="../../../../../products/amps/isa/isa.htm"');		SubMenu2.addMenuItem('Digital Cinema Speakers' + crt,'location="../../../../../products/speakers/dcs/dcs.htm"');				window.SubMenu3 = new Menu('Portable Live Sound' + crt);		SubMenu3.addMenuItem('PowerLight Series' + crt,'location="../../../../../products/amps/powerlight/powerlight.htm"');		SubMenu3.addMenuItem('PowerLight2 Series' + crt,'location="../../../../../products/amps/powerlight2/powerlight2.htm"');			SubMenu3.addMenuItem('ISIS 215PCM Subwoofer' + crt,'location="../../../../../products/speakers/isis/215pcm/215pcm.htm"');		SubMenu3.addMenuItem('ISIS Multipurpose' + crt,'location="../../../../../products/speakers/isis/multipurpose/multipurpose.htm"');		SubMenu3.addMenuItem('ISIS WideLine Array' + crt,'location="../../../../../products/speakers/isis/wideline/wideline.htm"');		SubMenu3.addMenuItem('ISIS I-282H' + crt,'location="../../../../../products/speakers/isis/i282h/i282h.htm"');		SubMenu3.addMenuItem('ISIS I-82H' + crt,'location="../../../../../products/speakers/isis/i82h/i82h.htm"');		SubMenu3.addMenuItem('DSP-4' + crt,'location="../../../../../products/dsp/dsp4/dsp4.htm"');				window.SubMenu4 = new Menu('Digital Signal Processors' + crt);		SubMenu4.addMenuItem('DSP-3' + crt,'location="../../../../../products/dsp/dsp3/dsp3.htm"');		SubMenu4.addMenuItem('DSP-30' + crt,'location="../../../../../products/dsp/dsp30/dsp30.htm"');		SubMenu4.addMenuItem('DSP-4' + crt,'location="../../../../../products/dsp/dsp4/dsp4.htm"');		SubMenu4.addMenuItem('Digital Cinema Monitor' + crt,'location="../../../../../products/monitor/dcm/dcm.htm"');					window.SubMenu5 = new Menu('Network Audio Systems' + crt);		SubMenu5.addMenuItem('QSControl.net/BASIS/RAVE' + crt,'location="../../../../../products/network/basis/qscontrolnet_basis.htm"');		SubMenu5.addMenuItem('QSControl' + crt,'location="../../../../../products/network/qscontrol/qscontrol.htm"');		SubMenu5.addMenuItem('RAVE Systems' + crt,'location="../../../../../products/network/rave/rave.htm"');		SubMenu5.addMenuItem('CM16a' + crt,'location="../../../../../products/network/cm16a/cm16a.htm"');				window.SubMenu6 = new Menu('Loudspeaker Systems' + crt);		SubMenu6.addMenuItem('ISIS 215PCM Subwoofer' + crt,'location="../../../../../products/speakers/isis/215pcm/215pcm.htm"');		SubMenu6.addMenuItem('ISIS Multipurpose' + crt,'location="../../../../../products/speakers/isis/multipurpose/multipurpose.htm"');		SubMenu6.addMenuItem('ISIS WideLine Array' + crt,'location="../../../../../products/speakers/isis/wideline/wideline.htm"');		SubMenu6.addMenuItem('ISIS I-282H' + crt,'location="../../../../../products/speakers/isis/i282h/i282h.htm"');		SubMenu6.addMenuItem('ISIS I-82H' + crt,'location="../../../../../products/speakers/isis/i82h/i82h.htm"');		SubMenu6.addMenuItem('AcousticDesign AD-S282H' + crt,'location="../../../../../products/speakers/acoustic_design/ad_s282/ad_s282.htm"');		SubMenu6.addMenuItem('AcousticDesign AD-S82' + crt,'location="../../../../../products/speakers/acoustic_design/ad_s82/ad_s82.htm"');		SubMenu6.addMenuItem('AcousticDesign AD-S52' + crt,'location="../../../../../products/speakers/acoustic_design/ad_s52/ads52.htm"');		SubMenu6.addMenuItem('AcousticDesign C Series' + crt,'location="../../../../../products/speakers/acoustic_design/c_series/c_series.htm"');		SubMenu6.addMenuItem('ModularDesign Series' + crt,'location="../../../../../products/speakers/modular_design/md_series.htm"');		SubMenu6.addMenuItem('ModularDesign Subwoofers' + crt,'location="../../../../../products/speakers/modular_design/mds215_s218.htm"');		SubMenu6.addMenuItem('ModularDesign Powered' + crt,'location="../../../../../products/speakers/modular_design/md_series_powered.htm"');		SubMenu6.addMenuItem('Digital Cinema Speakers' + crt,'location="../../../../../products/speakers/dcs/dcs.htm"');				window.SubMenu7 = new Menu('Press Releases' + crt);		SubMenu7.addMenuItem('Current News' + crt,'location="../../../../../press/press_releases/current/current.htm"');		SubMenu7.addMenuItem('Press Release Archive' + crt,'location="../../../../../press/press_releases/archive/archive.htm"');				window.SubMenu8 = new Menu('Technical Support' + crt);		SubMenu8.addMenuItem('About Tech Support' + crt,'location="../../../../../support/technical_support/about_tech.htm"');		SubMenu8.addMenuItem('Tech Support Forums' + crt,'location="../../../../../cgi-bin/ultimatebb.cgi"');		SubMenu8.addMenuItem('QSC FAQ' + crt,'location="../../../../../support/technical_support/faq.htm"');		SubMenu8.addMenuItem('Service Centers' + crt,'location="../../../../../support/technical_support/service_centers.htm"');		SubMenu8.addMenuItem('Factory Service' + crt,'location="../../../../../support/technical_support/factory_services.htm"');		SubMenu8.addMenuItem('Factory Parts' + crt,'location="../../../../../support/technical_support/parts.htm"');		SubMenu8.addMenuItem('Application Guides' + crt,'location="../../../../../support/technical_support/app_guides.htm"');		SubMenu8.addMenuItem('System Design Aid' + crt,'location="../../../../../support/technical_support/design_aid.htm"');		SubMenu8.addMenuItem('User Manuals' + crt,'location="../../../../../support/technical_support/user_manuals.htm"');		SubMenu8.addMenuItem('Schematics & Manuals' + crt,'location="../../../../../support/technical_support/schematics.htm"');		SubMenu8.addMenuItem('CAD/DXF Drawings' + crt,'location="../../../../../support/technical_support/cad_dxf.htm"');		SubMenu8.addMenuItem('Articles & White Papers' + crt,'location="../../../../../support/technical_support/white_papers.htm"');		SubMenu8.addMenuItem('Service Bulletins' + crt,'location="../../../../../support/technical_support/bulletins.htm"');		SubMenu8.addMenuItem('Firmware Updates' + crt,'location="../../../../../support/technical_support/firmware_updates.htm"');				window.SubMenu9 = new Menu('Sales Contact' + crt);		SubMenu9.addMenuItem('Email Directory' + crt,'location="../../../../../support/sales_contact/email.htm"');		SubMenu9.addMenuItem('Department Contacts' + crt,'location="../../../../../support/sales_contact/sales.htm"');				window.SubMenu10 = new Menu('Employment' + crt);		SubMenu10.addMenuItem('Administration' + crt,'location="../../../../../corporate/employment/administration/admin.htm"');		SubMenu10.addMenuItem('Operations' + crt,'location="../../../../../corporate/employment/operations/operations.htm"');		SubMenu10.addMenuItem('R&D Engineering' + crt,'location="../../../../../corporate/employment/rd_engineering/rd_engineering.htm"');		SubMenu10.addMenuItem('Sales & Marketing' + crt,'location="../../../../../corporate/employment/sales_marketing/sales.htm"');		SubMenu10.addMenuItem('Strategy' + crt,'location="../../../../../corporate/employment/strategy/strategy.htm"');		SubMenu10.addMenuItem('Technical Support' + crt,'location="../../../../../corporate/employment/tech_support/tech_support.htm"');				window.SubMenu11 = new Menu('Amplifier Models' + crt);		SubMenu11.addMenuItem('CX 2-Channel Series' + crt,'location="../../../../../products/amps/cx/cx2/cx2.htm"');		SubMenu11.addMenuItem('CX 4-Channel Series' + crt,'location="../../../../../products/amps/cx/cx4/cx4.htm"');		SubMenu11.addMenuItem('CX 8-Channel' + crt,'location="../../../../../products/amps/cx/cx8/cx8.htm"');		SubMenu11.addMenuItem('DCA 2-Channel Series' + crt,'location="../../../../../products/amps/dca/dca2/dca2.htm"');		SubMenu11.addMenuItem('DCA 4-Channel Series' + crt,'location="../../../../../products/amps/dca/dca4/dca4.htm"');		SubMenu11.addMenuItem('ISA Series' + crt,'location="../../../../../products/amps/isa/isa.htm"');		SubMenu11.addMenuItem('PLX Series' + crt,'location="../../../../../products/amps/plx/plx.htm"');		SubMenu11.addMenuItem('PowerLight Series' + crt,'location="../../../../../products/amps/powerlight/powerlight.htm"');		SubMenu11.addMenuItem('PowerLight2 Series' + crt,'location="../../../../../products/amps/powerlight2/powerlight2.htm"');		SubMenu11.addMenuItem('RMX Series' + crt,'location="../../../../../products/amps/rmx/rmx.htm"');				window.SubMenu12 = new Menu('Software' + crt);		SubMenu12.addMenuItem('Venue Manager' + crt,'location="../../../../../products/network/basis/qscontrolnet_basis.htm"');		SubMenu12.addMenuItem('Signal Manager' + crt,'location="../../../../../products/software/signal_manager/signal_manager.htm"');		SubMenu12.addMenuItem('System Manager' + crt,'location="../../../../../products/network/qscontrol/software.htm"');		SubMenu12.addMenuItem('DCM Manager' + crt,'location="../../../../../products/software/dcm_manager/dcm_manager.htm"');		SubMenu12.addMenuItem('DSP Speaker Voicings' + crt,'location="../../../../../products/software/dsp_voicing/dsp_voicing.htm"');						window.myMenu = new Menu('corporate');		myMenu.addMenuItem('Company Profile' + crt,'location="../../../../../corporate/profile.htm"');		myMenu.addMenuItem('Mission Statement' + crt,'location="../../../../../corporate/mission.htm"');		myMenu.addMenuItem('Company History' + crt,'location="../../../../../corporate/history.htm"');		myMenu.addMenuItem('Inside QSC' + crt,'location="../../../../../corporate/insideqsc.htm"');		myMenu.addMenuItem('Supplier Relationships' + crt,'location="../../../../../corporate/supplier.htm"');		myMenu.addMenuItem(SubMenu10,'location="#"');		myMenu.addMenuItem('Contact Us' + crt,'location="../../../../../corporate/contact.htm"');		myMenu.menuWidth = 145;		myMenu.fontSize = pxSize;				window.myMenu1 = new Menu('dealerlocator');		myMenu1.addMenuItem('Intl Distributors'+crt,'location="../../../../../dealer_locator/intl_distributors/intl_distributors.htm"');		myMenu1.addMenuItem('Domestic Reps'+crt,'location="../../../../../dealer_locator/district_managers/district_managers.htm"');		myMenu1.menuWidth = 140;		myMenu1.fontSize = pxSize;				window.myMenu2 = new Menu('products');		myMenu2.addMenuItem(SubMenu11,'location="#"');		myMenu2.addMenuItem(SubMenu5,'location="#"');		myMenu2.addMenuItem(SubMenu4,'location="#"');		myMenu2.addMenuItem(SubMenu6,'location="#"');		myMenu2.addMenuItem(SubMenu12,'location="#"');		myMenu2.addMenuItem(SubMenu0,'location="#"');		myMenu2.addMenuItem(SubMenu1,'location="#"');		myMenu2.addMenuItem(SubMenu3,'location="#"');		myMenu2.addMenuItem(SubMenu2,'location="#"');		myMenu2.addMenuItem('Accessories'+crt,'location="http://www.qscstore.com"');		myMenu2.menuWidth  = 180;		myMenu2.fontSize = pxSize;						window.myMenu3 = new Menu('press');		myMenu3.addMenuItem(SubMenu7,'location="#"');		myMenu3.addMenuItem('Just the Facts'+crt,'location="../../../../../press/just_facts/just_facts.htm"');		myMenu3.addMenuItem('Ask the Experts'+crt,'location="../../../../../press/ask_experts/ask_experts.htm"');		myMenu3.menuWidth = 125;		myMenu3.fontSize = pxSize;				window.myMenu5 = new Menu('register');		myMenu5.addMenuItem('Warranty Registration'+crt,'location="../../../../../warranty/decision.htm"');		myMenu5.addMenuItem('6-Year Warranty Promo'+crt,'location="../../../../../warranty/decision.htm"');		myMenu5.addMenuItem('Warranty Statement'+crt,'location="../../../../../registration/statement/statement.htm"');		myMenu5.addMenuItem('Privacy Statement'+crt,'location="../../../../../registration/privacy/website_privacy.htm"');		myMenu5.menuWidth = 150;		myMenu5.fontSize = pxSize;				window.myMenu4 = new Menu('support');		myMenu4.addMenuItem(SubMenu8,'location="#"');		myMenu4.addMenuItem(SubMenu9,'location="#"');		myMenu4.addMenuItem('Product Literature'+crt,'location="../../../../../support/product_literature/product_literature.htm"');		myMenu4.addMenuItem('Reps & Distributors'+crt,'location="../../../../../support/reps_distributors/reps_distributors.asp"');		myMenu4.addMenuItem('Domestic Dealers'+crt,'location="../../../../../support/dealers/dealers.asp"');		myMenu4.addMenuItem('Export Pricing'+crt,'location="../../../../../support/export_pricing/export_pricing.asp"');		myMenu4.addMenuItem('Download Acrobat'+crt,'location="http://www.adobe.com/products/acrobat/readstep2.html"');		myMenu4.menuWidth = 135;		myMenu4.fontSize = pxSize;				window.myMenu0 = new Menu('store');		myMenu0.addMenuItem('QSC Audio Wear'+crt,'location="http://www.costore.com/qscaudio/"');		myMenu0.addMenuItem('QSC Accessories'+crt,'location="http://www.qscstore.com"');		myMenu0.menuWidth = 115;		myMenu0.fontSize = pxSize;		myMenu0.writeMenus();						}				function buttonMouseOver(arg)	{			switch (arg)	{				case (1):  //show corporate menu					if (!PCIE4) window.FW_showMenu(window.myMenu,16,65 + offset);					break;				case (2): //show products menu					if (!PCIE4) window.FW_showMenu(window.myMenu2,104,65 + offset);					break;				case (3): //show the press menu					if (!PCIE4) window.FW_showMenu(window.myMenu3,163,65 + offset);					break;				case (4): //show the support menu					if (!PCIE4) window.FW_showMenu(window.myMenu4,205,65 + offset);					break;				case (5): //show the dealerlocator menu					if (!PCIE4) window.FW_showMenu(window.myMenu1,259,65 + offset);					break;				case (6): //show register menu					if (!PCIE4) window.FW_showMenu(window.myMenu5,347,65 + offset);					break;				case (7): //show store menu					if (!PCIE4) window.FW_showMenu(window.myMenu0,468,65 + offset);					break;			}		}				function buttonMouseOut(arg)	{			switch (arg)	{				case (1):					if (PCIE4) changeImages2('corporate','../../../../../images/menu/about.jpg');					break;				case (2):					if (PCIE4) changeImages2('products','../../../../../images/menu/products.jpg');					break;				case (3):					if (PCIE4) changeImages2('press','../../../../../images/menu/press.jpg');					break;				case (4):					if (PCIE4) changeImages2('support', '../../../../../images/menu/support.jpg');					break;				case (5):					if (PCIE4) changeImages2('dealerlocator','../../../../../images/menu/dealers.jpg');					break;				case (6):					if (PCIE4) changeImages2('register','../../../../../images/menu/register.jpg');					break;				case (7):					if (PCIE4) changeImages2('store','../../../../../images/menu/store.jpg');					break;			}		}										function revertImage(arg)	{			switch (arg){				case ('corporate'):					changeImages2('corporate','../../../../../images/menu/about.jpg');					break;				case ('products'):					changeImages2('products','../../../../../images/menu/products.jpg');					break;				case ('press'):					changeImages2('press','../../../../../images/menu/press.jpg');					break;				case ('support'):					changeImages2('support', '../../../../../images/menu/support.jpg');					break;				case ('dealerlocator'):					changeImages2('dealerlocator','../../../../../images/menu/dealers.jpg');					break;				case ('register'):					changeImages2('register','../../../../../images/menu/register.jpg');					break;				case ('store'):					changeImages2('store','../../../../../images/menu/store.jpg');					break;			}		}			function changeImages2(imgName, imgSrc)	{			if (!document.images) return;			var sHost = window.location.host;			var sHostx = "ababababababa";			switch (imgName)	{				case ('corporate'):				    sHostx = sHost + '/corporate';					break;				case ('products'):					sHostx = sHost + '/products';					break;				case ('press'):					sHostx = sHost + '/press';					break;				case ('dealerlocator'):					sHostx = sHost + '/dealerlocator';					break;				case ('support'):					sHostx = sHost + '/support';					break;				case ('register'):					sHostx = sHost + '/register';					break;				case ('store'):					sHostx = sHost + '/store';					break;			}			if (window.location.href.indexOf(sHostx) >= 0) {				return;					} else	{				changeImages(imgName, imgSrc);					}		}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('<SPAN ID="menuContainer"></SPAN>');		container = FIND("menuContainer");	}	window.fwHideMenuTimer = 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.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: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="mouseoutMenu();">\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 itemIcon = '';			var itemIconH = '';			if (menu.menuItemHiLiteIcon != "")	{				itemIcon = '<img src="' + menu.menuItemHiLiteIcon + '" border=0 height='+ menu.menuItemIconHeight + ' width=' + menu.menuItemIconWidth + '>';				itemIconH = '<img src="' + menu.menuItemBlank + '" border=0 height=' + menu.menuItemIconHeight + ' width=' + menu.menuItemIconWidth + '>';				}*/			var childMenu = false;			var defaultHeight = menu.fontSize+6;			var defaultIndent = menu.fontSize;			//var defaultIndent = 0;			if (item.label) {				item = item.label;				childMenu = true;			}			menu.menuItemHeight = menu.menuItemHeight || defaultHeight;			menu.menuItemIndent = menu.menuItemIndent || defaultIndent;			var itemProps = 'font-family:' + menu.fontFamily +';font-weight:' + menu.fontWeight + ';fontSize:' + menu.fontSize + ';';			if (menu.fontStyle) itemProps += 'font-style:' + menu.fontStyle + ';';			if (document.all) 				itemProps += 'font-size:' + menu.fontSize + ';" onMouseOver="onMenuItemOver(null,this);" onClick="onMenuItemAction(null,this);';			else if (!document.layers) {				itemProps += 'font-size:' + menu.fontSize + 'px;'; // zilla wants 12px.			}			var l;			if (lrs) {				l = new Layer(800,body);			}			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 textProps = 'position:absolute;left:' + menu.menuItemIndent + ';top:1;';			if (lrs) {				textProps +=itemProps;				dTag = "";				dClose = "";			}			var dText	= '<DIV ID="menuItemText'+ countItems +'" STYLE="' + textProps + 'color:'+ menu.fontColor +';">'+ /*itemIconH +*/ item +'&nbsp</DIV>\n<DIV ID="menuItemHilite'+ countItems +'" STYLE="' + textProps + 'top:1;color:'+ menu.fontColorHilite +';visibility:hidden;">'+ /*itemIcon +*/ item +'&nbsp</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;"><IMG SRC="'+ menu.childMenuIcon +'"></DIV>\n' + dClose);			} else {				content += ( dTag + dText + dClose);			}			if (lrs) {				l.document.open("text/html");				l.document.writeln(content);				l.document.close();					content = '';				theStat += "-";				tsc++;				if (tsc > 50) {					tsc = 0;					theStat = "";				}				status = theStat;			}			countItems++;  		}		if (lrs) {			// focus layer			var focusItem = new Layer(100, body);			focusItem.visiblity="hidden";			focusItem.document.open("text/html");			focusItem.document.writeln("&nbsp;");			focusItem.document.close();			} else {		  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 (document.layers) {				container.clip.width = window.innerWidth;		container.clip.height = window.innerHeight;		container.onmouseout = mouseoutMenu;		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];				if (proto.bgImageUp) l.background.src = proto.bgImageUp;				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;			var focusItem = body.document.layers[n];			focusItem.clip.width = body.clip.width;			focusItem.Menu = l.Menu;			focusItem.top = -30;            focusItem.captureEvents(Event.MOUSEDOWN);            focusItem.onmousedown = onMenuItemDown;			menu.document.bgColor = proto.menuBorderBgColor;			var lite = menu.document.layers[0];			lite.document.bgColor = proto.menuLiteBgColor;			lite.clip.width = body.clip.width +1;			lite.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 ((!document.all) && (container.hasChildNodes)) {			container.innerHTML=content;		} else {			container.document.open("text/html");			container.document.writeln(content);			container.document.close();			}		if (!FIND("menuLayer0")) return;		var menuCount = 0;		for (var x=0; x<container.menus.length; x++) {			var menuLayer = FIND("menuLayer" + x);			container.menus[x].menuLayer = "menuLayer" + x;			menuLayer.Menu = container.menus[x];			menuLayer.Menu.container = "menuLayer" + x;			menuLayer.style.zIndex = 1;		    var s = menuLayer.style;			s.top = s.pixelTop = -300;			s.left = s.pixelLeft = -300;			var menu = container.menus[x];			menu.menuItemWidth = menu.menuWidth || menu.menuIEWidth || 140;			menuLayer.style.backgroundColor = menu.menuBorderBgColor;			var top = 0;			for (var i=0; i<container.menus[x].items.length; i++) {				var l = FIND("menuItem" + menuCount);				l.Menu = container.menus[x];				if (l.addEventListener) { // ns6					l.style.width = menu.menuItemWidth;						l.style.height = menu.menuItemHeight;					l.style.top = top;					l.addEventListener("mouseover", onMenuItemOver, false);					l.addEventListener("click", onMenuItemAction, false);					l.addEventListener("mouseout", mouseoutMenu, false);				} else { //ie					l.style.pixelWidth = menu.menuItemWidth;						l.style.pixelHeight = menu.menuItemHeight;					l.style.pixelTop = top;				}				top = top + menu.menuItemHeight+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 = FIND("menuItemHilite" + menuCount);				l.focusItem = FIND("focusItem" + x);				l.focusItem.style.pixelTop = l.focusItem.style.top = -30;				var childItem = FIND("childMenu" + menuCount);				if (childItem) {					l.childMenu = container.menus[x].items[i].menuLayer;					childItem.style.pixelLeft = childItem.style.left = menu.menuItemWidth -11;					childItem.style.pixelTop = childItem.style.top =(menu.menuItemHeight /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 = FIND("menuSeparator" + menuCount);				if (sep) {					sep.style.clip = "rect(0 " + (menu.menuItemWidth - 3) + " 1 0)";					sep.style.width = sep.style.pixelWidth = menu.menuItemWidth;						sep.style.backgroundColor = menu.bgColor;					sep = FIND("menuSeparatorLite" + menuCount);					sep.style.clip = "rect(1 " + (menu.menuItemWidth - 3) + " 2 0)";					sep.style.width = sep.style.pixelWidth = menu.menuItemWidth;						sep.style.backgroundColor = menu.menuLiteBgColor;					l.style.height = l.style.pixelHeight = menu.menuItemHeight/2;					l.isSeparator = true					top -= (menu.menuItemHeight - l.style.pixelHeight)				} else {					l.style.cursor = "hand"				}				menuCount++;			}			menu.menuHeight = top-1;			var lite = FIND("menuLite" + x);			var s = lite.style;			s.height = s.pixelHeight = menu.menuHeight +(menu.menuBorder * 2);			s.width = s.pixelWidth = menu.menuItemWidth + (menu.menuBorder * 2);			s.backgroundColor = menu.menuLiteBgColor;			var body = FIND("menuFg" + x);			s = body.style;			s.height = s.pixelHeight = menu.menuHeight + menu.menuBorder;			s.width = s.pixelWidth = menu.menuItemWidth + menu.menuBorder;			s.backgroundColor = menu.bgColor;			s = menuLayer.style;			s.width = s.pixelWidth  = menu.menuItemWidth + (menu.menuBorder * 4);			s.height = s.pixelHeight  = menu.menuHeight+(menu.menuBorder*4);		}	}	if (document.captureEvents) {			document.captureEvents(Event.MOUSEUP);	}	if (document.addEventListener) {			document.addEventListener("mouseup", onMenuItemOver, false);	}	if (document.layers && window.innerWidth) {		window.onresize = NS4resize;		window.NS4sIW = window.innerWidth;		window.NS4sIH = window.innerHeight;	}	document.onmouseup = mouseupMenu;	window.fwWroteMenu = true;	status = "";}function NS4resize() {	if (NS4sIW < window.innerWidth || 		NS4sIW > window.innerWidth || 		NS4sIH > window.innerHeight || 		NS4sIH < window.innerHeight ) 	{		window.location.reload();	}}function onMenuItemOver(e, l) {	FW_clearTimeout();	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.top = 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)	{		var actionArray= l.action.split(';');		for (var i=0; i<actionArray.length; i++)		{			eval("" + actionArray[i]);		}	}	window.ActiveMenuItem = 0;}function FW_clearTimeout(){	if (fwHideMenuTimer) clearTimeout(fwHideMenuTimer);	fwHideMenuTimer = null;	fwDHFlag = false;}function FW_startTimeout(){	fwStart = new Date();	fwDHFlag = true;	fwHideMenuTimer = setTimeout("fwDoHide()", 1000);}function fwDoHide(){	if (!fwDHFlag) return;	var elapsed = new Date() - fwStart;	if (elapsed < 1000) {		fwHideMenuTimer = setTimeout("fwDoHide()", 1100-elapsed);		return;	}	fwDHFlag = false;	hideActiveMenus();	window.ActiveMenuItem = 0;}function FW_showMenu(menu, x, y, child) {	if (!window.fwWroteMenu) return;	FW_clearTimeout();	if (document.layers) {		if (menu) {			var l = menu.menuLayer || menu;			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) 				FW_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 (FIND("menuItem0")) {		var l = menu.menuLayer || menu;			hideActiveMenus();		if (typeof(l) == "string") {			l = FIND(l);		}		window.ActiveMenu = l;		var s = l.style;		s.visibility = "inherit";		if (x != "relative") 			s.left = s.pixelLeft = x || (window.pageX + document.body.scrollLeft) || 0;		if (y != "relative") 			s.top = s.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 mouseupMenu(e){	hideMenu(true, e);	hideActiveMenus();	return true;}function mouseoutMenu(){	hideMenu(false, false);	return true;}function hideMenu(mouseup, 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 (mouseup && a.action && a.clicked && window.ActiveMenu) { 			if (a.eX <= e.pageX+15 && a.eX >= e.pageX-15 && a.eY <= e.pageY+10 && a.eY >= e.pageY-10) {				setTimeout('window.ActiveMenu.Menu.onMenuItemAction();', 2);			}		}		a.clicked = false;		if (a.Menu.bgImageOver) {			a.background.src = a.Menu.bgImageUp;		}	} else if (window.ActiveMenu && FIND("menuItem0")) {		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 (!mouseup && window.ActiveMenu) {		if (window.ActiveMenu.Menu) {			if (window.ActiveMenu.Menu.hideOnMouseOut) {				FW_startTimeout();			}			return(true);		}	}	return(true);}function PxToNum(pxStr){ // pxStr == 27px, we want 27.	if (pxStr.length > 2) {		n = Number(pxStr.substr(0, pxStr.length-2));		return(n);	}	return(0);}function hideChildMenu(hcmLayer) {	FW_clearTimeout();	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 {			theLayer = FIND(theLayer);			theLayer.style.visibility = "hidden";		}		theLayer.Menu.hideChildMenu(theLayer);	}	if (l.childMenu) {		var childMenu = l.childMenu;		if (document.layers) {			l.Menu.FW_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.left + 15;				l.Menu.container.clip.left -= childMenu.clip.width;			} else {				childMenu.left = l.parentLayer.left + l.parentLayer.clip.width  + 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 (FIND("menuItem0")) {			childMenu = FIND(l.childMenu);			var menuLayer = FIND(l.Menu.menuLayer);			var s = childMenu.style;			s.zIndex = menuLayer.style.zIndex+1;			if (document.all) { // ie case.				s.pixelTop = l.style.pixelTop + menuLayer.style.pixelTop + l.Menu.menuItemHeight/3;				s.left = s.pixelLeft = (menuLayer.style.pixelWidth) + menuLayer.style.pixelLeft -5;			} else { // zilla case				var top = PxToNum(l.style.top) + PxToNum(menuLayer.style.top) + l.Menu.menuItemHeight/3;				var left = (PxToNum(menuLayer.style.width)) + PxToNum(menuLayer.style.left) -5;				s.top = top;				s.left = left;			}			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;			revertImage(activeMenus[i].Menu.label);		} else if (activeMenus[i].style) {			/*if (document.all)	{			var h1 = activeMenus[i].style.height;			var w1 = activeMenus[i].style.width;			var t1 = activeMenus[i].style.top;			var f3 = activeMenus[i].style.left;			var cx = event.clientX + document.body.scrollLeft;			var cy = event.clientY + document.body.scrollTop;			if (cx >= f3 && cx <= (f3 + w1)) return;			if (cy >= t1 && cy <= (t1 + h1)) return;			}*/			var s = activeMenus[i].style;			s.visibility = "hidden";			s.left = -200;			s.top = -200;			revertImage(activeMenus[i].Menu.label);		}	}	if (window.ActiveMenuItem) {		hideMenu(false, false);	}	window.activeMenus.length = 0;}