function navLoad(section, sender)
{

	if(section=='')//If not supplied, retrieve from url
		section = location.hash.substring(1);
	if(section=='')//If nothing in hash, set to whoweare
		section = 'whoweare';

	//Hide all sections...
	var sections=getElementsByName_iefix("div", "section")
      var i=0;
	for(i; i<sections.length; i++)
		sections[i].style.display="none";
	
	//Show the selected section
	var elem = document.getElementById(section.toLowerCase());
	elem.style.display="inline";

	//Unset all nav links class...
	if(sender != null)
	{
		var navul = document.getElementById("navLinks");
		for(i=0; i<navul.childNodes.length; i++)
			navul.childNodes[i].className="";

		//Set current li class to active
		sender.className="active";
	}
	window.location="#";
}

function getElementsByName_iefix(tag, name) {
     
     var elem = document.getElementsByTagName(tag);
     var arr = new Array();
     for(i = 0,iarr = 0; i < elem.length; i++) {
          att = elem[i].getAttribute("name");
          if(att == name) {
               arr[iarr] = elem[i];
               iarr++;
          }
     }
     return arr;
}
