var topLevelPages = Array ("Welcome", "AboutUs", "WorshipWithUs", "HighwayNews"/*, "SpecialEvents"*/, "MissionsSpotlight", "Links");
var aboutUsPages  = Array ("MinistriesAndStaff", "WhatWeBelieve", "BriefHistory", "ContactUs");
var worshipWithUsPages = Array ("WeeklySchedule", "Directions", "SpiritualHelp", /*"CareGroups",*/ "AboutOurBuilding");
var newsPages     = Array ("ThisWeekAtHighway", "Bulletin_SermonNotes", "EBulletinBlog", "MonthlyCalendar"/*, "KidsNewsletter"*/);
var missionsSpotlightPages     = Array ("delaCruz", "FromTheInsideOut");
var linksPages    = Array ("ResurrectionLifeChurch", "HighwayOnFacebook", "HighwayOnTwitter", "HighwayTabNews");

var redirectPages       = Array (/*"ThisWeekAtHighway",*/ "KidsNewsletter", "ResurrectionLifeChurch", "HighwayTabnews", "Bulletin_SermonNotes",
                                 "EBulletinBlog", "CareGroups", /*"MonthlyCalendar",*/ "HighwayOnFacebook", "HighwayOnTwitter",
                                 "delaCruz", "FromTheInsideOut");

var Bulletin_SermonNotesHREF   = "http://www.highwaytabernacle.org/Bulletin";
var EBulletinBlogHREF   = "http://www.highwaytab.blogspot.com";
var ResurrectionLifeChurchHREF= "http://ResLifeAg.org";
var HighwayTabNewsHREF= "http://www.HighwayTabNews.org";
var HighwayOnFacebookHREF= "http://www.facebook.com/home.php#/profile.php?id=1138762755";
var HighwayOnTwitterHREF= "http://twitter.com/highwaytab";
var MonthlyCalendarHREF= "https://www.google.com/calendar/embed?src=calendar%40highwaytabernacle.org&ctz=America/New_York";
// var MonthlyCalendarHREF= "Whoops.html";
var CareGroupsHREF= "CareGroups.html";
var KidsNewsletterHREF  = "Kids/index.html";
var ThisWeekAtHighwayHREF  = "https://www.google.com/calendar/embed?src=calendar%40highwaytabernacle.org&ctz=America/New_York";
//var ThisWeekAtHighwayHREF  = "Whoops.html";
var delaCruzHREF           = "http://highwaytabernacle.org/Bulletin/2009Jan-April_delaCruzNews.pdf";
var FromTheInsideOutHREF   = "http://www.fromtheinsideoutministries.org";

var numberOfPages = topLevelPages.length;
var numberOfAboutUsPages = aboutUsPages.length;
var numberOfWorshipWithUsPages = worshipWithUsPages.length;
var numberOfNewsPages = newsPages.length;
var numberOfMissionsSpotlightPages = missionsSpotlightPages.length;
var numberOfLinksPages = linksPages.length;

var firstAboutUsIndex           = numberOfPages;
var firstWorshipWithUsIndex     = firstAboutUsIndex + numberOfAboutUsPages;
var firstNewsIndex              = firstWorshipWithUsIndex + numberOfWorshipWithUsPages;
var lastNewsIndex               = firstNewsIndex + numberOfNewsPages - 1;
var firstMissionsSpotlightIndex = firstNewsIndex + numberOfNewsPages;
var lastMissionsSpotlightIndex  = firstMissionsSpotlightIndex + numberOfMissionsSpotlightPages - 1;
var firstLinksIndex             = firstMissionsSpotlightIndex + numberOfMissionsSpotlightPages;
var lastLinksIndex              = firstLinksIndex + numberOfLinksPages - 1;

var oneHalf       = "&#189";

var bullet       = "&#183";

var verticalBar  = "&#124";

var theTitle       = '<Font Face="Arial Black" Size="+3" Color="Maroon"><B>Highway Mission Tabernacle</B></Font><Font Face="Arial">'
                     +'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
                     +'<Small><B><Font Color="Gray" Face="Times New Roman">18<sup>th</sup> & Spring Garden, Philadelphia, PA 19130 &nbsp;' + bullet
                     +' &nbsp;(215) 563-9192 &nbsp;' + bullet
                     +' &nbsp;Fax(215)563-8116 &nbsp;' + bullet
                     +' <A Href="mailto:info@HighwayTabernacle.org">info@HighwayTabernacle.org</A></Small></B></Font><BR><BR>';
var theWelcomeSpec = '<TD Width="400">'
                    +'<Font Size="+1">'
                    +'<Center><B> Welcome to Highway Tabernacle!</B><BR><BR>'
                    +'<IMG Name   = "Site Map" '
                    +'Border = "0"'
                    +'SRC    = "Graphics/Highway.gif"'
                    +'ALT    = "Our Building on 18th and Spring Garden Streets">'
                    +'<BR>'
                    +'<B></Font>'
                    +' 18th and Spring Garden Streets'
                    +'<BR>'
                    +'   Philadelphia, Pennsylvania 19130'
                    +'<BR>'
                    +'   (215) 563-9192 ' + bullet + ' <A Href="mailto:info@HighwayTabernacle.org">info@HighwayTabernacle.org</A>'
                    +'<BR>'
                    +'   <Font Face="Arial" Color="Blue">'
                    +'     "Building a Family to Serve a Community"'
                    +'   </Font>'
                    +'</B>'
                    +'</Font>'
                    +'<BR><BR>'
                    +'<div id="twitter_div" Style="text-Align:left; width:360; border:thin solid lightGrey; background:white; font-Size:12;">'
                    +'<h4 class="sidebar-title">Latest News</h4>'
                    +'<ul id="twitter_update_list"></ul>'
                    +'<Span Style="display:block; text-align:right;">See more at <a href="http://twitter.com/highwaytab" id="twitter-link">Twitter</a></span>'
                    +'<BR>'
                    +'</div>'
                    +'<BR>'
                    +'<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>'
                    +'<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/highwaytab.json?callback=twitterCallback2&amp;count=1"></script>'
                    +'</TD>';

