//http://www.cssnewbie.com/using-javascript-to-style-active-navigation-elements/

//modified so current link is highlited in footer as well.  rd

function setActive() {
  aObj = document.getElementById('nav').getElementsByTagName('a');
  for(i=0;i<aObj.length;i++) { 
    if(document.location.href.indexOf(aObj[i].href)>=0) {
      aObj[i].className='active';
    }
  }
}

function setActiveFooter() {
  aObj = document.getElementById('footer').getElementsByTagName('a');
  for(i=0;i<aObj.length;i++) { 
    if(document.location.href.indexOf(aObj[i].href)>=0) {
      aObj[i].className='active';
    }
  }
}

window.onload = function(){
setActive();
setActiveFooter();
}
