// 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("general-information") != -1){
		document.getElementById("generalinfo").className = "on";
	}
	else if(url.search("general-information") != -1){
		document.getElementById("whatisofficial").className = "on";
	}
	else if(url.search("general-information") != -1){
		document.getElementById("officiallanguages").className = "on";
	}
	else if(url.search("general-information") != -1){
		document.getElementById("whocommissioner").className = "on";
	}
	else if(url.search("complaint-Procedures-guidelines") != -1){
		document.getElementById("complaint").className = "on";
	}
	else if(url.search("complaint-Procedures-guidelines") != -1){			
		document.getElementById("whatiscomplaint").className = "on";
	}
	else if(url.search("complaint-Procedures-guidelines") != -1){			
		document.getElementById("Investigation").className = "on";
	}
	else if(url.search("complaint-Procedures-guidelines") != -1){			
		document.getElementById("makecomplaint").className = "on";
	}
	else if(url.search("links") != -1){
		document.getElementById("links").className = "on";
	}
	else if(url.search("resources") != -1){
		document.getElementById("resources").className = "on";
	}
	else if(url.search("about-us") != -1){
		document.getElementById("about").className = "on";
	}
	else if(url.search("contact-us") != -1){
		document.getElementById("contact").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;
  } 