/* Code to write common HTML code on page */
home = "indexRLC.html";
curr_page = "";
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

function page_heading() {
document.write('<table width="800" summary="" border=0 cellpadding="0" cellspacing="0">');
document.write('<tr valign=top>');
document.write('  <td width="216" height="140"> <a href="index.html">');
document.write('    <img src="images/RLC_LogoOne.gif" alt="Radiant Life Church" height="140" width="226" ');
document.write('	  border="0" class="left" title="Click to return to Home page" /></a>');
document.write('  </td>');
document.write('  <td align="center">');
document.write('    <table class="image">');
document.write('    <tr><td height=140><img src="images/collage.jpg" height=140 alt="Scenes around Radiant Life Church"></td></tr>');
document.write('    </table>');
document.write('  </td>');
document.write('</tr> </table>');
document.write('<a name="top;">');
}

function menu_bar(page_name) {
curr_page = page_name;
document.write('<hr width="100%" color="#0000FF"/>');
document.write('<table summary="" width=100% border=0 cellpadding="0" cellspacing="0">');
document.write('<tr>');
document.write('<td width=145 style="color: #142AAC; font-weight: bold; font-size:11pt">'+page_name+' &nbsp;</td>');
document.write('<td width="*">');

//<!-- Beginning of Menu lists -->
document.write('<div id="container" width="100%">');
document.write('<ul id="nav">');
document.write('	<li><a href="#">About RLC<br>&nbsp;</a>');
document.write('		<ul>');
//document.write('			<li><a href="#" class="content">Contact Us</a></li>');
document.write('			<li><a href="map.html" class="content" title="Map & Directions to both campuses">Map and Directions</a></li>');
document.write('			<li><a href="history.html" class="content" title="From Northwest Assembly to Radiant Life Church">Our History</a></li>');
document.write('			<li><a href="pursuing.html" class="content" title="Capital Stewardship Program">Pursuing His Plan</a></li>')
document.write('			<li><a href="water.html" title="">Water Baptism Service</a></li>');
document.write('			<li><a href="WhatWeBelieve.html" class="content" title="Fundamental Christian Truths">What We Believe</a></li>');
document.write('			<li><a href="WhoWeAre.html" class="content">Who We Are</a></li>');
document.write('		</ul>');
document.write('	</li>');

document.write(' 	<li><a href="#">Events<br>&nbsp</a>');
document.write('		<ul>');
document.write('			<li><a href="bulletin.html" title="Weekly bulletin">Church Bulletin</a></li>');
document.write('			<li><a href="calendar.html" title="Monthly church calendars">Church Calendar</a></li>');
document.write('			<li><a href="sermonseries.html" title="Aug-Sept 2010 Sermon Series">Crazy Love</a></li>');
document.write('		</ul>');
document.write('	</li>');

document.write(' 	<li><a href="#">Media<br>&nbsp</a>');
document.write('		<ul>');
document.write('			<li><a href="audio.html" class="content" title="Listen to sermons from RLC">Audio Sermons</a></li>');
document.write('			<li><a href="links.html" class="content" title="Features, Photos and Links">Features & Photos</a></li>');
document.write('			<li><a href="Scrooge2008.html" target="_blank">');
document.write('The Gospel According to Scrooge (picture gallery)</a></li>');
document.write('			<li><a href="adults/productions/ThePromise/ThePromise2004.html" target="_blank" title="Our Easter production">');
document.write('The Promise (pictures)</a></li>');
document.write('		</ul>');
document.write('	</li>');

document.write(' 	<li><a href="#">Missions<br>&nbsp</a>');
document.write('		<ul>');
document.write('			<li><a href="GoYe.html">Go Ye into All the World! </a></li>');
document.write('			<li><a href="missions.html" class="content" title="Home and Foreign Missionaries supported by RLC">Missions</a></li>');
document.write('		</ul>');
document.write('	</li>');

document.write('	<li><a href="#" align="center">Leadership<br>&nbsp;&nbsp;Team</a>');
document.write('		<ul>');
document.write('			<li><a href="officestaff.html" class="content">Office Staff</a></li>');
document.write('			<li><a href="pastors.html" class="content">Pastors</a></li>');
document.write('			<li><a href="group2009.html" target="_blank" title="Group photo of Pastors" class="content">Pastoral Staff Photo 2009</a></li>');
//document.write('			<li><a href="group2006.html" target="_blank" title="Group photo of Pastors and spouses" class="content">Pastoral Staff Photo 2007</a></li>');
document.write('		</ul>');
document.write('	</li>');

document.write('	<li><a href="#">Adults<br>&nbsp</a>');
document.write('		<ul>');
document.write('			<li><a href="Converge/index.html">Converge for Young Adults</a></li>');
//document.write('			<li><a href="#">Divorce Care</a></li>');
document.write('			<li><a href="gads.html">GAD Abouts (Seniors)</a></li>');
document.write('			<li><a href="life.html" title="RLC small groups">LIFE Groups</a></li>');
document.write('			<li><a href="marriage.html">Marriage Encounter</a></li>');
document.write('			<li><a href="#" class="parent">Men\'s Ministries</a></li>');
document.write('				<ul>');
document.write("					<li><a href='mensfrat.html'>Men’s Fraternity</a></li>");
document.write("					<li><a href='MenAtWork.html'>Men @ Work</a></li>");
document.write("					<li><a href='men.html'>Honorbound</a></li>");
document.write('				</ul>');
document.write('			<li><a href="ss.html">Sunday AM LIFE Classes</a></li>');
document.write('			<li><a href="#" class="parent">Women\'s Ministries</a>');
document.write('				<ul>');
document.write("					<li><a href='aglow.html'>Women’s Ministries</a></li>");
document.write("					<li><a href='mops.html'>MOPS</a></li>");
document.write('				</ul>');
document.write('			</li>');
document.write('		</ul>');
document.write('	</li>');

document.write('	<li><a href="#">Youth<br>&nbsp</a>');
document.write('		<ul>');
//document.write('			<li><a href="youth/activities.html">Activities</a></li>');
document.write('			<li><a href="youth/index.html" title="NuLife Student Ministries">Youth Home Page</a></li>');
//document.write('			<li><a href="youth/nulife2_006.htm" title="Youth Ministry Links">Links</a></li>');
document.write('			<li><a href="ss.html#youth" title="Youth Sunday School">Youth Sunday LIFE Class</a></li>');
document.write('		</ul>');
document.write('	</li>');

document.write('	<li><a href="#">Children<br>&nbsp</a>');
document.write('		<ul>');
document.write('      <li><a href="vbs.html" class="content" title="Evening Vacation Bible School">Operation Space 2010</a></li>');
//document.write('			<li><a href="daniel.html" class="content" title="Children\'s Summer Day Camp">Daniel & Friends</a></li>');
document.write('			<li><a href="kidzville.html" class="content" title="Children\'s Church">Kidzville - KidZone</a></li>');
document.write('			<li><a href="missionettes.html" class="content" title="Girls Program (formerly Missionettes)">Mpact Girls Clubs</a></li>');
document.write('			<li><a href="http://www.radiantkids.org/default.aspx" target=_blank class="content" title="Childrens Day Care">Radiant Kids Day Care</a></li>');
document.write('			<li><a href="royal.html" class="content" title="Summer Camp for Franklin County foster children">Royal Family Kids Camp</a></li>');
document.write('      <li><a href="rangers.html" class="content" title="Boys Program">Royal Rangers</a></li>');
document.write('      <li><a href="ss.html#children" class="content">Sunday School</a></li>');
document.write('		</ul>');
document.write('	</li>');
document.write('</ul> '); 
document.write(' </div> </tr></table>');

if (window.attachEvent) window.attachEvent("onload", sfHover);

}

