// 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("ZZ2"));
	menu1.addItem("&nbsp;&nbsp;Products &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", "#"); 
	menu1.addItem("&nbsp;&nbsp;New Products &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", "#"); // send no URL if nothing should happen onclick
			
		var submenu0 = menu1.addMenu(menu1.items[0]);

		submenu0.addItem("Flanges, Bolts, Plugs, Bleeders ", "flanges-fittings.html");
		submenu0.addItem("Elbow Fittings ", "elbow-fittings.html");
		submenu0.addItem("Adapter Fittings", "adapter-fitings.html");
		submenu0.addItem("Tee Fittings", "tee-fitings.html");
		submenu0.addItem("Plug Fittings", "plugs-fittings.html");
		submenu0.addItem("Union Fittings ", "union-fittings.html");
		submenu0.addItem("Crosses Fittings ", "crosses-fittings.html");
		submenu0.addItem("Bushings, Nipples, Sleeves Fittings", "sleeves-fittings.html");
		submenu0.addItem("Reducers, Swiveless Fittings ", "reducers-fittings.html");
		submenu0.addItem("Nuts, Caps Assembly Fittings ", "nuts-fittings.html");
		submenu0.addItem("Value Added Service ", "added-services.html");
	        
	

		var submenu1 = menu1.addMenu(menu1.items[1]);
		
		submenu1.addItem("Special Elbow Fittings ", "special-elbow-fittings.html");
		submenu1.addItem("Special Plug Fitings ", "special-plug-fittings.html");


	
//==================================================================================================

	//==================================================================================================
	var menu2 = ms.addMenu(document.getElementById("ZZ3"));
	menu2.addItem("Flanges, Bolts, Plugs, Fittings ", "find-a-part.html");
	menu2.addItem("Elbow Fittings", "find-a-part.html");
	menu2.addItem("Adapter Fittings", "find-a-part.html");
	menu2.addItem("Tee Fittings", "find-a-part.html");
	menu2.addItem("Plug Fittings", "find-a-part.html");
	menu2.addItem("Union Fittings", "find-a-part.html");


		//var submenu4 = menu2.addMenu(menu2.items[1]);
		//submenu4.addItem("Our Benefit Package", "/aboutjasco/careers/benefitpackage.asp");
		//submenu4.addItem("Job Openings", "/aboutjasco/careers/jobopenings.asp");


	//==================================================================================================
    var menu3 = ms.addMenu(document.getElementById("ZZ4"));
	menu3.addItem("FAQ’s ", "faq.html");
	menu3.addItem("Conversion Chart", "conversion-charts.html");
	menu3.addItem("Terms and Conditions", "terms-conditions.html");
	menu3.addItem("Current Stock Inventory", "current-inventory.html");
	menu3.addItem("Contact Service Representative", "rep-contact.html");
	//==================================================================================================
	var menu4 = ms.addMenu(document.getElementById("ZZ5"));
	menu4.addItem("Press Releases", "press-release.html");
	menu4.addItem("Take a Tour", "videos.html");
	
/*
	menu3.addItem("Community Involvement", "/careers/communityinvolvement.asp");
	menu3.addItem("Job Openings", "/careers/jobopenings.asp");
*/
	
	//==================================================================================================
    var menu5 = ms.addMenu(document.getElementById("ZZ6"));
	menu5.addItem("History", "history.html");
	menu5.addItem("Quality Controls", "quality-controls.html");
	menu5.addItem("Certifications ", "certifications.html");

	//==================================================================================================
	
	var menu6= ms.addMenu(document.getElementById("ZZ7"));
	menu6.addItem("Send Request for Quote", "request-for-quote.html");
	menu6.addItem("General Contact Information", "general-contact.html");

	//==================================================================================================
	// 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();
}
