// 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, 30, 20, TransMenu.reference.bottomLeft);

		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// the first parameter should be the HTML element which will act actuator for the menu
		//==================================================================================================

		var menu3 = ms.addMenu(document.getElementById("About"));
		menu3.addItem("History", "/history.php");
		menu3.addItem("Clergy", "/clergy.php");
		menu3.addItem("Staff & Leadership", "/staff-and-leadership.php");
		menu3.addItem("Calendar", "/calendar.php");
		menu3.addItem("Membership", "/membership.php");
		menu3.addItem("Contact Us", "/contact-us.php");
		menu3.addItem("Directions", "/directions.php");
		menu3.addItem("Our Spaces", "/our-spaces.php");



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

		var menu2 = ms.addMenu(document.getElementById("Pray"));
		menu2.addItem("Daily Minyan", "daily-minyan.php");
		menu2.addItem("Erev Shabbat", "erev-shabbat.php");
		menu2.addItem("Shabbat", "shabbat.php");
		menu2.addItem("Holidays", "holidays.php");
		menu2.addItem("Life Cycle Events", "life-cycle-events.php");

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

		var menu5 = ms.addMenu(document.getElementById("Learn"));
		menu5.addItem("The Gordon Schools", "the-gordon-schools.php");
		menu5.addItem("Religious School", "religious-school.php");
		menu5.addItem("Lifelong Learning", "lifelong-learning.php");



//  These are sub-level flyouts 2nd child ...
//		var submenu2 = menu2.addMenu(menu2.items[1]);
//		submenu2.addItem("Sawgrass Bay", "/sawgrass/")
//		submenu2.addItem("LakeShore Ranch", "/lakeshore/")
//		submenu2.addItem("Amberton", "/amberton/")

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

		var menu4 = ms.addMenu(document.getElementById("Act"));
		menu4.addItem("Caring for the Homeless", "caring-for-the-homeless.php");
		menu4.addItem("Donor Drives", "donor-drives.php");
		menu4.addItem("Hands on Beth David", "hands-on.php");
		menu4.addItem("Walk Now for Autism Speaks", "autism-speaks.php");
		menu4.addItem("Cemetery Clean-up", "cemetery-cleanup.php");
		menu4.addItem("Volunteering at Beth David", "volunteering.php");

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

		var menu6 = ms.addMenu(document.getElementById("Be"));
		menu6.addItem("Centennial Celebration", "centennial-celebration.php");
		menu6.addItem("Family Programming", "family-programming.php");
		menu6.addItem("Parents' Association", "parents-association.php");
		menu6.addItem("Women's League", "womens-league.php");
		menu6.addItem("Volunteering", "act-with-us.php");
		menu6.addItem("Learning", "learn-with-us.php");
		menu6.addItem("Prayer", "pray-with-us.php");
		menu6.addItem("Ritual Committee", "ritual-committee.php");
		menu6.addItem("Museum Committee", "museum-committee.php");


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

		var menu7 = ms.addMenu(document.getElementById("Support"));
		menu7.addItem("Donate Now", "donate.php");
		menu7.addItem("Ways to Give", "ways-to-give.php");
		menu7.addItem("High Holy Days", "donate-holy-days.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();
	}
	
