//this is the image array which loads images 
pth="../../img/ho/new/"
var tmenu
var tmenuval

/*var img=new Array( 
	pth + "hp013.gif" ,
	pth + "hp015.gif" ,
	pth + "hp017.gif" ,
	pth + "hp019.gif" ,
	pth + "hp014.gif" ,
	pth + "hp016.gif" ,
	pth + "hp018.gif" ,
	pth + "hp020.gif" ,
	pth + "hp021.gif" ,
	pth + "hp021.gif" ,
	pth + "hp022.gif" ,
	pth + "hp023.gif" ,
	pth + "hp026.gif" ,
	pth + "hp025.gif" ,
	pth + "hp029.gif"
	)*/

var img=new Array
( 
	pth + "ein_002.gif" ,
	pth + "ehp_04.gif" ,
	pth + "ehp_05.gif" ,
	pth + "ehp_06.gif" ,
	pth + "ehp_07.gif" ,
	pth + "ehp_08.gif" 
)

/*var preloadimg=new Array(img.length)
// loading images
for(i=0;i<img.length;i++)
{
	preloadimg[i]=new Image();
	preloadimg[i].src=img[i];
}*/

function showMenu(opt)
 { 
	if(opt=='1')
	{
	 popmenu1.style.visibility="visible";
	 //document.menu1.src = preloadimg[4].src;
	 //document.lineMnImg1.src = preloadimg[11].src;
	 }
	else if(opt=='2')
	{
	 popmenu2.style.visibility="visible";
	 //document.menu2.src = preloadimg[5].src;
	 //document.lineMnImg1.src = preloadimg[10].src;
	 //document.lineMnImg2.src = preloadimg[11].src;
	 }
	else if(opt=='3')
	{
	 popmenu3.style.visibility="visible";
	 //document.menu3.src = preloadimg[6].src;  
	 //document.lineMnImg2.src = preloadimg[10].src;
	 //document.lineMnImg3.src = preloadimg[11].src;
	}
	else if(opt=='4')
	{
	 popmenu4.style.visibility="visible";
	 //document.menu4.src = preloadimg[7].src;
	 //document.lineMnImg3.src = preloadimg[10].src;
	 //document.lineMnImg4.src = preloadimg[13].src;
	}
	else if(opt=='5')
	{
	 //document.menu5.src = preloadimg[8].src;
	 //document.lineMnImg4.src = preloadimg[10].src;
	}
 }

 function hideMenu(opt)
 { 
	/*if(opt=='1' && tmenuval!='1')
	 {document.menu1.src = preloadimg[0].src;
	 document.lineMnImg1.src = preloadimg[12].src;}
	else if(opt=='2' && tmenuval!='2')
	 {document.menu2.src = preloadimg[1].src;
	 document.lineMnImg1.src = preloadimg[12].src;
	 document.lineMnImg2.src = preloadimg[12].src;}
	else if(opt=='3' && tmenuval!='3')
	 {document.menu3.src = preloadimg[2].src;
	 document.lineMnImg2.src = preloadimg[12].src;
	 document.lineMnImg3.src = preloadimg[12].src;}
	else if(opt=='4' && tmenuval!='4')
	 {document.menu4.src = preloadimg[3].src;
	 document.lineMnImg3.src = preloadimg[12].src;
	 document.lineMnImg4.src = preloadimg[10].src;}
	else if(opt=='5' && tmenuval!='5')
	 {document.menu5.src = preloadimg[8].src;
	 document.lineMnImg4.src = preloadimg[10].src;}*/
	
	popmenu1.style.visibility="hidden";
	popmenu2.style.visibility="hidden";
	popmenu3.style.visibility="hidden";
	popmenu4.style.visibility="hidden";
 }

function tchangeover(lnkB,lnkC)
{
    lnkB.style.backgroundColor="#9E9E9E";
    lnkC.style.color="#d4d4d4";
}

function tchangeout(lnkB,lnkC)
{
	lnkB.style.backgroundColor="#cfcfcf";
    lnkC.style.color="#000000";
}