function left_column() {
  // The left column - Weekly Schedule, map link, today's verse
  document.write('  <td width=170 style="vertical-align: top;" valign=top>');
  document.write('    <div style="margin: 0 5px 0 0px;">');
  document.write('    <table width="100" border="0" bgcolor="" cellspacing="0" cellpadding="0">');
  document.write('    <tr><td nowrap><i><b>Weekly Schedule</b></i><br><b>Sunday</b><br>Post Road Worship Center<br>');
  document.write('  <div class=regText style="margin-left:10px;">LIFE Classes, Prayer &nbsp;9:15 AM<br>');
  document.write('		Celebration Service 10:30 AM</div>Avery Road Activity Center');
  document.write('  <div class=regText style="margin-left:10px;">NuLife Live (Youth) &nbsp;&nbsp;6:00 PM</div>');
  document.write('	<b>Wednesday</b><br>');
  document.write('	Post Road Worship Center<br>');
  document.write('	  <div class=regText style="margin-left:10px;">Adult Bible Study, Royal Rangers,<br>');
	document.write("		 MPact Girls, Men's Fraternity,<br>Adult Choir, Divorce Care &nbsp;7:00 PM</div>");
  document.write('	Avery Road Activity Center<div class=regText style="margin-left:10px;">');
  document.write('    NuLife Experience (Youth)&nbsp; 7:00 PM</div>');
  //document.write('	<b>Saturday</b><br>');
  //document.write('	  <div class=regText style="margin-left:10px;">Saturday at the Post &nbsp;6:00 PM<br>');
	//document.write("		Converge Event &nbsp;7:30 PM</div></div>");
  document.write('  </td></tr>   ');
  if(curr_page.indexOf("Map ") == -1) {
    document.write('   <tr><td style="line-height:50%;">&nbsp;</td></tr><tr><td>');
    document.write('    <a href="map.html">Map to Radiant Life Church</a> </td></tr>');
  }
  document.write('    <tr><td>');
  if(curr_page.indexOf("Audio") == -1) {
    document.write('  <hr align=left width=100%>');
    document.write('    <a href="audio.html">');
    document.write('    <img valign=top src="images/broadcast.gif" alt="Listen to sermons from RLC" style="float: left; margin: 0px 10px 0px 8px; border:0;">');
    document.write('     Audio <br> Sermons</a>');
  document.write(' <br>  <hr align=left width=100%>  ');     
  }
  /* document.write('  <hr width=100%> </td></tr>');
   <td width=170 style="vertical-align: top;" valign=top>
  <div style=" margin: 0 5px 0 0px;">  
	  <table width="100" border="0" bgcolor="" cellspacing="0" cellpadding="0">
    <tr><td nowrap><i><b>Weekly Schedule</b></i><br>
    <b>Sunday</b><br>
    <div class=regText>LIFE Classes &nbsp;&nbsp;&nbsp;9:15 AM<br>
		Celebration Service 10:30 AM<br>
    Uth (Avery Rd) &nbsp;&nbsp;6:00 PM</div>
		<b>Wednesday</b><br>
    <span class=regText>Family Night (Avery Rd) 7:00 PM</span>
  </td></tr>
  <tr><td style="line-height:50%;">&nbsp;</td></tr>
  <tr><td>
    <a href="map.html">Map to Radiant Life Church</a>
  <hr width=100%> 
    <a href="audio.html">
    <img valign=top src="images/broadcast.gif" alt="Listen to sermons from RLC" style="float: left; margin: 0px 10px 0px 8px; border:0;">
     Audio <br> Sermons</a> 
  </td></tr>
  <tr><td>
    <hr width=100%></td></tr>*/
//</td></tr></table>');
//document.write('  </div>');
/*	<!-- Call a service to display a daily scripture -->
  <!-- Begin HL Code - http://www.heartlight.org -->
document.write('<table width="95%" border="0" bgcolor="" cellspacing="0" cellpadding="0">');
document.write('<tr><td>');
document.write('<font face="Arial, Helvetica, sans-serif">');
document.write('<div align="left"><b><font>Today\'s Verse</font></b></div>');
//<!-- <hr width="100%" size="1" noshade> -->
document.write('<script src="http://www.heartlight.org/hls/tv_niv.js">');
document.write('</script></font></td></tr></table>');
 <!-- End HL Code - http://www.heartlight.org --> */
//document.write('	</td>');

}

