
// 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, 0, 0, TransMenu.reference.bottomLeft);

	//==================================================================================================
	// create a dropdown menu
	//==================================================================================================
	// the first parameter should be the HTML element which will act actuator for the menu
	//==================================================================================================
	
	//==================================================================================================
	
	var menu2 = ms.addMenu(document.getElementById("aboutus"));
	menu2.addItem("Staff", "/aboutus_staff.asp");
	menu2.addItem("Mission", "/aboutus_mission.asp");
	menu2.addItem("Customer Service", "/aboutus_customer.asp");
	menu2.addItem("Certification", "/aboutus_certification.asp");
	menu2.addItem("Testimonials", "/aboutus_testimonials.asp");
	menu2.addItem("Quality Assurance", "/aboutus_quality.asp");
	menu2.addItem("Awards / Recognition", "/aboutus_awards.asp");
	menu2.addItem("IT in the News", "/aboutus_it.asp");

	//==================================================================================================
	
	var menu3 = ms.addMenu(document.getElementById("services"));
	menu3.addItem("CNC Milling", "/services_milling.asp");
	menu3.addItem("CNC Turning", "/services_turning.asp");
	menu3.addItem("CNC Swiss", "/services_swiss.asp");
	menu3.addItem("CMM Services", "/services_cmm.asp");
	menu3.addItem("CAD / CAM", "/services_cad.asp");
	menu3.addItem("Prototyping", "/services_prototyping.asp");
	menu3.addItem("Painting", "/services_painting.asp");
	menu3.addItem("Parts Marking", "/services_parts.asp");
	menu3.addItem("Bar Coding", "/services_bar.asp");
	menu3.addItem("Military Sourcing", "/services_military.asp");
	menu3.addItem("Chemfilm / Passivate", "/services_chemfilm.asp");
	menu3.addItem("Assembly", "/services_assembly.asp");
	menu3.addItem("Soldering / Brazing", "/services_soldering.asp");	
	
	//==================================================================================================
	
	var menu4 = ms.addMenu(document.getElementById("industries"));
	menu4.addItem("Aerospace", "/industries_aerospace.asp");
	menu4.addItem("Military", "/industries_military.asp");
	menu4.addItem("Medical", "/industries_medical.asp");
	
	//==================================================================================================
		
	var menu5 = ms.addMenu(document.getElementById("contact"));
	menu5.addItem("Staff", "/aboutus_staff.asp");
	menu5.addItem("Directions", "/contact_directions.asp");
		
	//==================================================================================================
	
	//Example of how to make third tier...
	//var menu4 = ms.addMenu(document.getElementById("yourhome"));
	//menu4.addItem("Youth Tour", "");
	//menu4.addItem("Scholarships", "");
	//menu4.addItem("Third", "");
	
	//var submenu4 = menu4.addMenu(menu4.items[0]);
	//submenu4.addItem("Hostile", "");
	//submenu4.addItem("Testing", "");
	
	//var submenu5 = menu4.addMenu(menu4.items[2]);
	//submenu5.addItem("Hostile", "");
	//submenu5.addItem("Testing", "");
	//==================================================================================================

	

	//==================================================================================================
	// 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();
}


//==================================================================================================
// Function that allows you to open new window in the dropdown code...
//==================================================================================================
function dropdownNewWindow(sURL) {
		var popupWin
		popupWin = window.open ('' + sURL + '', '', '');
		popupWin.opener.top.name ="windowOpener";
		popupWin.focus();
	}
//==================================================================================================