// JavaScript Document
//edited:yopin welly
// 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("product"));
		 
		menu1.addItem("Lenze", "");
		menu1.addItem("Actech", "");// send no URL if nothing should happen onclick
		
		//menu lenze
		var submenu0 = menu1.addMenu(menu1.items[0]);
		
		
		submenu0.addItem("Automation", "");
		submenu0.addItem("Motor Starter", "product-lenzemstart.php");
		submenu0.addItem("Motor Inverter", "product-lenzeminv.php");
		//submenu0.addItem("Frecuency Inverter", "");
		submenu0.addItem("Geared Motor", "");
		submenu0.addItem("3phase Ac Motors", "product-lenze3phase.php");
		submenu0.addItem("Servo Inverters", "");
		submenu0.addItem("Servo Motors", "");
		submenu0.addItem("DC Drives", "");
		submenu0.addItem("Small Drives", "");
		submenu0.addItem("Brakes and Clutches", "product-lenzebrakes.php");
		submenu0.addItem("Coupling Technologies", "");
		submenu0.addItem("Frequency inverters", "");
		submenu0.addItem("Servo systems", "");
		
		
		
		
		
		//automation
		var submenu00 = submenu0.addMenu(submenu0.items[0]);
			submenu00.addItem("Global Drive Automation", "product-lenzeauto1.php");
			submenu00.addItem("Drive PLC", "product-lenzeauto2.php");
			submenu00.addItem("Human Machine Interface", "product-lenzeauto3.php");
			submenu00.addItem("I/O - System", "product-lenzeauto16.php");
			submenu00.addItem("Industrial Communications", "product-lenzeauto15.php");
			submenu00.addItem("Software Tools", "product-lenzeauto17.php");
		
		/*frequency
		var submenu00 = submenu0.addMenu(submenu0.items[3]);
			submenu00.addItem("0.27-22kW Smd","product-lenzeau1.php");
			submenu00.addItem("0.25-7.5kW","product-lenzeau2.php");
			submenu00.addItem("3ph.0.37 - 400kW","product-lenzeau3.php");*/
			
		//gearedmotor
		var submenu00 = submenu0.addMenu(submenu0.items[3]);
			submenu00.addItem("Helical Geared Motor","product-lenzeghelical.php");
			submenu00.addItem("Low-profile Geared Motor","product-lenzeglow.php");
			submenu00.addItem("Helical Bevel Geared Motor","product-lenzeghebevel.php");
			submenu00.addItem("Helical Worm Geared Motor","product-lenzegheworm.php");
			submenu00.addItem("Geared Servo","product-lenzeggear.php");
			submenu00.addItem("Electronically Geared Motor","product-lenzegelect.php");
			submenu00.addItem("Mechanically Geared Motor","product-lenzegmech.php");
			
		//servoinverter
		var submenu00 = submenu0.addMenu(submenu0.items[5]);
			submenu00.addItem("GDS","product-lenzeservogds.php");
			submenu00.addItem("ECS","product-lenzeservoecs.php");
			submenu00.addItem("L-force","product-lenzeservolforce.php");
			
		//servomotor
		var submenu00 = submenu0.addMenu(submenu0.items[6]);
			submenu00.addItem("Synchronous","product-lenzeservmsync.php");
			submenu00.addItem("Asynchronous","product-lenzeservmasync.php");
			
		//dcdrive
		var submenu00 = submenu0.addMenu(submenu0.items[7]);
			submenu00.addItem("4q","product-lenzedc4q.php");
			submenu00.addItem("small speed","product-lenzedcsmallsp.php");
			submenu00.addItem("ip23","product-lenzedcip23.php");
			submenu00.addItem("ip44","product-lenzedcip44.php");
			
		//smalldrive
		var submenu00 = submenu0.addMenu(submenu0.items[8]);
			submenu00.addItem("Synchronous","product-lenzesmldrivesync.php");
			submenu00.addItem("Electrically","product-lenzesmldriveelectr.php");
			submenu00.addItem("Asynchronous","product-lenzesmldriveasync.php");
			submenu00.addItem("Permanent","product-lenzesmldriveperma.php");
			submenu00.addItem("Shunt","product-lenzesmldriveshunt.php");
			submenu00.addItem("Gearboxes","product-lenzesmldrivegearbox.php");
			
		//coupling
		var submenu00 = submenu0.addMenu(submenu0.items[10]);
			submenu00.addItem("Tooth","product-lenzecouptooth.php");
			submenu00.addItem("Clampling","product-lenzecoupcamp.php");
			submenu00.addItem("Coupling","product-lenzecoup2.php");
			submenu00.addItem("Hydra","product-lenzecouphydra.php");
			submenu00.addItem("Slope","product-lenzecoupslope.php");
			submenu00.addItem("Roller","product-lenzecouproller.php");
			
		//Frequency inverters
		var submenu00 = submenu0.addMenu(submenu0.items[11]);
			submenu00.addItem("8400 Inverter Drives","product-lenze8400_Inverter_Drives.php");
			submenu00.addItem("8400 protec","product-lenze8400_protec.php");
			submenu00.addItem("8400 motec","product-lenze8400_motec.php");
			submenu00.addItem("8200 vector","product-lenze8200_vector.php");
			submenu00.addItem("9300 vector","product-lenze9300_vector.php");
			submenu00.addItem("8200 motec","product-lenze8200_motec.php");

		//Servo systems
		var submenu00 = submenu0.addMenu(submenu0.items[12]);
			submenu00.addItem("9400 Servo Drives","product-lenze9400_Servo_Drives.php");
			submenu00.addItem("Servo inverters","product-lenzeServo_inverters.php");
			submenu00.addItem("Prepared Solutions","product-lenzePrepared_Solutions.php");
			submenu00.addItem("Servo motors","product-lenzeServo_motors.php");
			submenu00.addItem("Servo geared motors","product-lenzeServo_geared_motors.php");





				
		
		
		//menu actech
		
		var submenu0 = menu1.addMenu(menu1.items[1]);
		submenu0.addItem("SMD", "product-lenzeau1.php");
		submenu0.addItem("MCH", "product-lenzeau4.php");
		submenu0.addItem("MC", "product-lenzeau5.php");
		submenu0.addItem("SMV IP65","product-lenzeSMV_IP65.php");
		submenu0.addItem("smd","product-lenzesmd.php");
				
			/*var submenu00 = submenu0.addMenu(submenu0.items[0]);
			submenu00.addItem("0.27-22kW Smd","product-lenzeau1.php");
			submenu00.addItem("0.25-7.5kW","product-lenzeau2.php");
			submenu00.addItem("3ph.0.37 - 400kW","product-lenzeau3.php");*/
		
		TransMenu.renderAll();
	}
