sfHover = function() {
	var sfEls = document.getElementById("NavButtons").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"), "");
		}

		var sfSubEls = sfEls[i].getElementsByTagName("a");
		for (var j=0; j<sfSubEls.length; j++) {
			sfSubEls[j].onmouseover=function() {
				this.parentNode.className+=" sfhover";
			}
			sfSubEls[j].onmouseout=function() {
				this.parentNode.className=this.parentNode.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
