var timer=new Array()
function ShowDiv(TheLayer,TheHref)
{

if(document.getElementById(TheLayer)==null)
		return

	if(document.getElementById(TheLayer).offsetHeight<10)
		return

	if(document.getElementById(TheLayer).style.visibility=="visible")
		return false

	TheWidth=TheHref.offsetWidth
	if(TheHref.offsetParent)
	{
    	for( var posX = -1, posY = -10; TheHref.offsetParent; TheHref = TheHref.offsetParent )
		{
			posX += TheHref.offsetLeft;
			posY += TheHref.offsetTop;
	    }
	}

	
	if(TheLayer.indexOf("_")==-1)
		document.getElementById(TheLayer).style.left=posX+235+"px"
	else
		document.getElementById(TheLayer).style.left=posX+235+TheWidth+"px"
		
	if(TheLayer=="Layer4")	
	{
		TheAdj=22
		TheAdjtop=-50			
	}
	else
	{
		TheAdj=22
		TheAdjtop=-10			
	}
	
	
		
	if(navigator.appVersion.indexOf("MSIE")!=-1)
	{
		if(TheLayer=="Layer4")	
			{
				TheAdj=22
				TheAdjtop=-32			
			}
			else
			{
					TheAdj=22
					TheAdjtop=10
			}
	}
	
	
	if(TheLayer.indexOf("_")==-1)
		document.getElementById(TheLayer).style.top=posY+TheAdj+"px"
	else
		document.getElementById(TheLayer).style.top=posY+TheAdjtop+"px"
		
	document.getElementById(TheLayer).style.top=posY+TheAdjtop+"px"
	
	document.getElementById(TheLayer).style.visibility="visible"

	MainLayer=TheLayer.replace(/_\d+$/,"")
	HideExcept(MainLayer,TheLayer)
	StopTimer(TheLayer)
}
function HideDiv(TheLayer,TheI)
{
	MainLayer=TheLayer.replace(/_(\d+)/g,"")
	for(i=0;i<TheDivs.length;i++)
	{
		if(TheDivs[i].id.indexOf(MainLayer)!=-1)
		{
			TheDivs[i].style.visibility="hidden"		
			TheDivs[i].style.left="0px"
			TheDivs[i].style.top="0px"
			clearInterval(timer[TheDivs[i].id])
		}
	}
}
function StartTimer(TheLayer)
{
	timer[TheLayer]=setInterval("HideDiv('"+TheLayer+"')",50)
	if(TheLayer.indexOf("_")!=-1)
	{
		StartTimer(TheLayer.replace(/_\d+$/,""))
	}
}
function StopTimer(TheLayer)
{
	MainLayer=TheLayer.replace(/_(\d+)/g,"")
	for(i=0;i<TheDivs.length;i++)
	{
		if(TheDivs[i].id.indexOf(MainLayer)!=-1)
		{
			clearInterval(timer[TheDivs[i].id])
			timer[TheDivs[i].id]=""
		}
	}
}
function Goto(ThePage)
{
	//alert(ThePage)
	location.href=ThePage
}
function HideExcept(TheLayer,TheChild)
{
	SubTrees=TheLayer+"_"
	for(i=0;i<TheDivs.length;i++)
	{
		if(TheDivs[i].id.indexOf(SubTrees)!=-1 && TheDivs[i].id!=TheChild && TheDivs[i].id.indexOf("_")!=-1)
		{
			if(TheDivs[i].id.indexOf(TheChild)==-1 || TheChild=="")
			{
				TheDivs[i].style.visibility="hidden"
				TheDivs[i].style.left="0px"
				TheDivs[i].style.top="0px"
				clearInterval(timer[TheDivs[i].id])
			}
		}
	}
}
function HideAll()
{
	for(i=0;i<TheDivs.length;i++)
	{
		if(TheDivs[i].id.indexOf("Layer")!=-1)
		{
			TheDivs[i].style.visibility="hidden"
			clearInterval(timer[TheDivs[i].id])
			timer[TheDivs[i].id]=""
		}
	}
}


//Menu items

//Menu1
document.write("<div id='Layer1' style='position:absolute; left:10px; top:50px; width:234px; z-index:1;visibility:hidden; background-color: #ffffff; layer-background-color: #ffffff; border: 1px none #DDE4FB;' onMouseOver='StopTimer(this.id)' onMouseOut='StartTimer(this.id)'>")
document.write("<table width='100%' border='0' cellpadding='3' cellspacing='0' style='cursor:pointer;cursor:hand;border:#999999 1px solid;' bgcolor='#ffffff'><tr class='subheadertxt'> ")
document.write("<td height='25' onMouseOver=this.className='subheadertxt_O' onClick=Goto('pro_ltlimitedfinal.asp') style='border-bottom:1px solid #999999;'  onmouseout=this.className='subheadertxt' >LARSEN&nbsp;&&nbsp;TOUBRO&nbsp;LIMITED</td></tr>")
document.write("<tr class='subheadertxt'><td height='25' onMouseOver=this.className='subheadertxt_O' onClick=Goto('pro_businessgroup.asp')   onmouseout=this.className='subheadertxt'  >L&T&nbsp;VALVES&nbsp;BUSINESS&nbsp;GROUP</td></tr></table></div>")


