	// 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
		//==================================================================================================

		//==================================================================================================
		// 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 would3 do theMenu.addMenu(theMenu.items[3])
		//==================================================================================================
		// menu : Get Started
		var menu1 = ms.addMenu(document.getElementById("menu1"));
		var menu2 = ms.addMenu(document.getElementById("menu2"));
		var menu3 = ms.addMenu(document.getElementById("menu3"));
		var menu4 = ms.addMenu(document.getElementById("menu4"));
		var menu5 = ms.addMenu(document.getElementById("menu5"));
		var menu6 = ms.addMenu(document.getElementById("menu6"));
		var menu7 = ms.addMenu(document.getElementById("menu7"));
		var menu8 = ms.addMenu(document.getElementById("menu8"));
		var menu9 = ms.addMenu(document.getElementById("menu9"));
		var menu10 = ms.addMenu(document.getElementById("menu10"));
		var menu11 = ms.addMenu(document.getElementById("menu11"));
		var menu12 = ms.addMenu(document.getElementById("menu12"));
		var menu13 = ms.addMenu(document.getElementById("menu13"));
		var menu14 = ms.addMenu(document.getElementById("menu14"));
		
		//==================================================================================================
		// 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.
		//==================================================================================================

		//sub-menu for Home

		//sub-menu for Schedule
		menu2.addItem("- Events", menuBaseUrl + "/index.cfm?fa=event.ppvhome"); // send no URL if nothing should happen onclick
		menu2.addItem("- Event Results", menuBaseUrl + "/index.cfm?fa=news.eventResults");
		menu2.addItem("- TV Programming", menuBaseUrl + "/index.cfm?fa=tvshow.home");
		menu2.addItem("- Appearances", menuBaseUrl + "/index.cfm?fa=event.Appearances");
		menu2.addItem("- Full Schedule", menuBaseUrl + "/index.cfm?fa=event.FullSchd");
		menu2.addItem("- Calendar", menuBaseUrl + "/index.cfm?fa=event.Calendar");
	
		//sub-menu for Tickets
		menu3.addItem("- Buy Tickets", "http://www.ufc.com/index.cfm?fa=event.ChooseEventForTickets");
		menu3.addItem("- StubHub: Buy/Sell Tickets", "http://www.stubhub.com/ultimate-fighting-tickets/?gcid=c12289x944-tixnav");
		menu3.addItem("- Ticket Packages", "http://www.primesport.com/shop/ufc-packages.asp");

		//sub-menu for News
		menu4.addItem("- All News", menuBaseUrl + "/index.cfm?fa=news.home");
		menu4.addItem("- Press Releases", menuBaseUrl + "/index.cfm?fa=news.PressReleases");		
		menu4.addItem("- Press Coverage", menuBaseUrl + "/index.cfm?fa=news.PressCoverage");		
		menu4.addItem("- UFC in the News", menuBaseUrl + "/index.cfm?fa=news.UfcInTheNews");				
		menu4.addItem("- Interviews", menuBaseUrl + "/index.cfm?fa=news.Interviews");				
		menu4.addItem("- Event Results", menuBaseUrl + "/index.cfm?fa=news.eventResults");				
		menu4.addItem("- RSS Feeds", menuBaseUrl + "/index.cfm?fa=rss.NewsRSS");	

		//sub-menu for Fighters
		menu5.addItem("- All Fighters", menuBaseUrl + "/index.cfm?fa=fighter.allfighters");
		menu5.addItem("- Interviews", menuBaseUrl + "/index.cfm?fa=fighter.Interviews&ptid=1");		
		menu5.addItem("- Title Holders", menuBaseUrl + "/index.cfm?fa=fighter.TitleHolders&cid=3");				
		menu5.addItem("- Hall of Fame", menuBaseUrl + "/index.cfm?fa=fighter.HallOfFame");				
		menu5.addItem("- Fighter Blogs", menuBaseUrl + "/index.cfm?fa=fighter.Blogs");	
		menu5.addItem("- T.U.F. Casts", menuBaseUrl + "/index.cfm?fa=TUF.historycast");

		//sub-menu for T.U.F.
		menu6.addItem("- T.U.F. Casts", menuBaseUrl + "/index.cfm?fa=TUF.historycast");
		menu6.addItem("- Photos", menuBaseUrl + "/index.cfm?fa=MultiMedia.GalleryImgListSearch&SearchString=TUF");
		menu6.addItem("- Itunes", "http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewTVSeason?id=328072473&s=143441");
		menu6.addItem("&nbsp;&nbsp;&nbsp;- Heavyweights", "http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewTVSeason?id=328072473&s=143441");
		menu6.addItem("&nbsp;&nbsp;&nbsp;- United States v. United Kingdom", "http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewTVSeason?id=308673217&s=143441");
		menu6.addItem("&nbsp;&nbsp;&nbsp;- Team Nogueira v. Team Mir", "http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewTVSeason?id=289734331&s=143441");
		menu6.addItem("&nbsp;&nbsp;&nbsp;- Team Rampage v. Team Forrest", "http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewTVSeason?id=276759260&s=143441");
		menu6.addItem("&nbsp;&nbsp;&nbsp;- Team Penn v. Team Pulver", "http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewTVSeason?id=280201301&s=143441");
		menu6.addItem("&nbsp;&nbsp;&nbsp;- Team Hughes v. Team Serra", "http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewTVSeason?id=280201023&s=143441");
		menu6.addItem("- Xbox", "http://marketplace.xbox.com/en-US/videos/media/81f7db27-3d8a-48d1-a2ba-bc41289eb002/");
		menu6.addItem("&nbsp;&nbsp;&nbsp;- Heavyweights", "http://marketplace.xbox.com/en-US/videos/media/8d2eefd7-bce2-4fe5-8887-bc5eb2b759d1/");
		menu6.addItem("&nbsp;&nbsp;&nbsp;- United States v. United Kingdom", "http://marketplace.xbox.com/en-US/videos/media/315a155c-dcc1-44d8-a9ac-07b0e38a50f8/");
		menu6.addItem("&nbsp;&nbsp;&nbsp;- Team Nogueira v. Team Mir", "http://marketplace.xbox.com/en-US/videos/media/61ac13bb-4f6e-45a7-8429-5dc664a4ca95/");
		menu6.addItem("&nbsp;&nbsp;&nbsp;- Team Rampage v. Team Forrest", "http://marketplace.xbox.com/en-US/videos/media/9b66fa44-8307-433d-a646-e42c81a262cd/");
		menu6.addItem("&nbsp;&nbsp;&nbsp;- Premiere Season", "http://marketplace.xbox.com/en-US/videos/media/f2d83731-8c42-42a4-bbce-176362c0973f/");

	
		//sub-menu for Video
		menu7.addItem("- Video Gallery", menuBaseUrl + "/index.cfm?fa=MultiMedia.video");
		menu7.addItem("- UFC Vault", "http://video.ufc.com");
		menu7.addItem("- Live Events", menuBaseUrl + "/live/");
		menu7.addItem("- UFC On Demand", "http://video.ufc.com");
		menu7.addItem("- Real Quick with Mike Swick", menuBaseUrl + "/index.cfm?fa=search.results&ss=real+quick");
		menu7.addItem("- Live PPV Weigh-in", "http://www.ufc.com/live_videos/index.htm");
		menu7.addItem("- Event Replays", "http://www.ufc.com/live/");
		menu7.addItem("- Live Streaming", "http://www.ufclive.com/");
		menu7.addItem("- Upload Video", "http://community.ufc.com/new-videos");
		menu7.addItem("- Unaired Prelims", "http://video.ufc.com/Collection.aspx?cdid=2130");
		menu7.addItem("- Just Added", "http://video.ufc.com/Collection.aspx?cdid=2129");
		menu7.addItem("- Most Downloaded", "http://video.ufc.com/Collection.aspx?cdid=2128");
		menu7.addItem("- Live Event Replays", "http://video.ufc.com/Content.aspx?cbid=9037");

		//sub-menu for Photos
		menu8.addItem("- Photo Gallery", menuBaseUrl + "/index.cfm?fa=MultiMedia.GalleryList");
		menu8.addItem("- Wallpaper", menuBaseUrl + "/index.cfm?fa=MultiMedia.Wallpaper");		
		menu8.addItem("- Cardboard Standups", menuBaseUrl + "http://ufcstore.seenon.com/index.php?v=ufc_ufc_accessories_cardboard-standups");

		//sub-menu for Octagon Girls
		menu9.addItem("- The Octagon Girls", menuBaseUrl + "/index.cfm?fa=OctagonGirl.home");
		menu9.addItem("- Gallery", menuBaseUrl + "/index.cfm?fa=OctagonGirl.GalleryMenu");

		//sub-menu for Community
		menu10.addItem("- UFC Community", "http://community.ufc.com/");
		menu10.addItem("&nbsp;&nbsp;- My Friends", "http://community.ufc.com/friends");
		menu10.addItem("&nbsp;&nbsp;- My Profile", "http://community.ufc.com/profile");
		menu10.addItem("&nbsp;&nbsp;- Chat", "http://community.ufc.com/chat");
		menu10.addItem("&nbsp;&nbsp;- Forum", "http://community.ufc.com/forum_preview");
		menu10.addItem("&nbsp;&nbsp;- Upcoming Events", "http://community.ufc.com/events");
		menu10.addItem("&nbsp;&nbsp;- Recent Events", "http://community.ufc.com/events");

		//sub-menu for Mobile
		menu11.addItem("- Wallpapers", "http://cell-phone-wallpaper.thumbplay.com/Sports-cat-UFC-subcat-wallpaper ");
		menu11.addItem("- Ringtones", "http://ringtones.thumbplay.com/Sports-genre-UFC-subgenre-ringtones ");
		menu11.addItem("- Video", "http://videos.thumbplay.com/Sports-cat-UFC-subcat-videos ");
		menu11.addItem("- Fighters", "http://uk.ufc.mobi/uwww_render.pl?newsID=24613&ua=&site=wufc&op=");
		menu11.addItem("- Octagon Girls", "http://uk.ufc.mobi/uwww_render.pl?newsID=24614&ua=&site=wufc&op=");
		menu11.addItem("- iPhone Application ", "http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=325572765&mt=8");

		//sub-menu for Fantasy
		menu12.addItem("- Fantasy", "http://fantasy.ufc.com/");	
		menu12.addItem("- Poker", "http://bit.ly/4iScSW");
		menu12.addItem("- UFC Undisputed", "http://www.ufcundisputed.com/#/home");

		//sub-menu for Learn UFC
		menu13.addItem("- Facts", menuBaseUrl + "/index.cfm?fa=LearnUFC.FactSheet");	
		menu13.addItem("- Rules", menuBaseUrl + "/index.cfm?fa=LearnUFC.Rules");
		menu13.addItem("- Styles", menuBaseUrl + "/index.cfm?fa=LearnUFC.Styles");		
		menu13.addItem("- History", menuBaseUrl + "/index.cfm?fa=LearnUFC.History");				
		menu13.addItem("- FAQ", menuBaseUrl + "/index.cfm?fa=LearnUFC.QandA");			
		menu13.addItem("- Event Results", menuBaseUrl + "/index.cfm?fa=news.eventResults");				
		menu13.addItem("- T.U.F. History", menuBaseUrl + "/index.cfm?fa=TUF.historymenu");				
		menu13.addItem("- UFC Announcers", menuBaseUrl + "/index.cfm?fa=announcers.home");		

		//sub-menu for Store
		menu14.addItem("- Men's Apparel", "http://store.digitalstores.co.uk/ufc/Mens/category.html?c=ufc_mens");
		menu14.addItem("- Women's Apparel", "http://store.digitalstores.co.uk/ufc/Womens/category.html?c=ufc_womens");
		menu14.addItem("- Youth", "http://store.digitalstores.co.uk/ufc/Youth/category.html?c=ufc_youth");
		menu14.addItem("- Fighters", "http://store.digitalstores.co.uk/ufc/Fighters/category.html?c=ufc_fighters");
		menu14.addItem("- Equipment", "http://store.digitalstores.co.uk/ufc/Gloves/category.html?c=ufc_gloves");
		menu14.addItem("- Accessories", "http://store.digitalstores.co.uk/ufc/Accessories/category.html?c=ufc_accessories");

		DropDown.renderAll();
	}