
// Extra stuff to enable nav hovers in lame IE
/*
liHover = function() {
	if(document.getElementById) {
		if(document.getElementsByTagName){
			var liArray = document.getElementById("nav").getElementsByTagName("li");
			for (var i=0; i<liArray.length; i++) {
				//if (liArray[i].getAttribute("class") == "navL1"){
					liArray[i].onmouseover = function() {
						this.className += " navL1Hov";
						alert("worked");
					}
					liArray[i].onmouseout = function() {
						this.className = this.className.replace(new RegExp(" navL1Hov\\b"), "");
					}
				//}
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", liHover);

alert("still here");
makeTheNavWork = function(){
	if(!document.getElementsByTagName) return false;
	if(!document.getElementsById) return false;
	alert("still here");
	var navLiTags = document.getElementsById("nav").getElementsByTagName("li");
	for (var i=0; i<navLiTags.length; i++) {
		if (navLiTags.getAttribute("class").indexOf("navL1") != -1){
			navLiTags[i].onmouseover=function() {
				this.className += " hovL1";
				alert("L1");
			}
			navLiTags[i].onmouseout=function() {
				this.className = this.className.replace(new RegExp(" hovL1\\b"), "");
			}
		} else if (navLiTags.className.indexOf("navL2") != -1){
			navLiTags[i].onmouseover=function() {
				this.className += " hovL2";
			}
			navLiTags[i].onmouseout=function() {
				this.className = this.className.replace(new RegExp(" hovL2\\b"), "");
			}
		} else if (navLiTags.className.indexOf("navL3") != -1){
			navLiTags[i].onmouseover=function() {
				this.className += " hovL3";
			}
			navLiTags[i].onmouseout=function() {
				this.className = this.className.replace(new RegExp(" hovL3\\b"), "");
			}
		}
}
if (window.attachEvent) window.attachEvent("onload", makeTheNavWork);



startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
			for (i=0; i<navRoot.childNodes.length; i++) {
				node = navRoot.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
					this.className+=" navL1Hover";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" navL1Hover", "");
				}
			}
		}
	}
}
window.onload=startList;*/