// 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("airline-hotel") != -1){
	document.getElementById("airline").className = "on";
	}
	else if(url.search("hotel") != -1){
	document.getElementById("hotel").className = "on";
	}
	else if(url.search("delegate-registration") != -1){
	document.getElementById("delegatereg").className = "on";
	}
	else if(url.search("exhibitors") != -1){
	document.getElementById("exhibitorreg").className = "on";
	}
	else if(url.search("exhibitor-info") != -1){
	document.getElementById("exhibitorinfo").className = "on";
	}
	else if(url.search("delegate-info") != -1){
	document.getElementById("delegateinfo").className = "on";
	}
	else if(url.search("optional-tours") != -1){			
	document.getElementById("tours").className = "on";
	}
	else if(url.search("sponsors/index.html") != -1){			
	document.getElementById("sponsors").className = "on";
	}
	else if(url.search("sponsors/meet.html") != -1){			
	document.getElementById("meetsponsors").className = "on";
	}
	else if(url.search("speakers") != -1){			
	document.getElementById("speakers").className = "on";
	}
	else if(url.search("conference-itinerary") != -1){			
	document.getElementById("itinerary").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;
  } 
