menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}

if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
	effect = "Fade(duration=0.2);Alpha(style=0,opacity=100);Shadow(color='#1F80F1', Direction=135, Strength=0)"
}
else
{
	effect = "Shadow(color='#1F80F1', Direction=135, Strength=0)" // Stop IE5.5 bug when using more than one filter
}

/*function getWindowWidth()
{
	var isMinNS4=(navigator.appName.indexOf("Netscape")>=0&&parseFloat(navigator.appVersion)>=4)?1:0;
	var isMinIE4=(document.all)?1:0;
	var isMinIE5=(isMinIE4 && navigator.appVersion.indexOf("MSIE 5.")>= 0||isMinIE4&& navigator.appVersion.indexOf("MSIE 6.")>=0)?1:0;
	if(isMinNS4)
		return document.width;
	if(isMinIE4)
		return window.document.body.scrollWidth;
	return-1;
}*/

timegap=500		// The time delay for menus to remain visible
followspeed=5		// Follow Scrolling speed
followrate=40		// Follow Scrolling Rate
suboffset_top=-5;		// Sub menu offset Top position 
suboffset_left=10;		// Sub menu offset Left position
if( typeof( window.width ) == 'number' ) {
    //Non-IE
    myWidth = window.width;
  } else if( document.documentElement &&
      ( document.documentElement.scrollWidth) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.scrollWidth;
  } else if( document.body && ( document.body.scrollWidth) ) {
    //IE 4 compatible
    myWidth = document.body.scrollWidth;
  }
	if(myWidth<=780)
		menleft=170;
	else
		menleft=170;
	
	
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.
// "978672",					// Mouse Off Font Color
"ffffff",					// Mouse Off Font Color
"1F80F1",				// Mouse Off Background Color
"000000",				// Mouse On Font Color
"#1F80F1",				// Mouse On Background Color
"#1F80F1",				// Menu Border Color 
12,						// Font Size in pixels
"normal",				// Font Style (italic or normal)
"bold",					// Font Weight (bold or normal)
"Arial",		// Font Name
3,						// Menu Item Padding
"",			// Sub Menu Image (Leave this blank if not needed)
"1F80F1",						// 3D Border & Separator bar
"1F80F1",				// 3D High Color
"1F80F1",				// 3D Low Color
"",				// Current Page Item Font Color (leave this blank to disable)
"",					// Current Page Item Background Color (leave this blank to disable)
"",			// Top Bar image (Leave this blank to disable)
"97B6A9",				// Menu Header Font Color (Leave blank if headers are not needed)
"",				// Menu Header Background Color (Leave blank if headers are not needed)
]
style2=[				// 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.
// "978672",					// Mouse Off Font Color
"ffffff",					// Mouse Off Font Color
"1F80F1",				// Mouse Off Background Color
"000000",				// Mouse On Font Color
"#1F80F1",				// Mouse On Background Color
"#1F80F1",				// Menu Border Color 
12,						// Font Size in pixels
"normal",				// Font Style (italic or normal)
"bold",					// Font Weight (bold or normal)
"Arial",		// Font Name
3,						// Menu Item Padding
"",			// Sub Menu Image (Leave this blank if not needed)
"#ffffff",						// 3D Border & Separator bar
"#ffffff",				// 3D High Color
"#ffffff",				// 3D Low Color
"",				// Current Page Item Font Color (leave this blank to disable)
"",					// Current Page Item Background Color (leave this blank to disable)
"",			// Top Bar image (Leave this blank to disable)
"97B6A9",				// Menu Header Font Color (Leave blank if headers are not needed)
"",				// Menu Header Background Color (Leave blank if headers are not needed)
]
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
197,					// Menu Top - The Top position of the menu in pixels
182,				// Menu Left - The Left position of the menu in pixels
115,					// Menu Width - Menus width in pixels
1,					// Menu Border Width 
,					// 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)
"centre",				// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
effect,				// 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)
,					// Reserved for future use
,					// Reserved for future use
,					// Reserved for future use

