
	// 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("aboutus"));
		menu1.addItem("Profile", "ourprofile.html");      								 // menu1.addItem("<img src='111.gif'>", "http://www");  to use image as menu item
		menu1.addItem("Our Promise", "ourpromise.html"); // send no URL if nothing should happen onclick
		menu1.addItem("Core Business Areas", "corebusiness.html");
		menu1.addItem("Competitive Edge", "competitive.html");
		menu1.addItem("Secure Power Solutions", "securepower.html");
		menu1.addItem("Power Management Solutions", "powermanagement.html");
		menu1.addItem("Critical Facilities Solutions", "criticalfacilities.html");

			//var submenu0 = menu1.addMenu(menu1.items[1]);
			//submenu0.addItem("born", "http://www");
			
//==================================================================================================   						
				//one more level if needed.
//==================================================================================================
				// var submenu00 = submenu0.addMenu(submenu0.items[0]);
  				// submenu00.addItem("day");
  				// submenu00.addItem("place");			

			//submenu0.addItem("young", "http://www");
			//submenu0.addItem("adolecent", "http://www");
			//submenu0.addItem("present", "http://www");
			//submenu0.addItem("future", "http://www");
			

		//==================================================================================================

		//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("products"));
		menu2.addItem("Single Phase UPS", "");

			var submenu1 = menu2.addMenu(menu2.items[0]);
			submenu1.addItem("Vline", "vline.html");
			submenu1.addItem("Vnet", "vnet.html");
			submenu1.addItem("Vnet Rackmount", "vnetrm.html");
			submenu1.addItem("Vplus 700va to 3kva", "vplus700.html");
			submenu1.addItem("Vplus 5kva to 15kva", "vplus5k.html");


//		menu2.addItem("Three Phase UPS", "");

			//var submenu1 = menu2.addMenu(menu2.items[1]);
			//submenu1.addItem("Vmax Mono", "vmaxmono.html");
			//submenu1.addItem("Vmax Delta", "vmaxdelta.html");
			//submenu1.addItem("Vmax Mega", "vmaxmega.html");

		menu2.addItem("Three Phase (Transformerless) UPS", "");
		
			var submenu2 = menu2.addMenu(menu2.items[1]);
			submenu2.addItem("Vprime 10kva to 40kva", "vprime10k.html");
			submenu2.addItem("Vprime 60kva to 120kva", "vprime60k.html");
			submenu2.addItem("Vprime 160kva to 400kva", "vprime160k.html");
	
		
		
//		menu2.addItem("Dynamic UPS", "dups.html");
		menu2.addItem("Cellwatch Battery Monitoring", "bms.html");
		menu2.addItem("Static Transfer Switch", "sts.html");
//		menu2.addItem("Brochure Downloads", "brochures.html");

		//==================================================================================================

		//==================================================================================================
		var menu3 = ms.addMenu(document.getElementById("service"));
		menu3.addItem("Maintenance Contracts", "maintenance.html");
		menu3.addItem("Installation and Commissioning", "installation.html");
		menu3.addItem("Battery Replacement", "battery.html");
		menu3.addItem("Extended Warranty","extended.html");
		menu3.addItem("Power and Harmonic Audit", "powerharmonics.html");
		menu3.addItem("Remote Monitoring Services", "remote.html");
		menu3.addItem("Spare Parts", "spareparts.html");
		menu3.addItem("Product Registration", "registration.html");

		//==================================================================================================

		//==================================================================================================
		var menu4 = ms.addMenu(document.getElementById("news"));
		menu4.addItem("News Archive", "newsarchive.html");
		menu4.addItem("Photo Gallery", "");
		
			var submenu1 = menu4.addMenu(menu4.items[1]);
//			submenu1.addItem("DUPS Launch", "gallerydupslaunch.html");
			submenu1.addItem("Product Launch - Malaysia", "gallerymsialaunch.html");
			submenu1.addItem("Product Launch - Singapore", "gallerysglaunch.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();
	}