// JavaScript Document

/* Tested and working; call it by placing onload="setCurrentPage();" in the <body> element */



function setCurrentPage() {



  var currentPage = window.location.href;

  var navigationContainer = document.getElementById('sidemenu1');

  var navBarlinkCollection = navigationContainer.getElementsByTagName('a');

  var j;


  for (j=0;j < navBarlinkCollection.length;j++) {

    if (currentPage == navBarlinkCollection[j].href) {

    navBarlinkCollection[j].className = 'SideMenuButtonActive';

    navBarlinkCollection[j].style.backgroundImage ="url(/arrowActive.gif)";

    navBarlinkCollection[j].style.color = "#3366CC";

    }

  }

}


