// JavaScript Document
function setHere()
{
  // menu array contains list of container id's in which we want to modify the current page link
  var menu = new Array("navigator");
  var loc = window.top.location.href;
    // need to add 'index.html'(or whatever the default file is) to homepage URL if needed 
    if (loc.slice(loc.length-1) == "/")
    {      
      loc+="index.php?home";
    }
  // iterate through the list of document containers (navbars)
  for (var j=0; j<menu.length; j++){
    var navlincs = document.getElementById(menu[j]);
    var lincs = navlincs.getElementsByTagName("a"); 
    // search anchor tags for matching href   
    for (var i=0; i<lincs.length; i++)
    {
      if (lincs[i].href == loc)
      {
        // when a match is found, make changes to style, href, etc..
        lincs[i].parentNode.style.backgroundColor='#ffddff';	
        
        lincs[i].title="You are Here";
      }
    }
  }
}
