//defines the MenuBar Object
var menuBar = new MenuBar();

//start MenuButton (no dropdown, just a click)
var home_button = new MenuButton("Home", "/default.asp"); // define our MenuButton
menuBar.add(home_button); // add that MenuButton object to our MenuBar

// ****************** START SNAKES DROPDOWN MENU *****************
//start Snakes Menu (dropdown)
var snakes_Menu = new Menu("Snakes");

//define snake_menu items
var snakes_introduction_item = new MenuItem("An Introduction", "/venom/snakes/default.asp");
var snakes_of_FL_item = new MenuItem("Venomous Snakes of Florida", "/venom/snakes/florida/default.asp");

//define Snakes of US submenu
var snakes_of_US_Menu = new Menu();
var snakes_common_name_item = new MenuItem("Listed by Common Name", "/venom/snakes/venomous_snakes_of_the_us.asp");
var snakes_scientific_name_item = new MenuItem("Listed by Scientific Name", "/venom/snakes/venomous_snakes_of_the_us_by_scientific_name.asp");
var snakes_by_state_item = new MenuItem("Listed by U.S. State", "/venom/snakes/venomous_snakes_by_state.asp"); 

snakes_of_US_Menu.add(snakes_common_name_item);
snakes_of_US_Menu.add(snakes_scientific_name_item);
snakes_of_US_Menu.add(snakes_by_state_item);

//define submenu as a menu item of the Snake_Menu
var snakes_of_US_item = new MenuItem("Venomous Snakes of the U.S.", snakes_of_US_Menu);

//add all items and submenus (as items) to snake_menu
snakes_Menu.add(snakes_introduction_item);
snakes_Menu.add(snakes_of_US_item);
snakes_Menu.addSeparator();
snakes_Menu.add(snakes_of_FL_item);

//add snake_menu to MenuBar
menuBar.add(snakes_Menu);
// ****************** END SNAKES DROPDOWN MENU *****************

// ****************** START SPIDERS DROPDOWN MENU *****************
//start Spiders Menu (dropdown)
var spiders_Menu = new Menu("Spiders  ");

//define spiders_menu items
var spiders_introduction_item = new MenuItem("An Introduction", "/venom/spiders/default.asp");
var spiders_of_FL_item = new MenuItem("Venomous Spiders of Florida", "/venom/spiders/florida/default.asp");

//define SPIDERS of US submenu
var spiders_of_US_Menu = new Menu();
var spiders_common_name_item = new MenuItem("Listed by Common Name", "/venom/spiders/venomous_spiders_of_the_us.asp");
var spiders_scientific_name_item = new MenuItem("Listed by Scientific Name", "/venom/spiders/venomous_spiders_of_the_us_by_scientific_name.asp");
var spiders_by_state_item = new MenuItem("Listed by U.S. State", "/venom/spiders/venomous_spiders_by_state.asp"); 

spiders_of_US_Menu.add(spiders_common_name_item);
spiders_of_US_Menu.add(spiders_scientific_name_item);
spiders_of_US_Menu.add(spiders_by_state_item);

//define submenu as a menu item of the spiders_Menu
var spiders_of_US_item = new MenuItem("Venomous Spiders of the U.S.", spiders_of_US_Menu);

//add all items and submenus (as items) to spiders_menu
spiders_Menu.add(spiders_introduction_item);
spiders_Menu.add(spiders_of_US_item);
spiders_Menu.addSeparator();
spiders_Menu.add(spiders_of_FL_item);

//add spiders_menu to MenuBar
menuBar.add(spiders_Menu);
// ****************** END SPIDERS DROPDOWN MENU *****************

// ****************** START LIZARDS DROPDOWN MENU *****************
//start Lizards Menu (dropdown)

var lizards_Menu = new Menu("Lizards  ");

//define lizards_menu items
var lizards_introduction_item = new MenuItem("An Introduction", "/venom/lizards/default.asp");
var lizards_of_US_item = new MenuItem("Venomous Lizards of the US", "/venom/lizards/venomous_lizards_of_the_us.asp");

//add all items and submenus (as items) to lizards_menu
lizards_Menu.add(lizards_introduction_item);
lizards_Menu.add(lizards_of_US_item);

//add lizards_menu to MenuBar
menuBar.add(lizards_Menu);
// ****************** END LIZARDS DROPDOWN MENU *****************

// ****************** START SCORPIONS DROPDOWN MENU *****************
//start Scorpions Menu (dropdown)
var scorpions_Menu = new Menu("Scorpions  ");

//define scorpions_menu items
var scorpions_introduction_item = new MenuItem("An Introduction", "/venom/scorpions/default.asp");
var scorpions_of_FL_item = new MenuItem("Venomous Scorpions of Florida", "/venom/scorpions/florida/default.asp");

//define SCORPIONS of US submenu
var scorpions_of_US_Menu = new Menu();
var scorpions_common_name_item = new MenuItem("Listed by Common Name", "/venom/scorpions/venomous_scorpions_of_the_us.asp");
var scorpions_scientific_name_item = new MenuItem("Listed by Scientific Name", "/venom/scorpions/venomous_scorpions_of_the_us_by_scientific_name.asp");
var scorpions_by_state_item = new MenuItem("Listed by U.S. State", "/venom/scorpions/venomous_scorpions_by_state.asp"); 

scorpions_of_US_Menu.add(scorpions_common_name_item);
scorpions_of_US_Menu.add(scorpions_scientific_name_item);
scorpions_of_US_Menu.add(scorpions_by_state_item);

//define submenu as a menu item of the scorpions_Menu
var scorpions_of_US_item = new MenuItem("Venomous Scorpions of the U.S.", scorpions_of_US_Menu);

//add all items and submenus (as items) to scorpions_menu
scorpions_Menu.add(scorpions_introduction_item);
scorpions_Menu.add(scorpions_of_US_item);
scorpions_Menu.addSeparator();
scorpions_Menu.add(scorpions_of_FL_item);

//add scorpions_menu to MenuBar
menuBar.add(scorpions_Menu);
// ****************** END SCORPIONS DROPDOWN MENU *****************

// ****************** START OTHER DROPDOWN MENU *****************
//start Other Menu (dropdown)
var other_Menu = new Menu("Other  ");

//define other_menu items
var other_about_item = new MenuItem("About the Site and Author", "/about.asp");
var other_contact_info_item = new MenuItem("Contact Me", "/contact_info.asp");
var other_disclaimer_item = new MenuItem("Disclaimer / Terms of Use", "/disclaimer.asp");
var other_photo_credits_item = new MenuItem("Photo Credits", "/venom/credits.asp");
var other_site_map_item = new MenuItem("Site Map", "/site_map.asp");
var other_venomous_links_item = new MenuItem("Venomous Links", "/venom/venomous_links.asp");

//add all items and submenus (as items) to other_menu
other_Menu.add(other_about_item);
other_Menu.add(other_contact_info_item);
other_Menu.add(other_disclaimer_item);
other_Menu.add(other_photo_credits_item);
other_Menu.add(other_site_map_item);
other_Menu.add(other_venomous_links_item);

//add other_menu to MenuBar
menuBar.add(other_Menu);

// ****************** END OTHER DROPDOWN MENU *****************

//write MenuBar
document.write(menuBar);