//Menu2
document.write("<div id='Layer2' style='position:absolute; left:10px; top:50px; width:234px; z-index:1;visibility:hidden; background-color: #ffffff; layer-background-color: #ffffff; border: 1px none #DDE4FB;' onMouseOver='StopTimer(this.id)' onMouseOut='StartTimer(this.id)'>")
document.write("<table width='100%' border='0' cellpadding='3' cellspacing='0' style='cursor:pointer;cursor:hand;border:#999999 1px solid;' bgcolor='#ffffff'><tr class='subheadertxt'> ")
document.write("<td height='25' onMouseOver=this.className='subheadertxt_O' onClick=Goto('valves_gatemain.asp')  style='border-bottom:1px solid #999999;'  onmouseout=this.className='subheadertxt' >GATE,&nbsp;GLOBE&nbsp;&&nbsp;CHECK&nbsp;VALVES </td></tr>")
document.write("<tr class='subheadertxt'><td height='25' onMouseOver=this.className='subheadertxt_O'  onClick=Goto('valves_ballmain.asp') style='border-bottom:1px solid #999999;'   onmouseout=this.className='subheadertxt'  >PROCESS BALL&nbsp;VALVES</td></tr>")
document.write("<tr class='subheadertxt'><td height='25' onMouseOver=this.className='subheadertxt_O'  onClick=Goto('valves_mainpipeline.asp') style='border-bottom:1px solid #999999;' onmouseout=this.className='subheadertxt'  >PIPELINE&nbsp;BALL&nbsp;VALVES</td></tr>")
document.write("<tr class='subheadertxt'><td height='25' onMouseOver=this.className='subheadertxt_O'  onClick=Goto('valves_tripleoffset_valve.asp')   onmouseout=this.className='subheadertxt'  >TRIPLE-OFFSET&nbsp;BUTTERFLY&nbsp;VALVES</td></tr></table></div>")

//Menu3
document.write("<div id='Layer3' style='position:absolute; left:10px; top:50px; width:234px; z-index:1;visibility:hidden; background-color: #ffffff; layer-background-color: #ffffff; border: 1px none #DDE4FB;' onMouseOver='StopTimer(this.id)' onMouseOut='StartTimer(this.id)'>")
document.write("<table width='100%' border='0' cellpadding='3' cellspacing='0' style='cursor:pointer;cursor:hand;border:#999999 1px solid;' bgcolor='#ffffff'><tr class='subheadertxt'> ")
document.write("<td height='25' onMouseOver=this.className='subheadertxt_O' onClick=Goto('manufacturing_profile.asp')  style='border-bottom:1px solid #999999;'  onmouseout=this.className='subheadertxt' >AUDCO INDIA LIMITED</td></tr>")
document.write("<tr class='subheadertxt'><td height='25' onMouseOver=this.className='subheadertxt_O'  onClick=Goto('manufacturing_lntchina.asp') style='border-bottom:1px solid #999999;'   onmouseout=this.className='subheadertxt'>L&T (JIANGSU) VALVE CO. LTD.</td></tr></table></div>")

//Menu4
document.write("<div id='Layer4' style='position:absolute; left:10px; top:50px; width:234px; z-index:1;visibility:hidden; background-color: #ffffff; layer-background-color: #ffffff; border: 1px none #DDE4FB;' onMouseOver='StopTimer(this.id)' onMouseOut='StartTimer(this.id)'>")
document.write("<table width='100%' border='0' cellpadding='3' cellspacing='0' style='cursor:pointer;cursor:hand;border:#999999 1px solid;' bgcolor='#ffffff'><tr class='subheadertxt'> ")
document.write("<td height='25' onMouseOver=this.className='subheadertxt_O' onClick=Goto('downloads_certificates.asp')  style='border-bottom:1px solid #999999;'  onmouseout=this.className='subheadertxt' >CERTIFICATES</td></tr>")
document.write("<tr class='subheadertxt'><td height='25' onMouseOver=this.className='subheadertxt_O'  onClick=Goto('downloads_catalogues.asp') style='border-bottom:1px solid #999999;' onmouseout=this.className='subheadertxt'>CATALOGUES</td></tr>")
document.write("<tr class='subheadertxt'><td height='25' onMouseOver=this.className='subheadertxt_O'  onClick=Goto('downloads_ommanauls.asp') onmouseout=this.className='subheadertxt'>O & M&nbsp;MANUALS</td></tr></table></div>")




TheDivs=window.document.getElementsByTagName('Div')


function showPorduct(theHref)
{
	if(theHref!="0")	
	document.location=theHref
}

/*theloc=String(document.location)



if (theloc.indexOf("ltlimitedfinal.htm")!=-1 )
{
	document.getElementById('image1').src="images/profile_on.gif"
}


if (theloc.indexOf("businessgroup.html")!=-1 )
{
	document.getElementById('image1').src="images/profile_on.gif"
}*/









