// JavaScript Document
function setActive() {
  aObj = document.getElementById('menu').getElementsByTagName('a');
  for(x=0;x<aObj.length;x++)
  {
	  
    if(document.location.href.indexOf(aObj[x].href)>=0)
	{
    	array_var=x;
    }
	
  }
  
    aObj[array_var].className='active';
}

function start() { 
  setActive(); 
} 
	 
window.onload = start; 