// Beginning dropdown menu code
window.onerror = null;
 var bName = navigator.appName;
 var bVer = parseInt(navigator.appVersion);
 var NS6 = (bName == "Netscape" && bVer >= 5);
 var NS4 = (bName == "Netscape" && bVer >= 4 && bVer < 5);
 var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
 var NS3 = (bName == "Netscape" && bVer < 4);
 var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
 var menuActive = 0, menuOn = 0, onLayer, onLayer, onLayer2, onLayer3, timeOn = null;
 
// Layer switching code
if (NS4 || IE4 || NS6) {
 if (NS4) {
 layerStyleRef="layer.";
 layerRef="document.layers";
 styleSwitch="";
  }else if(NS6){
 styleSwitch=".style";
 }else{
 layerStyleRef="layer.style.";
 layerRef="document.all";
 styleSwitch=".style";
 }
}

var testDiv;
// This function will do the right thing, and either expand or collapse the DIVs
function changeDiv(layerName){
	if (NS4 || IE4) {
		if (eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility') == 'hidden'){
			showDiv(layerName);
		} else {
			hideDiv(layerName);
		}
	} 
	if (NS6) {
		if (eval('document.getElementById("'+layerName+'")'+styleSwitch+'.visibility') == 'hidden') {
	 		showDiv(layerName);
		} else {
			hideDiv(layerName);
		}
	} 
}
// SHOW DIV
function showDiv(layerName){
	if (NS4 || IE4 || NS6) {
		if (NS4 || IE4) {
			eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
			eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.position="relative"');
		} 
		if (NS6) {
		 eval('document.getElementById("'+layerName+'")'+styleSwitch+'.visibility="visible"');
		 eval('document.getElementById("'+layerName+'")'+styleSwitch+'.position="relative"');
		} 
	}
}// HIDE DIV
function hideDiv(layerName){
	if (NS4 || IE4) {
		eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
		eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.position="absolute"');
	}
	if (NS6) {
		eval('document.getElementById("'+layerName+'")'+styleSwitch+'.visibility="hidden"');
		eval('document.getElementById("'+layerName+'")'+styleSwitch+'.position="absolute"');
	}
}