var WindowPath = window.location.pathname;
//var PageName = WindowPath.substring(WindowPath.lastIndexOf('\\') + 1);
var PageName = WindowPath.substring(WindowPath.lastIndexOf('/') + 1);
if (PageName.substring(0,2) == "WF")
  {
  PageName = "WF";
  }
//alert(PageName);
switch (PageName)
{
case "Home_Copy":
  document.getElementById("home").setAttribute("class","active");
  break;
case "about-us":
case "Mission":
case "History":
case "Our_Staff":
case "Board":
case "Christian_Services_of_Oklahoma":
  document.getElementById("about").setAttribute("class","active");
  break;
case "programs":
case "Pregnant":
case "abortion-alternatives-okc":
case "Adoption-Services":
case "domestic-adoption-home-study":
case "adoption-services-faqs":
case "international-adoption-services":
case "home-study-services-okc":
case "Post-Adoption-Counseling":
case "Older-Child-Adoption":
case "Contract-Foster-Care":
case "find-adoptive-parents":
case "WF":
  document.getElementById("programs").setAttribute("class","active");
  break;
case "volunteer":
case "Christmas":
case "Foster-Care-Appreciation":
case "Event-Committee":
case "Other-Opportunities":
  document.getElementById("volunteer").setAttribute("class","active");
  break;
case "events":
case "tottrot":
case "Annual-Auction":
case "Auction-Tickets":
case "Golf":
case "Special-Events":
  document.getElementById("events").setAttribute("class","active");
  break;
case "donate":
case "Donate-Credit-Card":
case "OrderRetrievev2.aspx":
  document.getElementById("donate").setAttribute("class","active");
  break;
case "contact-christian-adoption-services-okc":
  document.getElementById("contact").setAttribute("class","active");
  break;
default:
  document.getElementById("home").setAttribute("class","active");
}
