// JavaScript Document
/* THE FOLLOWING JAVASCRIPT CODE COPYRIGHT OUTCROP GROUP & OUTCROP INTERACTIVE 2004 */
function NavOn(){

url=location.toString(); 	/*Turns URL into a string*/

	if(url.search("jobs") != -1){			/*searches the url string for a match*/ 
	document.getElementById("jobs").className = "on";
	}
	else if(url.search("living") != -1){
	document.getElementById("living").className = "on";
	}
	else if(url.search("learning") != -1){
	document.getElementById("learning").className = "on";
	}
	else if(url.search("news/index") != -1){
	document.getElementById("news").className = "on";
	//document.getElementById("calendar").style.display = "block";
	}
	else if(url.search("news/events") != -1){
	document.getElementById("events").className = "on";
	//document.getElementById("calendar").style.display = "block";
	}
	else if(url.search("forum") != -1){
	document.getElementById("forum").className = "on";
	}
	else if(url.search("photogallery") != -1){
	document.getElementById("photogallery").className = "on";
	}
	else if(url.search("contact_us") != -1){
	document.getElementById("contact_us").className = "on";
	}
	else{
		document.getElementById("home").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;
  } // JavaScript Document