// 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 (mtDropDown.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 IE = false;

var ua = navigator.userAgent.toLowerCase();
var an = navigator.appName;

if (ua.indexOf("gecko") > -1) 
{
	IE = false;
}
else if (an == "Microsoft Internet Explorer") 
{
	if (document.getElementById) IE = true;
}

if (IE)
{
	var ms = new mtDropDownSet(mtDropDown.direction.right, 0, 0, mtDropDown.reference.topRight);
}
else
{
	var ms = new mtDropDownSet(mtDropDown.direction.right, 0, -8, mtDropDown.reference.topRight);
}

//==================================================================================================
// create a dropdown menu
//==================================================================================================

// the first parameter should be the HTML element which will act actuator for the menu
//==================================================================================================
// Use a '#' to represent no URL

// menu : About Us
var menu1 = ms.addMenu(document.getElementById("menu1"));
menu1.addItem("Letter from the Campus Director", "/about/letter.aspx");
menu1.addItem("Philosophy and Educational Objectives", "/about/mission_objectives.aspx");
menu1.addItem("Statement of Non-Discrimination", "/about/non-discrimination.aspx");
menu1.addItem("Location and Facilities", "/about/facilities.aspx");
menu1.addItem("Equipment", "/about/equipment.aspx");
menu1.addItem("Class Sizes and Ratios", "/about/class_sizes_ratios.aspx");
menu1.addItem("Licensing", "/about/licensing.aspx");
menu1.addItem("School Calendar and Class Start Dates", "/about/school_calendar.aspx");
menu1.addItem("The Faculty", "/about/faculty.aspx");
menu1.addItem("Guest Lecturers", "/about/lecturers.aspx");
	
var menu2 = ms.addMenu(document.getElementById("menu2"));
menu2.addItem("Massage Therapy", "", true);
	var subMenu2_1 = menu2.addMenu(menu2.items[0]);
	subMenu2_1.addItem("Class Schedules, Start Dates", "/massage_therapy/schedules.aspx");
	subMenu2_1.addItem("School Hours", "/massage_therapy/school_hours.aspx");
	subMenu2_1.addItem("Core Curriculum", "/massage_therapy/core_curriculum.aspx");
	subMenu2_1.addItem("Course Descriptions", "/massage_therapy/course_descriptions.aspx");
	subMenu2_1.addItem("Electives", "/massage_therapy/electives.aspx");
	subMenu2_1.addItem("Required Texts", "/massage_therapy/textbooks.aspx");
	subMenu2_1.addItem("Student Clinic", "/massage_therapy/clinic.aspx");
	subMenu2_1.addItem("Field Trips", "/massage_therapy/field_trips.aspx");
menu2.addItem("Reflexology", "", true);
	var subMenu2_2 = menu2.addMenu(menu2.items[1]);
	subMenu2_2.addItem("Core Curriculum", "/reflexology/core_curriculum.aspx");
	subMenu2_2.addItem("Course Descriptions", "/reflexology/course_descriptions.aspx");
	subMenu2_2.addItem("Required Texts", "/reflexology/textbooks.aspx");
	
var menu3 = ms.addMenu(document.getElementById("menu3"));
menu3.addItem("General Admission Requirements", "/admissions/general_information.aspx");
menu3.addItem("Admissions Process", "/admissions/process.aspx");
menu3.addItem("Denial of Admission", "/admissions/denial.aspx");
menu3.addItem("Student Health Requirements", "/admissions/health_requirements.aspx");
menu3.addItem("Testing Out of Class", "/admissions/testing_out.aspx");
menu3.addItem("Course and Credit Transfers", "/admissions/credit_transfers.aspx");
menu3.addItem("Cancellations, Terminations", "/admissions/cancellation.aspx");
menu3.addItem("Refund Policy", "/admissions/refund_policy.aspx");

var menu4 = ms.addMenu(document.getElementById("menu4"));
menu4.addItem("Draping Policy", "/policies_procedures/draping.aspx");
menu4.addItem("Student Conduct and Dismissal", "/policies_procedures/student_conduct.aspx");
menu4.addItem("Dress Code and Personal Hygiene", "/policies_procedures/dress_hygiene.aspx");
menu4.addItem("Attendance and Make-Up Work", "/policies_procedures/attendance.aspx");
menu4.addItem("Leave of Absence Policy", "/policies_procedures/leave_of_absence.aspx");
menu4.addItem("Tutoring and Student Advisement", "/policies_procedures/tutoring_advisement.aspx");
menu4.addItem("Grading Policy", "/policies_procedures/grading.aspx");
menu4.addItem("Reporting Student Progress", "/policies_procedures/student_progress.aspx");
menu4.addItem("Graduation and Diploma Standards", "/policies_procedures/graduation_standards.aspx");
menu4.addItem("Student Academic Probation Policy", "/policies_procedures/academic_probation.aspx");
menu4.addItem("Student Withdrawal", "/policies_procedures/withdrawal.aspx");
menu4.addItem("Grievance Process", "/policies_procedures/grievance.aspx");
menu4.addItem("Student Records", "/policies_procedures/student_records.aspx");
menu4.addItem("Career Placement Services", "/policies_procedures/career_placement.aspx");

var menu5 = ms.addMenu(document.getElementById("menu5"));
menu5.addItem("Student Break Area", "/student_services/break_area.aspx");
menu5.addItem("Library and Computer Lab", "/student_services/library_lab.aspx");
menu5.addItem("School Store", "/student_services/school_store.aspx");
menu5.addItem("Continuing Education Seminars", "/student_services/seminars.aspx");

var menu6 = ms.addMenu(document.getElementById("menu6"));
menu6.addItem("Tuition and Other Fees", "/financial/tuition_fees.aspx");
menu6.addItem("Tuition Payment Programs", "/financial/payment_programs.aspx");
menu6.addItem("Financial Assistance", "/financial/assistance.aspx");
	
var menu7 = ms.addMenu(document.getElementById("menu7"));
menu7.addItem("General Information", "/contact/general_information.aspx");
// menu7.addItem("School Applications", "/contact/school_applications.aspx");
menu7.addItem("Information Request Form", "/contact/request_form.aspx");


//	var subMenu1_5 = menu1.addMenu(menu1.items[4]);
//	subMenu1_5.addItem("", "");

//==================================================================================================
//==================================================================================================
// add a sub-menu
//==================================================================================================
// to add a sub menu to an existing menu object, call it's addMenu method and pass it the item from
// the parent menu which should act as it's actuator. To add a submenu to the fourth item of a menu
// called "theMenu", you would do theMenu.addMenu(theMenu.items[3])
//==================================================================================================


//==================================================================================================
// 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.
//==================================================================================================
mtDropDown.renderAll();
	}
