// 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, 0, 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("menu1"));
		menu1.addItem("<b>&raquo;</b> Why Nanotechnology? ", "whynanotech.html");
		menu1.addItem("<b>&raquo;</b> Why Rice?", "whyrice.html");
		menu1.addItem("<b>&raquo;</b> Why Japan?", "whyjapan.html");	
		menu1.addItem("<b>&raquo;</b> Current Research", "Pire Research.html");	
		menu1.addItem("<b>&raquo;</b> Research Collaborators", "Collaborators.html");	
		menu1.addItem("<b>&raquo;</b> Publications", "Publications.html");	
		menu1.addItem("<b>&raquo;</b> Newsletter & Brochure", "newsletter.html");	
		menu1.addItem("<b>&raquo;</b> Sponsors", "support.html");	
		menu1.addItem("<b>&raquo;</b> Industry", "Industry.html");
		menu1.addItem("<b>&raquo;</b> Become Involved", "Become Involved.html");	
		
		var menu2 = ms.addMenu(document.getElementById("menu2"));
		menu2.addItem("<b>&raquo;</b> NanoJapan IREU Program", "nanoprogram.html");
		menu2.addItem("<b>&raquo;</b> Alumni Internship Program", "AlumniInternship.html");
		menu2.addItem("<b>&raquo;</b> Graduate Research Opportunities", "GraduateResearch.html");
		menu2.addItem("<b>&raquo;</b> For High School Students", "HighSchool.html");
		menu2.addItem("<b>&raquo;</b> For International Students", "JapaneseStudents.html");
		menu2.addItem("<b>&raquo;</b> INNOVATE Conference", "INNOVATE.html");
		menu2.addItem("<b>&raquo;</b> Other Related Programs", "relatedintlprograms.html");

		var menu3 = ms.addMenu(document.getElementById("menu3"));
		menu3.addItem("<b>&raquo;</b> IREU Eligibility and Selection", "eligibilityselection.html");
		menu3.addItem("<b>&raquo;</b> IREU Application and Timeline", "applicationtimeline.html");
		menu3.addItem("<b>&raquo;</b> Frequently Asked Questions", "faq.html");
		menu3.addItem("<b>&raquo;</b> IREU Apply Online", "apply.html");
		menu3.addItem("<b>&raquo;</b> IREU Program Cost and Schedule", "programcost.html");
		menu3.addItem("<b>&raquo;</b> Japan Pre-Departure Resources", "Pre-Departure Resources.html");
		menu3.addItem("<b>&raquo;</b> Health Abroad", "While Abroad - Health.html");
		menu3.addItem("<b>&raquo;</b> Safety Abroad", "While Abroad - Safety.html");
		menu3.addItem("<b>&raquo;</b> Cultural Adjustment", "While Abroad - Cultural Adjustment.html");
		menu3.addItem("<b>&raquo;</b> Food in Japan", "While Abroad - Food.html");
		menu3.addItem("<b>&raquo;</b> Housing in Japan", "While Abroad - Housing.html");
		menu3.addItem("<b>&raquo;</b> Language Resources", "While Abroad - Language Resources.html");
		menu3.addItem("<b>&raquo;</b> Student Recommendations", "Student Guide to Japan.html");
		menu3.addItem("<b>&raquo;</b> After You Return", "Re-Entry.html");
		menu3.addItem("<b>&raquo;</b> Recommended Books", "books.html");
						
		var menu4 = ms.addMenu(document.getElementById("menu4"));
		menu4.addItem("<b>&raquo;</b> News", "news.html");
		menu4.addItem("<b>&raquo;</b> Student Profiles", "studentprofiles.html");
		menu4.addItem("<b>&raquo;</b> Photos", "photos.html");
		menu4.addItem("<b>&raquo;</b> Student Achievements", "Awards, Fellowships, & Recognitions.html");
		menu4.addItem("<b>&raquo;</b> Where Are They Now?", "Where Are They Now.html");

		
		//==================================================================================================

		//==================================================================================================
		// 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();
	}