function right_column() {

document.write('<div valign="top" align="left" style="margin: 0 3px 0px 5px;">');

/* document.write(' <form name=search method="post" action="search.php" >\n');
document.write('  <script language="Javascript" src="search.js"></script> ');
document.write('  <INPUT TYPE=text VALUE="" NAME="searchTerms" SIZE=15 maxlength="30"/>'); 
document.write('	<input type=button value="Search" onclick="document.search.results.value=searchPages(document.search.searchTerms.value);document.search.submit();return false;" />');
document.write('  <input type="hidden" name="results" value="Search Results" /><br> </form>');
  <a href="bulletin.html">
    <img src="bulletin-weekly.jpg" border=0 style="margin-left: 5px;" 
		alt="Click to read this week's church bulletin"></a>
*/
document.write('  <a href="bulletin.html">');
document.write('<img src="bulletin-weekly.jpg" border=0 style="margin-left: 5px;"');
document.write('alt="Click to read this week\'s church bulletin"></a> &nbsp;');
document.write('  <br><a href="javascript:dispImg(\'images/ChurchNewsSep2010.gif\', \'Church_News_Update\', 600, 810);">');
document.write('<img src="monthly-news.gif" border=0 style="margin-left: 5px;"');
document.write('alt="Click to read the September Church News Update"></a> &nbsp;');
document.write('  <br><a target=_blank href="http://www.radiantkids.org/default.aspx">');
document.write('  <img src="images/RadKidsSM.gif" alt="Converge for Young Adults" width=80 title="Radiant Kids Day Care"></a>');
document.write('  <br><a href="Converge/index.html">');
document.write('  <img src="images/converge.gif" alt="Converge for Young Adults" width=72 title="Converge for Young Adults"></a>');
document.write('  <br><a href="youth/index.html">');
document.write('  <img src="images/NuLife.jpg" alt="NuLife Youth Student Ministries" width=75 title="NuLife Youth Student Ministries"></a>');
document.write('  <br>');
document.write('</div>');
}

