// Show or hide all select boxes on a page
function ToggleSelectBoxes(hide) {
	var theSelects = document.getElementsByTagName("select");
	for (var i = 0; i < theSelects.length; i++) theSelect.style.visibility = hide ? "hidden" : "visible";
}

// makes the menu list IE compatible
function sfHover()
{
	
	var nav = document.getElementById("nav");
	if (!nav) return;
	
	var li = nav.getElementsByTagName("LI");

		for (var i = 0; i < li.length; i++) {
		li[i].onmouseover = function()	{ this.className+= " sfhover"; ToggleSelectBoxes(1); }
		li[i].onmouseout = function()	{ this.className = this.className.replace(new RegExp(" sfhover\\b"), ""); ToggleSelectBoxes(0); }
	}
}

// Firefox only likes next line an NOT AttachOnload(sfHover) (makes sub menus stick)
if (window.attachEvent) window.attachEvent("onload", sfHover);
