topNavHover = function() {
	var sfEls = document.getElementById("topnav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {


		
		sfEls[i].onmouseover=function() {
			if(this.className.match(/^on$/) || this.className.match(/\son\s*$/) || this.className.match(/^\s*on\s/)) {
				this.className+=" ";
			} else {
				this.className+=" hovered";
			}
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" hovered\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", topNavHover);
