window.onerror = null;

 var bName = navigator.appName;

 var bVer = parseInt(navigator.appVersion);

 var NS4 = (bName == "Netscape" && bVer >= 4);

 var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);

 var NS3 = (bName == "Netscape" && bVer < 4);

 var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);

 var fixForms = NS3 || NS4

 var menuActive = 0

 var menuOn = 0

 var onLayer

 var timeOn = null






 // LAYER CHANGING CODE

	if (NS4 || IE4) {

		if (navigator.appName == "Microsoft Internet Explorer") {

		layerStyleRef="layer.style.";

		layerRef="document.all";

		styleSwitch=".style";

		}
	else	{

		layerStyleRef="layer.";

		layerRef="document.layers";

		styleSwitch="";

		}

	}




// SHOW DROP DOWN MENU

function showLayer(layerName){

	if (NS4 || IE4) {

		if (timeOn != null) {

			clearTimeout(timeOn)

			hideLayer(onLayer)

		}

		if (NS4 || IE4) {

			eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');

			onLayer = layerName

		}
	}

}





// HIDE DROP DOWN MENU

function hideLayer(layerName){

 // code here to hide menu

	 if (menuActive == 0) {

		 if (NS4 || IE4) {

		 eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');

		 }

	 }

}




// TIMER FOR BUTTON MOUSE OUT

	function btnTimer() {

		timeOn = setTimeout("btnOut()",1000);
	}



// BUTTON MOUSE OUT

	function btnOut(layerName) {

		if (menuActive == 0) {

		hideLayer(onLayer);
		}
	}



// DROP DOWN MENU MOUSE OVER

	function menuOver(itemName) {

		clearTimeout(timeOn)

		menuActive = 1

	}



// DROP DOWN MENU MOUSE OUT

	function menuOut(itemName) {

		menuActive = 0 ;

		timeOn = setTimeout("hideLayer(onLayer)", 500);

	}