var theAboutUsSpec = '<TD Width="400">'
                    +'<B><Font Size="+1"><U>About Highway Tabernacle</U></Font></B><BR>'
                    +'<BR>"<B>We\'re building a family to serve a community."</B><BR><BR> '
                    +'<P Align="Justify">Highway Tabernacle is a member of the General Council of the '
                    +'<A Href="javascript:\'http://ag.org\'.popUp();">Assemblies of God</A>, the largest Pentecostal denomination in the world.<BR><BR> '
                    +'In addition to traditional church ministry, including a nursery for infants and classes for children, we offer English as a Second Language classes, access to Teen Challenge Drug/Alcohol'
                    +' Rehab Program, and Christian counseling.<BR><BR> '
                    +'</TD>';

var theBriefHistorySpec = '<TD Width="400">'
                    +'<B><Font Size="+1"><U>A Brief History</U></Font></B><UL>'
                    +'<P Align="Justify">Highway Tabernacle was established on Thanksgiving day in 1894 by seven members of the Cross and Crown society as '
                    +'an evangelistic work. They began with a Gospel Wagon, which they drove through the city of Philadelphia spreading the '
                    +'message of salvation.<BR><BR>  '
                    +'In 1918, the congregation voted to affiliate with the then-new <A Href="javascript:\'http://ag.org\'.popUp();">Assemblies of God</A>.<BR><BR>  '
                    +'Past pastors of Highway have included two men who went on to the position of General Superintendent of the Assemblies of God, as '
                    +'well as district presbyters. <BR><BR> '
                    +'Highway was one of the first Assemblies of God churches to send out missionaries.<BR><BR>  '
                    +'Highway has never abandoned the City. Our renewed commitment to the Spring Garden, Art Museum, and Fairmount neighborhoods is summed up in our '
                    +'Mission Statement: <B>We\'re Building a Family to Serve Our Community!</B>'
                    +'</TD>';

var theMinistriesAndStaffSpec = '<TD Width="550">'
                    +'<B><Font Size="+1"><U>Our Pastors and Staff</U></B></Font>'
                    + ministersText
                    +'</TD>';

var theWhatWeBelieveSpec = '<TD Width="550" BGColor="OldLace">'
                    +'<B><Font Size="+1">The Sixteen Fundamental Truths of the '
                    +'<A Href="javascript:\'http://ag.org/top/beliefs/truths.pdf\'.popUp();">Assemblies of God</A></B></Font><OL>'
                    +'<LI>We believe that the Scriptures, both Old and New Testaments, are verbally inspired of God and are the revelation  '
                    +'of God to man, the infallible, authoritative rule of faith and conduct.   '
                    +'(<A Href="javascript:showVerse(\'2 Timothy 3:15-17\');">2 Timothy 3:15-17</A>;   '
                    +'<A Href="javascript:showVerse(\'1 Thessalonians 2:13\');">1 Thessalonians 2:13</A>; <A Href="javascript:showVerse(\'2 Peter 1:21\');">2 Peter 1:21</A>)'
                    +'<LI>We believe in One True God, revealed in three interrelated persons: Father, Son and Holy Spirit '
                    +'(<A Href="javascript:showVerse(\'Matthew 28:19\');">Matthew 28:19</A>) '
                    +'<LI>We believe the Lord Jesus Christ is fully God '
                    +'(<A Href="javascript:showVerse(\'Revelation 1:8\');">Revelation 1:8</A>)'
                    +'<LI>We believe man has sinned and fallen from a right relationship with God '
                    +'(<A Href="javascript:showVerse(\'Romans 5:12-19\');">Romans 5:12-19</A>) '
                    +'<LI>We believe man can be saved from judgment from God by renouncing their sin and putting their faith in the '
                    +'death and resurrection of the Lord Jesus Christ '
                    +'(<A Href="javascript:showVerse(\'Romans 6:23\');">Romans 6:23</A>) '
                    +'<LI>We believe in the ordinances of baptism in water '
                    +'(<A Href="javascript:showVerse(\'Mark 16:16\');">Mark 16:16</A>) '
                    +'and Holy communion '
                    +'(<A Href="javascript:showVerse(\'I Corinthians 11:26\');">I Corinthians 11:26</A>)'
                    +'<LI>We believe in the Baptism of the Holy Spirit for empowerment to witness '
                    +'(<A Href="javascript:showVerse(\'Acts 1:8\');">Acts 1:8</A>)'
                    +'<LI>We believe in the Initial Physical Evidence of the Baptism of the Holy Spirit by speaking in unknown tongues '
                    +'(<A Href="javascript:showVerse(\'Acts 2:4\');">Acts 2:4</A>)'
                    +'<LI>We believe in Sanctification which is the act of separating ourselves from evil and identifying with things that are '
                    +'morally pure '
                    +'(<A Href="javascript:showVerse(\'I Thessalonians 5:23\');">I Thessalonians 5:23</A>) '
                    +'<LI>We believe the church and its mission consists of three things: To be an agency for God for evangelizing the world '
                    +'(<A Href="javascript:showVerse(\'Matt. 28:19-20\');">Matt. 28:19-20</A>), '
                    +'to be a corporate or unified body in which man may worship God '
                    +'(<A Href="javascript:showVerse(\'I Corinthians 12:13\');">I Corinthians 12:13</A>), and to be a channel '
                    +'of God\'s purpose to build the body of saints being perfected in the image of His Son '
                    +'(<A Href="javascript:showVerse(\'Ephesians 4:11-16\');">Ephesians 4:11-16</A>) '
                    +'<LI>We believe Ministry is the response to divine call scripturally ordained in the Bible '
                    +'(<A Href="javascript:showVerse(\'Ephesians 4:11\');">Ephesians 4:11</A>) '
                    +'<LI>We believe in divine healing '
                    +'(<A Href="javascript:showVerse(\'James 5:14-16\');">James 5:14-16</A>) '
                    +'<LI>We believe in the Blessed Hope of all believers '
                    +'(<A Href="javascript:showVerse(\'I Thessalonians 4:17\');">I Thessalonians 4:17</A>) '
                    +'<LI>We believe in the Millennial Reign of Christ '
                    +'(<A Href="javascript:showVerse(\'Revelation 20:1-6\');">Revelation 20:1-6</A>) '
                    +'<LI>We believe in the Final Judgment of mankind '
                    +'(<A Href="javascript:showVerse(\'Revelation 20:11-15\');">Revelation 20:11-15</A>) '
                    +'<LI>And we believe in the New Heaven and the New Earth '
                    +'(<A Href="javascript:showVerse(\'Revelation 21\');">Revelation 21</A> & '
                    +'<A Href="javascript:showVerse(\'Revelation 22\');">22</A>)'
                    +'</TD>';

