var clearExp = new RegExp(" sfhover\\b");

/* attach IE-required classes to <li> tags to compensate for IE's lack of support for li:hover*/
sfHover = function() {
	var sfSports = document.getElementById("sportlist").getElementsByTagName("LI");
	for (var i=0; i<sfSports.length; i++) {
		sfSports[i].onmouseover=function() {
			this.className="sfhover";
		}
		sfSports[i].onmouseout=function() {
			this.className="nohover";
		}
	}

	/*
	var sfLeftnav = document.getElementById("leftnav").getElementsByTagName("LI");
	for (var i=0; i<sfLeftnav.length; i++) {
		sfLeftnav[i].onmouseover=function() {
			this.className="sfhover";
		}
		sfLeftnav[i].onmouseout=function() {
			this.className="nohover";
		}
	}
	*/

	/* attach event handlers to the sports menu's main button */
	document.getElementById("choosesport").onmouseover=function(){
		document.getElementById("sportlist").className="sfhover";
	}
	document.getElementById("choosesport").onmouseout=function(){
		document.getElementById("sportlist").className="nohover";
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

leftnavHover = function() {
	var sfEls = document.getElementById("leftnav").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(clearExp, "");
			/*
			var me = this;
			setTimeout( function() { me.className=me.className.replace(clearExp, ""); }, 500);
			*/
		}
	}
}
if(window.attachEvent) window.attachEvent("onload", leftnavHover);