
// Global Navigation Script called for IE only

sfHover = function() 
{ 
	var sfEls = document.getElementById("nav").getElementsByTagName("LI"); 
	
	for (var i=0; i<sfEls.length; i++) 
	{ 
		sfEls[i].onmouseover = function() 
		{ 
			// If it's a main nav LI element, change the class to show the menu
			if (this.className == "children" || this.className == "fiction" || this.className == "factual") {
				this.className += " sfhover";
			} //else {
				// It's a LI from the menu list, so change it's background color
				//this.className += " subhover";
			//}
		} 
		
		sfEls[i].onmouseout = function() 
		{ 
			this.className = this.className.replace(new RegExp(" sfhover\\b"), ""); 
			//this.className = this.className.replace(new RegExp(" subhover\\b"), "");
		} 
	} 
} 

if (window.attachEvent) {
	window.attachEvent("onload", sfHover);
}

