// 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.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("webmarketing"));			
		menu1.addItem("Wedding Homepage", "http://www.brightonsavoy.com.au/weddings/index.htm");
		menu1.addItem("Wedding Package", "http://www.brightonsavoy.com.au/weddings/wedding-package.htm");
		menu1.addItem("Wedding Menu", "http://www.brightonsavoy.com.au/menu.htm");
		menu1.addItem("Virtual Tours", "http://www.brightonsavoy.com.au/functiontours.htm");
		menu1.addItem("Wedding Enquiries", "http://www.brightonsavoy.com.au/weddings/wedding-enquiry.htm");
		menu1.addItem("Terms and Conditions", "http://www.brightonsavoy.com.au/weddings/terms.htm");		
		
	var menu2 = ms.addMenu(document.getElementById("webdev"));	
		menu2.addItem("Conference Homepage", "http://www.brightonsavoy.com.au/conferences/index.htm");
		menu2.addItem("Conference Package", "http://www.brightonsavoy.com.au/conferences/conferencepackage.htm");
		menu2.addItem("Virtual Tours", "http://www.brightonsavoy.com.au/conftours.htm");
		menu2.addItem("Conference Enquiries", "http://www.brightonsavoy.com.au/enquiry.htm");			
		menu2.addItem("Terms and Conditions", "http://www.brightonsavoy.com.au/conferences/conferenceterms.htm");						
	var menu3 = ms.addMenu(document.getElementById("graphicdesign"));	
	 	menu3.addItem("Accommodation Homepage", "http://www.brightonsavoy.com.au/accommodation/index.htm");
	 	menu3.addItem("Online Bookings", "http://www.brightonsavoy.levartds.com.au/");
		menu3.addItem("Check Availablity", "http://www.brightonsavoy.levartds.com.au/");
		menu3.addItem("Virtual Tours", "http://www.brightonsavoy.com.au/accomtours.htm");							
	
	var menu4 = ms.addMenu(document.getElementById("photography"));
		menu4.addItem("Function Homepage", "http://www.brightonsavoy.com.au/functions/index.htm");
		menu4.addItem("Function Package", "http://www.brightonsavoy.com.au/package.htm");
		menu4.addItem("Function Menu", "http://www.brightonsavoy.com.au/menu.htm");
		menu4.addItem("Virtual Tours", "http://www.brightonsavoy.com.au/functiontours.htm");
		menu4.addItem("Function Enquiry", "http://www.brightonsavoy.com.au/enquiry.htm");
		
	var menu5 = ms.addMenu(document.getElementById("multimedia"));
		menu5.addItem("Enquiries @ Brighton Savoy", "http://www.brightonsavoy.com.au/enquiry.htm");
		menu5.addItem("Wedding Enquiries", "http://www.brightonsavoy.com.au/weddings/wedding-enquiry.htm");
		menu5.addItem("Accommodation Availability", "https://secure.brightonsavoy.com.au/iqreservations/");		
	
	var menu6 = ms.addMenu(document.getElementById("contact"));
		menu6.addItem("Brighton Savoy Homepage", "http://www.brightonsavoy.com.au/index.htm");	
		menu6.addItem("About The Brighton Savoy", "http://www.brightonsavoy.com.au/facilities.htm");
		menu6.addItem("The Seaview Restaurant", "http://www.brightonsavoy.com.au/restaurant.htm");
		menu6.addItem("News &amp; Specials", "http://www.brightonsavoy.com.au/news.htm");
		menu6.addItem("Virtual Tours", "http://www.brightonsavoy.com.au/tours.htm");
		menu6.addItem("General Enquiries", "http://www.brightonsavoy.com.au/enquiry.htm");
		menu6.addItem("Acknowledgements", "http://www.brightonsavoy.com.au/acknowledgements.htm");
		menu6.addItem("Employment Opportunities", "http://www.brightonsavoy.com.au/employment.htm");
		
		
		
	//==================================================================================================
	// 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();
}