// set up drop downs anywhere in the body of the page. I think the bottom of the page is better..
// but you can experiment with effect on loadtime.
if (mtDropDown.isSupported()) {

	//==================================================================================================
	// create a set of dropdowns
	//==================================================================================================
	// the first param should always be down, as it is here
	//
	// The second and third param are the top and left offset positions of the menus from their actuators
	// respectively. To make a menu appear a little to the left and bottom of an actuator, you could use
	// something like -5, 5
	//
	// The last parameter can be .topLeft, .bottomLeft, .topRight, or .bottomRight to inidicate the corner
	// of the actuator from which to measure the offset positions above. Here we are saying we want the 
	// menu to appear directly below the bottom left corner of the actuator
	//==================================================================================================
	var ms = new mtDropDownSet(mtDropDown.direction.down, 0, 0, mtDropDown.reference.bottomLeft);

	//==================================================================================================
	// create a dropdown menu
	//==================================================================================================
	// the first parameter should be the HTML element which will act actuator for the menu
	//==================================================================================================
	// menu: Home
	
	var menu1 = ms.addMenu(document.getElementById("menu1"));
	menu1.addItem("- Home", "http://www.pacificlacrosse.com"); // send no URL if nothing should happen onclick
	
	//==================================================================================================

	//==================================================================================================
	// add a sub-menu
	//==================================================================================================
	// to add a sub menu to an existing menu object, call it's addMenu method and pass it the item from
	// the parent menu which should act as it's actuator. To add a submenu to the fourth item of a menu
	// called "theMenu", you would do theMenu.addMenu(theMenu.items[3])
	//==================================================================================================
	// menu : Roster
	var menu2 = ms.addMenu(document.getElementById("menu2"));
	menu2.addItem("- Team", "roster.html#team");
	menu2.addItem("- Coaches", "roster.html#coach");
			
	// menu : Schedule
	var menu3 = ms.addMenu(document.getElementById("menu3"));
	menu3.addItem("- Fall Ball", "schedule.html#fall");
	menu3.addItem("- Spring Ball", "schedule.html#spring");
	menu3.addItem("- Field Directions", "schedule.html#field");
	menu3.addItem("- Camp Information", "camp.html");

	// menu : Game Updates
	var menu4 = ms.addMenu(document.getElementById("menu4"));
	menu4.addItem("- Willamette", "gameupdates.html#will");
	menu4.addItem("- Reno", "gameupdates.html#unr");
	menu4.addItem("- Pre Season", "gameupdates.html#pre");
	menu4.addItem("- Camp Information", "camp.html");
	//menu4.addItem("- Cal Lutheran", "gameupdates.html#luth");
	//menu4.addItem("- Pepperdine", "gameupdates.html#pep");
	//menu4.addItem("- Clarmont", "gameupdates.html#clar");
	//menu4.addItem("- Santa Cruz", "gameupdates.html#sc");
	//menu4.addItem("- Col. of Marin", "gameupdates.html#com");
	//menu4.addItem("- St. Marys", "gameupdates.html#sm");
	//menu4.addItem("- St. Mary's Tournament", "gameupdates.html#smt");
	//menu4.addItem("- Alumni", "gameupdates.html#alumni");

	// menu : Photos
	var menu5 = ms.addMenu(document.getElementById("menu5"));
	menu5.addItem("- Marin Game Pictures", "photos.html#marin");
	menu5.addItem("- Team Pictures", "photos.html#team");
	menu5.addItem("- Alumni Game Picture", "photos.html#alum");
	menu5.addItem("- San Jose Stealth Pictures", "photos.html#sjs");
	menu5.addItem("- San Jose Tourny Pictures", "photos.html#sj");
	menu5.addItem("- Spring Games Pictures", "photos.html#sg");
	menu5.addItem("- Old School Pictures", "photos.html#old");

	// menu : Sponsors
	var menu6 = ms.addMenu(document.getElementById("menu6"));
	menu6.addItem("- Lacrosse Fanatic", "www.lacrossefanatic.com");
	menu6.addItem("- Laxstore.com", "sponsors.html#lax");
	menu6.addItem("- Valley Brew Family Restaurant", "sponsors.html#vb");
	menu6.addItem("- Parents and Alumni", "sponsors.html#pf");
	menu6.addItem("- Camp Information", "camp.html");

	// menu : Alumni
	var menu7 = ms.addMenu(document.getElementById("menu7"));
	menu7.addItem("- Alumni List", "alumni.htm");
	menu7.addItem("- Alumni Yahoo Group", "http://sports.groups.yahoo.com/group/paclaxalumni/");

	// menu : Links
	var menu8 = ms.addMenu(document.getElementById("menu8"));
	menu6.addItem("- Lacrosse Fanatic", "http://www.lacrossefanatic.com");
	menu8.addItem("- Camp Information", "camp.html");
	menu8.addItem("- Warrior Players Club Experience", "http://www.playersclubexperience.com/PCX_Home.html");
	menu8.addItem("- MCLA", "http://www.collegelax.us");
	menu8.addItem("- Western Collegiate Lacrosse League", "http://www.wcll.com/");
	menu8.addItem("- Pacific Athletics Page", "http://pacifictigers.com/");
	menu8.addItem("- Pacific Home Page", "http://www.pacific.edu/");
	

	//==================================================================================================
	// write drop downs into page
	//==================================================================================================
	// this method writes all the HTML for the menus into the page with document.write(). It must be
	// called within the body of the HTML page.
	//==================================================================================================
	mtDropDown.renderAll();
}

