
// 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 menu1 = ms.addMenu(document.getElementById("about"));
	menu1.addItem("History", "/about_history.asp");
	menu1.addItem("Mission Statement", "/about_mission.asp");
	menu1.addItem("Industries Served", "/about_industries.asp");
	menu1.addItem("Ikeda Drill Parts", "/about_ikeda.asp");
	//==================================================================================================
	
	var menu2 = ms.addMenu(document.getElementById("capabilities"));
	menu2.addItem("Building", "/capabilities_building.asp");
	menu2.addItem("Short Run / Prototype", "/capabilities_short.asp");
	menu2.addItem("Large Part Machining", "/capabilities_large.asp");
	menu2.addItem("Maintenance/Job Shop Machining", "/capabilities_maintenance.asp");
	menu2.addItem("Grinding Equipment", "/capabilities_grinding.asp");
	menu2.addItem("Fabrication", "/capabilities_fabrication.asp");
	menu2.addItem("Stress Relieving & Heat Treating", "/capabilities_stress.asp");
	menu2.addItem("Selective & Brush Plating", "/capabilities_selective.asp");
	menu2.addItem("Gear Boxes & Air Locks", "/capabilities_gear.asp");
	menu2.addItem("Information Technology", "/capabilities_information.asp");
	menu2.addItem("Sub Contract Services", "/capabilities_sub.asp");
	menu2.addItem("Photo Gallery", "/capabilities_photo.asp");

	//==================================================================================================
	
	var menu3 = ms.addMenu(document.getElementById("machining"));
	menu3.addItem("Heavy Construction Equipment", "/machining_heavy.asp");
	menu3.addItem("RBC Repair", "/machining_rbc.asp");
	menu3.addItem("Power & Processing Plants", "/machining_power.asp");
	menu3.addItem("Selective & Brush Plating", "/machining_selective.asp");
	
	//==================================================================================================
		
	var menu4 = ms.addMenu(document.getElementById("quality"));
	menu4.addItem("Project Tracking", "/quality_project.asp");
	menu4.addItem("Quality Management", "/quality_management.asp");
	menu4.addItem("Inspection Equipment", "/quality_inspection.asp");
	menu4.addItem("Customer Testimonials", "/quality_customer.asp");
	
	//==================================================================================================
	
	var menu5 = ms.addMenu(document.getElementById("employment"));
	menu5.addItem("Job Openings", "/employment_job.asp");
	menu5.addItem("Benefits", "/employment_benefits.asp");
	
	//==================================================================================================
	
	var menu6 = ms.addMenu(document.getElementById("contactus"));
	menu6.addItem("List Of Contacts", "/contactus_list.asp");
	menu6.addItem("Locations", "/contactus_locations.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();
	}
//==================================================================================================