// Copyright (c) 2004, Josh Williams
// Comments:
//   - The menu system for the main page
//
// AddMenu(menuID, text, newRow, href, title)
// AddMenuItem(parentMenuID, menuItemID, href, text, title)

var baseURL = "http://www.public.iastate.edu/~cucurbitipm/";

///////////////////////////////////////////////////////////////////
// Insert a side bar
var sideMenuBar = new CucurbitipmMenuBar("sideMenu", "sideMenuDiv", "sideMenuBar", "sideMenuBar");
/*if (location.href.indexOf("homepage.html") == -1 &&
    location.href != "http://www.public.iastate.edu/~cucurbitipm/" &&
    location.href != "http://www.public.iastate.edu/~cucurbitipm")*/
  sideMenuBar.AddMenu("Home", "Home", true, "" + baseURL + "homepage.html");

/*if (location.href.indexOf("glossary.html") == -1)
  sideMenuBar.AddMenu("Glossary", "Glossary", true, "glossary.html");*/

/*if (location.href.indexOf("research.html") == -1)*/
  sideMenuBar.AddMenu("Research", "Research", true, "" + baseURL + "research.html");

/*sideMenuBar.AddMenu("CucurbitDiseases", "Cucurbit Diseases", true);
sideMenuBar.AddMenu("InsectPests", "Insect Pests", true);
sideMenuBar.AddMenu("Weeds", "Weeds", true);
sideMenuBar.AddMenu("Pesticides", "Pesticides", true);
sideMenuBar.AddMenu("Bibliography", "Cucumber-Beetle Bibliography", true);
sideMenuBar.AddMenu("Melcast", "Melcast", true);*/

/*if (location.href.indexOf("photos.html") == -1)*/
  sideMenuBar.AddMenu("Photos", "Photos", true, "" + baseURL + "photos.html");

/*if (location.href.indexOf("factsheets.html") == -1)*/
  sideMenuBar.AddMenu("Abstracts", "Abstracts", true, "" + baseURL + "abstracts.html");

/*if (location.href.indexOf("locations.html") == -1)*/
  sideMenuBar.AddMenu("Locations", "Locations", true, "" + baseURL + "locations.html");

/*if (location.href.indexOf("personnel.html") == -1)*/
  sideMenuBar.AddMenu("Personnel", "Personnel", true, "" + baseURL + "personnel.html");

/*if (location.href.indexOf("links.html") == -1)*/
  sideMenuBar.AddMenu("Links", "Links", true, "" + baseURL + "links.html");

sideMenuBar.Show();