function w(text) 
{
  document.write(text);
}


//Preload Header Images

var headerImageCount = 7;
var headerImageOn = new Array(headerImageCount);
var headerImageOff = new Array(headerImageCount);

for(var i = 0; i < headerImageCount; i++) 
{
  headerImageOff[i] = new Image();
  headerImageOff[i].src = iconDir + "headerIcon" + (i + 1) + ".gif";
  headerImageOn[i] = new Image();
  headerImageOn[i].src = iconDir + "headerIcon" + (i + 1) + "_on.gif";
}


//Write Header

w("<table width=760 border=0 cellpadding=1 cellspacing=0>");
w("	<tr> <!-- Define columns in table -->");
w("		<td width=40 height=1><img src=\"" + iconDir + "1by1.gif\" width=40 height=1 border=0></td>");
w("		<td width=80 height=1><img src=\"" + iconDir + "1by1.gif\" width=80 height=1 border=0></td>");
w("		<td width=80 height=1><img src=\"" + iconDir + "1by1.gif\" width=80 height=1 border=0></td>");
w("		<td width=80 height=1><img src=\"" + iconDir + "1by1.gif\" width=80 height=1 border=0></td>");
w("		<td width=80 height=1><img src=\"" + iconDir + "1by1.gif\" width=80 height=1 border=0></td>");
w("		<td width=80 height=1><img src=\"" + iconDir + "1by1.gif\" width=80 height=1 border=0></td>");
w("		<td width=80 height=1><img src=\"" + iconDir + "1by1.gif\" width=80 height=1 border=0></td>");
w("		<td width=80 height=1><img src=\"" + iconDir + "1by1.gif\" width=80 height=1 border=0></td>");
w("		<td width=80 height=1><img src=\"" + iconDir + "1by1.gif\" width=80 height=1 border=0></td>");
w("		<td width=80 height=1><img src=\"" + iconDir + "1by1.gif\" width=80 height=1 border=0></td>");
w("	</tr>");
w("	<tr>");
w("		<td height=60 rowspan=2 align=center><img src=\"" + iconDir + "meth4a.gif\" width=34 height=60 align=middle border=0></td>");
w("    		<td colspan=7 height=30><img src=\"" + iconDir + "GlenMarUMC.gif\" width=410 height=30 border=0></td>");
w("		<td height=60 rowspan=2><img src=\"" + iconDir + "Address.gif\" border=0></td>");
w("	</tr>");
w("	<tr> ");
w("		<td height=30 align=center>");
w("			<a href=\"" + siteBase + "index.html\" onMouseOver=\"showNavImageOn('1')\" onMouseOut=\"showNavImageOff('1')\"><img name=\"navImg1\" src=\"" + iconDir + "headerIcon1.gif\" width=80 height=30 border=0 alt=\"Home Page\"></a>");
w("		</td>");
w("		<td height=30 align=center>");
w("			<a href=\"" + siteBase + "calendar_home.html\" onMouseOver=\"showNavImageOn('2')\" onMouseOut=\"showNavImageOff('2')\"><img name=\"navImg2\" src=\"" + iconDir + "headerIcon2.gif\" width=80 height=30 border=0 alt=\"Calendar\"></a>");
w("		</td>");
w("		<td height=30 align=center>");
w("			<a href=\"" + siteBase + "ministry/index.html\" onMouseOver=\"showNavImageOn('3')\" onMouseOut=\"showNavImageOff('3')\"><img name=\"navImg3\" src=\"" + iconDir + "headerIcon3.gif\" width=80 height=30 border=0 alt=\"Lay Ministries\"></a>");
w("		</td>");
w("		<td height=30 align=center>");
w("			<a href=\"" + siteBase + "ministry/disciple/BibleStudy/\" onMouseOver=\"showNavImageOn('4')\" onMouseOut=\"showNavImageOff('4')\"><img name=\"navImg4\" src=\"" + iconDir + "headerIcon4.gif\" width=80 height=30 border=0 alt=\"Bible Study\"></a>");
w("		</td>");
w("		<td height=30 align=center>");
w("			<a href=\"" + siteBase + "pubs_home.html\" onMouseOver=\"showNavImageOn('5')\" onMouseOut=\"showNavImageOff('5')\"><img name=\"navImg5\" src=\"" + iconDir + "headerIcon5.gif\" width=80 height=30 border=0 alt=\"Publications\"></a>");
w("		</td>");
w("		<td height=30 align=center>");
w("			<a href=\"" + siteBase + "ministry/PreSchool/index.html\" onMouseOver=\"showNavImageOn('6')\" onMouseOut=\"showNavImageOff('6')\"><img name=\"navImg6\" src=\"" + iconDir + "headerIcon6.gif\" width=80 height=30 border=0 alt=\"Pre School\"></a>");
w("		</td>");
w("		<td height=30 align=center>");
w("			<a href=\"" + siteBase + "youth/index.html\" onMouseOver=\"showNavImageOn('7')\" onMouseOut=\"showNavImageOff('7')\"><img name=\"navImg7\" src=\"" + iconDir + "headerIcon7.gif\" width=80 height=30 border=0 alt=\"Youth Ministries\"></a>");
w("		</td>");
w("	</tr>");
w("	<tr><td colspan=10><img src=\"" + iconDir + "1by1.gif\" width=760 height=10 border=0></td></tr>");
w("</table>");

