//var menubar= "<map name=\"FPMap0\">"+" \n"
switch(screen.width)
{
case 1024:
pimg=["../images/gail_top03.gif","../images/gaillogo1024.gif","../images/bar_links.gif"];
gx=1020;
	break;
case 800:
pimg=["../images/gail_top03800.gif","../images/gaillogo800.gif","../images/bar_links800.gif"];
gx=800;
	break;
}
var top_img=pimg[0]
var top_img1=pimg[1]
var top_links=pimg[2]

/*
var dateobj=new Date()
var today=dateobj.getDay()
*/
xx1=0;
yy2=35;
x1=[xx1,xx1,xx1,xx1,xx1,xx1,xx1,xx1];
y1=gypos;
x2=[gypos[1],gypos[2],gypos[3],gypos[4],gypos[5],gypos[6],gypos[7],gx]
//x2=[97,228,365,531,626,761,904,995];
y2=[yy2,yy2,yy2,yy2,yy2,yy2,yy2,yy2];

ltxt=["href=\"","\""]
link_list = [
[ltxt[0]+"../aboutgail/gail.htm"+ltxt[1],"1,1,119,50"],
[ltxt[0]+"../customerzone/customer.htm"+ltxt[1],"1,1,119,50"],
[ltxt[0]+"../investorzone/investor.htm"+ltxt[1],"130,1,227,50"],
[ltxt[0]+"../businessrelations/business.htm"+ltxt[1],"260,1,368,50"],
[ltxt[0]+"../ebusiness/ebusiness.htm"+ltxt[1],"390,1,461,50"],
[ltxt[0]+"../energyzone/energy.htm"+ltxt[1],"470,1,563,50"],
[ltxt[0]+"../environmentzone/environment.htm"+ltxt[1],"660,1,711,50"],
[ltxt[0]+"../index.htm"+ltxt[1],"938,1,997,50" ]
]

/*
for (i=0;i<=7 ;i++ )
{
menubar +=" <area onmouseout=\"HM_f_PopDown('elMenu"+(i+1)+"')\" onmouseover=\"HM_f_PopUp('elMenu"+(i+1)+"',event)\" shape=\"rect\" coords=\""+y1[i]+","+x1[i]+","+x2[i]+","+y2[i]+"\" "+link_list[i][0]+"\">"
}
menubar +=" </map>"
*/
var htmltext ="<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse:collapse; border-width:0\" bordercolor=\"#1111ff\" width=\"100%\">"
htmltext +="<tr>"
htmltext +="<td style=\"border-style: none; border-width: 0\" bgcolor=\"E8FFF0\"><a href='../index.htm'><img border=\"0\" src=\""+top_img1+"\"></a></td>"
htmltext +="<td width=\"90%\" style=\"border-style: none; border-width: 0\" bgcolor=\"E8FFF0\"><a href='../index.htm'><img align=right border=\"0\" src=\""+top_img+"\" ></td>"
htmltext +="  </tr>"
htmltext +="  <tr>"
htmltext +=" <td colspan=2 width=\"100%\">"
document.write(htmltext);
/*  from tmenu.cm */
var menubar= ""
var menubar1= ""
correx=1;
fsize=1;
if (screen.width==1024)
{
	fsize=2;
correx=1.35;
} 

var arr_tmenu=[
["HOME|","../homepage/homenew.htm","FFEEEE","ED1C24",100],
["INVESTOR ZONE|","investor.htm","FFEEEE","ED1C24",200],
["INVESTORS' GUIDE","investor.htm","FFEEEE","ED1C24",200],
["TRANSFER OF SHARES","investor_trans.htm","FFEEEE","ED1C24",200]
]

styleall="style='border-color:00A651;text-align:center;border-style:none;border-width:0"
menubar +="<table "+styleall+"border-collapse:collapse;'"+" cellpadding=0 cellspacing=0 width='100%' border='	0' bgcolor=FFEEEE><tr>";
for (i=0;i<=arr_tmenu.length-1;i++ )
{
styleover=" this.style.backgroundColor='F0FDDF';";
styleout=" this.style.backgroundColor='"+arr_tmenu[i][2]+"';";
menubar +="<td  width="+arr_tmenu[i][4]+" height=20 "+styleall+" border-width:0;border-style:none;border-color: FFFFFF;'";
if(arr_tmenu[i][1]!="#") 
	{
styleover +=" this.style.cursor='hand';";
menubar +=" onmouseout="+styleout+" onclick=\"window.open('"+arr_tmenu[i][1]+"','_self');\" onmouseover=\""+styleover+"\">";
}
else 
	{
	menubar +=" onmouseout=\""+styleout+"HM_f_PopDown('elMenu"+(i+1)+"');\" onmouseover=\""+styleover+"HM_f_PopUp('elMenu"+(i+1)+"',event)\">";
	}
menubar +=" <font face=\"verdana\" size=\""+fsize+"\" color=\""+arr_tmenu[i][3]+"\"><b>"+arr_tmenu[i][0]+"</b></font></td>";
}
menubar +="</tr></table>";
//alert(menubar);
document.write(menubar);
/*  from tmenu.cm */


/* for search */

htmltext="";
htmltext +="</td>"
htmltext +="  </tr>"
htmltext +="</table>"
htmltext +="<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\">"
htmltext +="  <tr><td width=\"15%\"  rowspan=\"4\" valign=top>"
if (searchflag !="NO")
{

htmltext += "<table bgcolor=\"E0F5CC\"><tr><td>Search</td></tr>"
htmltext += "<FORM name=searchengine onsubmit=\"search(keywords.value);return false\"><tr><td>"
htmltext += "<input size=10 type=\"text\"  name=\"keywords\"><input type=\"Submit\" name=\"searchit\" value=\"Go\" onclick=search(keywords.value)>"
htmltext += "</td></tr></FORM></table>"
}
htmltext += "<br>"
//  document.write("<SCRIPT LANGUAGE=\"JavaScript1.2\" SRC=\"../scripts/kws.js\" TYPE=\"text/javascript\"></SCRIPT>");
document.write("<SCRIPT LANGUAGE=\"JavaScript1.2\" SRC=\"../scripts/pnsearch.js\" TYPE=\"text/javascript\"></SCRIPT>");
document.write(htmltext);
//document.write(menubar);


