menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<scr"+"ipt language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/scr"+"ipt>";_d.write(mt)}
effect = "Fade(duration=0.2);Alpha(style=0,opacity=95);Shadow(color='#333333', Direction=135, Strength=5)"

timegap=0		// The time delay for menus to remain visible
followspeed=100		// Follow Scrolling speed
followrate=40		// Follow Scrolling Rate
suboffset_top=6;	// Sub menu offset Top position 
suboffset_left=6;	// Sub menu offset Left position
closeOnClick = true

style1=[		// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"#E8F2FF",		// Mouse Off Font Color
"#4071A3",		// Mouse Off Background Color
"#ffffff",		// Mouse On Font Color
"#FFA800",		// Mouse On Background Color
"White",		// Menu Border Color 
10,			// Font Size in pixels
"normal",		// Font Style (italic or normal)
"Bold",		// Font Weight (bold or normal)
"Verdana, Arial",	// Font Name
6,			// Menu Item Padding
"",			// Sub Menu Image (Leave this blank if not needed)
0,			// 3D Border & Separator bar
"#690000",		// 3D High Color
"#886B6B",		// 3D Low Color
"#FFA800",		// Current Page Item Font Color (leave this blank to disable)
"#23325B",		// Current Page Item Background Color (leave this blank to disable)
"",			// Top Bar image (Leave this blank to disable)
"ffffff",		// Menu Header Font Color (Leave blank if headers are not needed)
"000099",		// Menu Header Background Color (Leave blank if headers are not needed)
"white",		// Menu Item Separator Color
]


addmenu(menu=[		// This is the array that contains your menu properties and details
"mainmenu",		// Menu Name - This is needed in order for the menu to be called
0,			// Menu Top - The Top position of the menu in pixel
32,			// Menu Left - The Left position of the menu in pixels
115,			// Menu Width - Menus width in pixels
0,			// Menu Border Width 
"center",			// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1,			// Properties Array - this is set higher up, as above
1,			// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"left",			// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
,			// Filter - Text variable for setting transitional effects on menu activation - see above for more info
,			// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1, 			// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
,			// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
,			// Position of TOP sub image left:center:right
,			// Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
,			// Right To Left - Used in Hebrew for example. (1=on/0=off)
,			// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,			// ID of the div you want to hide on MouseOver (useful for hiding form elements)
,			// Background image for menu when BGColor set to transparent.
,			// Scrollable Menu
,			// Reserved for future use


// This secion adds the menu categories to the menu script
// 0 is for the width between the first menu  and second menu. If you increease it works like separator between menus

,"&nbsp;&nbsp;&nbsp;Home&nbsp;&nbsp;&nbsp;","show-menu=Home",,"",0
,"&nbsp;&nbsp;&nbsp;About us&nbsp;","show-menu=About",,"",0
,"&nbsp;&nbsp;&nbsp;Products/Services&nbsp;&nbsp;&nbsp;","show-menu=Products",,"",0 
,"&nbsp;&nbsp;&nbsp;Customer-Care&nbsp;&nbsp;","show-menu=Services",,"",0



// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
//  "Now the Menu and Show-menu= are same"


//,"&nbsp;Customer-Support&nbsp;&nbsp;&nbsp;","show-menu=Services",,"",0
,"&nbsp;&nbsp;&nbsp;Downloads&nbsp;&nbsp;&nbsp;","show-menu=Downloads",,"",0
,"&nbsp;&nbsp;&nbsp;Career&nbsp;Options&nbsp;&nbsp;&nbsp;","show-menu=Career",,"",0
,"&nbsp;&nbsp;&nbsp;Contact&nbsp;&nbsp;&nbsp;","show-menu=Contact",,"",0


// You can hide the menu from being seen by commenting it . Unconnent below to show the menu hide
// ,"&nbsp;&nbsp;&nbsp;Hide</b>&nbsp;&nbsp;&nbsp;","show-menu=hide",,"",0


])

// This is now adding the first sub-Menu item
	
	addmenu(menu=["Home",
	,,150,1,"",style1,,"left",effect,,,,,,,,,,,,,

"&nbsp;Home","http://www.tatacommercial.com/",,"TATA COMMERCIAL",1,
"&nbsp;Contact","http://www.tatacommercial.com/contactus/",,"CONTACT US",1



	])
	
