﻿	// 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 (DropDown.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 DropDownSet(DropDown.direction.down, 0, 0, DropDown.reference.bottomLeft);

		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// the first parameter should be the HTML element which will act actuator for the menu
		//==================================================================================================
		
		//GLOBAL NAV --- HOME
		var menu1 = ms.addMenu(document.getElementById("menu1"));
		menu1.addItem("► HOME", "http://www.chicagosteelhockeyteam.com/");
		
		//GLOBAL NAV --- NEWS
		var menu2 = ms.addMenu(document.getElementById("menu2"));
		menu2.addItem("► LATEST NEWS", "http://www.chicagosteelhockeyteam.com/news/");

		//GLOBAL NAV --- TEAM
		var menu3 = ms.addMenu(document.getElementById("menu3"));
		menu3.addItem("► ROSTER", "http://www.chicagosteelhockeyteam.com/team/roster.php");		
		menu3.addItem("► HOCKEY OPERATIONS STAFF", "http://www.chicagosteelhockeyteam.com/team/staff.php");
		menu3.addItem("► FRONT OFFICE STAFF", "http://www.chicagosteelhockeyteam.com/team/FrontOfficeStaff.php");
		menu3.addItem("► COLLEGE COMMITMENTS", "http://www.chicagosteelhockeyteam.com/team/commitments.php");
		menu3.addItem("► BECOME A HOUSING PARENT", "http://www.chicagosteelhockeyteam.com/team/housingparent.php");
		menu3.addItem("► PROSPECTS", "http://www.chicagosteelhockeyteam.com/team/questionnaire.php");
		
		//GLOBAL NAV --- SPONSORS
		var menu9 = ms.addMenu(document.getElementById("menu9"));
		menu9.addItem("► SPONSORS & PARTNERS", "http://www.chicagosteelhockeyteam.com/sponsors/");
		menu9.addItem("► BECOME A SPONSOR", "http://www.chicagosteelhockeyteam.com/sponsors/opportunities.php");

		//GLOBAL NAV --- TICKETS
		var menu4 = ms.addMenu(document.getElementById("menu4"));
		menu4.addItem("► TICKETS", "http://www.chicagosteelhockeyteam.com/tickets/index.php");
		menu4.addItem("► FLEX & GROUP ", "http://www.chicagosteelhockeyteam.com/tickets/packages.php");
		menu4.addItem("► SUITES ", "http://www.chicagosteelhockeyteam.com/tickets/suites.php");
		menu4.addItem("► BIRTHDAYS", "http://www.chicagosteelhockeyteam.com/tickets/bithdays.php");
		menu4.addItem("► YOUTH HOCKEY", "http://www.chicagosteelhockeyteam.com/tickets/futuresteel.php");
				
		//GLOBAL NAV --- GAMEDAY
		var menu5 = ms.addMenu(document.getElementById("menu5"));
		menu5.addItem("► SCHEDULE", "http://www.chicagosteelhockeyteam.com/games/schedule.php");
		menu5.addItem("► PROMOTIONAL SCHEDULE", "http://www.chicagosteelhockeyteam.com/games/promotional-schedule.php");		
		menu5.addItem("► DIRECTIONS & PARKING", "http://www.chicagosteelhockeyteam.com/games/directions.php");		
		
				//GLOBAL NAV --- FANS
		var menu6 = ms.addMenu(document.getElementById("menu6"));
		menu6.addItem("► KIDS CLUB", "http://www.chicagosteelhockeyteam.com/fans/kidsclub-welcome.php");	
		menu6.addItem("► SCHOOL", "");	
		menu6.addItem("► ASK THE DOCS", "http://www.chicagosteelhockeyteam.com/fans/askthedocs.php");	
		menu6.addItem("► DOWNLOADS", "http://www.chicagosteelhockeyteam.com/fans/downloads.php");	
		menu6.addItem("► PLAYER / COACH APPERANCES", "http://www.chicagosteelhockeyteam.com/fans/appearances.php");	

		//GLOBAL NAV --- EVENTS
		var menu7 = ms.addMenu(document.getElementById("menu7"));
		menu7.addItem("► UPCOMING EVENTS", "http://www.chicagosteelhockeyteam.com/events/atarena.php");	

		//GLOBAL NAV --- CONTACT
		var menu8 = ms.addMenu(document.getElementById("menu8"));
		menu8.addItem("► CONTACT US", "http://www.chicagosteelhockeyteam.com/contactus.php");	
		menu8.addItem("► ABOUT US", "http://www.chicagosteelhockeyteam.com/about.php");	
		menu8.addItem("► JOB OPPORTUNITIES", "http://www.chicagosteelhockeyteam.com/jobs.php");	
		//==================================================================================================

		//==================================================================================================
		// 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])
		//==================================================================================================	

 	
	    var subMenu6 = menu6.addMenu(menu6.items[1]);
		subMenu6.addItem("► SCORE WITH READING", "http://www.chicagosteelhockeyteam.com/fans/readingclub.php");
		subMenu6.addItem("► BAND CHOIR", "http://www.chicagosteelhockeyteam.com/fans/bandchoir.php");

		//==================================================================================================
		// 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.
		//==================================================================================================
		DropDown.renderAll();
	}
