
function writeMenu()
{
	document.writeln("		<font face='trebuchet ms,arial,helvetica'>");
	document.writeln("			<table border='1'>");
	document.writeln("				<tr><th>");
	document.writeln("					<a href='./'>Home</a>");
	document.writeln("				</th></tr>");
	document.writeln("				<tr><th>");
	document.writeln("					<a href='directions.htm'>Directions</a>");
	document.writeln("				</th></tr>");
	document.writeln("				<tr><th>");
	document.writeln("					<a href='we_believe.htm'>We Believe</a>");
	document.writeln("				</th></tr>");
	document.writeln("				<tr><th>");
	document.writeln("					<a href='toc.htm'>Contents</a>");
	document.writeln("				</th></tr>");
	document.writeln("				<tr><th>");
	document.writeln("					<a href='links.html'>Links</a>");
	document.writeln("				</th></tr>");
	document.writeln("				<tr><th>");
	document.writeln("					<a href='feedback.htm'>Feedback</a>");
	document.writeln("				</th></tr>");
	document.writeln("				<tr><th>");
	document.writeln("					<a href='events.html'>Events</a>");
	document.writeln("				</th></tr>");
	document.writeln("				<tr><th>");
	document.writeln("					<a href='youth.htm'>Youth</a>");
	document.writeln("				</th></tr>");
	document.writeln("				<tr><th>");
	document.writeln("					<a href='about.html'>About Us</a>");
	document.writeln("				</th></tr>");
	document.writeln("				<tr><th>");
	document.writeln("					<a href='committee.html'>Groups</a>");
	document.writeln("				</th></tr>");
	//document.writeln("				<tr><th>");
	//document.writeln("					<a href='VBS.html'>VBS</a>");
	//document.writeln("				</th></tr>");
	document.writeln("			</table>");
	document.writeln("		</font>");
}

function writeHeader(bolHome)
{
	document.writeln("<table border='0' cellpadding='0' cellspacing='0' width='100%' style='font:trebuchet ms,arial,helvetica'>");
	document.writeln("	<tbody>");
	document.writeln("		<tr>");
	document.writeln("			<td colspan='10'>");
	document.writeln("				<p>");
	document.writeln("					<br/>");	
	if (bolHome)
	{
		document.writeln("					<a href='.\'>");
		document.writeln("						<img alt=''src='_borders/CLC%20web%20logo%20JPEG.jpg' border='0' height='231' width='750' />");
		document.writeln("					</a>");
	}
	else
	{
		document.writeln("					<a href='.\'>");
		document.writeln("						<img alt='Christ Lutheran Church'src='_borders/CLC%20web%20logo%20small%20JPEG.jpg' border='0' height='48' width='469' />");
		document.writeln("					</a>");
	}
	document.writeln("				</p>");
	document.writeln("			</td>");	
	
	writeSearchBox();
	
	document.writeln("		</tr>");	
	
	document.writeln("		<tr>");	
	document.writeln("			<td colspan='11'>");
	
	if (bolHome)
	{
		document.writeln("				Christ Evangelical Lutheran Church's Mission is to be servants of Christ and stewards of the Mysteries of God.  (1 Corinthians 4:1)");
	}
	else
	{
		document.writeln("				Servants of Christ and stewards of the Mysteries of God.  (1 Corinthians 4:1)");
	}
	
	document.writeln("				<p>&nbsp;</p>");	
	document.writeln("			</td>");	
	document.writeln("		</tr>");	
	
	document.writeln("	</tbody>");
	document.writeln("</table>");
}

function writeSearchBox()
{
	document.writeln("			<td>");
	document.writeln("<!--Google search box-->");
	document.writeln("<script type='text/javascript' src='http://www.google.com/jsapi'></script>");
	document.writeln("<script type='text/javascript'>");
	document.writeln("  google.load('search', '1');");
	document.writeln("  google.setOnLoadCallback(function() {");
	document.writeln("    google.search.CustomSearchControl.attachAutoCompletion(");
	document.writeln("      '002522642403737337498:kwrsw2xlzic',");
	document.writeln("      document.getElementById('q'),");
	document.writeln("      'cse-search-box');");
	document.writeln("  });");
	document.writeln("</script>");
	document.writeln("<form action='http://clcdesmoines.org/search2.htm' id='cse-search-box'>");
	document.writeln("  <div>");
	document.writeln("    <input type='hidden' name='cx' value='002522642403737337498:kwrsw2xlzic' />");
	document.writeln("    <input type='hidden' name='cof' value='FORID:9' />");
	document.writeln("    <input type='hidden' name='ie' value='UTF-8' />");
	document.writeln("    <input type='text' name='q' id='q' autocomplete='off' size='31' />");
	document.writeln("    <input type='submit' name='sa' value='Search' />");
	document.writeln("  </div>");
	document.writeln("</form>");
	document.writeln("<script type='text/javascript' src='http://www.google.com/cse/brand?form=cse-search-box&lang=en'></script>");
	document.writeln("<!--end Google search box-->");
	document.writeln("			</td>");
}

