function setupMenus(){
if (document.all && document.getElementById) {
		/*
		navRoot = document.getElementById("dmenu");
		for (i=0; i < navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
		*/
		setupMenu('nav');
		setupMenu('navAbout');
		/*if(focusUsername){
		  focusUsername();
		}*/
	}
}
function setupMenu(id){
navRoot = document.getElementById(id);
		for (i=0; i < navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" sfhover";
					showSelect(-1);
				}
				node.onmouseout=function() {
					this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
					showSelect(1);
				}
			}
		}

}
function clickSearchBox(){
  //if you start to type the search box, get the default text outta there
  var searchBox;
  var searchText;
  if(document.getElementById){
    searchBox = document.getElementById("searchFor");
    searchText = globalStringTrim(searchBox.value);
    if(searchText == "(Enter Search Terms)"){
     searchBox.value = "";
    }
  }
}
function handleSearchClick(){
  //handles clicking the search button
  var searchBox;
  var searchText;
  searchBox = document.getElementById("searchFor");
  searchText = searchBox.value;
  searchText += "";
  searchText = globalStringTrim(searchText);
  if(searchText != "" && searchText != "(Enter Search Terms)"){
    document.getElementById('searchForm').submit();
  }else{
    searchBox.focus();
    alert("Please type what you want to search for in the text box.");
  }

}
function updateNewsBox(attempt){
  var stuAidUL;
  var invisibleBox;
  attempt = parseInt(attempt);
  if(attempt < 3){
    attempt = attempt + 1;
    
    if(document.getElementById){
      stuAidUL = document.getElementById('stuAidUL');
      invisibleBox = document.getElementById('invisibleBox');
      if(stuAidUL && invisibleBox){
        stuAidUL.innerHTML = invisibleBox.innerHTML;
        var timer = setTimeout("updateNewsBox('" + attempt + "');", 5000);
      }
    }
  }
}
        