//*---------------------------------------------------// shows the drop down menu // expected arg is active div//--------------------------------------------------*/function showNav(){	args = showNav.arguments;	if(browser=="N"){		var args, theObj;		args = showNav.arguments;		theObj = eval(args[1]);  		if (theObj) if(theObj.visibility=='hide'){theObj.visibility = 'show';}	}	else if(browser=="IE"){		theObj=eval(args[0]);		if (theObj) {            if(theObj.style.visibility=='hidden'){                hideElement('SELECT');                theObj.style.visibility = 'visible';            }        }	}	else{return}}//*---------------------------------------------------// hides the drop down menu // expected arg is active div //--------------------------------------------------*/function hideNav(){	args = hideNav.arguments;	if(browser=="N"){		var args, theObj;		args = hideNav.arguments;		theObj = eval(args[1]);		if (theObj) if(theObj.visibility=='show'){theObj.visibility = 'hide';}	}	else if(browser=="IE"){		theObj=eval(args[0]);		if (theObj) if(theObj.style.visibility=='visible'){showElement('SELECT');theObj.style.visibility = 'hidden'}	}	else{return}}//*---------------------------------------------------// hides drop down menu when menu is active// expected arg is active menu//--------------------------------------------------*/function hideDiv(){	args = hideDiv.arguments;	if(browser=="N"){}	else if(browser=="IE"){		theObj=eval(args[0]);		// calculate active size of menu		leftDiv=theObj.offsetLeft +2		rightDiv=theObj.offsetLeft + theObj.clientWidth -2		topDiv=theObj.offsetTop +2		bottomDiv=theObj.offsetTop + theObj.clientHeight -2		if(window.event.clientY > bottomDiv || 			window.event.clientY < topDiv || 			window.event.clientX < leftDiv || 			window.event.clientX > rightDiv)			{theObj.style.visibility = 'hidden';showElement('SELECT');}						}	else{return}}//*---------------------------------------------------// highlight menuitem// expected arg is active menuitem//--------------------------------------------------*/function divOver(){	args = divOver.arguments;	if(browser=="N"){}	else if(browser=="IE"){		theObj=eval(args[0]);		if(theObj.style.backgroundColor=="#ffffff"){			theObj.style.backgroundColor="#ffffff";		}	}	else{return}}//*---------------------------------------------------// highlight off menuitem// expected arg is active menuitem//--------------------------------------------------*/function divOut(){	args = divOut.arguments;	if(browser=="N"){}	else if(browser=="IE"){	theObj=eval(args[0]);		if(theObj.style.backgroundColor=="#ffffff"){			theObj.style.backgroundColor="#ffffff";		}	}	else{return}}//*---------------------------------------------------// highlight on menuitem in netscape// expected arg is active menuitem//--------------------------------------------------*/function menuOver(){	var args, theMenu;	args = menuOver.arguments;	theMenu = eval(args[0]);	theMenu.bgColor="#ffffff" }//*---------------------------------------------------// highlight off menuitem in netscape// expected arg is active menuitem//--------------------------------------------------*/function menuOut(){	var args, theMenu;	args = menuOut.arguments;	theMenu = eval(args[0]);	theMenu.bgColor="#ffffff" }//*---------------------------------------------------// goes to specified url// expected arg is url //--------------------------------------------------*/function gotoUrl(){	args = gotoUrl.arguments;	location.href=args[0]}//*---------------------------------------------------// hides specified tag//--------------------------------------------------*/function hideElement(HTMLtag){	for (i = 1; i < document.all.tags(HTMLtag).length; i++)	{		obj = document.all.tags(HTMLtag)[i];		obj.style.visibility = "hidden";	}}//*---------------------------------------------------// shows specified tag//--------------------------------------------------*/function showElement(HTMLtag){	for (i = 1; i < document.all.tags(HTMLtag).length; i++)	{		obj = document.all.tags(HTMLtag)[i];		obj.style.visibility = "visible";	}}//*---------------------------------------------------// build the divs for IE// expected args are 'div name','x in menudata aray',// 'menu left coord','arrow alignment','top in pixels' //--------------------------------------------------*/var tdID = 0function doDiv(){	args = doDiv.arguments;	var divID = args[0];	var x = args[1];	var divLeft = args[2];	var arrowPos = args[3];	var divTop = args[4];		objDiv = "<div id=\"" + divID + "\" style=\"position:absolute; text-align:right; left:"+ divLeft +"px; top:"+ divTop +"px; width:140px; z-index:3; background-color:#ffffff; visibility:hidden; padding-left:0; padding-bottom:5;\" onMouseover=\"showNav('document.all[\\'"+ divID +"\\']')\"  onMouseout=\"hideDiv('document.all[\\'" + divID + "\\']')\">"	objDiv += "<div id=\"start\" style=\"position:relative; background-color:#ffffff; width:140px;\"><span class=\"small\">|---------------------------</span></div>"		for (y = 0; y < 15; y++){	    if(menuData[x][y][0]!=null){		//objDiv += "\n<div id=\"line\" style=\"position:relative; background-color:#ffffff; width:120px;\"><img src=../images/global/gl_orange-dot.gif width=120 height=1></div>";		objDiv += "\n<div id=\"x" + tdID + "\" style=\"position:relative; background-color:#ffffff; width:140px;\" onMouseover=\"divOver('document.all[\\'x" + tdID + "\\']')\" onMouseout=\"divOut('document.all[\\'x" + tdID + "\\']')\"><span class=\"nav\" onClick=\"gotoUrl('"+menuData[x][y][1]+"')\">"+ menuData[x][y][0] +"</span></div>"		tdID = tdID +1		}	}		//objDiv +="<div id=\"line\" style=\"position:relative; background-color:#ffffff; width:120px; height:15px;\"><img src=../images/global/gl_orange-dot.gif width=120 height=1></div></div>"	objDiv +="\n</div>"	//alert(objDiv);	document.write(objDiv);}//*---------------------------------------------------// build the layers for netscape// expected args are 'div name','x in menudata aray',// 'menu left coord','arrow alignment','top in pixels' //--------------------------------------------------*/function doLayer(){	args = doLayer.arguments;	var nestLayerID=0	var layerID = args[0];	var x = args[1];	var layerLeft = args[2];	var arrowPos = args[3];	var layerTop = args[4];	if(navigator.platform.indexOf("Win") < 0){layerInc=16;layerStyle="nnMacNav";}	else{layerInc=19;layerStyle="nnNav";}				objDiv = "<layer id=\""+ layerID +"\" Z-INDEX=1 BGCOLOR=\"#ffffff\" WIDTH=140 LEFT="+ layerLeft +" TOP="+ layerTop +" VISIBILITY=HIDE onmouseover=\"showNav('','document.layers[\\'"+ layerID +"\\']')\" onmouseout=\"hideNav('','document.layers[\\'"+ layerID +"\\']')\">"	objDiv +="<layer id=\"arrow\" BGCOLOR=\"#ffffff\" WIDTH=130 HEIGHT=10 Z-INDEX=5 TOP=0>|-----------------------</layer>"		//objDiv +="<layer id=\"arrow\" BGCOLOR=\"#ffffff\" WIDTH=130 HEIGHT=10 Z-INDEX=5 TOP=0><img src=../images/global/gl_up-arrow.gif width=8 height=5 hspace=3 align="+ arrowPos +"></layer>"	//objDiv +="<layer id=\"line\" BGCOLOR=\"#ffffff\" WIDTH=130 HEIGHT=2 Z-INDEX=7 TOP=19><center><img src=../images/global/gl_orange-dot.gif width=120 height=2></center></layer>"		var nestTop=21		for (y = 0; y < 15; y++){		    if(menuData[x][y][0]!=null){				objDiv += "<layer id=\"x"+nestLayerID+"\" class=\"nav\" Z-INDEX=7 BGCOLOR=\"#ffffff\" WIDTH=140 TOP="+ nestTop +" onmouseover=\"menuOver('document.layers[\\'"+ layerID +"\\'].document.layers[\\'x"+nestLayerID+"\\']')\" onmouseout=\"menuOut('document.layers[\\'"+ layerID +"\\'].document.layers[\\'x"+nestLayerID+"\\']')\"><a id=navstyle  href=javascript:gotoUrl('"+menuData[x][y][1]+"')><font color=#000000>"+ menuData[x][y][0]	objDiv +="</font></a></layer>"			nestLayerID=nestLayerID+1	nestTop=nestTop+layerInc	//objDiv +="<layer id=\"line2\" BGCOLOR=\"#ffffff\" WIDTH=140 HEIGHT=2 Z-INDEX=7 TOP="+ nestTop +"><center><img src=../images/g_orange_dot.gif width=120 height=2></center></layer>"	nestTop=nestTop+2			}		}	//objDiv +="<layer id=\"lineEnd\" BGCOLOR=\"#ffffff\" WIDTH=130 HEIGHT=8 Z-INDEX=7 TOP="+ nestTop +"></layer></layer>"	objDiv +="</layer>"		document.write(objDiv)}
