//Highlights the link for the active page providing location context
function highlightLink()
{
//Get filename from the URL
thisPage = document.URL.substring(document.URL.lastIndexOf("/")+1 ,document.URL.length);
//alert(thisPage);
//Loop through all the links
for (i=0; i<document.links.length; i++ )
{
//Get only the filename from the href of navigation link
pageLink = document.links[i].href.substring(document.links[i].href.lastIndexOf("/")+1 ,document.links[i].href.length);
//alert(pageLink);
//if the current filename & the link-ed file name are the same, change the style of that link
if (thisPage == pageLink)
{ //btnact is the name of a class defined for active buttons
document.links[i].className = "btnact";
}
}
}

