// 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 (TransMenu.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 TransMenuSet(TransMenu.direction.down, 0, 1, TransMenu.reference.bottomLeft);

		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// the first parameter should be the HTML element which will act actuator for the menu
		//==================================================================================================
		var menu1 = ms.addMenu(document.getElementById("home"));
			menu1.addItem("Dr. Rogers Prize", "http://www.drrogersprize.org/"); 

		//==================================================================================================

		//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("prize"));
			menu2.addItem("About the Prize","../files/purpose.php");
			menu2.addItem("About Dr. Roger Rogers","../files/about.php");
			menu2.addItem("About C.A.M.","../files/CAM-what.php");
						
			var submenu0 = menu2.addMenu(menu2.items[2]);
				submenu0.addItem("What is CAM?","../files/CAM-what.php");
				submenu0.addItem("Why is CAM important?","../files/CAM-why.php");
				submenu0.addItem("What is CAM used for?","../files/CAM-used-for.php");
				submenu0.addItem("What is the evidence?","../files/CAM-evidence.php");
				submenu0.addItem("How do we measure effectiveness?","../files/CAM-effectiveness.php");
			
						

		//==================================================================================================

		//==================================================================================================
		var menu3 = ms.addMenu(document.getElementById("competition"));
			menu3.addItem("the Competition","../files/competition.php");
			menu3.addItem("2011 Jury","../files/2011-jury.php");
			menu3.addItem("Nomination Guidelines","../files/nomination-guidelines.php");
			menu3.addItem("Start Your Nomination Package","../files/nomination-package.php");
			//menu3.addItem("2011 Nomination Package","https://www.drrogersprize.org/code/");
			menu3.addItem("VIP Package","../files/vip-package.php");
			menu3.addItem("Frequently Asked Questions","../files/faqs.php");

		//==================================================================================================

		//==================================================================================================
		var menu4 = ms.addMenu(document.getElementById("events"));
			menu4.addItem("the Events","../files/events.php");
			menu4.addItem("Dr. Rogers Prize Colloquium","../files/colloquium.php");
			menu4.addItem("Dr. Rogers Prize Award Gala","../files/award-gala.php");

		//==================================================================================================

		//==================================================================================================
		var menu5 = ms.addMenu(document.getElementById("pastprizes"));
			menu5.addItem("2011 Winner","../files/2011-winner.php");
			menu5.addItem("2009 Winners","../files/2009-winners.php");
			menu5.addItem("2007 Winners","../files/2007-winners.php");
			//menu5.addItem("2007 Jury","../files/2007-jury.php");
			//menu5.addItem("Gallery","../files/gallery.php");
			//menu5.addItem("2007 News Coverage","../files/2007-news-coverage.php");

		//==================================================================================================

		//==================================================================================================
		var menu6 = ms.addMenu(document.getElementById("media"));
			menu6.addItem("Media Inquiries","../files/media.php");
			//menu6.addItem("In the Media","../files/in-the-media.php");
			//menu6.addItem("Media Contact","../files/media-contact.php");
			
		//==================================================================================================

		//==================================================================================================
		var menu7 = ms.addMenu(document.getElementById("contact"));
			menu7.addItem("Contact Us","../files/contact.php");
			//menu7.addItem("Subscribe","../files/subscribe.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.
		//==================================================================================================
		TransMenu.renderAll();
	}

