navHover = function() {
	if(document.getElementById("nav")) {
		var navItems = document.getElementById("nav").getElementsByTagName("span");
		for (var i=0; i<navItems.length; i++) {

			navItems[i].onmouseover = function() {
				this.className += " sfhover";
			}
			navItems[i].firstChild.onfocus = function() {
				this.parentNode.className += " sfhover";
			}

			navItems[i].onmouseout=function() {
				this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
			}
			navItems[i].firstChild.onblur=function() {
				this.parentNode.className = this.parentNode.className.replace(new RegExp(" sfhover\\b"), "");
			}

		}
	}

	if(document.getElementById("detailTabs")) {

		var tabItems = document.getElementById("detailTabs").getElementsByTagName("li");

		for (var i=0; i<tabItems.length; i++) {

			tabItems[i].onmouseover=function() {
				this.className += " sfhover";
			}
			tabItems[i].firstChild.onfocus=function() {
				this.parentNode.className += " sfhover";
			}
			tabItems[i].onmouseout=function() {
				this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
			}
			tabItems[i].firstChild.onblur=function() {
				this.parentNode.className = this.parentNode.className.replace(new RegExp(" sfhover\\b"), "");
			}

		}

	}

}

if (window.attachEvent) window.attachEvent("onload", navHover);
