// 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, 1, 0, TransMenu.reference.topRight);

	var webroot = '';

	//==================================================================================================
	// 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("TherapistTraining"));
	menu1.addItem("Manual Lymph Drainage", webroot+"/manual_lymph_drainage_overview");
		
		var menu1_sub1 = menu1.addMenu(menu1.items[0]);
		menu1_sub1.addItem("Applications", webroot+"/manual_lymph_drainage_applications2");
		menu1_sub1.addItem("Effects", webroot+"/manual_lymph_drainage_effects");
		menu1_sub1.addItem("History", webroot+"/manual_lymph_drainage_history");
		
	menu1.addItem("Combined Decongestive Therapy", webroot+"/combined_decongestive_therapy_overview"); // send no URL if nothing should happen onclick
	
		var menu1_sub2 = menu1.addMenu(menu1.items[1]);
		menu1_sub2.addItem("Applications", webroot+"/combined_decongestive_therapy_applications");
		menu1_sub2.addItem("Treatment", webroot+"/combined_decongestive_therapy_treatment");
		menu1_sub2.addItem("Therapists", webroot+"/combined_decongestive_therapy_therapists");

	menu1.addItem("Training Program", webroot+"/training_program_overview");
		
		var menu1_sub3 = menu1.addMenu(menu1.items[2]);
		menu1_sub3.addItem("Basic", webroot+"/training_program_basic");
		menu1_sub3.addItem("Therapy I", webroot+"/training_program_therapy_i");
		menu1_sub3.addItem("Therapy II & III", webroot+"/training_program_therapy_ii");
		menu1_sub3.addItem("Recertification / Review", webroot+"/training_program_recertification_review");
		menu1_sub3.addItem("Advanced Spa Body", webroot+"/advanced_spa_body"); 
		menu1_sub3.addItem("Advanced Body Review", webroot+"/advanced_body_review"); 
		
	var menu2 = ms.addMenu(document.getElementById("AdvancedCourses"));
	menu2.addItem("Elastic Sports Taping", webroot+"/kinesio_taping_advanced_courses"); 
	menu2.addItem("Advanced Creative Bandaging", webroot+"/advanced_creative_bandaging"); 
	menu2.addItem("Marnitz Therapy", webroot+"/marnitz_therapy_advanced_courses"); 
	menu2.addItem("Conscious Clinician", webroot+"/managing_challenging_patients"); 
	menu2.addItem("Expert Garment Fitter", webroot+"/expert_garment_fitter"); 
	menu2.addItem("Recertification / Review", webroot+"/training_program_recertification_review"); 
	
	var menu3 = ms.addMenu(document.getElementById("Esthetician_Training"));
	menu3.addItem("Manual Lymph Drainage", webroot+"/manual_lymph_drainage_overview2"); 
	menu3.addItem("Training Program", webroot+"");
	
		var menu3_sub1 = menu3.addMenu(menu3.items[0]);
		menu3_sub1.addItem("Applications", webroot+"/manual_lymph_drainage_applications");
		menu3_sub1.addItem("Effects", webroot+"/manual_lymph_drainage_effects2");
		menu3_sub1.addItem("History", webroot+"/manual_lymph_drainage_history2");
		
		var menu3_sub2 = menu3.addMenu(menu3.items[1]);
		menu3_sub2.addItem("Basic Neck and Face", webroot+"/basic_neck_face");
		menu3_sub2.addItem("Advanced Neck and Face", webroot+"/advanced_neck_face");
		menu3_sub2.addItem("Advanced Neck and Face Review", webroot+"/advanced_neck_face_review");
		menu3_sub2.addItem("Basic Body", webroot+"/basic_body");
		menu3_sub2.addItem("Advanced Body", webroot+"/advanced_Body");
		menu3_sub2.addItem("Advanced Body Review", webroot+"/advanced_body_review");
	
	var menu4 = ms.addMenu(document.getElementById("course_calendar"));
	menu4.addItem("Health Care Professionals", webroot+"/student/course/search/therapist");
	menu4.addItem("Estheticians", webroot+"/student/course/search/esthetician");
	
	var menu5 = ms.addMenu(document.getElementById("Faculty"));
	menu5.addItem("Academic / Medical Instructors", webroot+"/faculty_academic_medical");
	menu5.addItem("Accredited Practical Instructors", webroot+"/accredited_practical_instructors");
	
	var menu6 = ms.addMenu(document.getElementById("Products"));
	menu6.addItem("Books", webroot+"/products/category/Books_1");
	menu6.addItem("DVDs", webroot+"/products/category/DVD_4");
	menu6.addItem("CD ROM", webroot+"/products/category/CDROM_3");
	menu6.addItem("Tissue Tonometer", webroot+"/products/category/Tissue_Tonometer_6");
	menu6.addItem("Low Level Laser", webroot+"/products/category/Low_Level_Laser_7");
	menu6.addItem("Bioimpedance", webroot+"/products/category/Bioimpedance_5");
	
	var menu7 = ms.addMenu(document.getElementById("education_center"));
	menu7.addItem("Lymph Vessel System", webroot+"/lymph_vessel_system");
	menu7.addItem("Lymphedema", webroot+"/lymphedema");
	menu7.addItem("Bibliography of research articles", webroot+"/bibliography_of_research_articles");
	menu7.addItem("Current articles", webroot+"/current_articles");
	
	var menu8 = ms.addMenu(document.getElementById("Industry_News"));
	menu8.addItem("Articles", webroot+"/news");
	menu8.addItem("RSS Feed", webroot+"/news/rss");
	menu8.addItem("New in Lymphology", webroot+"/news/lymphology");

	//==================================================================================================
	// 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();
}
