pHover = function() {
	var pEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<pEls.length; i++) {
		pEls[i].onmouseover=function() {
			this.className+=" phover";
		}
		pEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" phover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", pHover);