	
	
	// 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, -4, -3, DropDown.reference.bottomLeft);

		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// the first parameter should be the HTML element which will act actuator for the menu
		//==================================================================================================
		
		//GLOBAL NAV --- NEWS
		var menu1 = ms.addMenu(document.getElementById("menu1"));
		menu1.addItem("- Latest News", menuBaseUrl + "/news/index.cfm?ac=latestnews");
		menu1.addItem("- General News", menuBaseUrl + "/news/index.cfm?ac=generalnews");
		menu1.addItem("- Press Releases", menuBaseUrl + "/news/index.cfm?ac=pressreleases");
		menu1.addItem("- RSS Feeds", menuBaseUrl + "/mediacenter/index.cfm?ac=RSS");
		menu1.addItem("- AP Wire Feed", menuBaseUrl + "/news/index.cfm?ac=apwirefeed");
		menu1.addItem("- From the NFL", menuBaseUrl + "/news/index.cfm?ac=nfl");
		menu1.addItem("- Community", menuBaseUrl + "/news/index.cfm?ac=community");
		menu1.addItem("- Calendar App", menuBaseUrl + "/news/index.cfm?ac=calendar");
		menu1.addItem("- 50th Anniversary", menuBaseUrl + "/50thanniversary/");
		
		//menu1.addItem("- Draft", menuBaseUrl + "/draft/2009/");
		//menu1.addItem("- Training Camp", menuBaseUrl + "/trainingcamp/2009/");
		//menu1.addItem("- Playoffs", menuBaseUrl + "/playoffs/2007/");
		//menu1.addItem("- Super Bowl XLII", menuBaseUrl + "/superbowl/XLII/");
		

		//GLOBAL NAV --- TEAM
		var menu2 = ms.addMenu(document.getElementById("menu2"));
		menu2.addItem("- Overview", menuBaseUrl + "/team/index.cfm");		
		menu2.addItem("- Management", menuBaseUrl + "/team/index.cfm?ac=mgersandexecs");
		menu2.addItem("- Coaches", menuBaseUrl + "/team/index.cfm?ac=coaches");
		menu2.addItem("- Player Index", menuBaseUrl + "/team/index.cfm?ac=players");
		menu2.addItem("- Past Rosters", menuBaseUrl + "/team/index.cfm?ac=rosters&print=yes");
		menu2.addItem("- History", menuBaseUrl + "/history/");		

		
		//GLOBAL NAV --- GAME REPORTS
		var menu3 = ms.addMenu(document.getElementById("menu3"));
		menu3.addItem("- Schedule", menuBaseUrl + "/schedule/");
		menu3.addItem("- Current Report", menuBaseUrl + "/games/");
		menu3.addItem("- Full Reports", menuBaseUrl + "/games/index.cfm?ac=completereports");
		menu3.addItem("- NFL Film Clips", menuBaseUrl + "/mediacenter/index.cfm?ac=nflfilmclips");
		menu3.addItem("- NFL Scores", "http://www.nfl.com/scores/");
		
		//GLOBAL NAV --- STATS
		var menu4 = ms.addMenu(document.getElementById("menu4"));
		menu4.addItem("- NFL Standings", "http://www.nfl.com/standings");
		menu4.addItem("- NFL Stats", "http://www.nfl.com/teams/stats/NE");
		
		//menu4.addItem("- Games", menuBaseUrl + "/stats/index.cfm?ac=games");
		//menu4.addItem("- Season", menuBaseUrl + "/stats/index.cfm?ac=season");
		//menu4.addItem("- Career", menuBaseUrl + "/stats/index.cfm?ac=career");		
		//menu4.addItem("- All-time Leaders", menuBaseUrl + "/stats/index.cfm?ac=alltimeleaders");				
		//menu4.addItem("- NFL.com", "http://www.nfl.com/teams/stats/ne/2004/regular");
		
		//GLOBAL NAV --- FANZONE
		var menu5 = ms.addMenu(document.getElementById("menu5"));
		menu5.addItem("- Overview", menuBaseUrl + "/fanzone/public/");	
		menu5.addItem("- Fan Club Registry", menuBaseUrl + "/fanzone/public/index.cfm?ac=FcorHome");	
		menu5.addItem("- Fan Downloads", menuBaseUrl + "/fanzone/index.cfm?ac=fandownloads");
		menu5.addItem("- Bulletin Board", "http://originwww.patriots.com/fanzone/index.cfm?ac=chatandbbs");
		menu5.addItem("- Chat Room", "http://originwww.patriots.com/fanzone/index.cfm?ac=chatandbbs");
		menu5.addItem("- Arcade", menuBaseUrl + "/fanzone/public/index.cfm?ac=arcade");
		menu5.addItem("- Fan of the Year", menuBaseUrl + "/fanzone/public/index.cfm?ac=fanoftheyear");	
		menu5.addItem("- Espa&ntilde;ol", menuBaseUrl + "/fanzone/public/index.cfm?ac=espanol");
		menu5.addItem("- FAQ", menuBaseUrl + "/fanzone/public/index.cfm?ac=faq");	
		menu5.addItem("- Feedback", menuBaseUrl + "/fanzone/public/index.cfm?ac=feedback");	
		 

		
		//GLOBAL NAV --- STADIUM
		var menu6 = ms.addMenu(document.getElementById("menu6"));
		menu6.addItem("- Overview", menuBaseUrl + "/stadium/");
		menu6.addItem("- Game Day Info", menuBaseUrl + "/stadium/index.cfm?ac=gameday");
		menu6.addItem("- Stadium News", menuBaseUrl + "/stadium/index.cfm?ac=stadiumnews");		
		menu6.addItem("- Tickets", menuBaseUrl + "/stadium/index.cfm?ac=ticketsales");
		menu6.addItem("- Job Postings", "http://www.gillettestadium.com/stadium_information/index.cfm?ac=jobs");	
		menu6.addItem("- Gillette Stadium", "http://www.gillettestadium.com");	
		menu6.addItem("- Patriot Place", "http://www.patriot-place.com ");	
		
		
		//GLOBAL NAV --- CHEERLEADERS
		var menu7 = ms.addMenu(document.getElementById("menu7"));
		menu7.addItem("- Appearances", menuBaseUrl + "/cheerleaders/index.cfm?ac=appearances");
		menu7.addItem("- Auditions", menuBaseUrl + "/cheerleaders/index.cfm?ac=auditions");		
		menu7.addItem("- Biographies", menuBaseUrl + "/cheerleaders/index.cfm?ac=bios");		
		menu7.addItem("- Spotlight", menuBaseUrl + "/cheerleaders/index.cfm?ac=spotlight");			
		menu7.addItem("- Photo Gallery", menuBaseUrl + "/cheerleaders/index.cfm?ac=photogallery&searchstring=ALL");					
		menu7.addItem("- Junior Cheerleaders", menuBaseUrl + "/cheerleaders/index.cfm?ac=juniorcheerleaders");		
		
		//GLOBAL NAV --- Community
		var menu8 = ms.addMenu(document.getElementById("menu8"));
		menu8.addItem("- Overview", menuBaseUrl + "/community/index.cfm?ac=purpose");
		menu8.addItem("- News", menuBaseUrl + "/news/index.cfm?ac=Community");	
		menu8.addItem("- Programs", menuBaseUrl + "/community/index.cfm?ac=charitableprograms");	
		menu8.addItem("- Events", menuBaseUrl + "/community/index.cfm?ac=foundationfundraisers");	
		menu8.addItem("- Participate", menuBaseUrl + "/community/index.cfm?ac=youthfootball");
		menu8.addItem("- Requests", menuBaseUrl + "/community/index.cfm?ac=playerappearances");	
		//menu8.addItem("- Requests", menuBaseUrl + "/community/index.cfm?ac=donationrequest");
		menu8.addItem("- Auctions", "http://www.proteamauctions.com/");	
		

		
			

		//GLOBAL NAV --- ALUMNI
		var menu9 = ms.addMenu(document.getElementById("menu9"));
		menu9.addItem("- Overview", "/alumni/");
		menu9.addItem("- Alumni News", menuBaseUrl + "/alumni/index.cfm?ac=alumninews");
		menu9.addItem("- Alumni Bios", menuBaseUrl + "/alumni/index.cfm?ac=alumnibios");
		menu9.addItem("- Appearances", menuBaseUrl + "/alumni/index.cfm?ac=alumnispeakrequest");	
		menu9.addItem("- Photo Gallery", menuBaseUrl + "/search/index.cfm?ac=SearchResults&subnav=mediacenter&searchstring=alumni&image=true");	
		menu9.addItem("- The Hall", "http://www.patriot-place.com/thehall.aspx ");	
		
		//==================================================================================================

		//==================================================================================================
		// 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 subMenu2 = menu2.addMenu(menu2.items[5]);
		subMenu2.addItem("&middot; Leaders", menuBaseUrl + "/AllTimeLeaders/index.cfm?ac=AllTimeLeaders");	
		subMenu2.addItem("&middot; Draft/Trades", menuBaseUrl + "/history/index.cfm?ac=drafttrade");
		subMenu2.addItem("&middot; Hall of Fame", menuBaseUrl + "/history/index.cfm?ac=halloffame");
		subMenu2.addItem("&middot; Historical Dates", menuBaseUrl + "/history/index.cfm?ac=historicaldates");
		subMenu2.addItem("&middot; Free Agents", menuBaseUrl + "/history/index.cfm?ac=freeagents");
		subMenu2.addItem("&middot; Past Rosters", menuBaseUrl + "/team/index.cfm?ac=2008Roster");
		subMenu2.addItem("&middot; Anniversary Teams", menuBaseUrl + "/history/index.cfm?ac=anniversaryteams");		
		subMenu2.addItem("&middot; Super Bowls", menuBaseUrl + "/history/index.cfm?ac=superbowls");		
		
 		var subMenu22 = subMenu2.addMenu(subMenu2.items[0]);
		subMenu22.addItem("&middot; Interceptions", menuBaseUrl + "/AllTimeLeaders/index.cfm?ac=Interceptions");
		subMenu22.addItem("&middot; Kickoff Returners", menuBaseUrl + "/AllTimeLeaders/index.cfm?ac=KickoffReturners");
		subMenu22.addItem("&middot; Passing", menuBaseUrl + "/AllTimeLeaders/index.cfm?ac=Passing");
		subMenu22.addItem("&middot; Punters", menuBaseUrl + "/AllTimeLeaders/index.cfm?ac=Punters");
		subMenu22.addItem("&middot; Punt Returners", menuBaseUrl + "/AllTimeLeaders/index.cfm?ac=PuntReturners");
		subMenu22.addItem("&middot; Rushing", menuBaseUrl + "/AllTimeLeaders/index.cfm?ac=Rushing");
		subMenu22.addItem("&middot; Receiving", menuBaseUrl + "/AllTimeLeaders/index.cfm?ac=Receiving");
		subMenu22.addItem("&middot; Scoring", menuBaseUrl + "/AllTimeLeaders/index.cfm?ac=Scoring");
		
 		var subMenu23 = subMenu2.addMenu(subMenu2.items[7]);
		subMenu23.addItem("&middot; Super Bowl XX", menuBaseUrl + "/superbowl/xx/");
		subMenu23.addItem("&middot; Super Bowl XXXI", menuBaseUrl + "/superbowl/xxxi/");	
		subMenu23.addItem("&middot; Super Bowl XXXVI", menuBaseUrl + "/superbowl/xxxvi/");	
		subMenu23.addItem("&middot; Super Bowl XXXVIII", menuBaseUrl + "/superbowl/xxxviii/");	
		subMenu23.addItem("&middot; Super Bowl XXXIX", menuBaseUrl + "/superbowl/XXXIX/");		
		subMenu23.addItem("&middot; Super Bowl XLII", menuBaseUrl + "/superbowl/XLII/");		
		
		
		//==================================================================================================
		// 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();
	}
