//
//  This file contains functions and variables to make the game reports
//  and links on the game reports page and on the home page.
//
aEvents = [
//            ['Annual Church Planning Meeting',
//             'Jan 27',
//             'January, 27, 2010',
//             'On January 27th, we will be holding our annual planning meeting with sandwich luncheon after the 11:00 AM worship service.  As always, everyone is welcome to attend.'],
//            ['Area Wide Ministers/Wives Retreat',
//             'Feb 6-7',
//             'February 6-7, 2010',
//             'The Area Wide Ministers/Wives Retreat will be held on February 6-7 '+
//             'at the <a href="http://www.ichotelsgroup.com/h/d/ex/1/en/hotel/lxmtx" target="_blank">Holiday Inn Express</a> in Lampasas.'],
//            ['Coryell Deacons/Wives & Ministers/Spouses Dinner',
//             'March 1',
//             'March 1, 2010',
//             'On March 1st at 6:00 PM, the Coryell deacons/wives & ministers/spouses dinner we will be held at '+
//             'Eastwood Baptist Church in Gatesville.'],
//            ['North American Missions Week Of Prayer',
//             'March 7-14',
//             'March 7-14, 2010',
//             'March 7-14, is the North American Missions Week of Prayer.  Please make a special effort to remember '+
//             'North American Missions in your prayers.'],
//            ['Daylight Saving Time Begins',
//             'March 14',
//             'March 14, 2010',
//             'Daylight Saving Time begins on March 14th.  Don\'t forget to turn your clocks forward an hour.'],
//            ['Quarterly Business Meeting',
//             'March 14',
//             'March 14, 2010',
//             'Following the 11 o\'clock worship service, we will be holding our quarterly business meeting. Guests and members are welcome to attend!'],
//            ['Fifth Sunday',
//             'March 29',
//             'March 29, 2010',
//             'Fifth Sunday was started by a former pastor along with the Pidcoke Methodist Church. '+
//             'Both agreed to rotate services and have lunch afterwards. We will be joined by Pidcoke '+
//             'Methodist Church at Pidcoke Baptist Church for the 11:00 AM worship service. Lunch will be held afterwards '+
//             'at Pidcoke Baptist Church. Sunday School will be held as usual at 10:00 AM in the Pidcoke Baptist Church Sunday School building.'],
//            ['Easter Egg Hunt',
//             'April 4',
//             'April 4, 2010',
//             'Come worship with us this Sunday as we celebrate the resurrection of our Lord, Jesus Christ!  '+
//             'Kids, bring your baskets as we will be having an Easter egg hunt following the worship service!'],
//            ['Lord\'s Supper',
//             'April 11',
//             'April 11, 2010',
//             'This Sunday we will be observing the Lord\'s Supper in remembrance of our Lord, Jesus Christ.'],
//            ['50+ Camp',
//             'April 15',
//             'April 15, 2010',
//             'The Latham Springs 50+ Camp will take place Thursday, April 15th.  The Latham Springs Baptist Encampment is located at '+
//             '134 P.R. 223, Aquilla, TX 76622. More information on the emcampment can also be found at the Latham Springs website '+
//             'by clicking <a href="http://www.lathamsprings.com/" target="_blank">here</a>.'],
//            ['Mother\'s Day Service',
//             'May 9',
//             'May 9, 2010',
//             'We will be celebrating Mother\'s Day on May 9th.  Please join us for worship!'],
            ['Annual Fish Fry',
             'May 16',
             'May 16, 2010',
             'Out Annual Fish Fry will be held following the 11 o\'clock worship service on May 16.  Come join us for some good food and bring a friend!'],
            ['Associational Missions Week Of Prayer',
             'May 23-29',
             'May 23-29, 2010',
             'May 23-29, is our Associational Mission\'s Week of Prayer with special emphasis on Mexico Missions.  Please make a special effort to remember ' +
             'our Associational Missions and especially our missions in Mexico in your prayers.'],
            ['Fifth Sunday',
             'June 6',
             'June 6, 2010',
             'Fifth Sunday was started by a former pastor along with the Pidcoke Methodist Church. '+
             'Both agreed to rotate services and have lunch afterwards. We will be joined in worship by the Pidcoke '+
             'Methodist Church at Pidcoke Baptist Church for the 11:00 AM worship service. Lunch will be held afterwards '+
             'at Pidcoke Baptist Church. '+
             'Sunday School will be held as usual at 10:00 AM in the Pidcoke Baptist Church Sunday School building.'],
            ['Business Meeting',
             'June 13',
             'June 13, 2010',
             'Following the 11 o\'clock worship service, we will be holding our quarterly business meeting. Guests and members are welcome to attend!'],
            ['Father\'s Day Service',
             'June 20',
             'June 20, 2010',
             'We will be celebrating Father\'s Day on June 20th.  Come join us for worship!'],
            ['Lord\'s Supper',
             'July 11',
             'July 11, 2010',
             'This Sunday we will be observing the Lord\'s Supper in remembrance of our Lord, Jesus Christ.'],
            ['Children\'s Home Collection',
             'July 28',
             'July 28, 2010',
             'Our collection for the Texas Baptist Children\'s Home will end on July 28th.  Please bring your donations on or '+
             'before this date.  More information about the Children\'s Home can be found at <a href="http://www.tbch.org/" target="_blank">http://www.tbch.org/</a>. '+
             'Thank you for your help!']
//            ['Fifth Sunday',
//             'Aug 30',
//             'August 30, 2010',
//             'Fifth Sunday was started by a former pastor along with the Pidcoke Methodist Church. '+
//             'Both agreed to rotate services and have lunch afterwards. We will be joining Pidcoke '+
//             'Methodist Church at Pidcoke Methodist Church for the 11:00 AM worship service. Lunch will be held following the service. '+
//             'Sunday School will be held as usual at 10:00 AM in the Pidcoke Baptist Church Sunday School building.'],
//            ['Quarterly Business Meeting',
//             'Sept 13',
//             'September 13, 2010',
//             'Following the 11 o\'clock worship service, we will be holding our quarterly business meeting.'],
//            ['Week of Prayer for State Missions',
//             'Sept 13-20',
//             'September 13-20, 2010',
//             'September 13-20 is the Week of Prayer for State Missions (<a href="http://www.maryhilldavis.org/index.html" target="_blank">Mary Hill-Davis</a>). '+
//             'Please make a special effort to pray for our State Missions during this time.'],
//            ['Lord\'s Supper',
//             'Oct 4',
//             'October 4, 2010',
//             'This Sunday we will be observing the Lord\'s Supper in remembrance of our Lord, Jesus Christ.'],
//            ['125<sup>th</sup> Anniversary Celebration',
//             'Oct 11',
//             'October 11, 2010',
//             'Come join the fellowship as we celebrate 125 years of worshipping our Lord Jesus Christ.<br><br>'+
//             'Registration Begins at 9:30 AM<br>'+
//             'Morning Worship Service Begins at 10:00 AM<br>'+
//             'Lunch will be served at 12:00 PM<br><br>'+
//             'Please notice that the morning worship service is at 10 AM, not the normal 11 AM.'],
//            ['Coryell Association Annual Meeting',
//             'Oct 18',
//             'October 18, 2010',
//             'The Coryell Association Annual Meeting will be held October 18th at 3:30 PM at the Boots-N-Saddle Cowboy Church.'],
//            ['Thanksgiving Fellowship Meal',
//             'Nov 15',
//             'November 15, 2010',
//             'Join us for our Thanksgiving Fellowship Meal on November 15th.  There will be plenty of good food and as always everyone is invited.'],
//            ['Food for Families Drive Ends',
//             'Nov 20',
//             'November 20, 2010',
//             'The Food for Families drive will be ending November 20th.  Please bring all your donations by this day.'],
//            ['Mexico Angel Boxes Due',
//             'Nov 29',
//             'November 29, 2010',
//             'Mexico Angel Boxes are due November 29th at the Associational Office.'],
//            ['Christmas Program and Fellowship Meal',
//             'Dec 20',
//             'December 20, 2010',
//             'We will be celebrating the birth of our Lord Jesus Christ with plenty of food and fellowship, as well as, a Christmas Program.  Please come join us December 20th for our Christmas Program and Fellowship Meal following the 11 o\'clock worship service.']
//            ['Coryell Leadership & WMU Meeting',
//             'May 19',
//             'May 19, 2010',
//             'The Coryell Leadership and WMU meeting will be held at Jonesboro Baptist Church at 6:00 PM.'],
//            ['Memorial Day Service',
//             'May 26',
//             'May 26, 2010',
//             'We will be remembering our fallen soldiers on Memorial Day (May 26).  Please join us for worship!'],
//            ['Business Meeting',
//             'July 13',
//             'July 13, 2010',
//             'Following the 11 o\'clock worship service, we will be holding our quarterly business meeting.'],
//            ['Revival',
//             'July 11-13',
//             'July 11-13, 2010',
//             'Come worship with us at a good old fashioned revival!  Bring your friends and family as we worship with Dr. Willie Clark of Sweet Home Baptist Church presiding.'+
//             '  Services will be held at 7 PM on Friday and Saturday and at the 11 o\'clock worship service and 7 PM on Sunday.  We look forward to seeing'+
//             ' you there!'],
//            ['Coryell Leadership & WMU Meeting',
//             'Aug 25',
//             'August 25, 2010',
//             'The Coryell Leadership and WMU meeting will be held at Sweet Home Baptist Church in Gatesville at 6:00 PM.'],
//            ['50+ Camp',
//             'Sept 15-18',
//             'September 15-18, 2010',
//             'The Latham Springs 50+ Camp will be held September 15-18. '+
//             'The Latham Springs Baptist Encampment is located at '+
//             '134 P.R. 223, Aquilla, TX 76622. More information on the encampment can also be found at the Latham Springs website '+
//             'by clicking <a href="http://www.lathamsprings.com/" target="_blank">here</a>.'],
//            ['Coryell Association Annual Meeting',
//             'Oct 19',
//             'October 19, 2010',
//             'The Coryell Association Annual Meeting will be held October 19th at 3:30 PM at Coryell Community Church in Gatesville.'],
//            ['Daylight Saving Time Ends',
//             'Nov 2',
//             'November 2, 2010',
//             'Daylight Saving Time ends on November 2nd.  Don\'t forget to turn your clocks back an hour.'],
//            ['Fifth Sunday',
//             'Nov 30',
//             'November 30, 2010',
//             'Fifth Sunday was started by a former pastor along with the Pidcoke Methodist Church. '+
//             'Both agreed to rotate services and have lunch afterwards. We will be joined in worship by the Pidcoke '+
//             'Methodist Church at Pidcoke Baptist Church for the 11:00 AM worship service. Lunch will be held afterwards '+
//             'at Pidcoke Baptist Church. '+
//             'Sunday School will be held as usual at 10:00 AM in the Pidcoke Baptist Church Sunday School building.']
//            ['Revival',
//             'Sept 10-13',
//             'September 10-13, 2006',
//             'Come worship with us at a good old fashioned revival!  Bring your friends and neighbors as we worship the Lord with a new speaker each night.'+
//             '  We look forward to seeing you there!<br><br>'+
//             '<table align="center" width="80%" cellspacing=0 cellpadding=3 border=0 bordercolor=black style="background-color:#DDDDDD;border:1px solid black;font-size:8pt">'+
//             '<tr style="background:url(\'_images/Header-BG.png\');height:25px;background-color:#216394;color:white;"><th>Day</th><th>Time</th><th align="left">Speaker</th></tr>'+
//             '<tr><td align=center valign=top>Sunday</td><td align=center valign=top>11:00 AM</td><td><b>Bro. Nathan Booth</b><br>Pastor, Pidcoke Baptist Church</td></tr>'+
//             '<tr><td align=center valign=top>Sunday</td><td align=center valign=top>7:00 PM</td><td><b>Rev. Keith Dyer</b><br>Director, Texas Baptist Children\'s Home</td></tr>'+
//             '<tr><td align=center valign=top>Monday</td><td align=center valign=top>7:00 PM</td><td><b>Dr. Willie Clarke</b><br>Pastor, Sweet Home Baptist Church</td></tr>'+
//             '<tr><td align=center valign=top>Tuesday</td><td align=center valign=top>7:00 PM</td><td><b>Rev. Wade Lackey</b><BR>Pastor, Buchanan West Baptist Church</td></tr>'+
//             '<tr><td align=center valign=top>Wednseday</td><td align=center valign=top>7:00 PM</td><td><b>Rev. Marvin Donnell</b><br>Pastor, West Robinson Baptist Church</td></tr>'+
//             '</table><br><br>'+
//             '<center><b>Music nightly with Greg Casey from Live Oak Baptist Church!</b><br><br>'+
//             '<b>Ice cream and goodies will be served after the Wednesday night service!</b><br>'+
//             'For more information please contact Pastor Nathan Booth at (254) 248-1057</center>'],
//            ['Baptism',
//             'Sept 19',
//             'September 19, 2005',
//             'Join us Sunday for an old fashoined baptism at Cow House Creek.  Bring your own sack lunch and lawn chair. '+
//             'The baptism will be held after the 11 o\'clock worship service.']
//            ['Vacation Bible School Meeting',
//             'April 23',
//             'April 23, 2006',
//             'Vacation Bible School workers will be having a planning meeting after the worship service Sunday, April 23.'],
//            ['Pastor\'s Heart Surgery',
//             '',
//             '',
//             'Brother Booth has undergone quadruple by-pass surgery and is doing well.  Please keep our pastor in your '+
//             'prayers for a speedy and thorough recovery.<br><br>'+
//             '<b>Update:</b>  Sunday, April, 24th, was Brother Booth\'s third Sunday back in the pulpit.  He is looking and feeling '+
//             'much better.  Please continue to pray for the Pastor\'s full recovery.'],
//            ['New Library Additions',
//             '',
//             '',
//             'Check out the new additions to the Church library.'],
//            ['60+ Camp',
//             'Jan 24',
//             'January 24, 2006',
//             'The Latham Springs 60+ Camp in the Winter will be held Tuesday, January 24th.  The cost per person will be $6.00.  '+
//             'For more information and to register please see Antha Manning.  The Latham Springs Baptist Encampment is located at '+
//             '134 P.R. 223, Aquilla, TX 76622. More information on the emcampment can also be found at the Latham Springs website '+
//             'by clicking <a href="http://www.lathamsprings.com/" target="_blank">here</a>.'],
//            ['Mother\'s Day Service',
//             'May 13',
//             'May 13, 2007',
//             'We will be celebrating Mother\'s Day on May 13th.  Please join us for worship!'],
//            ['Memorial Day Service',
//             'May 27',
//             'May 27, 2007',
//             'We will be remembering our fallen soldiers on Memorial Day (May 27).  Please join us for worship!'],
//            ['Catfish Fry',
//             'June 3',
//             'June 3, 2007',
//             'A Catfish Fry will be held following the 11 o\'clock worship service on June 3.  Come join us for some good food and bring a friend!'],
//            ['Vacation Bible School',
//             'June 11-15',
//             'June 11-15, 2007',
//             'Bring your children to Vacation Bible School here at Pidcoke Baptist Church, June 11-15!'],
//            ['Father\'s Day Service',
//             'June 17',
//             'June 17, 2007',
//             'We will be celebrating Father\'s Day on June 17th.  Please join us for worship!'],
//            ['Chilren\'s Home Collection',
//             'July 22',
//             'July 22, 2007',
//             'Our collection for the Texas Baptist Children\'s Home will end on July 22nd.  Please bring your donations on or '+
//             'before this date.  More information about the Children\'s Home can be found at <a href="http://www.tbch.org/" target="_blank">http://www.tbch.org/</a>. '+
//             'Thank you for your help!'],
//            ['Music Festival',
//             'March 25',
//             'March 25, 2007',
//             'First Baptist Church of Gatesville will be holding a Music Feastival on March 25th.'],
//            ['Lord\'s Supper',
//             'April 1',
//             'April 1, 2007',
//             'This Sunday we will be observing the Lord\'s Supper in remembrance of our Lord, Jesus Christ.'],
//            ['Easter Egg Hunt',
//             'April 8',
//             'April 8, 2007',
//             'Come worship with us this Sunday as we celebrate the resurrection of our Lord, Jesus Christ!  '+
//             'Kids, bring your baskets as we will be having an Easter egg hunt following the worship service!'],
//            ['Business Meeting',
//             'April 15',
//             'April 15, 2007',
//             'Following the 11 o\'clock worship service, we will be holding our quarterly business meeting.'],
//            ['Revival',
//             'Aug 19-22',
//             'August 19-22, 2007',
//             'Come worship with us at a good old fashioned revival!  Bring your friends and neighbors!'+
//             '  We look forward to seeing you there!  More information to come.'],
//            ['Grandparent\'s Day',
//             'Sept 9',
//             'September 9, 2007',
//             'September 9th is Grandparent\'s Day. We look forward to seeing you all!'],
//            ['50+ Camp',
//             'Sept 17-20',
//             'September 17-20, 2007',
//             'The Latham Springs 50+ Camp will be held September 17-20. '+
//             'The Latham Springs Baptist Encampment is located at '+
//             '134 P.R. 223, Aquilla, TX 76622. More information on the encampment can also be found at the Latham Springs website '+
//             'by clicking <a href="http://www.lathamsprings.com/" target="_blank">here</a>.'],
//            ['Fifth Sunday',
//             'Sept 30',
//             'September 30, 2006',
//             'Fifth Sunday was started by a former pastor along with the Pidcoke Methodist Church. '+
//             'Both agreed to rotate services and have lunch afterwards. We will be joined in worship by the Pidcoke '+
//             'Methodist Church at Pidcoke Baptist Church for the 11:00 AM worship service. Lunch will be held afterwards '+
//             'at Pidcoke Baptist Church. '+
//             'Sunday School will be held as usual at 10:00 AM in the Pidcoke Baptist Church Sunday School building.']
//            ['Lord\'s Supper',
//             'Oct 7',
//             'October 7, 2007',
//             'We will be observing the Lord\'s Supper in remembrance of our Lord, Jesus Christ, on October 7th.'],
//            ['Business Meeting',
//             'Oct 14',
//             'October 14, 2007',
//             'Following the 11 o\'clock worship service on October 14th we will be holding our quarterly business meeting, as well as, '+
//             'a hamburger picnic!  Guests and members are welcome to attend!'],
//            ['Daylight Saving Time Ends',
//             'Nov 4',
//             'November 4, 2007',
//             'Daylight Saving Time ends on November 4th.  Don\'t forget to turn back your clocks.'],
//            ['Thanksgiving Fellowship Meal',
//             'Nov 11',
//             'November 11, 2007',
//             'Join us for our Thanksgiving Fellowship Meal on November 11th.  There will be plenty of good food and as always everyone is invited.'],
//            ['Christmas Fellowship Meal',
//             'Dec 14',
//             'December 14, 2010',
//             'We will be celebrating the birth of our Lord Jesus Christ with plenty of food and fellowship.  Join us December 14th for our Christmas Fellowship Meal after the 11 o\'clock worship service.']
          ];

