topHover = function() {
	var topEls = document.getElementById('nav').getElementsByTagName("li");
	for (var i=0; i<topEls.length; i++) {
		topEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		topEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", topHover);


function openDir(form)
{
	if(form.searchbox.options[form.searchbox.selectedIndex].value=="searchsite")
	{
		alert("Please choose an option");
	}
	else
	{
		document.search_box.action=(form.searchbox.options[form.searchbox.selectedIndex].value);
	}
}
