function initPage()
{
	var navRoot = document.getElementById("menu");
	var lis = navRoot.getElementsByTagName("li");
	for (var i=0; i<lis.length; i++)
	{
		lis[i].onmouseover = function()
		{
			this.className += " hover";
               }
		lis[i].onmouseout = function()
		{
			this.className = this.className.replace(" hover","");
		}
	}
}

if (window.attachEvent && !window.opera)
	attachEvent("onload", initPage);

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function startSearch() {

if (document.getElementById('directory').checked == true) {
   	document.searchForm.action = 'http://search.emory.edu/search';
        document.searchForm.method = "GET";
	document.searchForm.q.value = document.searchForm.searchString.value;
        } else if ( document.getElementById('people').checked == true) {
        document.searchForm.action = 'http://directory.service.emory.edu';
		document.searchForm.method = "POST";
        } else {
		document.searchForm.action = 'http://search.emory.edu/search';
		document.searchForm.method = "GET";
		document.searchForm.q.value = document.searchForm.searchString.value;
		}
document.searchForm.submit();
}



