// JavaScript Document
/* THE FOLLOWING JAVASCRIPT CODE COPYRIGHT OUTCROP GROUP & OUTCROP INTERACTIVE 2006 */
function myNavigation(){

	
url=location.toString(); 	/*Turns URL into a string*/

	if(url.search("visit") != -1){
	document.getElementById("visit").className = "on";
	}
	else if(url.search("programs") != -1){
	document.getElementById("programs").className = "on";
	}
	else if(url.search("exhibits") != -1){
	document.getElementById("exhibits").className = "on";
	}
	else if(url.search("research") != -1){
	document.getElementById("researchers").className = "on";
	}
	else if(url.search("teach") != -1){
	document.getElementById("teachers").className = "on";
	}
	else if(url.search("databases") != -1){
	document.getElementById("databases").className = "on";
	}
	else if(url.search("downloads") != -1){
	document.getElementById("downloads").className = "on";
	}
}

  // this function is needed to work around 
  // a bug in IE related to element attributes
  function hasClass(obj) {
     var result = false;
     if (obj.getAttributeNode("class") != null) {
         result = obj.getAttributeNode("class").value;
     }
     return result;
  } 