function WriteEventLinks()
{
  var iCount;
  var sEventLinks = "";
  
  iCount = aEvents.length;

  if( iCount == 0 )
    sEventLinks = '<span style="font-size:11px">Please check back soon.</span>';

  for(i = 0; i < iCount; i++)
  {
    sEventLinks += '<SPAN class="ContentBulletItem"><SPAN class="Bullet">></SPAN> &nbsp;<A href="events.htm#'+aEvents[i][0]+'">'+aEvents[i][0]+' ('+aEvents[i][1]+')</A>';
   // if( aEvents[i][1].length > 0 )
   //   sEventLinks += '<BR>&nbsp;&nbsp;&nbsp;&nbsp;<A href="events.htm#'+aEvents[i][0]+'">('+aEvents[i][1]+')</A>';
    sEventLinks += '</SPAN>\n';
    if( i != (iCount - 1) )
      sEventLinks += '<BR>\n';
  }
  
  document.write(sEventLinks);
}

function WriteEvents()
{
  var sEvents = "";
  
  iCount = aEvents.length;
  if( iCount == 0 )
    sEvents = 'There are currently no scheduled events, but new events will be added soon.  Please check back!';

  for(i = 0; i < iCount; i++)
  {
    sEvents += '<SPAN class="EventHeader"><A name="'+aEvents[i][0]+'">'+aEvents[i][0];
    if( aEvents[i][2].length > 0 )
      sEvents += ' - '+aEvents[i][2];

    sEvents += '</A></SPAN>';
    if( aEvents[i].length >= 4 )
      sEvents += '<BR>'+aEvents[i][3];

    sEvents += '<BR><BR>\n';
  }
  
  document.write(sEvents);
}