// This is now adding the second sub-Menu item	
	
	addmenu(menu=["About",	
	,,150,1,"",style1,,"left",effect,,,,,,,,,,,,
	,"&nbsp;Profile","http://tatacommercial.com/commercial-automobiles/about-us.htm",,"Profile of Tata Commercial",1
	,"&nbsp;Vision","http://tatacommercial.com/commercial-automobiles/about-us.htm#VISION",,"Company Vision",1
	,"&nbsp;History","http://tatacommercial.com/commercial-automobiles/about-us.htm#HISTORY",,"Company History",1
	,"&nbsp;Directors","http://tatacommercial.com/commercial-automobiles/about-us.htm#DIRECTORS",,"List of Directors",1
	,"&nbsp;JN Group","http://tatacommercial.com/commercial-automobiles/about-us.htm#JNGROUP",,"About JN Group",1
	,"&nbsp;Achivements","http://tatacommercial.com/commercial-automobiles/about-us.htm#ACHIEVEMENTS",,"Our achivements",1
	,"&nbsp;Gallery","http://tatacommercial.com/commercial-automobiles/about-us.htm#GALLERY",,"Image Gallery ",1


	])




	
	addmenu(menu=["Products",
	// 250  below is the width of the sub menu
	//  1  below is for the border of the sub menu box
	,,250,1,"",style1,,"left",effect,,,,,,,,,,,,	
	
	// 1 below is for the border width of the sub menu item
	// Menu below has no URL as it is not  given within "

	,"&nbsp;Commercial Vehicles","",,,1
	,"&nbsp;Sales","http://tatacommercial.com/commercial-automobiles/sales.htm",,,1
		,"&nbsp;>>M&HCV","http://tatacommercial.com/commercial-automobiles/download-mhcv.htm",,,1
		,"&nbsp;>>BUSES","http://tatacommercial.com/commercial-automobiles/download-buses.htm",,,1
		,"&nbsp;>>LCV/ICV","http://tatacommercial.com/commercial-automobiles/download-lcv-icv.htm",,,1
		,"&nbsp;>>SCV","http://tatacommercial.com/commercial-automobiles/download-scv.htm",,,1
		,"&nbsp;>>SCB","http://tatacommercial.com/commercial-automobiles/download-scb.htm",,,1
	,"&nbsp;Hire Purchase","http://tatacommercial.com/commercial-automobiles/hire-purchase.htm",,,1
	,"&nbsp;Refinance","http://tatacommercial.com/commercial-automobiles/re-finance.htm",,,1	
	,"&nbsp;Registraton/Insurance","http://tatacommercial.com/commercial-automobiles/registration-insurance.htm",,,1	
	,"&nbsp;Passenger Cars","http://tatacommercial.com/commercial-automobiles/tata-passenger-cars.htm",,,1	
	
	])
	

	addmenu(menu=["Services",
	,,225,1,"",style1,,"left",effect,,,,,,,,,,,,
	,"&nbsp;Commercial Vehicles","",,,1
	,"&nbsp;>> Workshop","http://tatacommercial.com/commercial-automobiles/customer-support.htm",,,1
	,"&nbsp;>> Spare Parts","http://tatacommercial.com/commercial-automobiles/customer-support.htm#SPARES",,,1
	,"&nbsp;>> Recon","http://tatacommercial.com/commercial-automobiles/customer-support.htm#RECON",,,1
	,"&nbsp;>> AMC","http://tatacommercial.com/commercial-automobiles/customer-support.htm#AMC",,,1
	,"&nbsp;Passenger Cars","http://tatacommercial.com/commercial-automobiles/tata-passenger-cars.htm",,,1
	,"&nbsp;>> Workshop","http://tatacommercial.com/commercial-automobiles/tata-passenger-cars.htm#WORKSHOP",,,1
	,"&nbsp;>> Spare Parts","http://tatacommercial.com/commercial-automobiles/tata-passenger-cars.htm#SPARES",,,1
	,"&nbsp;Insurance","http://tatacommercial.com/commercial-automobiles/registration-insurance.htm",,,1
	
	])
	

	addmenu(menu=["Downloads",
	,,150,1,"",style1,,"left",effect,,,,,,,,,,,,
	,"&nbsp;Product Brochure","",,,1	
	,"&nbsp;>&nbsp;&nbsp;&nbsp;&nbsp;M&HCV","http://tatacommercial.com/commercial-automobiles/gallery-mhcv.htm",,,1
	,"&nbsp;>&nbsp;&nbsp;&nbsp;&nbsp;BUSES","http://tatacommercial.com/commercial-automobiles/download-buses.htm#DOWNLOAD",,,1
	,"&nbsp;>&nbsp;&nbsp;&nbsp;&nbsp;LCV/ICV","http://tatacommercial.com/commercial-automobiles/download-lcv-icv.htm#DOWNLOAD",,,1
	,"&nbsp;>&nbsp;&nbsp;&nbsp;&nbsp;SCV","http://tatacommercial.com/commercial-automobiles/download-scv.htm#DOWNLOAD",,,1
	,"&nbsp;>&nbsp;&nbsp;&nbsp;&nbsp;SCB","http://tatacommercial.com/commercial-automobiles/download-scb.htm#DOWNLOAD",,,1


	])
	


	addmenu(menu=["Career",
	,,150,1,"",style1,,"left",effect,,,,,,,,,,,,	
	,"&nbsp;Commercial Culture","http://tatacommercial.com/commercial-automobiles/career-oppertunities.htm " ,,,1
	,"&nbsp;Growth Oppertunities","http://tatacommercial.com/commercial-automobiles/career-oppertunities.htm#GROWTH " ,,,1	
	,"&nbsp;Current Openings","http://tatacommercial.com/commercial-automobiles/career-oppertunities.htm#OPENINGS " ,,,1	
	,"&nbsp;>> Application Form","http://tatacommercial.com/commercial-automobiles/career-oppertunities.htm " ,,,1	
	


	])	

	addmenu(menu=["Contact",
	,,150,1,"",style1,,"left",effect,,,,,,,,,,,,
	,"&nbsp;Address","http://tatacommercial.com/commercial-automobiles/contactus.asp",,,1
	,"&nbsp;Location","http://tatacommercial.com/commercial-automobiles/contactus.asp#LOCATION",,,1
	,"&nbsp;Feedback Form","http://tatacommercial.com/commercial-automobiles/contactus.asp#FEEDBACK",,,1

		
	])
		

dumpmenus()
