// JavaScript Document

function init() {
			//==========================================================================================
			// if supported, initialize TransMenus
			//==========================================================================================
			// Check isSupported() so that menus aren't accidentally sent to non-supporting browsers.
			// This is better than server-side checking because it will also catch browsers which would
			// normally support the menus but have javascript disabled.
			//
			// If supported, call initialize() and then hook whatever image rollover code you need to do
			// to the .onactivate and .ondeactivate events for each menu.
			//==========================================================================================
			if (TransMenu.isSupported()) {
				TransMenu.initialize();

				// hook all the highlight swapping of the main toolbar to menu activation/deactivation
				// instead of simple rollover to get the effect where the button stays hightlit until
				// the menu is closed.
				menu1.onactivate = function() { document.getElementById("abt").className = "hover"; };
				menu1.ondeactivate = function() { document.getElementById("abt").className = ""; };

				menu2.onactivate = function() { document.getElementById("strg").className = "hover"; };
				menu2.ondeactivate = function() { document.getElementById("strg").className = ""; };

				menu3.onactivate = function() { document.getElementById("qty").className = "hover"; };
				menu3.ondeactivate = function() { document.getElementById("qty").className = ""; };

				menu4.onactivate = function() { document.getElementById("prd").className = "hover"; };
				menu4.ondeactivate = function() { document.getElementById("prd").className = ""; };

				menu6.onactivate = function() { document.getElementById("clt").className = "hover"; };
				menu6.ondeactivate = function() { document.getElementById("clt").className = ""; };

				menu5.onactivate = function() { document.getElementById("sln").className = "hover"; };
				menu5.ondeactivate = function() { document.getElementById("sln").className = ""; };
				
				menu7.onactivate = function() { document.getElementById("spt").className = "hover"; };
				menu7.ondeactivate = function() { document.getElementById("spt").className = ""; };
				
				menu8.onactivate = function() { document.getElementById("net").className = "hover"; };
				menu8.ondeactivate = function() { document.getElementById("net").className = ""; };

				menu9.onactivate = function() { document.getElementById("car").className = "hover"; };
				menu9.ondeactivate = function() { document.getElementById("car").className = ""; }; 


				/* document.getElementById("sln").onmouseover = function() {
					ms.hideCurrent();
					this.className = "hover";
				}

				document.getElementById("sln").onmouseout = function() { this.className = ""; } */
			}
		}



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("abt"));
		menu1.addItem("Mission &amp; Vision", "mission_vision.aspx?pg=abt&sub=msn"); 
        menu1.addItem("History", "history.aspx?pg=abt&sub=history");		
		menu1.addItem("Message from CEO", "msg_ceo.aspx?pg=abt&sub=ceo");
		menu1.addItem("Company Profile", "company_profile.aspx?pg=abt&sub=comp");
		menu1.addItem("Management", "management.aspx?pg=abt&sub=mgmt");
		menu1.addItem("Milestones", "milestones.aspx?pg=abt&sub=mstn");
		menu1.addItem("Awards", "awards.aspx?pg=abt&sub=awrd");
		menu1.addItem("Human Resource Development", "hr_development.aspx?pg=abt&sub=hr");
		menu1.addItem("Corporate Social Responsibility", "corp_social_resp.aspx?pg=abt&sub=corp");
		menu1.addItem("Environment Management", "env_mgmt.aspx?pg=abt&sub=env");
		menu1.addItem("Our Logo", "our_logo.aspx?pg=abt&sub=logo");
		menu1.addItem("Corporate Video", "corporate_video.aspx?pg=abt&sub=corpo");		
		
		//==================================================================================================

		//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("strg"));
		menu2.addItem("Manufacturing Excellence", "mfg_excellence.aspx?pg=str&sub=mfg");
		menu2.addItem("Design Engineering", "design_engineering.aspx?pg=str&sub=dsg");
		menu2.addItem("Research &amp; Development", "research_dev.aspx?pg=str&sub=rd");
		menu2.addItem("Quality Assurance", "qlty_assurance.aspx?pg=str&sub=qlty");
		menu2.addItem("Foundry", "foundry.aspx?pg=str&sub=fdry");
		menu2.addItem("Sheet Metal Shop", "sheet_metal_shop.aspx?pg=str&sub=sms");
		menu2.addItem("Paint Shop", "paint_shop.aspx?pg=str&sub=paint");
		menu2.addItem("Manpower", "manpower.aspx?pg=str&sub=manpower");
		menu2.addItem("Training", "training.aspx?pg=str&sub=training");
		menu2.addItem("Technology Centre", "technology_center.aspx?pg=str&sub=techno");
		menu2.addItem("Enterprise Resources Planning", "erp.aspx?pg=str&sub=erp");
		menu2.addItem("EDP", "edp.aspx?pg=str&sub=edp");

		
		//==================================================================================================

		//==================================================================================================
		var menu3 = ms.addMenu(document.getElementById("qty"));
		menu3.addItem("Quality Policy", "quality_policy.aspx?pg=qlty&sub=plcy");
		menu3.addItem("Quality Circle", "quality_circle.aspx?pg=qlty&sub=crcl");
		menu3.addItem("Quality Certifications", "quality_certifications.aspx?pg=qlty&sub=certi");

		
		//==================================================================================================

		//==================================================================================================
		
		var menu4 = ms.addMenu(document.getElementById("prd"));
		menu4.addItem("Turning Centers", "turning_centers.aspx?pg=prd&sub=turning");
		menu4.addItem("Oval Turning Centers", "otc.aspx?pg=prd&sub=otc");
		menu4.addItem("Turn Mill Centers", "tmc.aspx?pg=prd&sub=tmc");
		menu4.addItem("Vertical Machinig Centers", "vmc.aspx?pg=prd&sub=vmc");
		menu4.addItem("VMC with Linear Motors", "vmc_linear_mtr.aspx?pg=prd&sub=vmclinear");
		menu4.addItem("Horizontal Machining Center", "hmc.aspx?pg=prd&sub=hmc");
		menu4.addItem("Vertical Line Machine", "vlm.aspx?pg=prd&sub=vlm");
		menu4.addItem("Jyoti Huron Products", "jyoti_huron_prds.aspx?pg=prd&sub=jhp");
		menu4.addItem("Customer Orientation & Training", "customer_orientation_training.aspx?pg=prd&sub=cust");
		menu4.addItem("Download Brochure","downloads.aspx?pg=dwnld");
		
		//==================================================================================================

 		//==================================================================================================
 		var menu5 = ms.addMenu(document.getElementById("sln"));
		menu5.addItem("Automobile", "automobile.aspx?pg=sln&sub=atmbl");
		menu5.addItem("Aerospace", "aerospace.aspx?pg=sln&sub=arsp");
		menu5.addItem("Allied Machinery", "allied_machinery.aspx?pg=sln&sub=am");
		menu5.addItem("Agriculture", "agriculture.aspx?pg=sln&sub=agri");
		menu5.addItem("Die & Mould Manufacturers", "die_mould_mfg.aspx?pg=sln&sub=dmm");
		menu5.addItem("Diamond & Jewellery Ind.", "diamond_jewellery_ind.aspx?pg=sln&sub=dji");
		menu5.addItem("Defence", "defence.aspx?pg=sln&sub=def");
		menu5.addItem("Medical Equipment", "medical_equipment.aspx?pg=sln&sub=med");
		menu5.addItem("Plastics Processing M/C", "pp_mc.aspx?pg=sln&sub=pp");
		menu5.addItem("Power", "power.aspx?pg=sln&sub=pwr");
		menu5.addItem("Textile Machinery", "textile_machinery.aspx?pg=sln&sub=tm");
		
		var menu6 = ms.addMenu(document.getElementById("clt"));
		menu6.addItem("Valued Customers", "valued_customers.aspx?pg=clnt&sub=val");
		menu6.addItem("Client Speaks", "client_speak.aspx?pg=clnt&sub=speak");
		
		var menu7 = ms.addMenu(document.getElementById("spt"));
		menu7.addItem("Feedback", "feedback.aspx?pg=spt&sub=fdbk");
		menu7.addItem("Report a Problem", "report_prob.aspx?pg=spt&sub=prob");
		
		var menu8 = ms.addMenu(document.getElementById("net"));
		menu8.addItem("Domestic", "network_domestic.aspx?pg=ntw&sub=dom");
		menu8.addItem("International", "network_int.aspx?pg=ntw&sub=int");
		
		var menu9 = ms.addMenu(document.getElementById("car"));
		menu9.addItem("People & Culture", "people_culture.aspx?pg=crr&sub=pc");
		menu9.addItem("Current Openings", "current_openings.aspx?pg=crr&sub=co");

		
		//==================================================================================================

		//==================================================================================================
		// 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();
	}