var theWorshipWithUsSpec = '<TD Width="400">'
                    +'<B><Font Size="+1"><U>Welcome!</U></Font></B><UL>'
                    +'<P Align="Justify">We are located in Center City, Philadelphia, a city whose motto is appropriate for our church: '
                    +'"Where Old and New Beckon You."<BR><BR>'
                    +' Highway Tabernacle was established in 1894, and has ministered in Philadelphia for over 100 years.'
                    +'<BR><BR>'
                    +'However, for all its rich history, Highway is not a museum of the past, but, rather, a living entity '
                    +'where the Spirit of God and the Word of God are presented to people of all '
                    +'generations, nationalities, races and backgrounds.'
                    +'</TD>';

var theHighwayNewsSpec = '<TD Width="600"><Font Size="+1">'
                    +'For the latest news, please follow Highway on Twitter (<A Href="http://twitter.com/highwaytab">http://twitter.com/highwaytab</A>).'
                    +'<BR><BR> You can set up Twitter to text you whenever Highway posts an update.  (You will receive no more than 5 texts a week.)'
                    +' Twitter is a free service.  You can sign up at <A Href="https://twitter.com/signup">https://twitter.com/signup</A>.'
                    +'<BR><BR>You can also sign up for Highway\'s e-bulletin at <A Href="http://highwaytab.blogspot.com/">http://highwaytab.blogspot.com/</A>.'
                    +'</TD>';

var theMissionsSpotlightSpec = '<TD Width="550">'
                    +'<B><Font Size="+1"><U>Missions Spotlight</U></B></Font>'
                    +'<LI>Bob Durham - <A Href="http://www.fromtheinsideoutministries.org">From the Inside Out Ministries</A><BR>'
                    +'&nbsp; &nbsp; &nbsp; &nbsp; Taking Global University to the incarcerated'
                    +'<LI>Amy and Roli dela Cruz - <A Href="http://highwaytabernacle.org/Bulletin/2009Jan-April_delaCruzNews.pdf">Asia-Pacific Theological Seminary</A><BR>'
                    +'&nbsp; &nbsp; &nbsp; &nbsp; Highway\'s own Amy dela Cruz and husband, Roli'
                    +'</TD>';

var theContactUsSpec = '<TD Width="260">'
                    +'<B><Font Size="+1"><U>Contact Us</U></Font></B><UL>'
                    +'<B>Mailing Address:</B>'
                    +'<UL>Highway Tabernacle<BR> '
                    +'1801 Spring Garden St<BR> '
                    +'PO Box 15191<BR> '
                    +'Philadelphia, PA 19130</UL>'
                    +'<B>Phone:</B>'
                    +'<UL>'
                    +'Voice: (215) 563-9192 <BR> Fax: (215) 563-8116</UL>'
                    +'<B>E-Mail:</B>'
                    +'<UL>'
                    +'<A Href="mailto:info@HighwayTabernacle.org">info@HighwayTabernacle.org</A><BR> '
                    +'</TD>';

var theWeeklyScheduleSpec = '<TD Width="400">'
                    +'<B><Font Size="+1"><U>Weekly Schedule</U></Font></B>'