function writeContact()
{
	document.writeln("					<h2><font face='trebuchet ms,arial,helvetica'>Contact Information</font></h2>");
	document.writeln("				<blockquote>");
	document.writeln("					<dl>");
	document.writeln("						<font face='trebuchet ms,arial,helvetica'>");
	document.writeln("							<dt>");
	document.writeln("								<strong>Telephone</strong>");
	document.writeln("							</dt>");
	document.writeln("							<dd>");
	document.writeln("								(515) 285-6764");
	document.writeln("							</dd>");
	document.writeln("							<dt>");
	document.writeln("								<strong>Street address</strong>");
	document.writeln("							</dt>");
	document.writeln("							<dd>");
	document.writeln("								6411 SE 5th ST Des Moines, IA 50315");
	document.writeln("							</dd>");
	document.writeln("							<dt>");
	document.writeln("								<strong>Postal address</strong>");
	document.writeln("							</dt>");
	document.writeln("							<dd>");
	document.writeln("								PO Box 35756 Des Moines, IA 50315");
	document.writeln("							</dd>");
	document.writeln("							<dt>");
	document.writeln("								<strong>FaceBook</strong>");
	document.writeln("							</dt>");
	document.writeln("							<dd>");
	document.writeln("								<a href='http://www.facebook.com/#%21/group.php?gid=258164905231&amp;ref=ts'>Visit our FaceBook page!</a>");
	document.writeln("							</dd>");
	document.writeln("							<dt>");
	document.writeln("								<strong>Email</strong>");
	document.writeln("							</dt>");
	document.writeln("							<dd>");
	document.writeln("								Church: <a href='mailto:desmoinesclc@gmail.com'>desmoinesclc@gmail.com<a/>");
	document.writeln("							</dd>");
	document.writeln("							<dd>");
	document.writeln("								Webmaster: <a href='mailto:clcDesMoines@gmail.com'>clcDesMoines@gmail.com<a/>");
	document.writeln("							</dd>");
	document.writeln("						</font>");
	document.writeln("					</dl>");
	document.writeln("				</blockquote>");
}

function writeFooter(date)
{
	document.writeln("	<br/>");
	document.writeln("	<br/>");
	document.writeln("	<hr/>");
	document.writeln("	<table width='100%' >");
	document.writeln("		<tbody>");
	document.writeln("			<tr>");
	document.writeln("				<td>");
	document.writeln("					Christ Lutheran Church");
	document.writeln("				</td>");
	document.writeln("				<td/>");
	document.writeln("				<td colspan='2' align='right'>");
	document.writeln("					<a href='contactinfo.htm'>Contact Us</a>");
	document.writeln("				</td>");
	document.writeln("			</tr>");
	document.writeln("			<tr>");
	document.writeln("				<td>");
	document.writeln("					6411 SE 5th ST Des Moines, IA 50315");
	document.writeln("				</td>");
	document.writeln("				<td/>");
	document.writeln("				<td align='right'>");
	document.writeln("					Page last updated:<br/>");
	document.writeln("				</td>");
	document.writeln("				<td>");
	document.writeln(					date);
	document.writeln("				</td>");
	document.writeln("			</tr>");
	document.writeln("			<tr>");
	document.writeln("				<td>");
	document.writeln("					PO Box 35756 Des Moines, IA 50315");
	document.writeln("				</td>");
	document.writeln("				<td/>");
	document.writeln("				<td align='right'>");
	document.writeln("					Site last updated:<br/>");
	document.writeln("				</td>");
	document.writeln("				<td>");
	document.writeln("					2011-12-11");
	document.writeln("				</td>");
	document.writeln("			</tr>");
	document.writeln("		</tbody>");
	document.writeln("	</table>");
}

