// 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 ms = new mtDropDownSet(mtDropDown.direction.down, 0, 0, mtDropDown.reference.bottomLeft);

//========================================================================================
// 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 : Home
var menu1 = ms.addMenu(document.getElementById("menu1"));
menu1.addItem("&nbsp;&nbsp;Sparsh Home", "index.php");

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

// menu : Departments & Services
var menu2 = ms.addMenu(document.getElementById("menu2"));
menu2.addItem("&nbsp;&nbsp;Services", "clinical_services.php");
menu2.addItem("&nbsp;&nbsp;Departments", "treatment_services.php");

// submenu : Services
var submenu21 = menu2.addMenu(menu2.items[0]);
submenu21.addItem("&nbsp;&nbsp;Scientific & Clinical Resources Centre", "scientific&clinical.php");
submenu21.addItem("&nbsp;&nbsp;Ambulance Service", "ambulanceservice.php");
submenu21.addItem("&nbsp;&nbsp;Laboratory Medicine", "laboratory.php");
submenu21.addItem("&nbsp;&nbsp;Pharmacy", "pharmacy.php");
submenu21.addItem("&nbsp;&nbsp;Blood Storage Centre", "bloodbank.php");
submenu21.addItem("&nbsp;&nbsp;Radiology", "radiology.php");
submenu21.addItem("&nbsp;&nbsp;Telemedicine", "telemedicine.php");
submenu21.addItem("&nbsp;&nbsp;Intensive Care Hub", "icu.php");
submenu21.addItem("&nbsp;&nbsp;Operation Suites", "operationsuites.php");


// submenu : Departments
var submenu21 = menu2.addMenu(menu2.items[1]);
submenu21.addItem("&nbsp;&nbsp;Orthopaedics", "orthopaedics.php");
submenu21.addItem("&nbsp;&nbsp;Arthroplasty", "arthroplasty.php");
submenu21.addItem("&nbsp;&nbsp;Paediatric Orthopaedic", "paediatricorthopaedic.php");
submenu21.addItem("&nbsp;&nbsp;Spinal", "spinal.php");
submenu21.addItem("&nbsp;&nbsp;Tumour Orthopaedic", "tumourorthopaedic.php");
submenu21.addItem("&nbsp;&nbsp;Sports Medicine ", "sportsmedicine.php");
submenu21.addItem("&nbsp;&nbsp;Plastic Surgery", "plasticsurgery.php");
submenu21.addItem("&nbsp;&nbsp;Maxilo Facial", "maxilofacialsurgery.php");
submenu21.addItem("&nbsp;&nbsp;Trauma & Emergency", "emergencytraumacare.php");
submenu21.addItem("&nbsp;&nbsp;Anaesthesia", "anaesthesia.php");
submenu21.addItem("&nbsp;&nbsp;Other Surgical Services", "othersurgical.php");

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

// menu : PatientInfo Guide
var menu3 = ms.addMenu(document.getElementById("menu3"));
menu3.addItem("&nbsp;&nbsp;Treatments & Conditions", "patient_information_guide.php");
menu3.addItem("&nbsp;&nbsp;Patient Information & Services", "patientinfo&sevice.php");

//submenu patient information and sevice
var submenu31 = menu3.addMenu(menu3.items[1]);
submenu31.addItem("&nbsp;&nbsp;Help Desk", "helpdesk.php");
submenu31.addItem("&nbsp;&nbsp;Cafeteria & Coffee Shop", "cafeteria.php");
submenu31.addItem("&nbsp;&nbsp;Travel Desk", "traveldesk.php");
submenu31.addItem("&nbsp;&nbsp;Telecommunication", "telecommunication.php");
submenu31.addItem("&nbsp;&nbsp;Accommodation", "accommodation.php");

// submenu : Arthritis of Knee
//var submenu31 = menu3.addMenu(menu3.items[0]);
//submenu31.addItem("&nbsp;&nbsp;Arthritis of Knee", "knee_arthritis.php");
//submenu31.addItem("&nbsp;&nbsp;Arthritis of Hip", "hip_arthritis.php");
//submenu31.addItem("&nbsp;&nbsp;Maxillo Facial Surgery", "maxillofacial.php");

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

// menu : Doctors at Sparsh
var menu4 = ms.addMenu(document.getElementById("menu4"));
menu4.addItem("&nbsp;&nbsp;Doctor Login", "doctor_login.php");
menu4.addItem("&nbsp;&nbsp;Doctors at Sparsh", "doctor_list.php");

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

// menu : Sparsh Charity
var menu5 = ms.addMenu(document.getElementById("menu5"));
menu5.addItem("&nbsp;&nbsp;Sparsh Foundation", "sparsh_foundation.php");
menu5.addItem("&nbsp;&nbsp;Hejje Guruthu", "hejjeguruthu.php");
menu5.addItem("&nbsp;&nbsp;Guiding Principles", "guidingprinciples.php");
menu5.addItem("&nbsp;&nbsp;Donate", "donate.php");
menu5.addItem("&nbsp;&nbsp;Volunteer", "volunteer.php");

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

// menu : Careers
var menu6 = ms.addMenu(document.getElementById("menu6"));
menu6.addItem("&nbsp;&nbsp;Careers at Sparsh", "careers.php");

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

// menu : Research
var menu7 = ms.addMenu(document.getElementById("menu7"));
menu7.addItem("&nbsp;&nbsp;Research at Sparsh", "research.php");
menu7.addItem("&nbsp;&nbsp;Education", "education.php");

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

// menu : About Sparsh
var menu8 = ms.addMenu(document.getElementById("menu8"));
menu8.addItem("&nbsp;&nbsp;About Sparsh", "sparsh_statement.php");
menu8.addItem("&nbsp;&nbsp;About Health City", "healthcity_statement.php");

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

// menu : Contact Sparsh
var menu9 = ms.addMenu(document.getElementById("menu9"));
menu9.addItem("&nbsp;&nbsp;Contact Sparsh", "contact_us.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.
//==================================================================================================
mtDropDown.renderAll();
  }