/*                    +'<Table Style="font-size:11;"> '
                    +'<TR><TD Colspan="2" Style="font-size:\'12\'"><B>Sunday</B></Font></TD></TR>'
                    +'<TR> <TD>   &nbsp;&nbsp;Coffee Fellowship </TD> <TD Align="Right">   9:30 a.m. </TD></TR>'
                    +'<TR Valign="Top"> <TD>   &nbsp;&nbsp;Back to the Bible Classes</TD> <TD Align="Right">   9:45 a.m. </TD></TR>'
                    +'<TR> <TD>   &nbsp;&nbsp;Morning Worship </TD> <TD Align="Right">  10:45 a.m. </TD></TR>'
                    +'<TR> <TD>   &nbsp;&nbsp;Prayer </TD> <TD Align="Right">   5:30 p.m. </TD></TR>'
                    +'<TR> <TD>   &nbsp;&nbsp;Evening Service'
                    +'</TD> <TD Align="Right" Valign="Top">   6:00 p.m. </TD></TR>'
                    +'<TR><TD Colspan="2" Align="Center"><I>First Sunday - Prayer'
                    +'<BR>Second Sunday - Home Fellowships'
                    +'<BR>Fifth Sunday - Newcomers\' Fellowship</TD></TR>'
//                    +'<TR>  <TD Colspan="2" Style="font-size:\'12\'">    <B>Tuesday - Friday</B>    </Font>  </TD></TR>'
//                    +'<TR> <TD>   &nbsp;&nbsp;Prayer Hour </TD> <TD Align="Right">   Noon </TD></TR>'
                    +'<TR>  <TD Colspan="2" Style="font-size:\'12\'">     <B>Thursday</B>    </Font>  </TD></TR>'
                    +'<TR> <TD>   Family Night Services </TD> <TD Align="Right">   7:00 p.m. </TD></TR>'
                    +'<TR>  <TD Colspan="2" Style="font-size:14 pt; color:maroon;" Align="Center"> &nbsp;<BR>For the latest information and schedule,'
                    +'       please see <A Href="https://www.google.com/calendar/embed?src=calendar%40highwaytabernacle.org&ctz=America/New_York">Highway\'s on-line calendar</A>    </Font>  </TD></TR>'
                    +'</Table> '
*/                    +'<Table Style="font-size:11; color:black; background:tan; border:medium solid black;"> '
                    +'<TR><TD Colspan="2" Style="font-size:12;"><B>Sundays (Until further notice)</B></Font></TD></TR>'
                    +'<TR> <TD>   &nbsp;&nbsp;Morning Prayer at Highway </TD> <TD Align="Right">  9:00 a.m. </TD></TR>'
                    +'<TR> <TD>   &nbsp;&nbsp;Morning Worship at Highway </TD> <TD Align="Right">  10:00 a.m. </TD></TR>'
                    +'<TR> <TD>   &nbsp;&nbsp;Morning Prayer at <A Href="http://ResLifeAG.org">Resurrection Life</A> </TD> <TD Align="Right">  11:00 a.m. </TD></TR>'
                    +'<TR> <TD>   &nbsp;&nbsp;Morning Worship at <A Href="http://ResLifeAG.org">Resurrection Life</A></TD> <TD Align="Right">  12:00 Noon </TD></TR>'
                    +'<TR> <TD>   &nbsp;&nbsp;Evening Service'
                    +'</TD> <TD Align="Right" Valign="Top">   7:00 p.m. </TD></TR>'
                    +'<TR>  <TD Colspan="2" Style="font-size:\'12\'">     <B>Wednesday</B>    </Font>  </TD></TR>'
                    +'<TR> <TD>   Bible Studay at  <A Href="http://ResLifeAG.org">Resurrection Life</A></TD> <TD Align="Right">   7:00 p.m. </TD></TR>'
                    +'<TR>  <TD Colspan="2" Style="font-size:\'12\'">     <B>Thursday</B>    </Font>  </TD></TR>'
                    +'<TR> <TD>   Family Night Services </TD> <TD Align="Right">   7:00 p.m. </TD></TR>'
                    +'<TR>  <TD Colspan="2" Style="font-size:14 pt; color:maroon;" Align="Center"> &nbsp;<BR>For the latest information and schedule,'
                    +'       please see <A Href="https://www.google.com/calendar/embed?src=calendar%40highwaytabernacle.org&ctz=America/New_York">Highway\'s on-line calendar</A>    </Font>  </TD></TR>'
                    +'</Table> '
                    +'</TD>';

var theDirectionsSpec = '<TD Width="400">'
                    +'<B><Font Size="+1"><U>Getting to Highway</U></Font></B><BR><BR>'
                    +'<Table Style="font-size:\'12\'; Background:OldLace" Cellpadding="6">'
                    +'<TR><TD>'
                    +'Highway Tabernacle is located on the Northwest corner of 18th and Spring Garden Streets, '
                    +'a short walk or cab ride from most Center City hotels.  We\'re three blocks west of the Spring Garden stop on the '
                    +'Broad Street Subway (the Orange Line).</TD></TR>'
                    +'<TR><TD Align="Center" Width="50%">'
                    +'<a href="javascript:\'http://rd.yahoo.com/maps/insert/extmap/*-http://maps.yahoo.com/py/maps.py?&country=us&addr=1801+Spring+Garden+St&city=Philadelphia&state=PA&zip=19130-3916&mag=9\'.popUp()">'
                    +'See a Map</A>'
                    +'<Big> ' + bullet + ' </Big>'
                    +'<a href="javascript:\'http://rd.yahoo.com/maps/us/Tmap/extDD/*-http://maps.yahoo.com/py/ddResults.py?&newcountry=us&newtcountry=us&taraddr=1801+Spring+Garden+St&tarcity=Philadelphia&tarstate=PA&tarzip=19130-3916\'.popUp()">'
                    +'Get Directions from <B>Your</B> Location</A>'
                    +'<BR>'
                    +'<Small>Map and Directions by courtesy of '
                    +'<img src="http://us.i1.yimg.com/us.yimg.com/i/us/mp/gr/mplogo.gif" width="99" height="13" border=0 align=middle alt="[ Yahoo! Maps ]">'
                    +'</TD></TR>'
                    +'<TR><TD Colspan="2">'
                    +'Need more info?  Need a ride? Call us at (215) 563-9192 or <A Href="mailto:info@HighwayTabernacle.org?subject=Directions">E-mail us</A>'
                    +'</TD></TR>'
                    +'</Table>'
                    +'</TD>';

