//Code for menu pop-up information
docObj = (document.layers) ? 'document' : 'document.all';       
styleObj = (document.layers) ? '' : '.style';

function popUp(currElem){
 	if (document.layers || document.all || document.getElementById(currElem)) {	
		if (browseType == "good") {
		 	if (document.layers || document.all) {
				if (eval(docObj +  '.' + currElem + styleObj)) dom = eval(docObj +  '.' + currElem + styleObj)
				if (dom) dom.visibility = "visible"; //we check dom because of speedy mice!
		 	}
			else if (document.getElementById(currElem)) {
					//'code for navigator 6
					document.getElementById(currElem).style.visibility = "visible";
			}
		}
		else {
			//we have a crap browser situation
			getURL = currElem + ".asp"
			self.location.href = getURL
		}
	}
}
function popDown(currElem){
 	if (document.layers || document.all || document.getElementById(currElem)) {	
		if (document.all) { //is IE 4+ - toElement does not exist in Navigator
			if (event.toElement) {
				if (String(event.toElement.name) == "menuoption") {
					return
				}
			}	
		}
	 	if (document.layers || document.all) {
	    	if (eval(docObj +  '.' + currElem + styleObj)) dom = eval(docObj +  '.' + currElem + styleObj);
			if (dom) dom.visibility = "hidden"; //we check dom because of speedy mice!
	 	}
		else if (document.getElementById(currElem)) {
				//'code for navigator 6
				document.getElementById(currElem).style.visibility = "hidden";
		}
	}
}
function allOff() {
	popDown('menu2')
	popDown('menu3') 
	popDown('menu4')
	popDown('menu5')
	popDown('menu9')
}
//browser detection
 if (navigator.userAgent && navigator.userAgent.indexOf("Opera") >= 0) {
	//Opera useragent includes MSIE string in, despite handling stylesheets in a completely different way...
	browseType = "bad"
 }
 else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE") >= 0) {
    bType = "Internet Explorer"
    inPos = navigator.userAgent.indexOf("MSIE")
	verNo = navigator.userAgent.substring(inPos+5,inPos+8)
	if (verNo >=4.1) {
		browseType = "good"
	}
	else {
		browseType = "bad"
	}
 }
 else {
 	browseType = "bad"
 }