function footer() {
 	document.write('<!-- Footer -->');
	document.write('<hr style="color:#0000FF">');
  document.write('<div class="footer" align="center">');
  // Change name of home page *******
  document.write('  <a href="index.html">Home</a>&nbsp;&nbsp;');
  document.write('  <a href="#top">Top of Page</a>&nbsp;&nbsp;');
  document.write('  Contact us at <a href="mailto:rlc@rlcdublin.com" title="e-mail us at">');
  document.write('  rlc@rlcdublin.com</a> &nbsp;&nbsp;Church Office: ');
  document.write('  <a href="map.html" title="Map and Directions">7055 Avery Rd</a>,&nbsp;');
  document.write('  <a href="map.html" title="Map and Directions">Dublin, OH 43017</a> &nbsp;&nbsp;Tel: 614.889.8364 <br> ');
  document.write('  <span class="footersm">Webmaster: Warren Lea &nbsp; &copy; 2005-2008 &nbsp; Radiant Life Church</span>');
  document.write('</div>');
}

function displayImage(imgFile, title, text, wd, ht){
//alert("imgFile="+imgFile+" title="+title);
 // Open new window to display calendar
 var features = "height="+ht+",width="+wd+",left=0,top=0,screenX=0,screenY=0,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=yes,status=yes"
 var newWindow=window.open(imgFile, title, features);
 newWindow.focus();
}

function displayImg(path, imgFile, text){
 // Open new window to display calendar
 var newWindow=window.open("", text, "height=700,width=560,left=0,top=0,screenX=0,screenY=0,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=yes,status=yes");
 newWindow.document.open();
 newWindow.document.writeln('<html>');
 newWindow.document.writeln('<title>'+text+'<\/title>');
 newWindow.document.writeln('<body><img src="'+path+imgFile+'" alt="'+text+'">');
 newWindow.document.writeln(" <\/body><\/html> ");
 newWindow.focus();
}

function dispImg(imgFile, title, wd, ht){
 //alert("imgFile="+imgFile+" title="+title);
 // Open new window to display calendar
 var features = "height="+ht+",width="+wd+",left=0,top=0,screenX=0,screenY=0,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=yes,status=yes"
 //alert("displayImage()  title="+title+"  wd="+wd+"  \nfeatures="+features);
 var newWindow=window.open(imgFile, title, features);
 //newWindow.focus();
}

function trim(stringToTrim) {
	return stringToTrim.replace(/^\s+|\s+$/g,"");
}
function ltrim(stringToTrim) {
	return stringToTrim.replace(/^\s+/,"");
}
function rtrim(stringToTrim) {
	return stringToTrim.replace(/\s+$/,"");
}