var theSpiritualHelpSpec = '<TD Width="600">'
                    +'<B><Font Size="+1"><U>How To Be Saved And Know It</U></Font></B><UL>'
                    +'<P Align="Justify"> '
                    +'"For whosoever shall call upon the name of the Lord shall be saved." '
                    +'(<A Href="javascript:showVerse(\'Romans 10:13\');">Romans 10:13</A>) <BR><BR>'
                    +' Wherever you are right now, tell God that you are a sinner, ask Him to forgive you for your sins and receive Jesus Christ as your '
                    +' Savior. Claim salvation by faith, "for by grace are ye saved through faith; and this not of yourselves; it is the gift of God; '
                    +' not of works, lest any man should boast." '
                    +'(<A Href="javascript:showVerse(\'Ephesians 2:8-9\');">Ephesians 2:8-9</A>) <BR><BR>'
                    +' You may pray this simple prayer, meaning it with all your heart:<UL>'
                    +' Dear Lord, I know that I am a sinner, but I am sorry for my sins. I believe that the Lord Jesus died for me and rose again, and, '
                    +'with all my heart, I turn from my sin and receive Him as my Savior. Thank you, Lord, for saving me. Amen.</UL> '
                    +'<BR>We\'d like to talk with you. Please <A Href="mailto:info@HighwayTabernacle.org">contact us</A>. '
                    +'</TD>';

var theAboutOurBuildingSpec = '<TD Width="600">'
                    +'<B><Font Size="+1"><U>About Our Building</U></Font></B><UL>'
                    + picturesText
                    +'</TD>';

var theThisWeekAtHighwaySpec = '<TD Width="600">'
                    +'<B><Font Size="+1"><U>This Week at Highway</U></Font></B><UL>'
                    +' <iframe src="https://www.google.com/calendar/embed?src=calendar%40highwaytabernacle.org&ctz=America/New_York" '
                  //  +' <iframe src="Whoops.html" '
                    +' style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>'
                    +'</TD>';


var theWeeklyBulletinSpec = '<TD Width="600">'
                    +'<B><Font Size="+1"><U>This Week\'s E-Bulletin</U>'
                    +'&nbsp;&middot; </B> [ <A Href="javascript:\'BulletinArchives/index.html\'.popUp();"><B>Printed Bulletin</A> </B>]</Font><HR>'
                    +theEBulletin
                    +'<LI>If you\'d like to receive our E-bulletin every week, please '
                    +'<A Href="mailto:EBulletin@HighwayTabernacle.org?Subject=Please Add Me to the E-Bulletin List">let us know</A>.'
                    +'</TD>';

var theMonthlyCalendarSpec = '<TD Width="600">'
                    +'<B><Font Size="+1"><U>This Month\'s Calendar</U></Font></B>'
                    +' <iframe src="https://www.google.com/calendar/embed?src=calendar%40highwaytabernacle.org&ctz=America/New_York" '
         //           +' <iframe src="Whoops.html" '
                    +' style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>'
                    +'</TD>';

var theSpecialEventsSpec = '<TD Width="600" Align="Center">'
                    +'<B><Font Size="+1"><U>From the Special Events Committee</U></Font></B>'
                    +'<H2>Coming to Highway Tabernacle ' + dates[0] + ':'
                    +'<BR>' + description[0] + '<BR>'
                    +'<B><Font Color="Maroon">' + performers[0] + '</Font></B></H2>'
                    +'<H3>' + specialEvents[0] + '</H3>'
                    +'For ticket information, call (215) 563-9192 or e-mail us at '
                    +'<A Href="mailto:info@HighwayTabernacle.org?Subject=' + performers[0] + '">info@HighwayTabernacle.org</A>'
                    +'<BR><H3>More special events on the <A Href="javascript:\'SpecialEvents/index.html\'.popUp();">Fine Arts Committee Page</A></H3>'
                    +'</TD>';

var theSpringGardenAcademySpec = '<TD Width="265">'
                    +'<Center><Font Face="Kristen ITC">Christian Preschool/Daycare<BR>Kindergarten<BR>Before and Aftercare Program<BR>'
                    +'<IMG SRC="SpringGardenAcademy/Graphics/SGAPromo.gif"><BR>'
                    +'Spring Garden Academy is a garden in the<BR>city where children can learn and grow.<BR><BR></Font>'
                    +'<H4><BR><A Href="javascript:\'SpringGardenAcademy/index.html\'.popUp();">Spring Garden Academy Pages</A></H4>'
                    +'</TD>';

