active = function(){
	var urlName;
	var urlPartial;
	urlName = location.href;
	
	//the following condition is specific to the remote server
	if (urlName.substring(11,14).toUpperCase() == "COU") urlPartial = urlName.substring(25,28);
	else urlPartial = urlName.substring(21,24);
	
	//the following condition is specific to the testing server
	//if(urlName.substring(7,10).toUpperCase() == "ATM") urlPartial = urlName.substring(27,30);
	//else  urlPartial = urlName.substring(31,34);
	
	switch(urlPartial)
	{
	case "Abo":
	  $("About").addClassName("active");
	  break    
	case "def":
	  $("Home").addClassName("active");
	  break
	case "Dri":
	  $("Drivers").addClassName("active");
	  break
	case "Los":
	  $("Lost").addClassName("active");
	  break
	case "Ord":
	  $("Order").addClassName("active");
	  break
	case "Rat":
	  $("Rates").addClassName("active");
	  break
	case "Ser":
	  $("Services").addClassName("active");
	  break
	//default:
	}
}

Event.observe(window, "load", function() {
	active();
})