function mnOpt(sUrl,sSpanId,sText)
{
var sSB=sSpanId + "B"
var sSC=sSpanId + "C"
var sS=""
sS +="<table cellpadding=0 cellspacing=0 border=0 width=100% bgcolor='#cfcfcf'>"
sS +="<tr><td bgcolor='#BEBEBE' height='1'></td></tr>"
sS +="<tr><td valign=middle height=17 class=Company2 id='" + sSB + "' onMouseOver='tchangeover(" + sSB + "," + sSC + ")' onMouseOut='tchangeout(" + sSB + "," + sSC + ")'>"
sS +="<a href='" + sUrl +"' class=tm id='" + sSC + "'>"
sS +="&nbsp;&nbsp;" + sText + "</a>"
sS +="</td></tr>"
sS +="<tr><td bgcolor='#adadad' height='1'></td></tr>"
sS +="</table>"
return sS
}

function openTable(nWidth)
{
var sS="<table border=0 cellpadding=0 cellspacing=0 width=" + nWidth +">"
sS +="<tr>"
sS +="<td valign=top width=" + nWidth + ">"
return sS
}

function cT()
{
var sS=""
sS +="</td>"
sS +="</tr>"
sS +="</table>"
return sS
}


function dispMn1()
{
var sD=""
sD +=openTable('150')
sD +=mnOpt('/company/comp.htm','m1o1','The Company')
sD +=mnOpt('/company/offer.htm','m1o2','Essential Offerings')
sD +=mnOpt('/company/mhome.htm','m1o3','Methodology')
//sD +=mnOpt('/company/skill.htm','m1o4','Core Skill Sets')
sD +=mnOpt('/company/workedot.htm','m1o5','Working with E Dot')
sD +=mnOpt('/company/whyedot.htm','m1o6','Why E Dot ?')
sD +=cT()
return sD
}

function dispMn2()
{
var sD=""
sD +=openTable('200')
//sD +=mnOpt('#','m2o1','Content Management')
//sD +=mnOpt('#','m2o2','E-Business Solutions')
//sD +=mnOpt('#','m2o3','E - Learning')
//sD +=mnOpt('#','m2o4','GUI Design')
//sD +=mnOpt('#','m2o5','Web Site Design/Development')
//sD +=mnOpt('#','m2o6','System Integration')
//sD +=mnOpt('#','m2o7','Custom Software Development')
sD +=mnOpt('/work/CntMgmt.htm','m2o1','Content Management')
sD +=mnOpt('/work/eBusApps.htm','m2o2','E-Business Applications')
sD +=mnOpt('/work/Branding&Identity.htm','m2o3','Branding and Identity')
sD +=mnOpt('/work/GuiDsgn.htm','m2o4','GUI Design')
sD +=mnOpt('/work/WebDsgn.htm','m2o5','Web Site Design/Development')
//sD +=mnOpt('#','m2o6','System Integration')
//sD +=mnOpt('#','m2o7','Custom Software Development')
sD +=cT()
return sD
}

function dispMn3()
{
var sD=""
sD +=openTable('150')
/*sD +=mnOpt('../projects/raft.asp?sub=1','m3o1','Raft International')
sD +=mnOpt('../projects/ebe.asp?sub=2','m3o2','E Businessedge')
sD +=mnOpt('../projects/sunfc.asp?sub=3','m3o3','Sun F&C')
sD +=mnOpt('../projects/schart.asp?sub=4','m3o4','Standard Chartered MF')
sD +=mnOpt('../projects/idbi.asp?sub=5','m3o5','IDBI Capital')
sD +=mnOpt('../projects/mc.asp?sub=6','m3o6','Moneycontrol.com')
sD +=mnOpt('../projects/capm.asp?sub=7','m3o7','CAP-M')*/
sD +=mnOpt('/projects/client/client.htm','m3o1','Client List')
sD +=mnOpt('/projects/web/web.htm','m3o2','Website')
sD +=mnOpt('/projects/identity/Identity.htm','m3o3','Identity')
sD +=mnOpt('/projects/elearn/elearn.htm','m3o4','E-Learning')
//sD +=mnOpt('/projects/application/application.asp','m3o5','Application Deve.')
sD +=mnOpt('/projects/application/application.htm','m3o5','Application Deve.')
sD +=mnOpt('/projects/multimedia/multimedia.htm','m3o6','Multimedia')
sD +=mnOpt('/projects/print/print.htm','m3o7','Print')

sD +=cT()
return sD
}

function dispMn4()
{
var sD=""
sD +=openTable('150')
sD +=mnOpt('/products/ecmf.htm','m4o1','E.CMF')
sD +=mnOpt('#','m4o2','E.Charts')
sD +=mnOpt('/products/emm.htm','m4o3','E.Market Map')
sD +=mnOpt('/products/escrol.htm','m4o4','E.Scroller')
sD +=mnOpt('/products/eplot.htm','m4o5','E.Plotters')
sD +=cT()
return sD
}

