function initPage(){
	var ul = document.getElementById("nav");
	var lis = ul.getElementsByTagName("li");
	for (var j=0; j<lis.length; j++) {
		lis[j].onmouseover = function(){
			this.className += " hover";
			}
		lis[j].onmouseout = function(){
			this.className = this.className.replace(new RegExp("hover"),"");
			}
		}
}


if (window.attachEvent && !window.opera)
attachEvent("onload", initPage);
