var nom = 9; // Number of menus
var usePictures = 0; // use pictures?  1 = yes, 0 = no

var ttls = new Array(); // An array for the title objects
var subs = new Array(); // An array for the submenu objects
var lastn;
var lastmove;

if (document.layers) {
visible = 'show';
hidden = 'hide';
}
else
if (document.all) {
visible = 'visible';
hidden = 'hidden';
}
for (var i = 1; i <= nom; i++) {
ttls[i] = ('title' + i);
subs[i] = ('submenu' +i);
}
function picopen(n) {
title = ('title' + n);
pic = ('pic' + n);
if (document.layers) {
document.layers[title].document.images[pic].src = "opened.gif";
}
else if (document.all) {
document.all(pic).src = "opened.gif";
   }
}
function picclose(n) {
title = ('title' + n);
pic = ('pic' + n);
if (document.layers) {
document.layers[title].document.images[pic].src = "closed.gif";
}
else if (document.all) {
document.all(pic).src = "closed.gif";
   }
}
lastn = (nom + 1);
lastmove = 0;
function lasttoggle(n,move) {
if (n <= nom) {
menu = ('submenu' + n);
if (document.layers) {
submenu = document.layers[menu];
}
else if (document.all) {
submenu = document.all(menu).style;
}
if (submenu.visibility == visible) {
submenu.visibility = hidden;
picclose(n); // Remove this if you don't use pictures
for (var i = (n+1); i <= nom; i++) {
if (document.layers) {
document.layers[ttls[i]].top -= move;
document.layers[subs[i]].top -= move;
}
else if (document.all) {
document.all(ttls[i]).style.pixelTop -= move;
document.all(subs[i]).style.pixelTop -= move;
            }
         }
      }
   }
}
function toggle(n,move) {
menu = ('submenu' + n);
if (document.layers) {
submenu = document.layers[menu];
}
else if (document.all) {
submenu = document.all(menu).style;
}
if (submenu.visibility == visible) {
submenu.visibility = hidden;
if (usePictures) picclose(n);
for (var i = (n+1); i <= nom; i++) {
if (document.layers) {
document.layers[ttls[i]].top -= move;
document.layers[subs[i]].top -= move;
}
else if (document.all) {
document.all(ttls[i]).style.pixelTop -= move;
document.all(subs[i]).style.pixelTop -= move;
      }
   }
}
else {
submenu.visibility = visible;
if (usePictures) picopen(n);
if (lastn != n) {
lasttoggle(lastn,lastmove);
}
for (var i = (n+1); i <= nom; i++) {
if (document.layers) {
document.layers[ttls[i]].top += move;
document.layers[subs[i]].top += move;
}
if (document.all) {
document.all(ttls[i]).style.pixelTop += move;
document.all(subs[i]).style.pixelTop += move;
      }
   }
}
lastn = n;
lastmove = move;
}
document.write('<table border="0" bgcolor="#E77910" cellpadding="0" cellspacing="0" width="203" height=100%><tr> <td width="100%" bgcolor="#E77910" height=100% valign=top><table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%"><tr> <td width="26%" valign=top height=100%> <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="100%" valign="top" align=center height=100%> <img border="0" src="images/logo.gif" width="84" height="98"></td></tr><tr><td width="100%"><div class="title" id="title1" style="top: 122px">&nbsp;<a href="valia_metro.htm" class="LLINK"><!-- onclick="javascript: toggle(1,30); return false" --><img name="pic1" src="closed.gif" border="0" width="7" height="7">His Grace the Valia Metropolitan</a></div><div class="title" id="title1" style="top: 142px">&nbsp;<a href="current_metro.htm" class="LLINK"><!-- onclick="javascript: toggle(1,30); return false" --><img name="pic1" src="closed.gif" border="0" width="7"height="7">His Grace the Metropolitan</a></div><div class=title id="title1" style="top: 162px">&nbsp;<a href="suffraganmetro.htm" class=LLINK><!-- onclick="javascript: toggle(1,30); return false" --><img name="pic1" src="closed.gif" border="0" width="7"height="7">Suffragan Metropolitan & Episcopas</a></div><div class="title" id="title1" style="top: 182px">&nbsp;<a href="heritage.htm" class="LLINK"><!-- onclick="javascript: toggle(1,30); return false" --><img name="pic1" src="closed.gif" border="0" width="7"height="7">Heritage</a></div><!-- <div class="submenu" id="submenu1" style="top: 180px">&nbsp;<a href="ordofworship.htm">Orders of Worship</a><br>&nbsp;<a href="conventions.htm">Conventions</a></div> --><div class="title" id="title2" style="top: 200px">&nbsp;<a href="#" class=LLINK onclick="javascript: toggle(2,55); return false"><img name="pic2" src="closed.gif" border="0" width="7"height="7">Heirs to the Throne of St. Thomas</a></div><div class="submenu" id="submenu2" style="top: 220px">&nbsp;<a href="metropolitan.htm">Metropolitan</a><br>&nbsp;<a href="suffraganmetro.htm">Suffragan Metropolitan & &nbsp;Episcopas</a><br>&nbsp;<a href="clergy.asp">Clergy</a></div><div class="title" id="title3" style="top: 220px">&nbsp;<a href="#" onclick="javascript: toggle(3,45); return false" class=LLINK><img name="pic3" src="closed.gif" border="0" width="7"height="7">Administrative Set-up</a></div><div class="submenu" id="submenu3" style="top: 240px">&nbsp;<a href="central.htm">Central</a><br>&nbsp;<a href="diocesan.htm">Diocesan</a><br>&nbsp;<a href="parish.htm">Parish</a></div><div class="title" id="title4" style="top: 240px">&nbsp;<a href="#" class=LLINK onclick="javascript: toggle(4,115); return false"><img name="pic4" src="closed.gif" border="0" width="7"height="7">Organizations</a></div><div class="submenu" id="submenu4" style="top: 260px">&nbsp;<a href="intro.htm">Introduction</a><br>&nbsp;<a href="schoolsamajam.htm">Sunday School Samajam</a><br>&nbsp;<a href="yuvajanasakhyam.htm">Yuvajana Sakhyam</a><br>&nbsp;<a href="sevikasanghom.htm">Sevika Sanghom</a><br>&nbsp;<a href="mtea.htm">M T E A</a><br>&nbsp;<a href="mtvea.htm">M T V E A</a><br>&nbsp;<a href="dsmc.htm">DSMC</a><br>&nbsp;<a href="developdpt.htm">Development Department</a><br>&nbsp;<a href="conf.htm">M S C</a></div><div class="title" id="title5" style="top: 260px">&nbsp;<a href="#" onclick="javascript: toggle(5,105); return false" class=LLINK><img name="pic5" src="closed.gif" border="0" width="7"height="7">Institutions</a></div><div class="submenu" id="submenu5" style="top: 280px">&nbsp;<a href="dir_med_mission.htm">Hospitals</a><br>&nbsp;<a href="dir_social_welfare.htm">Social Welfare Institutions</a><br>&nbsp;<a href="dir_dest_homes.htm">Destitute Homes</a><br>&nbsp;<a href="educational.htm">Educational Institutions</a><br>&nbsp;<a href="theological.htm">Theological Institutions</a><br>&nbsp;<a href="dir_tech.htm">Technical Institutions</a><br>&nbsp;<a href="study.htm">Study Centres</a><br>&nbsp;<a href="dir_camp.htm">Camp Centres</a></div><div class="title" id="title6" style="top: 280px">&nbsp;<a href="#" onclick="javascript: toggle(6,150); return false" class=LLINK><img name="pic6" src="closed.gif" border="0" width="7"height="7">Ecumenical Relations</a></div><div class="submenu" id="submenu6" style="top: 300px">&nbsp;<a href="wcc.htm">W C C</a><br>&nbsp;<a href="ncci.htm">N C C I</a><br>&nbsp;<a href="cca.htm">C C A</a><br>&nbsp;<a href="nms.htm">N M S</a><br>&nbsp;<a href="kcc.htm">K C C</a><br>&nbsp;<a href="cni.htm">CNI-CSI-MTC Joint Council</a><br>&nbsp;<a href="bsi.htm">B S I</a><br>&nbsp;<a href="oc.htm">Orthodox Church</a><br>&nbsp;<a href="ac.htm">Anglican Church</a><br>&nbsp;<a href="isc.htm">Independent Syrian Church &nbsp;of Thozhiyoor</a><br>&nbsp;<a href="relation.htm">Relationship with the Roman &nbsp;Catholic Church</a></div><div class="title" id="title7" style="top: 300px">&nbsp;<a href="#" onclick="javascript: toggle(7,115); return false" class=LLINK><img name="pic7" src="closed.gif" border="0" width="7"height="7">Publications</a></div><div class="submenu" id="submenu7" style="top: 320px">&nbsp;<a href="sabhatharaka.htm">Sabha Tharaka</a><br>&nbsp;<a href="suviseshadootan.htm">Suvisesha Doothan</a><br>&nbsp;<a href="yuvadeepam.htm">Yuvadeepam</a><br>&nbsp;<a href="ripples.htm">Ripples</a><br>&nbsp;<a href="vanithabodhini.htm">Vanitha Bodhini</a><br>&nbsp;<a href="sandarsini.htm">Sandarsini</a><br>&nbsp;<a href="thalirukal.htm">Thalirukal</a><br>&nbsp;<a href="sandesam.htm">Sandesam</a><br>&nbsp;<a href="vedapadanasahai.htm">Veda Padana Sahai</a></div><div class="title" id="title8" style="top: 320px">&nbsp;<a href="#" onclick="javascript: toggle(8,45); return false" class=LLINK><img name="pic8" src="closed.gif" border="0" width="7" height="7">Directory</a></div><div class="submenu" id="submenu8" style="top: 340px">&nbsp;<a href="general.htm">General</a><br>&nbsp;<a href="directory.asp">Parish</a><br>&nbsp;<a href="clergy.asp">Clergy</a></div><div class="title" id="title9" style="top: 340px">&nbsp;<a href="#" onclick="javascript: toggle(9,200); return false" class=LLINK><img name="pic9" src="closed.gif" border="0" width="7"height="7">Events & Announcements</a></div><div class="submenu" id="submenu9" style="top: 360px">&nbsp;<a href="events.asp">Events</a><br>&nbsp;<a href="announcement.asp">Announcements</a></div><div class="title" align="center"><a href="index.htm" class=LLINK>Home</a> <font color="#FFFFFF">|</font> <a href="contact.asp" class=LLINK>Contact Us</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></td></tr><tr><td width="100%"></td></tr> </table></td></tr><tr> <td width="26%" valign=top style="background-repeat: repeat-y;background-position:right"> &nbsp; </td></tr></table> </td></tr></table>');