var theLinksSpec = '<TD Width="600">'
                    +'<Center><B><Font Size="+1"><U>Other Sites of Interest</U></Font></B></Center>'
                    +'<H3>Sites that mention Highway Tabernacle:</H3>'
                    +'<UL><LI>Patrick J. Murphy & Associates: <A Href="javascript:\'http://www.pjmorgans.com/MechActionP12specs.html\'.popUp(\'DramaticPics\');"><B>Dramatic pictures</B></A> '
                           +'of Highway\'s organ and of the sanctuary after the fire'
                    +'<LI>Minnesota Public Radio - PipeDreams.org: '
                        +'<A Href="javascript:\'http://pipedreams.mpr.org/listings/shows03_04.htm#0316 PipeDreams\'.popUp(\'PipeCD\');"><B>CD</B></A> featuring Highway\'s organ'
                                        +'   and <A Href="javascript:\'http://pipedreams.mpr.org/album/03_pages/042103_roosevelthighway.shtml\'.popUp(\'PipePics\');"><B>photograph</B></A> of the organ'

                    +'<LI>Historic Organs of Philadelphia: <A Href="javascript:\'http://www.ohscatalog.org/hisorofphil1.html\'.popUp(\'HistOrgPHL\');"><B>CD</B></A> with a selection played on Highway\'s 1884 Roosevelt Organ'

                    +'<BR>&nbsp;<LI>Wetzel & Son Funeral Home: <A Href="javascript:\'http://www.wetzelandson.com/2-5roberson,howard.html\'.popUp(\'RobersonBio\');"><B>obituary</B></A> '
                                        +' of Pastor Emeritus W. Howard Roberson'
                    +'<LI>R.W. Schambach: <A Href="javascript:\'http://www.schambach.org/rws_bio.htm\'.popUp(\'SchambackBio\');"><B>biography</B></A> (Married at Highway Tabernacle)'
                    +'<BR>&nbsp;<LI>Highway Home for the Aged: <A Href="javascript:\'http://www.users.voicenet.com/~highway/home.html\'.popUp(\'HwyHome\');"><B>history page</B></A> (founded in 1951 by Highway Tabernacle)'

                    +'</UL><H3>Other churches named Highway Tabernacle:</H3>'

                    +'<UL><LI><A Href="javascript:\'http://fm2.forministry.com/Church/Listing.asp?SiteId=12118HTAOG\'.popUp(\'HwyMexville\');">Highway Tabernacle Assembly of God</A> Mechanicville, New York <B> ~ Listing Only; no web site</B>'
                    +'<LI><A Href="javascript:\'http://fm2.forministry.com/Church/Listing.asp?SiteId=14889HT\'.popUp(\'HwyVanEtt\');">Highway Tabernacle Assembly of God</A> Van Etten, New York <B> ~ Listing Only; no web site</B>'
                    +'<LI><A Href="javascript:\'http://fm2.forministry.com/Church/Listing.asp?SiteId=44515HTA1\'.popUp(\'HWYYngstwn\');">'
                                +'Highway Tabernacle Assembly of God</A> Youngstown, Ohio <B> ~ Listing Only; no web site</B><BR>&nbsp;'
                    +'<LI><A Href="javascript:\'http://fm2.forministry.com/Church/church.asp?SiteId=74335HT\'.popUp(\'HWYCardin\');">Highway Tabernacle</A> (Pentecostal Church of God) Cardin, Oklahoma'
                    +'<LI><A Href="javascript:\'http://fm2.forministry.com/Church/Listing.asp?SiteId=93235HT\'.popUp(\'HwyIvanhoe\');">Highway Tabernacle</A> '
                                    +' (Pentecostal Church of God) Ivanhoe, California <B> ~ Listing Only; no web site</B>'
                    +'<LI><A Href="javascript:\'http://www.highwaytab.com/\'.popUp(\'HWYKennewick\');">Highway Tabernacle</A> (Church of God) Kennewick, Washington'
                    +'<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - or - <A Href="javascript:\'http://www.cbvcp.com/hiway-tabernacle/\'.popUp(\'HWYKennewickAlt\');">this one</A> (their old site?)'
                    +'<LI><A Href="javascript:\'http://www.mb-on.paoc.org/portage/\'.popUp(\'HwyPortPrair\');">Highway Tabernacle</A> (Pentecostal Assemblies of Canada) Portage La Prairie, Manitoba'

                    +'<BR>&nbsp;<LI><A Href="javascript:\'http://fm2.forministry.com/Church/Listing.asp?SiteId=47802KHT\'.popUp(\'KingHwy\');">King\'s Highway Tabernacle</A> (Pentecostal) Terre Haute, Indiana <B> ~ Listing Only; no web site</B>'

                    +'</UL></TD>';

 theResurrectionLifeSpec = "Hey what's going on over there?";
 function broadCast (theEvent) {

  var imageTest = new Image;
      imageTest.src =  theEvent + ".jpg";  // write something to the usage logs

}

function popUp () {

  if (popUp.arguments.length) broadCast(popUp.arguments[0]);
   var linkWindow = window.open (this, "linkWindow", "width=640,height=480,scrollbars,resizable,location,status,toolbar");
   linkWindow.focus();
//   linkWindow.moveTo(260,0);
}

 String.prototype.popUp  = popUp;

function showVerse (theReference) {

 var theScripture = "";

 for (referenceIndex = 0; referenceIndex < theReference.length; referenceIndex++) 
   theScripture += (theReference.charAt(referenceIndex) == " ") ?  "+" : theReference.charAt(referenceIndex);

 ('http://www.biblegateway.com/cgi-bin/bible?passage=' + theScripture).popUp();

}

