// nav.js 
// modified 6/11/07

<!--//--><![CDATA[//><!--
/*
ORIGINAL - 

sfHover = function() {
	var sfEls = document.getElementById("sidenav").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);
//--><!]]>
*/

sfHover = function() {
      var sidenav = document.getElementById("sidenav");
      if( sidenav ){
            var sfEls = document.getElementById("sidenav").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"), "");
                  }
            }
      }
}



/*
SLOWS DOWN THE MOVEMENT? #161 - http://www.htmldog.com/ptg/archives/000050.php#comment120

sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");

for (var i=0; i<sfEls.length; i++) {
sfEls[i].onclick=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseleave=function() {
for (var x=0; x < 100; x++)
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}*/