function disp_TopMenu(tmenu)
{
var sD=""
tmenu=tmenu
tmenuval=tmenu
sD +="<link REL=STYLESHEET type='text/css' href='../idbi.css'>"
sD +="<Body class= 'topbody'>"
sD +="<table width='584' height=32 border=0 cellspacing=0 cellpadding=0 align=center>"
sD +="<tr>"
if(tmenu == '1')
	sD +="<td valign=top><a href='#' onMouseOver= 'showMenu(1)' onMouseOut= 'hideMenu(1)'><IMG  name='menu1'  border =0 src='" + img[0] + "'></a><br></td>"
	
else
	sD +="<td valign=top><a href='#' onMouseOver= 'showMenu(1)' onMouseOut= 'hideMenu(1)'><IMG  name='menu1'  border =0 src='" + img[0] + "'></a><br></td>"

if(tmenu == '2')
	sD +="<td valign=top><a href=# onMouseOver= 'showMenu(2)' onMouseOut= 'hideMenu(2)' ><IMG name='menu2' border =0 SRC='" + img[1] + "' ></a><br></td>"
	
else
	sD +="<td valign=top><a href=# onMouseOver= 'showMenu(2)'  onMouseOut= 'hideMenu(2)' ><IMG name='menu2' border =0 SRC='" + img[1] + "' ></a><br></td>"

if(tmenu== '3')
	sD +="<td valign=top><a href=# onMouseOver= 'showMenu(3)' onMouseOut= 'hideMenu(3)'><IMG name='menu3' border =0 SRC='" + img[2] + "'></a><br></td>"
else
	sD +="<td valign=top><a href=# onMouseOver= 'showMenu(3)' onMouseOut= 'hideMenu(3)'><IMG name='menu3' border =0 SRC='" + img[2] + "'></a><br></td>"

if(tmenu== '4')
	sD +="<td valign=top><a href=# onMouseOver= 'showMenu(4)' onMouseOut= 'hideMenu(4)'><IMG name='menu4' border=0 SRC='" + img[3] + "'></a><br></td>"
else
	sD +="<td valign=top><a href=# onMouseOver= 'showMenu(4)' onMouseOut= 'hideMenu(4)'><IMG name='menu4' border=0 SRC='" + img[3] + "'></a><br></td>"

if(tmenu== '5')
	sD +="<td valign=top><a href='/default.asp' onMouseOver= 'showMenu(5)' onMouseOut='hideMenu(5)'><IMG name='menu5' border=0 SRC='" + img[4] + "' ></a><a href='/contact/contact.htm' onMouseOver= 'showMenu(5)' onMouseOut='hideMenu(5)'><IMG name='menu5' border=0 SRC='" + img[4] + "' ></a><br></td>"
else
	sD +="<td valign=top><a href='/default.asp' onMouseOver= 'showMenu(5)' onMouseOut='hideMenu(5)'><IMG name='menu5' border=0 SRC='" + img[4] + "' ></a><a href='/contact/contact.htm' onMouseOver= 'showMenu(5)' onMouseOut='hideMenu(5)'><IMG name='menu5' border=0 SRC='" + img[5] + "' ></a><br></td>"

//sD +="<td><br></td>"
sD +="</tr>"
sD +="</table>"

sD +="<div id='popmenu1' style='position:absolute;top:78;left:185;visibility:hidden;border:1px solid #7d7d7d; z-index:1; ' onmouseout='hideMenu(1)' onmouseover='showMenu(1)' >"
sD +=dispMn1()
sD +="</div>"

sD +="<div id='popmenu2' style='position:absolute;top:78;left:298;visibility:hidden;border:1px solid #7d7d7d; z-index:1;' onmouseout='hideMenu(2)' onmouseover='showMenu(2)' >"
sD +=dispMn2()
sD +="</div>"

sD +="<div id='popmenu3' style='position:absolute;top:78;left:420;visibility:hidden;border:1px solid #7d7d7d; z-index:1;' onmouseover='showMenu(3)' onmouseout='hideMenu(3)'>"
sD +=dispMn3()
sD +="</div>"

sD +="<div id='popmenu4' style='position:absolute;top:78;left:510;visibility:hidden;border:1px solid #7d7d7d; z-index:1;' onmouseover='showMenu(4)' onmouseout='hideMenu(4)'>"
sD +=dispMn4()

document.write(sD)
}