function swapImages(img_name, img_src){	if (document.images){		document[img_name].src = img_src;    }}function returnImgLoc(name, extension){	for(i=0;i<navTopLength;i++){		if(name.slice(0,3)==navTopArray[i].slice(0,3)){			var nameLeng=name.length;			var tempNum=name.slice(nameLeng-1,nameLeng);			var imgLoc='images/nav/subs/'+navSubArray[i][name.slice(nameLeng-1,nameLeng)-1]+''+extension+'.gif';		}	}	return imgLoc;}function subOvr(name){	menuOver();	if(name!=pageSelected && pageSelected!='none'){		document.getElementById(pageSelected).className = 'menuBtm';	}}function subUp(){	menuRevert();}function openPopup(name, height, width){	var winl = (screen.width - width) / 2;	var wint = (screen.height - height) / 2;	var windowName = name.slice(name.indexOf('-')+1, 50);	var windowLoc = ''+name+'.html';	var winProps = 'toolbar=no,statusbar=no,location=no,scrollbars=no,resizable=yes,width='+width+',height='+height+',top='+wint+',left='+winl;	window.open(windowLoc, windowName, winProps);}/********************************************************************** section 1 - below is the number of dropdowns in the navigation **********************************************************************/navTopLength=6;/********************************************************************** section 2 - below shows and hides navigation layers **********************************************************************/function show(id){	menuOver();	if(id!=openedNav || siteSection=="none"){		if(window.pageSelected && pageSelected!="none"){			document.getElementById(pageSelected).className = 'menuBtmSelect';		}		for(i=1;i<=navTopLength;i++){			var divName = "Nav"+i;			if(id==divName){				openedNav=divName;				document.getElementById(divName).style.visibility = 'visible';				document.getElementById("Nav"+i+"-Top").className = 'menuTopSelect';			}else{				document.getElementById(divName).style.visibility = 'hidden';				document.getElementById("Nav"+i+"-Top").className = 'menuTop';			}		}	}}function hideAll(){	show(siteSection);	if(pageSelected!='none'){		document.getElementById(pageSelected).className = 'menuBtmSelect';	}}function menuOver(){	if(window.clearNav){		window.clearTimeout(clearNav);	}}function menuRevert(){	clearNav = window.setTimeout("hideAll()", 1000);}/********************************************************************** section 3 - below is to write the css to hid the navigation dropdowns **********************************************************************/document.write ('<style><!--');for(i=1;i<=navTopLength;i++){	document.write ('	#Nav'+i+' { visibility: hidden; position: absolute; z-index: '+(776+i)+'; }'	+'	#Nav'+i+'-Top    { visibility: visible; position: relative; z-index: '+(876+i)+'; }');}document.write ('//--></style>');/********************************************************************** section 4 - below are the functions called on page load (content area) **********************************************************************/openedNav="none";function init() {	siteSection=(pageSelected.slice(0,3)=="Nav")?pageSelected.slice(0,pageSelected.length-2):"none";	hideAll();}