// JavaScript Document	// Link this dropdown code 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,5, 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("home"));
		menu1.addItem("HOME", "index.html");
		
		//==================================================================================================
		
		var menu2 = ms.addMenu(document.getElementById("machines"));
		menu2.addItem("High Speed Machines", "machines.html");
		menu2.addItem("CNC Machining Centers", "machines_cncMach.html");
		menu2.addItem("EDM - CNC & Manual", "machines_edmCNCman.html");
		menu2.addItem("CNC-Lathes", "machines_CNClathe.html");
		menu2.addItem("Boring Mills", "machines_boringMill.html");
		menu2.addItem("Grinders", "machines_grinders.html");
		menu2.addItem("Lathes", "machines_lathes.html");
		menu2.addItem("Manual Mills", "machines_millsMan.html");
		menu2.addItem("Saws", "machines_saws.html");
		

		//==================================================================================================

		
		var menu3 = ms.addMenu(document.getElementById("supplies"));
		menu3.addItem("Supplies", "supplies.html");

		
		//==================================================================================================

		
		var menu4 = ms.addMenu(document.getElementById("service"));
		menu4.addItem("Service", "service.html");
	
	
		//==================================================================================================

		var menu5 = ms.addMenu(document.getElementById("specials"));
		menu5.addItem("Specials","specials.html");
		
		//==================================================================================================
		
		var menu6 = ms.addMenu(document.getElementById("contact"));
		menu6.addItem("Contact KM today","contact.html");

		//==================================================================================================
		
		
		function openWindow(link)
		 {
		 	window.open (link,"_blank","scrollbars=1");
		}
		
		TransMenu.renderAll();
		
		
	}
