	// 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 mnuHome = ms.addMenu(document.getElementById("home"));
		mnuHome.addItem("Riteland.com", "index.shtml");

		var mnuProducts = ms.addMenu(document.getElementById("products"));

		<!--- Products Main Menu --->
		mnuProducts.addItem("Controllers", "controllers.shtml");
		mnuProducts.addItem("AC Drives, VFD's & Invertors", "acdrives.shtml");
		mnuProducts.addItem("Servo Motors", "servomotors.shtml");
		mnuProducts.addItem("Servo Drives", "servodrives.shtml");
		mnuProducts.addItem("Encoders", "");
		mnuProducts.addItem("Medium Voltage Switches", "mediumvoltage.shtml");
		mnuProducts.addItem("Low Voltage Industrial Control", "");
		mnuProducts.addItem("Couplings", "couplings.shtml");
		mnuProducts.addItem("Gearboxes", "gearboxes.shtml");
		mnuProducts.addItem("Cool Waterproof Products", "waterproof.shtml");
		mnuProducts.addItem("PLC's", "miceli.shtml");
		mnuProducts.addItem("Spindle Drives", "spindle.shtml");
		mnuProducts.addItem("Stepper Motors", "contact.shtml");
		mnuProducts.addItem("Stepper Drives", "contact.shtml");
		mnuProducts.addItem("HMI's", "contact.shtml");
		mnuProducts.addItem("I/O Modules", "contact.shtml");
		mnuProducts.addItem("AC Motors", "contact.shtml");
		mnuProducts.addItem("Sensors", "contact.shtml");
		mnuProducts.addItem("Safety Automation", "contact.shtml");

		<!--- Controllers --->
		var mnuControllers = mnuProducts.addMenu(mnuProducts.items[0]);
		mnuControllers.addItem("Single Axis Controllers", "singleaxis.shtml");
		mnuControllers.addItem("Multi-Axis Controllers", "multiaxis.shtml");

		var mnuSubSingleAxis = mnuControllers.addMenu(mnuControllers.items[0]);
		mnuSubSingleAxis.addItem("NS600 Sigma II", "ns600.shtml");
		mnuSubSingleAxis.addItem("LEGEND SMC-3010", "smc3010.shtml");
		mnuSubSingleAxis.addItem("NS500 Profibus", "ns500.shtml");
		mnuSubSingleAxis.addItem("MP940 Sigma II", "mp940.shtml");
		mnuSubSingleAxis.addItem("MP940D Sigma II", "mp940d.shtml");
		mnuSubSingleAxis.addItem("NS300 DeviceNet", "ns300.shtml");
		mnuSubSingleAxis.addItem("SMC-2000", "smc2000s.shtml");

		var mnuSubMultiAxis = mnuControllers.addMenu(mnuControllers.items[1]);
		mnuSubMultiAxis.addItem("SMC-4000", "smc4000.shtml");
		mnuSubMultiAxis.addItem("MP-2300", "mp2300.shtml");
		mnuSubMultiAxis.addItem("SMC-2000", "smc2000m.shtml");

		<!--- AC Drives, VFD, Invertor --->
		var mnuDrives = mnuProducts.addMenu(mnuProducts.items[1]);
		mnuDrives.addItem("Industrial AC Drives", "industrial.shtml");
		mnuDrives.addItem("Commercial HVAC Drives", "commercial.shtml");
		mnuDrives.addItem("Spindle Drives", "spindle.shtml");

		<!--- Servo Motors --->
		var mnuMotors = mnuProducts.addMenu(mnuProducts.items[2]);
		mnuMotors.addItem("Rotary Servo Motors", "rotarymotor.shtml");
		mnuMotors.addItem("Linear Servo Motors", "linearmotor.shtml");
		mnuMotors.addItem("Direct Drive Servo Motors", "directdrive.shtml");

		<!--- Servo Drives --->
		var mnuServo = mnuProducts.addMenu(mnuProducts.items[3]);
		mnuServo.addItem("Sigma II SGDH Servo Drive", "sigma2.shtml");
		mnuServo.addItem("LEGEND SGDG Servo Drive", "legend.shtml");
		mnuServo.addItem("Sigma SGDF MINI Servo Drive", "sigmamini.shtml");

		<!--- Encoders --->
		var mnuEncoders = mnuProducts.addMenu(mnuProducts.items[4]);
		mnuEncoders.addItem("Incremental", "");
		mnuEncoders.addItem("Absolute Encoders", "");
		mnuEncoders.addItem("Linear Encoders", "");
		mnuEncoders.addItem("Hand-Wheel", "");
		mnuEncoders.addItem("Handheld Pendant", "");

		var mnuSubIncremental = mnuEncoders.addMenu(mnuEncoders.items[0]);
		mnuSubIncremental.addItem("Size 12", "size12.shtml");
		mnuSubIncremental.addItem("Size 15", "size15.shtml");
		mnuSubIncremental.addItem("Size 20", "size20.shtml");
		mnuSubIncremental.addItem("Size 25", "size25.shtml");
		mnuSubIncremental.addItem("Metric OEM Solid Shaft", "solidshaft.shtml");
		mnuSubIncremental.addItem("Metric Spindle for CNC", "metricspindle.shtml");
		mnuSubIncremental.addItem("Cube 2.25inch", "cube225.shtml");
		mnuSubIncremental.addItem("Size 30 Wheeled", "size30wheeled.shtml");
		mnuSubIncremental.addItem("Hollow Shaft 1.5inch Thickness", "hollowshaft.shtml");
		mnuSubIncremental.addItem("Fully Enclosed w/Hollow Shaft", "enclosedhollow.shtml");
		mnuSubIncremental.addItem("Size 20 Hollow Shaft-Thru-Hub", "size20hollow.shtml");
		mnuSubIncremental.addItem("Size 25 Solid Shaft", "size25solidshaft.shtml");

		var mnuSubAbsolute = mnuEncoders.addMenu(mnuEncoders.items[1]);
		mnuSubAbsolute.addItem("Single Turn", "singleturn.shtml");

		var mnuSubLinear = mnuEncoders.addMenu(mnuEncoders.items[2]);
		mnuSubLinear.addItem("Module&Strips", "modulestrips.shtml");
		mnuSubLinear.addItem("Fully Enclosed", "fullyenclosed.shtml");

		var mnuSubHandWheel = mnuEncoders.addMenu(mnuEncoders.items[3]);
		mnuSubHandWheel.addItem("Size 30", "size30.shtml");

		var mnuSubHandheld = mnuEncoders.addMenu(mnuEncoders.items[4]);
		mnuSubHandheld.addItem("CNC Applications w/E-Stop", "cncestop.shtml");
		mnuSubHandheld.addItem("CNC Applications w/o E-Stop", "cncnoestop.shtml");

		<!--- Medium Voltage Switches --->
		var mnuMediumVoltage = mnuProducts.addMenu(mnuProducts.items[5]);
		mnuMediumVoltage.addItem("MV Load Break Switch", "loadbreak.shtml");
		mnuMediumVoltage.addItem("MV Circuit Breaker", "circuitbreak.shtml");
		mnuMediumVoltage.addItem("MV Contactor", "contactor.shtml");

		var mnuSubLoadBreak = mnuMediumVoltage.addMenu(mnuMediumVoltage.items[0]);
		mnuSubLoadBreak.addItem("Pole Mount", "pole.shtml");
		mnuSubLoadBreak.addItem("Pad Mount", "pad.shtml");
		mnuSubLoadBreak.addItem("Submersible", "submersible.shtml");

		<!--- Low Voltage Industrial Control --->
		var mnuLowVoltage = mnuProducts.addMenu(mnuProducts.items[6]);
		mnuLowVoltage.addItem("Bestact Reed Element", "bestact.shtml");
		mnuLowVoltage.addItem("I-O PCB Relays", "iopcbrelay.shtml");
		mnuLowVoltage.addItem("Multi-Pole Relays", "multipolerelay.shtml");
		mnuLowVoltage.addItem("Limit Switches", "limitswitch.shtml");
		mnuLowVoltage.addItem("Proximity Switches", "proximityswitch.shtml");
		mnuLowVoltage.addItem("Push-Button Switches", "pushbuttonswitch.shtml");

		<!--- Services Main Menu --->
		var mnuServices = ms.addMenu(document.getElementById("services"));
		mnuServices.addItem("Technical Services", "tech.shtml");
		mnuServices.addItem("Onsite Support", "onsite.shtml");
		mnuServices.addItem("Systems Integration", "integrate.shtml");
		mnuServices.addItem("CAD Drawings", "contact.shtml");

		<!--- Packaging Menu --->
		var mnuPackaging = ms.addMenu(document.getElementById("packaging"));
		mnuPackaging.addItem("Horizontal Packaging Systems", "horizontal.shtml");
		mnuPackaging.addItem("Vertical Packaging Systems", "vertical.shtml");
		mnuPackaging.addItem("Sealers", "sealers.shtml");

		var mnuHorizontal = mnuPackaging.addMenu(mnuPackaging.items[0]);
		mnuHorizontal.addItem("VR8 BASIC", "vr8basic.shtml");
		mnuHorizontal.addItem("VR8 MASTER", "vr8master.shtml");
		mnuHorizontal.addItem("VR-1 BIS G", "vr1bisg.shtml");
		mnuHorizontal.addItem("VR-1 BIS S.4 Versatile", "vr1biss4.shtml");
		mnuHorizontal.addItem("VR-1 BIS TR", "vr1bistr.shtml");
		mnuHorizontal.addItem("VR-1 BIS Versatile", "vr1bis.shtml");
		mnuHorizontal.addItem("VR-1 BIS S.5 Horizontal Flow", "vr1biss5.shtml");
		mnuHorizontal.addItem("VR-2 PG E Electronic", "vr2pge.shtml");
		mnuHorizontal.addItem("VR-7 BLITZ", "vr7blitz.shtml");
		mnuHorizontal.addItem("VR-7 BLITZ Transfer Type", "vr7blitztt.shtml");
		mnuHorizontal.addItem("VR-7", "vr7.shtml");
		mnuHorizontal.addItem("VR-7 Transfer Type", "vr7tt.shtml");
		mnuHorizontal.addItem("VR-7 Millenium", "vr7mil.shtml");
		mnuHorizontal.addItem("VR-8 BOX Electronic", "vr8box.shtml");
		mnuHorizontal.addItem("VR-7 Millenium Transfer Type", "vr7miltt.shtml");

		var mnuVertical = mnuPackaging.addMenu(mnuPackaging.items[1]);
		mnuVertical.addItem("VR15 PLUS Vertical", "vr15plus.shtml");
		mnuVertical.addItem("VR-13 Inclined", "vr13in.shtml");
		mnuVertical.addItem("VR-13 Electro Pneumatic", "vr13.shtml");
		mnuVertical.addItem("VR-15 Vertical", "vr15.shtml");
		mnuVertical.addItem("VR-15 Inclined", "vr15in.shtml");
		mnuVertical.addItem("VR-15 Magnifica", "vr15mag.shtml");

		var mnuSealers = mnuPackaging.addMenu(mnuPackaging.items[2]);
		mnuSealers.addItem("LM 45 COMPAT", "lm45compat.shtml");
		mnuSealers.addItem("LM 45", "lm45.shtml");
		mnuSealers.addItem("LM 50 SC", "lm50sc.shtml");
		mnuSealers.addItem("LM 50 SX", "lm50sx.shtml");
		mnuSealers.addItem("LM 6060", "lm6060.shtml");
		mnuSealers.addItem("LM 6060 COMPAT", "lm6060compat.shtml");

		<!--- Suppliers Main Menu --->
		var mnuSuppliers = ms.addMenu(document.getElementById("suppliers"));
		mnuSuppliers.addItem("Yaskawa Electric", "yaskawa.shtml");
		mnuSuppliers.addItem("Automation SiDirect", "sidirect.shtml");
		mnuSuppliers.addItem("Neugart USA", "neugart.shtml");
		mnuSuppliers.addItem("MicroMo Electronics", "micromo.shtml");
		mnuSuppliers.addItem("Contrex", "contrex.shtml");
		mnuSuppliers.addItem("R+W Coupling", "rw.shtml");
		mnuSuppliers.addItem("Koyo Encoders", "koyo.shtml");
		mnuSuppliers.addItem("Rocom Corp", "rocom.shtml");
		mnuSuppliers.addItem("Elmo Motion Control", "elmo.shtml");
		mnuSuppliers.addItem("Pilz", "pilz.shtml");
		mnuSuppliers.addItem("Miceli Technologies", "miceli.shtml");

		<!--- About Menu --->
		var mnuAbout = ms.addMenu(document.getElementById("about"));
		mnuAbout.addItem("About Riteland Automation, Inc.", "about.shtml");
		mnuAbout.addItem("Testimonials", "saywhat.shtml");
		mnuAbout.addItem("Press Releases", "press.shtml");
		mnuAbout.addItem("Friends of Riteland", "links.shtml");
		mnuAbout.addItem("Contact Us", "contact.shtml");

		//==================================================================================================
		// 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();
	}