/*
	from HTMLDog ( http://www.htmldog.com/articles/suckerfish/dropdowns/ )
	their improvements to Suckerfish.
	This javascipt is needed for browsers that do not support the :hover pseudo class,
	most notably Internet Explorer.  Thank you Mr. Gates.
	
	04 October 2005 - T.A. GIthens
*/

/*  Handle the horizontal menu */
sfHover = function() {
	var sfEls = document.getElementById("nav").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);

/*  Handle the vertical menu */
/* Code result is identical toabove but with error checking in case elements are not available */
sfHoverVert = function() {
	var max = 0;

	var navEl = document.getElementById("navVertical");
	if ( navEl != null ) {
			var sfEls = navEl.getElementsByTagName("LI");
			if ( sfEls != null ) 	max = sfEls.length
	}
		
	for (var i=0; i<max; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhoverVert";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhoverVert\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHoverVert);