,"&nbsp;Home ", "index.html",,,1
,"&nbsp;About us ", "aboutus.htm",,,1
,"&nbsp;Products&nbsp;","show-menu=a",,"Products",1
,"&nbsp;Quality Policy&nbsp;", "quality.htm",,,1
,"&nbsp;Tech Info&nbsp;", "pipe_chem.htm",,,1
,"&nbsp;Contact Us&nbsp;", "contact.htm",,,1
])


	addmenu(menu=["a",
	,,180,1,"",style2,,"left",effect,,,,,,,,,,,,
	
,"&nbsp;	Stainless Steel &raquo; &nbsp;","show-menu=b",,"Technical Details",1
,"&nbsp;	Nickel Alloy &raquo; &nbsp;","show-menu=c",,"Technical Details",1
,"&nbsp;	Non Ferrous Metal &raquo; &nbsp;","show-menu=d",,"Technical Details",1
,"&nbsp;	Alloy Steel &raquo; &nbsp;","show-menu=e",,"Technical Details",1
,"&nbsp;	Carbon Steel &raquo; &nbsp;","show-menu=f",,"Technical Details",1	
	])
	
	addmenu(menu=["b",
	,,190,1,"",style2,,"left",effect,,,,,,,,,,,,
	
,"&nbsp;	Pipes & Tubes &nbsp;", "ss-pipes.htm",,,1
,"&nbsp;	Sheets & Plates &nbsp;", "ss-sheets.htm",,,1
,"&nbsp;	Rods & Bars &nbsp;", "ss-bar.htm",,,1
,"&nbsp;	Pipe Fittings &nbsp;", "ss-fittings.htm",,,1
,"&nbsp;	Flanges &nbsp;", "ss-flanges.htm",,,1
,"&nbsp;	Fasteners &nbsp;", "ss-fasteners.htm",,,1
,"&nbsp;	Customised Fabrication &nbsp;", "ss-customised.htm",,,1
,"&nbsp;	Wire &nbsp;", "ss-wire.htm",,,1 
	])
	
	addmenu(menu=["c",
	,,160,1,"",style2,,"left",effect,,,,,,,,,,,,
,"&nbsp;	Pipes & Tubes &nbsp;", "na-pipes.htm",,,1
,"&nbsp;	Sheets & Plates &nbsp;", "na-sheets.htm",,,1
,"&nbsp;	Rods & Bars &nbsp;", "na-bar.htm",,,1
,"&nbsp;	Pipe Fittings &nbsp;", "na-fittings.htm",,,1
,"&nbsp;	Flanges &nbsp;", "na-flanges.htm",,,1
,"&nbsp;	Fasteners &nbsp;", "na-fasteners.htm",,,1
,"&nbsp;	Customised Fabrication &nbsp;", "na-customised.htm",,,1
,"&nbsp;	Wire &nbsp;", "na-wire.htm",,,1 
	])
	
	
	addmenu(menu=["d",
	,,160,1,"",style2,,"left",effect,,,,,,,,,,,,
	
,"&nbsp;	Pipes & Tubes &nbsp;", "nf-pipes.htm",,,1
,"&nbsp;	Sheets & Plates &nbsp;", "nf-sheets.htm",,,1
,"&nbsp;	Rods & Bars &nbsp;", "nf-bar.htm",,,1
,"&nbsp;	Pipe Fittings &nbsp;", "nf-fittings.htm",,,1
,"&nbsp;	Flanges &nbsp;", "nf-flanges.htm",,,1
,"&nbsp;	Fasteners &nbsp;", "nf-fasteners.htm",,,1
,"&nbsp;	Customised Fabrication &nbsp;", "nf-customised.htm",,,1
,"&nbsp;	Wire &nbsp;", "nf-wire.htm",,,1 
	])
			
	
	addmenu(menu=["e",
		,,190,1,"",style2,,"left",effect,,,,,,,,,,,,
	
,"&nbsp;	Pipes & Tubes &nbsp;", "as-pipes.htm",,,1
,"&nbsp;	Sheets & Plates &nbsp;", "as-sheets.htm",,,1
,"&nbsp;	Rods & Bars &nbsp;", "as-bar.htm",,,1
,"&nbsp;	Pipe Fittings &nbsp;", "as-fittings.htm",,,1
,"&nbsp;	Flanges &nbsp;", "as-flanges.htm",,,1
,"&nbsp;	Fasteners &nbsp;", "as-fasteners.htm",,,1
,"&nbsp;	Customised Fabrication &nbsp;", "as-customised.htm",,,1
,"&nbsp;	Wire &nbsp;", "as-wire.htm",,,1 	
	])
	
	addmenu(menu=["i",
	,,150,1,"",style1,,"left",effect,,,,,,,,,,,,
	,"&nbsp;History", "aboutus.htm",,,1
	,"&nbsp;Vision", "vision.htm",,,1
		])
	
	
	
	addmenu(menu=["f",
	,,210,1,"",style2,,"left",effect,,,,,,,,,,,,
,"&nbsp;	Pipes & Tubes &nbsp;", "cs-pipes.htm",,,1
,"&nbsp;	Sheets & Plates &nbsp;", "cs-sheets.htm",,,1
,"&nbsp;	Rods & Bars &nbsp;", "cs-bar.htm",,,1
,"&nbsp;	Pipe Fittings &nbsp;", "cs-fittings.htm",,,1
,"&nbsp;	Flanges &nbsp;", "cs-flanges.htm",,,1
,"&nbsp;	Fasteners &nbsp;", "cs-fasteners.htm",,,1
,"&nbsp;	Customised Fabrication &nbsp;", "cs-customised.htm",,,1
,"&nbsp;	Wire &nbsp;", "cs-wire.htm",,,1 
	])
	
	

	addmenu(menu=["g",
	,,150,1,"",style1,,"left",effect,,,,,,,,,,,,
,"&nbsp;	Madanapalli White", "granite_madanapalli_white.html#1",,,1
,"&nbsp;	Madura Gold", "granite_madura_gold.html#1",,,1
,"&nbsp;	Maple Red", "granite_maple_red.html#1",,,1
,"&nbsp;	Merry Gold", "granite_merry_gold.html#1",,,1
,"&nbsp;	Mudgal Grey", "granite_mudgal_grey.html#1",,,1
,"&nbsp;	Mukalsar Green", "granite_mukalsar_green.html#1",,,1
,"&nbsp;	Nagercoil Green", "granite_nagercoil_green.html#1",,,1
,"&nbsp;	Nagina Green", "granite_nagina_green.html#1",,,1
,"&nbsp;	Orissa Blue", "granite_orissa_blue.html#1",,,1
,"&nbsp;	Paradiso", "granite_Paradiso.html#1",,,1
,"&nbsp;	Pista Green", "granite_pista_green.html#1",,,1
,"&nbsp;	Platinum White", "granite_platinum_white.html#1",,,1
,"&nbsp;	Rakhi Green", "granite_rakhi_green.html#1",,,1
,"&nbsp;	Raniwara Yellow", "granite_raniwara_yellow.html#1",,,1
,"&nbsp;	Raw Silk Ivory", "granite_raw_silk_ivory.html#1",,,1
,"&nbsp;	Raw Silk", "granite_raw_silk.html#1",,,1
,"&nbsp;	Red Multi", "granite_red_multi.html#1",,,1
,"&nbsp;	Red Porphery", "granite_red_porphery.html#1",,,1
,"&nbsp;	Rosy Pink", "granite_rosy_pink.html#1",,,1
,"&nbsp;	Royal Cream", "granite_royal_cream.html#1",,,1
	,"&nbsp;&nbsp;More -->> &nbsp;","show-menu=h",,"More",1
	])	
	
	

	addmenu(menu=["h",
	,,180,1,"",style1,,"left",effect,,,,,,,,,,,,
,"&nbsp;	Ruby Red", "granite_ruby_red.html#1",,,1
,"&nbsp;	Sable Brown", "granite_sable_brown.html#1",,,1
,"&nbsp;	Salt Pepper", "granite_salt_pepper.html#1",,,1
,"&nbsp;	Sapphire Blue", "granite_sapphire_blue.html#1",,,1
,"&nbsp;	Sapphire Brown", "granite_sapphire_brown.html#1",,,1
,"&nbsp;	Seaweed Green", "granite_Seaweed_green.html#1",,,1
,"&nbsp;	Sindhoor Red", "granite_sindhoor_red.html#1",,,1
,"&nbsp;	Siragrey", "granite_siragrey.html#1",,,1
,"&nbsp;	Siva Gold", "granite_siva_gold.html#1",,,1
,"&nbsp;	Soft Green", "granite_soft_green.html#1",,,1
,"&nbsp;	Steel Grey", "granite_steel_grey.html#1",,,1
,"&nbsp;	Tan Brown", "granite_tan_brown.html#1",,,1
,"&nbsp;	Tiger skin", "granite_tiger_skin.html#1",,,1
,"&nbsp;	Tropical Green", "granite_tropical_green.html#1",,,1
,"&nbsp;	Viscon White", "granite_viscon_white.html#1",,,1
,"&nbsp;	Vizag Blue", "granite_vizag_blue.html#1",,,1
,"&nbsp;	Vyara Gold", "granite_vyara_gold.html#1",,,1
,"&nbsp;	Vyara Juprana", "granite_vyara_juprana.html#1",,,1
,"&nbsp;	Warangal Black", "granite_warangal_Black.html#1",,,1
,"&nbsp;	Yellow Fantasy", "granite_yellow_fantasy.html#1",,,1
	])

dumpmenus()
window.onresize=navBarReload;
function navBarReload()
{
		window.location.href=window.location.href;
}