$(document).ready(function(){
	var sfHover = function() {
		var sfEls = document.getElementById("nav").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
	if (window.attachEvent) window.attachEvent("onload", sfHover);
	
	var sfHover2 = function() {
		var sfEls = document.getElementById("topleft-links").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhoverx";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhoverx\\b"), "");
			}
		}
	}
	if (window.attachEvent) window.attachEvent("onload", sfHover2);
	
	var sfHover3 = function() {
		var sfEls = document.getElementById("topright-links-sub").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhoverx";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhoverx\\b"), "");
			}
		}
	}
	if (window.attachEvent) window.attachEvent("onload", sfHover3);
});