navHover = function() {
	var s = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<s.length; i++) {
		s[i].onmouseover=function() {
			this.className+=" hover";
			this.style.zIndex=200;
		}
		
		s[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" hover\\b"), "");
			this.style.zIndex=100;
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);
