// JavaScript Document
// Dropdown menu text before end body tag
	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
		//==================================================================================================
		
		
		//IE menu position
		if(navigator.appName == "Microsoft Internet Explorer")
			{
				var ms = new TransMenuSet(TransMenu.direction.down, 10, 48, TransMenu.reference.topLeft);
				
			}
			
		else
			
			{
				var ms = new TransMenuSet(TransMenu.direction.down, 0, 34, TransMenu.reference.topLeft);
			}
	
		//==================================================================================================
		// 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("ABOUT"));
		//menu1.addItem("Sub Menu Item 1", "");
		//menu1.addItem("Sub Menu Item 2", "");
		//menu1.addItem("Sub Menu Item 3", "");
		
		/* sub menus
		var submenu1 = menu1.addMenu(menu1.items[0]);
		submenu1.addItem("Galeria", "");
		submenu1.addItem("Duomo", "");
		submenu1.addItem("Castle", "");
		*/
		
		//==================================================================================================
	
		//==================================================================================================
		
		var menu1 = ms.addMenu(document.getElementById("meet"));
		menu1.addItem("Education and Certification", "/index.cfm?fuseaction=home.meet_education");
		menu1.addItem("Q&A with Dr. Ryan", "/index.cfm?fuseaction=home.meet_education#QA");
		menu1.addItem("Blog", "http://dr-frank-ryan.blogspot.com/");
		menu1.addItem("Dr. Frank Ryan Foundation", "http://www.drfrankryan.org");
		menu1.addItem("Philanthropy", "/index.cfm?fuseaction=home.philanthropy");
		menu1.addItem("In the Press", "/index.cfm?fuseaction=home.media_tv");
		
		var menu2 = ms.addMenu(document.getElementById("services"));
		menu2.addItem("Surgical", "index.cfm?fuseaction=home.service_surgical");
		menu2.addItem("Medi-Spa", "index.cfm?fuseaction=home.medi_spa");
		menu2.addItem("Intensive Collagen Serum & Mask Kit", "http://purigenex.com/extra_info_pages.php/pages_id/22");
		
		
		var menu3 = ms.addMenu(document.getElementById("resources"));
		menu3.addItem("Post-Operative Instructions", "/index.cfm?fuseaction=home.signin");
		menu3.addItem("Office Tour", "/index.cfm?fuseaction=home.office_tour");
		menu3.addItem("Meet the Staff", "/index.cfm?fuseaction=home.meet_staff");
		menu3.addItem("Schedule a Consultation", "/index.cfm?fuseaction=home.consultation");
		menu3.addItem("Virtual Consultation", "https://www.drfrankryan.com/index.cfm?fuseaction=home.virtual_consultation");
		menu3.addItem("Payment & Financing", "/index.cfm?fuseaction=home.financing");
		menu3.addItem("Testimonials", "/index.cfm?fuseaction=home.testimonials");
		
		var menu4 = ms.addMenu(document.getElementById("products"));
		menu4.addItem("Dr. Frank Ryan Skin Care", "/index.cfm?fuseaction=home.skincare");
		//menu4.addItem("Other Products", "/index.cfm?fuseaction=home.other_products");
		
		/*var menu5 = ms.addMenu(document.getElementById("press"));
		menu5.addItem("Television", "/index.cfm?fuseaction=home.media_tv");
		menu5.addItem("Print", "/index.cfm?fuseaction=home.media_print");
		//menu5.addItem("Radio", "/index.cfm?fuseaction=home.media_radio");*/
		var menu6 = ms.addMenu(document.getElementById("news"));
		//menu6.addItem("Aaron and Karina", "/index.cfm?fuseaction=home.video_access_hollywood");
		//menu6.addItem("The Bridal Bliss Wedding Package", "/index.cfm?fuseaction=home.bridal_bliss");

		menu6.addItem("Television", "/index.cfm?fuseaction=home.media_tv");
		menu6.addItem("Print", "/index.cfm?fuseaction=home.media_print");
		menu6.addItem("Web", "/index.cfm?fuseaction=home.media_web");
		menu6.addItem("Events", "/index.cfm?fuseaction=home.whats_new");
	
		//==================================================================================================
		// 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();
	}