No3 = (parseInt(navigator.appVersion) > 3) ? 1:0;
NS6 = (!document.all && document.getElementById) ? 1 : 0;
if (navigator.userAgent == "Mozilla/4.0 (compatible; MSIE 4.5; Mac_PowerPC)") { No3 = 0; }
layer = (document.all && No3) ? "document.all['L'+menu].style" : (document.layers && No3) ? "document.layers['L'+menu]" : 0;

if (NS6) {layer = "document.getElementById('L'+menu).style"};
//alert(layer)

var timer;

function Show() { if(layer) {
	//alert(NS6)
	if(timer) clearTimeout(timer);
	for(menu=0; menu<Layer.length; menu++) { if(Layer[menu]) { eval(layer).visibility = "hidden"; } }
	//for(i=0; i<arguments.length; i++) { 
		menu=arguments[0]; 
		pos=arguments[1]; 
		//alert(pos)
		if (Layer[menu]) {eval(layer).visibility = "visible";
			if (pos){eval(layer).left = pos;}
		} 
	//}
	
} }

function Hide() { timer = setTimeout("Show()", 300); }



//////////////////////////////////////////////////////

	hovercolor1   = "#EF1829";	// color name/code 1 
	bgcolor1      = "#848684";	// color name/code 1 
	
	hovercolor2   = "#848684";	// color name/code 2
	bgcolor2	 = "#EF1829"; // color name/code 2
	
	hovercolor3   = "#EF1829";	// color name/code 1 
	bgcolor3      = "#848684";	// color name/code 1 
	
	hovercolor3   = "#777777";	// color name/code 2
	bgcolor3	 = "#638B91"; // color name/code 2
	
	menu_border  = 1;
	border_color = "#999999";
	arrow_pic    = "/images/arrowRight.gif"; // url of arrow picture for submenus
	arrow = "  <img border=0 src='"+arrow_pic+"' alt=''>";
	
	//var imgpos = document.img1.x 
//////////////////////////////////////////////////////


function LayerSpecs(Left,Top,Width,ID) { if(No3 || NS6) {
	
	
		
	if((!document.all) || NS6) { 
		this.left = Left-2;
		this.top = Top-7;
	}
	else {
	   this.left  = Left;
	   this.top   = Top;
	}
	if (NS6 || document.layers) {
	   this.left  = Left;
	   this.top   = Top;
	}
	this.info  = "";
	if (ID.indexOf("|") > -1) {
		ID = ID.replace("|",",")
		
	}	
	T=0;
	for(i=4; i<arguments.length; i++) {
		var arg, arg_arr, thishref, thisname
		arg = arguments[i]
		arg_arr = arg.split("|^|");
		thishref = arg_arr[0]
		thisname = arg_arr[1]
		submenu = arg_arr[2]
		thisstyle = arg_arr[3]	
		color_scheme = 	thisstyle
		if (!thisstyle) {thisstyle = "";color_scheme = "1"}
		
		hovercolor = hovercolor1
		if(color_scheme + "" == "2"){hovercolor = hovercolor2}
		bgcolor = bgcolor1
		if(color_scheme + "" == "2"){bgcolor = bgcolor2}
		background = bgcolor	// I took out the ability for a bg graphic cuz we wont need it
		this.background = background
		this.bgcolor = bgcolor
		
		if(document.all || NS6) { 
			this.info += "<TR><TD style='cursor:hand' class=menunav"+thisstyle+" WIDTH="+Width
			this.info += " onClick='window.location.href=\"" + thishref + "\"'"
			this.info += " onMouseOver='this.bgColor=\""+hovercolor+"\";"
			if (submenu) { this.info += submenu } else { this.info += "Show(" + ID + ");" }
			this.info += "'"
			this.info += " onMouseOut='this.bgColor=\"\";"
			//if (submenu) { this.info += submenu }
			this.info += "'"
			this.info += "><a href=\""+thishref+"\" class=menunav"+thisstyle+">" + thisname + "</a></TD></TR>"; }
		else { this.info += "<LAYER onClick='window.location.href=\"" + thishref + "\"'"
			this.info += " onMouseOver='this.bgColor=\""+hovercolor+"\";"
			if (submenu) { this.info += submenu }
			this.info += "'"
			this.info += " onMouseOut='this.bgColor=\""+bgcolor+"\"' WIDTH="+Width+" POSITION=RELATIVE TOP="+T+">&nbsp;&nbsp;<a href=\""+thishref+"\" class=menunav"+thisstyle+">" + thisname + "</a></LAYER>"; }
		T+=20;
	}
	
} 
}

Layer = new Array();