function indexOf (selectedString, ignoreCase) {

 var index     = -1;
 var caseCheck = (indexOf.arguments.length == 1 || ignoreCase) ? ".toUpperCase()" : "";
 var flatVersion = eval ("this.toString()" + caseCheck);
 var stringToFind  = eval ("selectedString" + caseCheck);

 if (stringToFind.length > 0 && this.length > 1) {

    var stringLocation = flatVersion.indexOf(stringToFind);

    if (stringLocation >= 0) {

      for (charIndex = 0; charIndex < stringLocation; charIndex++)
          if (flatVersion.charAt(charIndex) == ",") index++
      index++;

    }

  }

  return (index);

}


Array.prototype.indexOf = indexOf;

function plus (theArray) {


  var tempArray = Array ();
  tempArray = this;

  for (arrayIndex = 0; arrayIndex < theArray.length; arrayIndex++) 
     tempArray[tempArray.length] = theArray [arrayIndex];

  return (tempArray);

}

Array.prototype.plus = plus;

var allThePages = Array ();
    allThePages = topLevelPages.plus(aboutUsPages).plus(worshipWithUsPages).plus(newsPages).plus(missionsSpotlightPages).plus(linksPages);

var grandTotalOfPages = allThePages.length;

function thePageNumber () {

  thePageName = (location.search.indexOf("?") < 0) ? allThePages[0] : location.search.substring (1, location.search.length);

  return (allThePages.indexOf (thePageName));

}

function scroll (theDescription) {

  scrollingEnabled = false;
  document.ScrollSpace.ScrollText.value = theDescription;

}

function scrollDefault () {

  scrollingEnabled = true;

}

