d = document;

function head(){
d.write('<BODY vLink=#000066 link=#000066 leftmargin=3 topmargin=0 marginheight=0 marginwidth=0 bgcolor="#ebebd8"><table align=center width=770 cellspacing=0 cellpadding=0 border=0 bgcolor=white><tr><td  valign="top" width=185 bgcolor="#cccce6">')
}

function menusH(){
d.write('<TABLE cellSpacing=0 cellPadding=0 cellspacing=0 width=585 bgColor="#934900" border=0 align=center><TR><TD class=w id=s10>');
d.write('&nbsp;&nbsp;&nbsp; <a class=mb href="links.htm">',shm[0],'</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    <a class=mb href="http://www.indiga.org/ph/ph_sdhara/sguest.php" target="_blank">',shm[1],'</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <a class=mb href="contact.htm">',shm[2],'</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <a class=mb href="support.htm">',shm[3],'</a>');
d.write('</TD></TR></TABLE>');
}

function menuV(){
d.write('<table cellspacing=0 cellpadding=0 border=0 bgcolor=#cccce6 align=center width=185>')
d.write('<tr><td valign=top><img src="',trail,'img/caixadalt.gif" width=185 height=8></td></tr>')
	d.write('<tr><td background="',trail,'img/caixamig.gif" align=center bgcolor="#00396b">')
	d.write('<table cellspacing=0 cellpadding=0 border=1 width=170 bordercolor="#bdb5a4" bgcolor="#4B9388"><tr><td align=center bordercolor="#006666"><br><img src="',trail,'img/logo16.gif" width=156 height=200><br><br></td></tr><tr><td bordercolor="#006666" align=center><img src="',trail,'img/vmenu2.jpg" width=170 height=78><br></td></tr></table></td></tr>')
mm(0,hURL[0][0]);
mm(1,hURL[1][0]);
mm(2,hURL[2][0]);
mm(3,hURL[3][0]);
mm(4,hURL[4][0]);
mm(5,hURL[5][0]);
mm(6,hURL[6][0]);
mm(7,hURL[7][0]);

//d.write('<tr><td bgcolor=#006666 background="',trail,'img/caixamig.gif" class=w11 >&nbsp;</td></tr>')
d.write('<tr><td><img src="',trail,'img/caixabaix.gif" width=185 height=8></td></tr></table>')

d.write('</td>')// close menu col

//d.write('<td width=10>&nbsp;&nbsp;</td>'); // left margin
// Heading
d.write('<td valign=top>');
// overall heading
d.write('<table width=585 bgcolor=#ffffe6 cellpadding=2 border=1><tr>');
d.write('<td align=left valign=top bordercolor=#ffffe6><div class=w11 id=snb4>');
//logo green box
d.write('<TABLE cellSpacing=0 cellPadding=2 bgColor="#006666" border=0>');
d.write('<TR><TD class=w id=s13 align=center>&nbsp;Shantidhara Social Service Society<br>Visakhapatnam -  Andhra Pradesh (India)</TD></TR>');
d.write('<TR><TD align=center><img src="',trail,'img/name10.gif" width=309 height=54></TD></TR></TABLE><br>');
d.write('</div><div align=left class=g11 id=s14>&nbsp;&nbsp;&nbsp;<a href="',trail,'index.htm"><img src="',trail,'img/uk.gif" width=32 height=21 border=0></a>');
d.write('&nbsp;&nbsp;&nbsp;<img src="',trail,'img/ger.gif" width=32 height=21>&nbsp;&nbsp;&nbsp;<img src="',trail,'img/cat.gif" width=32 height=21>&nbsp;&nbsp;&nbsp;<a href="',trail,'sp/index.htm"><img src="',trail,'img/sp.gif"  width=32 height=21 border=0></a></div>');
d.write('</td><td align=center bordercolor=#ffffe6><img src="',trail,'img/target220.jpg" width=220 height=120></td></tr></table>');
}

function mm(nx,url){  //make menu
menu_color="#934900";
submenu_color="#5757ac";

name=hm[nx][0];
active = 0;
menu_color="#934900"
if((name.indexOf(id_menu1)>-1)&&(typeof(hm[nx])=="object")){active = 1;menu_color="#934900";}
//document.write(name,'..',id_menu1,'--',active,'==',name[0]);

d.write(' <tr><td background="',trail,'img/caixamig.gif" align=center bgcolor=#006666><table cellspacing=0 cellPadding=0 border=0 width=170 bordercolor="#006666"><tr>')
//d.write('<td>&nbsp;&nbsp;</td>')
d.write('<td bgcolor=',menu_color,' align=left class=w11 id=snb12>&nbsp;<a href="',url,'" class=w id=s10>',name,'</a></td></tr>')

if(active){
for(i=1;i<(hm[nx].length);i++){
color_bk = submenu_color
color_txt = " class=w id=s10"
if(hm[nx][i].indexOf(id_menu2)>-1){color_bk="#ffffce";color_txt=" class=m id=s10"}
d.write('<tr><td height=18 bgcolor=',color_bk,color_txt,'>&nbsp;<img src="',trail,'img/sq_azul.gif">&nbsp;')
d.write('<a href="',hURL[nx][i],'" ',color_txt,' style="TEXT-DECORATION:none" >',hm[nx][i],'</a></td></tr>')
	d.write('<tr><td background="',trail,'img/whitepoint.gif"><img src="',trail,'img/whitepoint.gif" width=1 height=1></td></tr>')
  } // end of for
}
//if(typeof(menu1[0])=="string")d.write('<tr><td class=w id=s10 bgcolor="#646400" align=left>&nbsp;',menu1,'</td></tr>')

d.write('</td></tr><tr><td background="',trail,'img/whitepoint.gif"><img src="',trail,'img/whitepoint.gif" width=1 height=1></td></tr>')

d.write('</table></td></tr>')
}

function email(){
d.write('<div align="center"><img src="',trail,'img/email.gif" width=200><br>');
}

function design(){
d.write('<table cellpadding=0 cellspacing=0 border=0 align=center><tr><td>');

d.write('<table border="0" cellpadding="0" cellspacing="0"><tr><td class=sh id=s11>Counter:&nbsp;&nbsp;</td><td><img src="http://counter.dreamhost.com/cgi-bin/Count.cgi?df=timnak2-shantidhara.dat&pad=F&ft=0&dd=E&istrip=T"></td></tr></table>')

d.write('</td><td class=gy id=snb10 width=770  height=20 align=center><font size=1>Designed by: www . indiga . org</font></td></tr></table>')
}

function ow(theURL,w,h,t,l) {
var winName=""
features=("status=yes,scrollbars=yes,width="+w+",height="+h+", top="+t+", left="+l)
window.open(theURL,winName,features);
}