// Function to detect page location
// By: Wade Murray 2009

function thisLink(linkURL,linkName)
{
var sPage = window.location.href;
var sHost = window.location.host;
var listType;
var listLink;
sPage = sPage.substring(sHost.length + 7);

if(sPage == linkURL)
{listType = "<li id=active>";}
else
{listType = "<li>";}
listLink=listType + "<a href=" + linkURL + ">" + linkName + "</a>";
return listLink;
}
