// Indicates which page the user is currently browsing
function setActive() {
	if (document.getElementById('subnav')) {
	  aObj = document.getElementById('subnav').getElementsByTagName('a');
	  for(i=0;i<aObj.length;i++) {
		if(document.location.href.indexOf(aObj[i].href)>=0) {
		  aObj[i].className='active';
		}
	  }
	}
}
window.onload = setActive;