// 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, 5, 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("summercamps"));
	menu1.addItem("Primary (Grades K-2)", "camps_primary.html"); 
	menu1.addItem("Early Elementary (Grades 3-4)", "camps_early_elementary.html");
	menu1.addItem("Elementary (Grades 5-6)", "camps_elementary.html");
	menu1.addItem("Junior High (Grades 6-8)", "camps_junior_high.html");
	menu1.addItem("High School (Grades 9-13)", "camps_high_school.html");
	menu1.addItem("Outdoor Adventures (tripping camps)", "camps_outdoor_adventures.html");
	menu1.addItem("Family Camps", "camps_family.html");
	menu1.addItem("Specialty Camps", "camps_special-needs.html");
	menu1.addItem("Info Packets", "informationpackets.html");

	
	//==================================================================================================
	
	var menu2 = ms.addMenu(document.getElementById("events"));
//	menu2.addItem("PEAKS at Pine Creek", "peaks.html");
    menu2.addItem("fall youth rally", "fallyouthrally.html");
//	menu2.addItem("A Crafty Christmas", "events_crafty.html");
//	menu2.addItem("Elementary Fall Fest", "events_ele-ff.html");
//	menu2.addItem("Epic - Junior High Fall Camp", "events_jh-ff.html");
//	menu2.addItem("Family Fall Camp", "events_fam-ff.html");
//	menu2.addItem("Purity & Holiness Retreat", "events-purity.html");
	
	//==================================================================================================
	
	var menu3 = ms.addMenu(document.getElementById("info"));
	menu3.addItem("Contact Us", "contact-offices.html");
	menu3.addItem("About Impact 2818", "about_who.html");
//	menu3.addItem("Digital Brochure", "brochure.html");
	menu3.addItem("Churches", "i_churches.html");
	menu3.addItem("Parents", "i_parents.html");
	menu3.addItem("Safety", "i_safety.html");
	menu3.addItem("Financial", "i_financial.html");
	menu3.addItem("Policies", "i_policies.html");
	
	//==================================================================================================
	
	var menu4 = ms.addMenu(document.getElementById("jobs"));
	menu4.addItem("Ministry Opportunities", "jobs.html");
	
	//==================================================================================================	
	
	var menu5 = ms.addMenu(document.getElementById("volunteers"));
	menu5.addItem("Camp Counselors", "vol_counselors.html");
	menu5.addItem("Camp Directors", "vol_directors.html");
	menu5.addItem("Summer Heroes", "vol_heroes.html");
	menu5.addItem("Work Groups", "vol_work.html");
	
	//==================================================================================================
	
	var menu6 = ms.addMenu(document.getElementById("donations"));
//	menu6.addItem("Corporate Sponsors", "sponsors.html");
	menu6.addItem("Capital Campaign", "http://www.rightfuture.org");
	menu6.addItem("Camp Scholarship Fund", "donations-scholarship.html");
	menu6.addItem("General Support", "donations-give.html");
	
	//==================================================================================================
	
	var menu7 = ms.addMenu(document.getElementById("retreats"));
//	menu7.addItem("Overview", "retreats.html");
	menu7.addItem("Impact 2818 Retreats", "retreats.html");
//	menu7.addItem("Meetings and Team Building", "retreats_meetings.html");
//	menu7.addItem("Booking", "retreats_booking.html");
//	menu7.addItem("Pricing", "retreats_pricing.html");
	
// var submenu0 = menu1.addMenu(menu1.items[4]);
//	submenu0.addItem("That Thing", "http://www.gotothatthing.com");
//	submenu0.addItem("Horse Camps", "horse.html");

//var submenu1 = menu7.addMenu(menu7.items[0]);
//	submenu1.addItem("Camp Adventure", "retreats_ca.html");
//	submenu1.addItem("Camp Lakewood", "retreats_lw.html");
//	submenu1.addItem("Epworth Forest Conference Center", "retreats_efcc.html");
//	submenu1.addItem("Pine Creek Camp", "retreats_pcc.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();
}