   var URL = unescape(location.href);
   var xstart = URL.lastIndexOf("/") + 1;
   var xend = URL.length;
   var hereName = URL.substring(xstart,xend);
   var xx1=0;

//MENU SETUP START

var linkname = new Array("Home", "Fire Prevention", "Members", "Officers", "Events", "Training", "Coverage Area", "Apparatus", "History", "Photo Gallery", "Recruitment", "Links", "Stations", "Contact Us", "Calendar", "Knox-Box", "F.A.Q.", "News", "E-mail Login");

var linkurl = new Array("index.html", "prevention.htm", "members.htm", "officers.htm", "events.htm", "training.htm", "coverage.htm", "apparatus.htm", "history.htm", "photos2011.htm", "recruitment.htm", "links.htm", "stations.htm", "contact.htm", "calendar.htm", "knoxbox.htm", "faq.htm", "news.htm", "http://74.220.207.187:2095/?login_theme=");

//MENU SETUP END

    function hovering(hoid) {
    document.getElementById(hoid).style.backgroundColor = '#55B';
    document.getElementById(hoid).style.fontWeight = 'Bold';
    document.getElementById(hoid).style.cursor = 'pointer';
    }
    function nothovering(hoid) {
    document.getElementById(hoid).style.backgroundColor = '#006';
    document.getElementById(hoid).style.fontWeight = 'Normal';
    }


for (xx1=0;xx1<=18;xx1++) {
if (hereName == linkurl[xx1]) {
document.write("<p class='currentpage' >" + linkname[xx1] + "</p>");
}
else if (hereName == "photos2010.htm" && linkname[xx1] == "Photo Gallery") {
document.write("<p class='currentpage' >Photo Gallery</p>");
}
else if (hereName == "photos2009.htm" && linkname[xx1] == "Photo Gallery") {
document.write("<p class='currentpage' >Photo Gallery</p>");
}
else if (hereName == "photos2008.htm" && linkname[xx1] == "Photo Gallery") {
document.write("<p class='currentpage' >Photo Gallery</p>");
}
else if (hereName == "photos2007.htm" && linkname[xx1] == "Photo Gallery") {
document.write("<p class='currentpage' >Photo Gallery</p>");
}
else if (hereName == "photos2006.htm" && linkname[xx1] == "Photo Gallery") {
document.write("<p class='currentpage' >Photo Gallery</p>");
}
else if (hereName == "photos2005.htm" && linkname[xx1] == "Photo Gallery") {
document.write("<p class='currentpage' >Photo Gallery</p>");
}
else if (hereName == "" && linkname[xx1] == "Home") {
document.write("<p class='currentpage' >Home</p>");
}
else if (hereName == "messageboard.php3" && linkname[xx1] == "Member Login") {
document.write("<p class='currentpage' >Member Login</p>");
}
else if (hereName == "message-post.php3" && linkname[xx1] == "Member Login") {
document.write("<p class='currentpage' >Member Login</p>");
}
else {
document.write("<a href=" + linkurl[xx1] + "><p id='" + linkname[xx1] + "' onmouseover='hovering(this.id)' onmouseout='nothovering(this.id)' >" + linkname[xx1] + "</p></a>");
}


if (xx1 == 19) {
document.getElementById(linkname[xx1]).style.borderBottom = '1px solid #CCC';
}

}
//window.alert(hereName);
