hovercolor   = "#FFFFFF";	
bgcolor      = "#CCDDEE";	
laycolor     = "#0066CC";   
bordercolor  = "#FFFFFF";
textColor    = '#003366';
background   = "";			
menu_border  = 2;
imagePath    = "http://www.bmocm.com/common/images/newnav/";
arrow        = "<img src=\""+imagePath+"arrow.gif\" border=\"0\"><br>" 

//sets the distance from top of page for top-level menu 
if(Englishsite == "True"){
	if (document.getElementById) { //Internet Explorer 5+ on both Windows and Mac platforms, Netscape 6 and Opera 6+.
		theTop = 74;
		}
		else if (document.all) { //Internet Explorer 4. 
		theTop = 74;
		}
		else if (document.layers) { //Netscape 4.
		theTop = 75;
		}
} else {
	theTop=74;
}

No3 = (parseInt(navigator.appVersion) > 3) ? 1:0;
//determines Windows platform
var isWin = false;
if(navigator.platform == 'Win32') var isWin = true;

var timer;

function Show() {
}



function Hide() { 
 }

var theHeight = '18px';

function createBaseItem(theName,theText,Width,Left,theLink,subLayer) {

	layerName = "layer" + theName;
	var theInfo = '';
	if(theName==1) {
		leftdivider = "leftside";
		adjust = 6;
	}
	else {
		leftdivider = "dividerleft";
		adjust = 5;
	}
	if(theLink.substr(0,4)!='java') linkText = "window.top.location.href='"+theLink+"'";
	else linkText = theLink;
	if(thisPage==theName) theText = "<b>"+theText+"</b>";
	if (document.getElementById) {
		if(isWin) {
			theInfo += "<DIV ID="+layerName+" onMouseover='setMenuHover(\""+theName+"\");' onMouseout='Hide();'  class=menuButton style='position:absolute; z-Index:10; left:"+Left+"; top:"+theTop+"'>";
			theInfo += "<table width="+eval(Width+adjust)+" border=0 cellpadding=0 cellspacing=0><tr><td><img src='"+imagePath+leftdivider+".gif'></td><td width="+Width+" class=menuButton>"+theText+"</td><td><img src='"+imagePath+"dividerright.gif'></td></tr><tr><td colspan=3 bgcolor=#000000 height=1><img src='"+imagePath+"spacer.gif' height=1></td></tr></table></DIV>";
			theInfo += "<DIV ID="+layerName+"on onMouseover='Show("+subLayer+"); hideLayer();' onMouseout='Hide();' onClick=\""+linkText+";Hide()\" class=menuButtonHover style='position:absolute; z-Index:10; visibility:hidden; left:"+Left+"; top:"+theTop+"'>";
			theInfo += "<table width="+eval(Width+adjust)+" border=0 cellpadding=0 cellspacing=0><tr><td><img src='"+imagePath+leftdivider+"lite.gif'></td><td width="+Width+" class=menuButtonHover>"+theText+"</td><td><img src='"+imagePath+"dividerrightlite.gif'></td></tr><tr><td colspan=3 bgcolor=#000000 height=1><img src='"+imagePath+"spacer.gif' height=1></td></tr></table></DIV>";
			}
		else theInfo += "<DIV ID="+layerName+"  onMouseover='Show("+subLayer+"); hideLayer();' onMouseout='Hide();'  class=menuButton style='position:absolute; z-Index:10; left:"+eval(Left+macAdjust)+"; top:"+theTop+";width:"+eval(3+Width)+";height:20;padding:2px'>"+theText+"</div>";
	}
	else {
		theInfo += "<LAYER name="+layerName+" onMouseover='setMenuHover(\""+theName+"\");' position=absolute visibility=true width="+eval(Width+adjust)+" height="+theHeight+" left="+Left+" top="+theTop+">";
		theInfo += "<table border=0 cellpadding=0 cellspacing=0 class='menuButton'><tr><td><img src='"+imagePath+leftdivider+".gif'></td><td class='menuButton' width="+Width+">"+theText+"</td><td><img src='"+imagePath+"dividerright.gif'></td></tr><tr><td colspan=3 bgcolor=#000000 height=1><img src='"+imagePath+"black.gif' height=1></td></tr></table></LAYER>";
		theInfo += "<LAYER name="+layerName+"on onMouseOver='Show("+subLayer+");' onFocus=\""+linkText+";Hide()\"";
		theInfo += "onMouseOut='Hide();' position=absolute visibility=hidden width="+eval(Width+adjust)+" height="+theHeight+" left="+Left+" top="+theTop+">";
		theInfo += "<table border=0 cellpadding=0 cellspacing=0 class=menuButtonHover><tr><td><img src='"+imagePath+leftdivider+"lite.gif'></td><td class=menuButtonHover width="+Width+">"+theText+"</td><td><img src='"+imagePath+"dividerrightlite.gif'></td></tr><tr><td colspan=3 bgcolor=#000000 height=1><img src='"+imagePath+"black.gif' height=1></td></tr></table></LAYER>";
		}	
	document.write(theInfo);
	}

function setMenuHover(theName) {
	if(timer) clearTimeout(timer);
	for(i=1;i<menuItems.length;i++) {
		layerName = "layer"+i+"on";
		if (i != theName) {
			if (document.getElementById) document.getElementById(layerName).style.visibility="hidden";
			else document.layers[layerName].visibility=false;
			}
		else {
			if (document.getElementById) document.getElementById(layerName).style.visibility="visible";
			else document.layers[layerName].visibility=true;
			}
		}
	}



var activeParent = '';
var activeLayer = '';

function hideLayer() {
	if ((activeParent) && (document.layers)) {
		document.eval('L'+activeParent).document.eval('layer_'+activeParent+"_"+activeLayer).zIndex=8;
		}
	}


function showLayer(layerNum, Parent,numRows) {
	for(i=1;i<numRows;i++) {
		if(i==layerNum) document.layers['L'+Parent].document.layers['layer_'+Parent+'_'+i].zIndex=10;
		else document.layers['L'+Parent].document.layers['layer_'+Parent+'_'+i].zIndex=8;
	}
}