function writeTheInfoFor (pageNumber) {
  var redirectPage = redirectPages.indexOf(allThePages[pageNumber])+1;
 // if (redirectPage) eval(allThePages[pageNumber] + 'HREF.popUp()');
// if (redirectPage) eval ('location.href = ' + allThePages[pageNumber] + 'HREF');

  var theAboutUsPage  = topLevelPages.indexOf("AboutUs");
  var theWorshipWithUsPage  = topLevelPages.indexOf("WorshipWithUs");
  var theNewsPage  = topLevelPages.indexOf("HighwayNews");
  var theMissionsSpotlightPage  = topLevelPages.indexOf("MissionsSpotlight");
  var theLinksPage  = topLevelPages.indexOf("Links");

  document.title = allThePages[pageNumber].expanded();

  document.writeln ('<Body BGColor="White">');

  document.writeln (theTitle);

  document.writeln ('<Table style="font-size:\'12\'"><TR Valign="Top">');
  document.writeln ('<TD Width="140" style="font-size:\'10\'">');

  for (menuIndex = 0; menuIndex < numberOfPages; menuIndex++) {

   if (menuIndex == pageNumber) 

           document.writeln ('<Img Src="Graphics/RightArrow.gif" Align="Left"><B><A Style="background:Black; Color:White; font-size:12"');

   else if ((pageNumber >= firstAboutUsIndex && pageNumber < firstWorshipWithUsIndex && menuIndex == theAboutUsPage) ||
           (pageNumber >= firstWorshipWithUsIndex && pageNumber < firstNewsIndex && menuIndex == theWorshipWithUsPage) ||
           (pageNumber >= firstNewsIndex && menuIndex == theNewsPage)) {

              document.writeln ('<Img Src="Graphics/SmallRightArrow.gif" Align="Left">' +
                                '<B><A Href="index.html?' + topLevelPages[menuIndex] + '"');

              if (!oldJavaVersion)
                 document.writeln (' Style="background:Black; Color:White; font-size:12; text-decoration:none"' +
                                   ' onMouseOver="this.style.background=\'Maroon\';this.style.color=\'White\';"' +
                                   ' onMouseOut="this.style.background=\'Black\';this.style.color=\'White\';"');

          }

     else {

      document.writeln (verticalBar + ' <A Href="index.html?' + topLevelPages[menuIndex] + '"');

      if (!oldJavaVersion)
           document.writeln (' Style="text-decoration:none"' +
                             ' onMouseOver="this.style.background=\'Maroon\'; this.style.fontSize=\'11\';  this.fontWeight=\'Bold\'; this.style.color=\'White\';"' +
                             ' onMouseOut="this.style.background=\'transparent\'; this.style.fontSize=\'10\'; this.style.fontWeight=\'Normal\'; this.style.color=\'Blue\';"');
           }

  document.writeln ('>' + topLevelPages[menuIndex].expanded()+ '</A></B>');


       if (menuIndex == theAboutUsPage)
         for (aboutUsIndex = firstAboutUsIndex; aboutUsIndex < firstWorshipWithUsIndex; aboutUsIndex++) {

             document.writeln ('<BR>&nbsp;&nbsp; ');

             if (aboutUsIndex == pageNumber)
               document.writeln ('<Img Src="Graphics/SmallRightArrow.gif"> <A Style="background:Gray; Color:White; font-size:11"');
             else {

               document.writeln (bullet + ' <A Href="index.html?' + allThePages[aboutUsIndex] + '"');
           
               if (!oldJavaVersion) document.writeln (' Style="text-decoration:none" ' +
                                                      'onMouseOver="this.style.background=\'Maroon\'; this.style.fontSize=\'11\';  this.fontWeight=\'Bold\'; this.style.color=\'White\';"' +
                                                      'onMouseOut="this.style.background=\'transparent\'; this.style.fontSize=\'10\'; this.style.fontWeight=\'Normal\'; this.style.fontWeight=\'Normal\'; this.style.color=\'Blue\';"');

              }

          document.writeln ('>' + allThePages[aboutUsIndex].expanded() + '</A></B>');

         }

        if (menuIndex == theWorshipWithUsPage)
          for (worshipWithUsIndex = firstWorshipWithUsIndex; worshipWithUsIndex < firstNewsIndex; worshipWithUsIndex++) {

           document.writeln ('<BR>&nbsp;&nbsp; ');
             if (worshipWithUsIndex == pageNumber)
               document.writeln ('<Img Src="Graphics/SmallRightArrow.gif"> <A Style="background:Gray; Color:White; font-size:11"');
             else {
               document.writeln (bullet + ' <A Href="' +
                                    (redirectPages.indexOf(allThePages[worshipWithUsIndex])+1 ? eval(allThePages[worshipWithUsIndex] + "HREF") :
                                                                                       'index.html?' + allThePages[worshipWithUsIndex])
                                + '" ');

              if (!oldJavaVersion)
                 document.writeln (' Style="text-decoration:none" ' +
                                   'onMouseOver="this.style.background=\'Maroon\'; this.style.fontSize=\'11\';  this.fontWeight=\'Bold\'; this.style.color=\'White\';"' +
                                   'onMouseOut="this.style.background=\'transparent\'; this.style.fontSize=\'10\'; this.style.fontWeight=\'Normal\'; this.style.color=\'Blue\';"');

              }

           document.writeln('>' + allThePages[worshipWithUsIndex].expanded() + '</A></B>');

          }

        if (menuIndex == theNewsPage)

          for (newsIndex = firstNewsIndex; newsIndex <= lastNewsIndex; newsIndex++) {

           document.writeln ('<BR>&nbsp;&nbsp; ');
             if (newsIndex == pageNumber)
               document.writeln ('<Img Src="Graphics/SmallRightArrow.gif"> <A Style="background:Gray; Color:White; font-size:11"');
             else {

               document.writeln (bullet + ' <A Href="' +
                                    (redirectPages.indexOf(allThePages[newsIndex])+1 ? eval(allThePages[newsIndex] + "HREF") :
                                                                                       'index.html?' + allThePages[newsIndex])
                                + '" ');

               if (!oldJavaVersion)
                  document.writeln ('Style="text-decoration:none" ' +
                                    'onMouseOver="this.style.background=\'Maroon\'; this.style.fontSize=\'11\';  this.fontWeight=\'Bold\'; this.style.color=\'White\';"' +
                                    'onMouseOut="this.style.background=\'transparent\'; this.style.fontSize=\'10\'; this.style.fontWeight=\'Normal\'; this.style.color=\'Blue\';"');

             }

           document.writeln('>' + allThePages[newsIndex].expanded() + '</A></B>');

          }

        if (menuIndex == theMissionsSpotlightPage)

          for (missionsSpotlightIndex = firstMissionsSpotlightIndex; missionsSpotlightIndex <= lastMissionsSpotlightIndex; missionsSpotlightIndex++) {

           document.writeln ('<BR>&nbsp;&nbsp; ');
             if (missionsSpotlightIndex == pageNumber)
               document.writeln ('<Img Src="Graphics/SmallRightArrow.gif"> <A Style="background:Gray; Color:White; font-size:11"');
             else {

               document.writeln (bullet + ' <A Href="' + eval (allThePages[missionsSpotlightIndex] +'HREF') + '"');

               if (!oldJavaVersion)
                  document.writeln ('Style="text-decoration:none" ' +
                                    'onMouseOver="this.style.background=\'Maroon\'; this.style.fontSize=\'11\';  this.fontWeight=\'Bold\'; this.style.color=\'White\';"' +
                                    'onMouseOut="this.style.background=\'transparent\'; this.style.fontSize=\'10\'; this.style.color=\'Maroon\';"');

             }

           document.writeln('>' + allThePages[missionsSpotlightIndex].expanded() + '</A></B>');

          }

        if (menuIndex == theLinksPage)

          for (linksIndex = firstLinksIndex; linksIndex <= lastLinksIndex; linksIndex++) {

           document.writeln ('<BR>&nbsp;&nbsp; ');
             if (linksIndex == pageNumber)
               document.writeln ('<Img Src="Graphics/SmallRightArrow.gif"> <A Style="background:Gray; Color:White; font-size:11"');
             else {

               document.writeln (bullet + ' <A Href="' + eval (allThePages[linksIndex] +'HREF') + '" Style="color:maroon; font-weight: bold;"');

               if (!oldJavaVersion)
                  document.writeln ('Style="text-decoration:none" ' +
                                    'onMouseOver="this.style.background=\'Maroon\'; this.style.fontSize=\'11\';  this.fontWeight=\'Bold\'; this.style.color=\'White\';"' +
                                    'onMouseOut="this.style.background=\'transparent\'; this.style.fontSize=\'10\'; this.style.color=\'Maroon\';"');

             }

           document.writeln('>' + allThePages[linksIndex].expanded() + '</A></B>');

          }

 document.writeln ('<BR><BR>');

  }

  document.writeln ('</TD>');

  if (!redirectPage) document.writeln (eval ('the' + allThePages[pageNumber] + 'Spec'));

  document.writeln ('</TR></Table>');

 document.writeln ('<HR Width="65%">');

} 
