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