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 = -1; TheHref.offsetParent; TheHref = TheHref.offsetParent )
		{
			posX += TheHref.offsetLeft;
			posY += TheHref.offsetTop;
	    }
	}

	
	if(TheLayer.indexOf("_")==-1)
		document.getElementById(TheLayer).style.left=posX+1+"px"
	else
		document.getElementById(TheLayer).style.left=posX+1+TheWidth+"px"
		
	
		TheAdj=22
		TheAdjtop=12			

	
		
	if(navigator.appVersion.indexOf("MSIE")!=-1)
	{

					TheAdj=23
					TheAdjtop=25
	
	}
	
	
	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:120px; z-index:1;visibility:hidden; background-color: #ffffff; layer-background-color: #ffffff; border: 1px none #ffffff;' 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:#ffffff 1px solid;' bgcolor='#ffffff'>  <tr class='subheadertxt'> ")
document.write("<td height='16' onMouseOver=this.className='subheadertxt_O' onClick=Goto('aboutus.htm') style='border-bottom:1px solid #ffffff;'  onmouseout=this.className='subheadertxt' >Corporate Profile</td></tr>")
//document.write(" <tr class='subheadertxt'><td height='16' onMouseOver=this.className='subheadertxt_O' onClick=Goto('aboutus_vismis.htm') style='border-bottom:1px solid #ffffff;'  onmouseout=this.className='subheadertxt'>Vision & Mission</td></tr>")
document.write(" <tr class='subheadertxt'><td height='16' onMouseOver=this.className='subheadertxt_O' onClick=Goto('aboutus_boarddir.jsp') style='border-bottom:1px solid #ffffff;'  onmouseout=this.className='subheadertxt'>Board of Directors</td></tr>")
document.write(" <tr class='subheadertxt'><td height='16' onMouseOver=this.className='subheadertxt_O' onClick=Goto('aboutus_group.htm') style='border-bottom:1px solid #ffffff;'  onmouseout=this.className='subheadertxt'>Group of Companies</td></tr>")
document.write(" <tr class='subheadertxt'><td height='16' onMouseOver=this.className='subheadertxt_O' onClick=Goto('aboutus_srmng.jsp') style='border-bottom:1px solid #ffffff;'  onmouseout=this.className='subheadertxt'>Senior Management</td></tr>")
document.write("<tr class='subheadertxt'><td height='16' onMouseOver=this.className='subheadertxt_O' onClick=Goto('aboutus_annual05.jsp')  style='border-bottom:1px solid #ffffff;' onmouseout=this.className='subheadertxt'>Annual Report </td></tr></table></div>")

//Menu2
document.write("<div id='Layer2' style='position:absolute; left:10px; top:50px; width:120px; z-index:1;visibility:hidden; background-color: #ffffff; layer-background-color: #ffffff; border: 1px none #ffffff;' 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:#ffffff 1px solid;' bgcolor='#ffffff'>  <tr class='subheadertxt'> ")
document.write("<td height='16' onMouseOver=this.className='subheadertxt_O' onClick=Goto('careers.jsp') style='border-bottom:1px solid #ffffff;'  onmouseout=this.className='subheadertxt' >Current Openings</td></tr>")
document.write("<tr class='subheadertxt'><td height='16' onMouseOver=this.className='subheadertxt_O' onClick=Goto('applyonline2.jsp')  style='border-bottom:1px solid #ffffff;' onmouseout=this.className='subheadertxt'>Apply Online</td></tr></table></div>")
																												






TheDivs=window.document.getElementsByTagName('Div')


function showPorduct(theHref)
{
	if(theHref!="0")	
	document.location=theHref
}