//Start NewsServices Code

//WEEK1

function autoExpire1() {
  var goLiveMonth = "08"  // Month you want your content to start displaying. Two digits.
  var goLiveDay = "08"      // Day you want your content to start displaying. Two digits.
  var goLiveYear = "2008"     // Year you want your content to start displaying. Four digits.

  var expireMonth = "01"   // Month you want your content to stop displaying. Two digits.
  var expireDay = "04"     // Day you want your content to stop displaying. Two digits.
  var expireYear = "2009"  // Year you want your content to stop displaying. Four digits.

  /* This is where you put your content. Make sure you escape any quotation marks with a backslash. Make sure you do not delete the opening and closing quotes. */


  var myContent = "<h3>Services this Sunday - <i>Sunday 4th January</i></h3><table cellpadding='0' cellspacing='5' border='0' id='justifytext'><tr><td>9.00am</td><td>Holy Communion</td></tr><tr><td>10.45am</td><td>Holy Communion</td></tr><tr><td valign='top'>7.00pm</td><td>Evening Prayer</td></tr></table>"


  /* Don't edit below this line. Don */

  var goLiveDate = goLiveYear + goLiveMonth + goLiveDay;  // puts START year, month, and day together.
  var expireDate = expireYear + expireMonth + expireDay;  // puts EXPIRE year, month, and day together.

  var nowDate = new Date();
  var day = nowDate.getUTCDate();
  var month = nowDate.getUTCMonth();
  var correctedMonth = month + 1;  //month - JavaScript starts at "0" for January, so we add "1"

  if (correctedMonth < 10) {  /* if less than "10", put a "0" in front of the number. */
    correctedMonth = "0" + correctedMonth;
  }
   
  if (day < 10) {  /* if less than "10", put a "0" in front of the number. */
    day = "0" + day;
  }

  var year = nowDate.getYear();  /* Get the year. Firefox and Netscape might use century bit, and two-digit year. */
  if (year < 1900) {
    year = year + 1900;  /*This is to make sure Netscape AND FireFox doesn't show the year as "107" for "2007." */
  }

  var GMTdate = year + "" + correctedMonth + "" + day;  //corrected month GMT date.

  if ((GMTdate <= expireDate) && (GMTdate >= goLiveDate)) {
    document.write(myContent)
  }
}



function autoExpire2() {
  var goLiveMonth = "08"  // Month you want your content to start displaying. Two digits.
  var goLiveDay = "08"      // Day you want your content to start displaying. Two digits.
  var goLiveYear = "2008"     // Year you want your content to start displaying. Four digits.

  var expireMonth = "01"   // Month you want your content to stop displaying. Two digits.
  var expireDay = "07"     // Day you want your content to stop displaying. Two digits.
  var expireYear = "2009"  // Year you want your content to stop displaying. Four digits.

  /* This is where you put your content. Make sure you escape any quotation marks with a backslash. Make sure you do not delete the opening and closing quotes. */


  var myContent = "<h3>Midweek Services</h3><p><b>Wednesday 7th January</b></p><table cellpadding='0' cellspacing='5' border='0' id='justifytext'><tr><td>10:30am</td><td>Holy Communion</td></tr><tr><td>7:30pm</td><td>Prayer Meeting</td></tr></table>"


  /* Don't edit below this line. Don */

  var goLiveDate = goLiveYear + goLiveMonth + goLiveDay;  // puts START year, month, and day together.
  var expireDate = expireYear + expireMonth + expireDay;  // puts EXPIRE year, month, and day together.

  var nowDate = new Date();
  var day = nowDate.getUTCDate();
  var month = nowDate.getUTCMonth();
  var correctedMonth = month + 1;  //month - JavaScript starts at "0" for January, so we add "1"

  if (correctedMonth < 10) {  /* if less than "10", put a "0" in front of the number. */
    correctedMonth = "0" + correctedMonth;
  }
   
  if (day < 10) {  /* if less than "10", put a "0" in front of the number. */
    day = "0" + day;
  }

  var year = nowDate.getYear();  /* Get the year. Firefox and Netscape might use century bit, and two-digit year. */
  if (year < 1900) {
    year = year + 1900;  /*This is to make sure Netscape AND FireFox doesn't show the year as "107" for "2007." */
  }

  var GMTdate = year + "" + correctedMonth + "" + day;  //corrected month GMT date.

  if ((GMTdate <= expireDate) && (GMTdate >= goLiveDate)) {
    document.write(myContent)
  }
}



function autoExpire3() {
  var goLiveMonth = "08"  // Month you want your content to start displaying. Two digits.
  var goLiveDay = "08"      // Day you want your content to start displaying. Two digits.
  var goLiveYear = "2008"     // Year you want your content to start displaying. Four digits.

  var expireMonth = "01"   // Month you want your content to stop displaying. Two digits.
  var expireDay = "04"     // Day you want your content to stop displaying. Two digits.
  var expireYear = "2009"  // Year you want your content to stop displaying. Four digits.

  /* This is where you put your content. Make sure you escape any quotation marks with a backslash. Make sure you do not delete the opening and closing quotes. */


  var myContent = "<h3>Services next Sunday - <i>Sunday 11th January</i></h3><table cellpadding='0' cellspacing='5' border='0' id='justifytext'><tr><td>9.00am</td><td>Holy Communion</td></tr><tr><td>10.45am</td><td>Morning Prayer</td></tr><tr><td valign='top'>7.00pm</td><td>Informal Service</td></tr></table>"


  /* Don't edit below this line. Don */

  var goLiveDate = goLiveYear + goLiveMonth + goLiveDay;  // puts START year, month, and day together.
  var expireDate = expireYear + expireMonth + expireDay;  // puts EXPIRE year, month, and day together.

  var nowDate = new Date();
  var day = nowDate.getUTCDate();
  var month = nowDate.getUTCMonth();
  var correctedMonth = month + 1;  //month - JavaScript starts at "0" for January, so we add "1"

  if (correctedMonth < 10) {  /* if less than "10", put a "0" in front of the number. */
    correctedMonth = "0" + correctedMonth;
  }
   
  if (day < 10) {  /* if less than "10", put a "0" in front of the number. */
    day = "0" + day;
  }

  var year = nowDate.getYear();  /* Get the year. Firefox and Netscape might use century bit, and two-digit year. */
  if (year < 1900) {
    year = year + 1900;  /*This is to make sure Netscape AND FireFox doesn't show the year as "107" for "2007." */
  }

  var GMTdate = year + "" + correctedMonth + "" + day;  //corrected month GMT date.

  if ((GMTdate <= expireDate) && (GMTdate >= goLiveDate)) {
    document.write(myContent)
  }
}




//WEEK2

function autoExpire4() {
  var goLiveMonth = "01"  // Month you want your content to start displaying. Two digits.
  var goLiveDay = "05"      // Day you want your content to start displaying. Two digits.
  var goLiveYear = "2009"     // Year you want your content to start displaying. Four digits.

  var expireMonth = "01"   // Month you want your content to stop displaying. Two digits.
  var expireDay = "11"     // Day you want your content to stop displaying. Two digits.
  var expireYear = "2009"  // Year you want your content to stop displaying. Four digits.

  /* This is where you put your content. Make sure you escape any quotation marks with a backslash. Make sure you do not delete the opening and closing quotes. */


  var myContent = "<h3>Services this Sunday - <i>Sunday 11th January</i></h3><table cellpadding='0' cellspacing='5' border='0' id='justifytext'><tr><td>9.00am</td><td>Holy Communion</td></tr><tr><td>10.45am</td><td>Morning Prayer</td></tr><tr><td valign='top'>7.00pm</td><td>Informal Service</td></tr></table>"


  /* Don't edit below this line. Don */

  var goLiveDate = goLiveYear + goLiveMonth + goLiveDay;  // puts START year, month, and day together.
  var expireDate = expireYear + expireMonth + expireDay;  // puts EXPIRE year, month, and day together.

  var nowDate = new Date();
  var day = nowDate.getUTCDate();
  var month = nowDate.getUTCMonth();
  var correctedMonth = month + 1;  //month - JavaScript starts at "0" for January, so we add "1"

  if (correctedMonth < 10) {  /* if less than "10", put a "0" in front of the number. */
    correctedMonth = "0" + correctedMonth;
  }
   
  if (day < 10) {  /* if less than "10", put a "0" in front of the number. */
    day = "0" + day;
  }

  var year = nowDate.getYear();  /* Get the year. Firefox and Netscape might use century bit, and two-digit year. */
  if (year < 1900) {
    year = year + 1900;  /*This is to make sure Netscape AND FireFox doesn't show the year as "107" for "2007." */
  }

  var GMTdate = year + "" + correctedMonth + "" + day;  //corrected month GMT date.

  if ((GMTdate <= expireDate) && (GMTdate >= goLiveDate)) {
    document.write(myContent)
  }
}



function autoExpire5() {
  var goLiveMonth = "01"  // Month you want your content to start displaying. Two digits.
  var goLiveDay = "08"      // Day you want your content to start displaying. Two digits.
  var goLiveYear = "2009"     // Year you want your content to start displaying. Four digits.

  var expireMonth = "01"   // Month you want your content to stop displaying. Two digits.
  var expireDay = "14"     // Day you want your content to stop displaying. Two digits.
  var expireYear = "2009"  // Year you want your content to stop displaying. Four digits.

  /* This is where you put your content. Make sure you escape any quotation marks with a backslash. Make sure you do not delete the opening and closing quotes. */


  var myContent = "<h3>Midweek Services</h3><p><b>Wednesday 14th January</b></p><table cellpadding='0' cellspacing='5' border='0' id='justifytext'><tr><td>10:30am</td><td>Holy Communion</td></tr><tr><td>7:30pm</td><td>Intercessions Service</td></tr></table>"


  /* Don't edit below this line. Don */

  var goLiveDate = goLiveYear + goLiveMonth + goLiveDay;  // puts START year, month, and day together.
  var expireDate = expireYear + expireMonth + expireDay;  // puts EXPIRE year, month, and day together.

  var nowDate = new Date();
  var day = nowDate.getUTCDate();
  var month = nowDate.getUTCMonth();
  var correctedMonth = month + 1;  //month - JavaScript starts at "0" for January, so we add "1"

  if (correctedMonth < 10) {  /* if less than "10", put a "0" in front of the number. */
    correctedMonth = "0" + correctedMonth;
  }
   
  if (day < 10) {  /* if less than "10", put a "0" in front of the number. */
    day = "0" + day;
  }

  var year = nowDate.getYear();  /* Get the year. Firefox and Netscape might use century bit, and two-digit year. */
  if (year < 1900) {
    year = year + 1900;  /*This is to make sure Netscape AND FireFox doesn't show the year as "107" for "2007." */
  }

  var GMTdate = year + "" + correctedMonth + "" + day;  //corrected month GMT date.

  if ((GMTdate <= expireDate) && (GMTdate >= goLiveDate)) {
    document.write(myContent)
  }
}



function autoExpire6() {
  var goLiveMonth = "01"  // Month you want your content to start displaying. Two digits.
  var goLiveDay = "05"      // Day you want your content to start displaying. Two digits.
  var goLiveYear = "2009"     // Year you want your content to start displaying. Four digits.

  var expireMonth = "01"   // Month you want your content to stop displaying. Two digits.
  var expireDay = "11"     // Day you want your content to stop displaying. Two digits.
  var expireYear = "2009"  // Year you want your content to stop displaying. Four digits.

  /* This is where you put your content. Make sure you escape any quotation marks with a backslash. Make sure you do not delete the opening and closing quotes. */


  var myContent = "<h3>Services next Sunday - <i>Sunday 18th January</i></h3><table cellpadding='0' cellspacing='5' border='0' id='justifytext'><tr><td>9.00am</td><td>Holy Communion</td></tr><tr><td>10.45am</td><td>Morning Prayer & Holy Baptism</td></tr><tr><td valign='top'>7.00pm</td><td>Compline</td></tr></table>"


  /* Don't edit below this line. Don */

  var goLiveDate = goLiveYear + goLiveMonth + goLiveDay;  // puts START year, month, and day together.
  var expireDate = expireYear + expireMonth + expireDay;  // puts EXPIRE year, month, and day together.

  var nowDate = new Date();
  var day = nowDate.getUTCDate();
  var month = nowDate.getUTCMonth();
  var correctedMonth = month + 1;  //month - JavaScript starts at "0" for January, so we add "1"

  if (correctedMonth < 10) {  /* if less than "10", put a "0" in front of the number. */
    correctedMonth = "0" + correctedMonth;
  }
   
  if (day < 10) {  /* if less than "10", put a "0" in front of the number. */
    day = "0" + day;
  }

  var year = nowDate.getYear();  /* Get the year. Firefox and Netscape might use century bit, and two-digit year. */
  if (year < 1900) {
    year = year + 1900;  /*This is to make sure Netscape AND FireFox doesn't show the year as "107" for "2007." */
  }

  var GMTdate = year + "" + correctedMonth + "" + day;  //corrected month GMT date.

  if ((GMTdate <= expireDate) && (GMTdate >= goLiveDate)) {
    document.write(myContent)
  }
}



//WEEK3


function autoExpire7() {
  var goLiveMonth = "01"  // Month you want your content to start displaying. Two digits.
  var goLiveDay = "12"      // Day you want your content to start displaying. Two digits.
  var goLiveYear = "2009"     // Year you want your content to start displaying. Four digits.

  var expireMonth = "01"   // Month you want your content to stop displaying. Two digits.
  var expireDay = "18"     // Day you want your content to stop displaying. Two digits.
  var expireYear = "2009"  // Year you want your content to stop displaying. Four digits.

  /* This is where you put your content. Make sure you escape any quotation marks with a backslash. Make sure you do not delete the opening and closing quotes. */


  var myContent = "<h3>Services this Sunday - <i>Sunday 18th January</i></h3><table cellpadding='0' cellspacing='5' border='0' id='justifytext'><tr><td>9.00am</td><td>Holy Communion</td></tr><tr><td>10.45am</td><td>Morning Prayer & Holy Baptism</td></tr><tr><td valign='top'>7.00pm</td><td>Compline</td></tr></table>"


  /* Don't edit below this line. Don */

  var goLiveDate = goLiveYear + goLiveMonth + goLiveDay;  // puts START year, month, and day together.
  var expireDate = expireYear + expireMonth + expireDay;  // puts EXPIRE year, month, and day together.

  var nowDate = new Date();
  var day = nowDate.getUTCDate();
  var month = nowDate.getUTCMonth();
  var correctedMonth = month + 1;  //month - JavaScript starts at "0" for January, so we add "1"

  if (correctedMonth < 10) {  /* if less than "10", put a "0" in front of the number. */
    correctedMonth = "0" + correctedMonth;
  }
   
  if (day < 10) {  /* if less than "10", put a "0" in front of the number. */
    day = "0" + day;
  }

  var year = nowDate.getYear();  /* Get the year. Firefox and Netscape might use century bit, and two-digit year. */
  if (year < 1900) {
    year = year + 1900;  /*This is to make sure Netscape AND FireFox doesn't show the year as "107" for "2007." */
  }

  var GMTdate = year + "" + correctedMonth + "" + day;  //corrected month GMT date.

  if ((GMTdate <= expireDate) && (GMTdate >= goLiveDate)) {
    document.write(myContent)
  }
}



function autoExpire8() {
  var goLiveMonth = "01"  // Month you want your content to start displaying. Two digits.
  var goLiveDay = "15"      // Day you want your content to start displaying. Two digits.
  var goLiveYear = "2009"     // Year you want your content to start displaying. Four digits.

  var expireMonth = "01"   // Month you want your content to stop displaying. Two digits.
  var expireDay = "21"     // Day you want your content to stop displaying. Two digits.
  var expireYear = "2009"  // Year you want your content to stop displaying. Four digits.

  /* This is where you put your content. Make sure you escape any quotation marks with a backslash. Make sure you do not delete the opening and closing quotes. */


  var myContent = "<h3>Midweek Services</h3><p><b>Wednesday 21st January</b></p><table cellpadding='0' cellspacing='5' border='0' id='justifytext'><tr><td>10:30am</td><td>Holy Communion</td></tr><tr><td>7:30pm</td><td>Prayer Meeting</td></tr></table>"


  /* Don't edit below this line. Don */

  var goLiveDate = goLiveYear + goLiveMonth + goLiveDay;  // puts START year, month, and day together.
  var expireDate = expireYear + expireMonth + expireDay;  // puts EXPIRE year, month, and day together.

  var nowDate = new Date();
  var day = nowDate.getUTCDate();
  var month = nowDate.getUTCMonth();
  var correctedMonth = month + 1;  //month - JavaScript starts at "0" for January, so we add "1"

  if (correctedMonth < 10) {  /* if less than "10", put a "0" in front of the number. */
    correctedMonth = "0" + correctedMonth;
  }
   
  if (day < 10) {  /* if less than "10", put a "0" in front of the number. */
    day = "0" + day;
  }

  var year = nowDate.getYear();  /* Get the year. Firefox and Netscape might use century bit, and two-digit year. */
  if (year < 1900) {
    year = year + 1900;  /*This is to make sure Netscape AND FireFox doesn't show the year as "107" for "2007." */
  }

  var GMTdate = year + "" + correctedMonth + "" + day;  //corrected month GMT date.

  if ((GMTdate <= expireDate) && (GMTdate >= goLiveDate)) {
    document.write(myContent)
  }
}



function autoExpire9() {
  var goLiveMonth = "01"  // Month you want your content to start displaying. Two digits.
  var goLiveDay = "12"      // Day you want your content to start displaying. Two digits.
  var goLiveYear = "2009"     // Year you want your content to start displaying. Four digits.

  var expireMonth = "01"   // Month you want your content to stop displaying. Two digits.
  var expireDay = "18"     // Day you want your content to stop displaying. Two digits.
  var expireYear = "2009"  // Year you want your content to stop displaying. Four digits.

  /* This is where you put your content. Make sure you escape any quotation marks with a backslash. Make sure you do not delete the opening and closing quotes. */


  var myContent = "<h3>Services next Sunday - <i>Sunday 25th January</i></h3><table cellpadding='0' cellspacing='5' border='0' id='justifytext'><tr><td>9.00am</td><td>Holy Communion</td></tr><tr><td>10.45am</td><td>Family Service</td></tr><tr><td valign='top'>7.00pm</td><td>Holy Communion</td></tr></table>"


  /* Don't edit below this line. Don */

  var goLiveDate = goLiveYear + goLiveMonth + goLiveDay;  // puts START year, month, and day together.
  var expireDate = expireYear + expireMonth + expireDay;  // puts EXPIRE year, month, and day together.

  var nowDate = new Date();
  var day = nowDate.getUTCDate();
  var month = nowDate.getUTCMonth();
  var correctedMonth = month + 1;  //month - JavaScript starts at "0" for January, so we add "1"

  if (correctedMonth < 10) {  /* if less than "10", put a "0" in front of the number. */
    correctedMonth = "0" + correctedMonth;
  }
   
  if (day < 10) {  /* if less than "10", put a "0" in front of the number. */
    day = "0" + day;
  }

  var year = nowDate.getYear();  /* Get the year. Firefox and Netscape might use century bit, and two-digit year. */
  if (year < 1900) {
    year = year + 1900;  /*This is to make sure Netscape AND FireFox doesn't show the year as "107" for "2007." */
  }

  var GMTdate = year + "" + correctedMonth + "" + day;  //corrected month GMT date.

  if ((GMTdate <= expireDate) && (GMTdate >= goLiveDate)) {
    document.write(myContent)
  }
}



//WEEK4

function autoExpire10() {
  var goLiveMonth = "01"  // Month you want your content to start displaying. Two digits.
  var goLiveDay = "19"      // Day you want your content to start displaying. Two digits.
  var goLiveYear = "2009"     // Year you want your content to start displaying. Four digits.

  var expireMonth = "01"   // Month you want your content to stop displaying. Two digits.
  var expireDay = "25"     // Day you want your content to stop displaying. Two digits.
  var expireYear = "2009"  // Year you want your content to stop displaying. Four digits.

  /* This is where you put your content. Make sure you escape any quotation marks with a backslash. Make sure you do not delete the opening and closing quotes. */


  var myContent = "<h3>Services this Sunday - <i>Sunday 25th January</i></h3><table cellpadding='0' cellspacing='5' border='0' id='justifytext'><tr><td>9.00am</td><td>Holy Communion</td></tr><tr><td>10.45am</td><td>Family Service</td></tr><tr><td valign='top'>7.00pm</td><td>Holy Communion</td></tr></table>"


  /* Don't edit below this line. Don */

  var goLiveDate = goLiveYear + goLiveMonth + goLiveDay;  // puts START year, month, and day together.
  var expireDate = expireYear + expireMonth + expireDay;  // puts EXPIRE year, month, and day together.

  var nowDate = new Date();
  var day = nowDate.getUTCDate();
  var month = nowDate.getUTCMonth();
  var correctedMonth = month + 1;  //month - JavaScript starts at "0" for January, so we add "1"

  if (correctedMonth < 10) {  /* if less than "10", put a "0" in front of the number. */
    correctedMonth = "0" + correctedMonth;
  }
   
  if (day < 10) {  /* if less than "10", put a "0" in front of the number. */
    day = "0" + day;
  }

  var year = nowDate.getYear();  /* Get the year. Firefox and Netscape might use century bit, and two-digit year. */
  if (year < 1900) {
    year = year + 1900;  /*This is to make sure Netscape AND FireFox doesn't show the year as "107" for "2007." */
  }

  var GMTdate = year + "" + correctedMonth + "" + day;  //corrected month GMT date.

  if ((GMTdate <= expireDate) && (GMTdate >= goLiveDate)) {
    document.write(myContent)
  }
}



function autoExpire11() {
  var goLiveMonth = "01"  // Month you want your content to start displaying. Two digits.
  var goLiveDay = "22"      // Day you want your content to start displaying. Two digits.
  var goLiveYear = "2009"     // Year you want your content to start displaying. Four digits.

  var expireMonth = "01"   // Month you want your content to stop displaying. Two digits.
  var expireDay = "28"     // Day you want your content to stop displaying. Two digits.
  var expireYear = "2009"  // Year you want your content to stop displaying. Four digits.

  /* This is where you put your content. Make sure you escape any quotation marks with a backslash. Make sure you do not delete the opening and closing quotes. */


  var myContent = "<h3>Midweek Services</h3><p><b>Wednesday 28th January</b></p><table cellpadding='0' cellspacing='5' border='0' id='justifytext'><tr><td>10:30am</td><td>Holy Communion</td></tr><tr><td>7:30pm</td><td>Intercessions Service</td></tr></table>"


  /* Don't edit below this line. Don */

  var goLiveDate = goLiveYear + goLiveMonth + goLiveDay;  // puts START year, month, and day together.
  var expireDate = expireYear + expireMonth + expireDay;  // puts EXPIRE year, month, and day together.

  var nowDate = new Date();
  var day = nowDate.getUTCDate();
  var month = nowDate.getUTCMonth();
  var correctedMonth = month + 1;  //month - JavaScript starts at "0" for January, so we add "1"

  if (correctedMonth < 10) {  /* if less than "10", put a "0" in front of the number. */
    correctedMonth = "0" + correctedMonth;
  }
   
  if (day < 10) {  /* if less than "10", put a "0" in front of the number. */
    day = "0" + day;
  }

  var year = nowDate.getYear();  /* Get the year. Firefox and Netscape might use century bit, and two-digit year. */
  if (year < 1900) {
    year = year + 1900;  /*This is to make sure Netscape AND FireFox doesn't show the year as "107" for "2007." */
  }

  var GMTdate = year + "" + correctedMonth + "" + day;  //corrected month GMT date.

  if ((GMTdate <= expireDate) && (GMTdate >= goLiveDate)) {
    document.write(myContent)
  }
}



function autoExpire12() {
  var goLiveMonth = "01"  // Month you want your content to start displaying. Two digits.
  var goLiveDay = "19"      // Day you want your content to start displaying. Two digits.
  var goLiveYear = "2009"     // Year you want your content to start displaying. Four digits.

  var expireMonth = "02"   // Month you want your content to stop displaying. Two digits.
  var expireDay = "01"     // Day you want your content to stop displaying. Two digits.
  var expireYear = "2009"  // Year you want your content to stop displaying. Four digits.

  /* This is where you put your content. Make sure you escape any quotation marks with a backslash. Make sure you do not delete the opening and closing quotes. */


  var myContent = "<h3>Services next Sunday - <i>Sunday 1st February</i></h3><table cellpadding='0' cellspacing='5' border='0' id='justifytext'><tr><td>9.00am</td><td>Holy Communion</td></tr><tr><td>10.45am</td><td>Holy Communion</td></tr><tr><td valign='top'>7.00pm</td><td>Evening Prayer</td></tr></table>"


  /* Don't edit below this line. Don */

  var goLiveDate = goLiveYear + goLiveMonth + goLiveDay;  // puts START year, month, and day together.
  var expireDate = expireYear + expireMonth + expireDay;  // puts EXPIRE year, month, and day together.

  var nowDate = new Date();
  var day = nowDate.getUTCDate();
  var month = nowDate.getUTCMonth();
  var correctedMonth = month + 1;  //month - JavaScript starts at "0" for January, so we add "1"

  if (correctedMonth < 10) {  /* if less than "10", put a "0" in front of the number. */
    correctedMonth = "0" + correctedMonth;
  }
   
  if (day < 10) {  /* if less than "10", put a "0" in front of the number. */
    day = "0" + day;
  }

  var year = nowDate.getYear();  /* Get the year. Firefox and Netscape might use century bit, and two-digit year. */
  if (year < 1900) {
    year = year + 1900;  /*This is to make sure Netscape AND FireFox doesn't show the year as "107" for "2007." */
  }

  var GMTdate = year + "" + correctedMonth + "" + day;  //corrected month GMT date.

  if ((GMTdate <= expireDate) && (GMTdate >= goLiveDate)) {
    document.write(myContent)
  }
}






//Start Xpression Counter

function daysTill() {
  //----------  EDIT THE VARIABLES BELOW  ------------------
  // EDIT THE VARIABLES BELOW
  var day=	17 // Day
  var month=	8 // Month
  var year=	2009 //Year
  var event=	"Xpression 2009!"
  var end = 	"days left until"
  //----------  END OF EDIT  -------------------------------

  var daystocount=new Date(year, month -1, day)
  today=new Date()
  if (today.getMonth()==month && today.getDate()>day)
  daystocount.setFullYear(daystocount.getFullYear())
  var oneday=1000*60*60*24
  var write = (Math.ceil((daystocount.getTime()-today.getTime())/(oneday)))
  document.write('There are '+write +' '+end+' '+event)
}

//End Xpression Counter

//Start Connect 09 Counter

function daysTillConnect() {
  //----------  EDIT THE VARIABLES BELOW  ------------------
  // EDIT THE VARIABLES BELOW
  var day=	14 // Day
  var month=	11 // Month
  var year=	2009 //Year
  var event=	"Connect '09!"
  var end = 	"days left until"
  //----------  END OF EDIT  -------------------------------

  var daystocount=new Date(year, month -1, day)
  today=new Date()
  if (today.getMonth()==month && today.getDate()>day)
  daystocount.setFullYear(daystocount.getFullYear())
  var oneday=1000*60*60*24
  var write = (Math.ceil((daystocount.getTime()-today.getTime())/(oneday)))
  document.write(''+write +' '+end+' '+event)
}

//End Connect 09 Counter





//Start St Marks Video Viewer

function popup(page) {
window.open(page,'popup','width=425,height=475,toolbar=false,scrollbars=false');
}

//End St Marks Video Viewer




//Start Xpression slideshow

// Set slideShowSpeed (milliseconds)

var slideShowSpeed = 3000



// Duration of crossfade (seconds)

var crossFadeDuration = 2



// Specify the image files

var Pic = new Array() // don't touch this

// to add more images, just continue

// the pattern, adding to the array below



Pic[0] = 'images/gallery/xpression_2008/001.jpg'
Pic[1] = 'images/gallery/xpression_2008/002.jpg'
Pic[2] = 'images/gallery/xpression_2008/003.jpg'
Pic[3] = 'images/gallery/xpression_2008/004.jpg'
Pic[4] = 'images/gallery/xpression_2008/005.jpg'
Pic[5] = 'images/gallery/xpression_2008/006.jpg'
Pic[6] = 'images/gallery/xpression_2008/007.jpg'
Pic[7] = 'images/gallery/xpression_2008/008.jpg'
Pic[8] = 'images/gallery/xpression_2008/009.jpg'
Pic[9] = 'images/gallery/xpression_2008/010.jpg'
Pic[10] = 'images/gallery/xpression_2008/011.jpg'
Pic[11] = 'images/gallery/xpression_2008/012.jpg'
Pic[12] = 'images/gallery/xpression_2008/013.jpg'
Pic[13] = 'images/gallery/xpression_2008/014.jpg'
Pic[14] = 'images/gallery/xpression_2008/015.jpg'
Pic[15] = 'images/gallery/xpression_2008/016.jpg'
Pic[16] = 'images/gallery/xpression_2008/017.jpg'
Pic[17] = 'images/gallery/xpression_2008/018.jpg'
Pic[18] = 'images/gallery/xpression_2008/019.jpg'
Pic[19] = 'images/gallery/xpression_2008/020.jpg'
Pic[20] = 'images/gallery/xpression_2008/021.jpg'
Pic[21] = 'images/gallery/xpression_2008/022.jpg'
Pic[22] = 'images/gallery/xpression_2008/023.jpg'
Pic[23] = 'images/gallery/xpression_2008/024.jpg'



// =======================================

// do not edit anything below this line

// =======================================



var t

var j = 0

var p = Pic.length



var preLoad = new Array()

for (i = 0; i < p; i++){

   preLoad[i] = new Image()

   preLoad[i].src = Pic[i]

}



function runSlideShow(){

   if (document.all){

      document.images.SlideShow.style.filter="blendTrans(duration=2)"

      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"

      document.images.SlideShow.filters.blendTrans.Apply()      

   }

   document.images.SlideShow.src = preLoad[j].src

   if (document.all){

      document.images.SlideShow.filters.blendTrans.Play()

   }

   j = j + 1

   if (j > (p-1)) j=0

   t = setTimeout('runSlideShow()', slideShowSpeed)

}


//End Xperssion Slideshow




//Start Prayer Diary code

var d = new Date();
function letsgo()
{
window.location="prayer.html#" + d.getDate()
}

//End Prayer Diary Code







//Start Latest Updates Code


var height = 25; // height of the menu headers
var iheight = 20; // height of the menu_items

var bgc = "" // background color of the item
var tc = "#ffffff" // text color of the item

var over_bgc = "#C0C4F8";
var over_tc = "#C0C4F8";

var speed = 0;
var timerID = "";
var N = (document.all) ? 0 : 1;
var width = 152
var self_menu = new Array();

function write_menu() {
  smc = 0; // count the position of the self_menu
  document.write("<div style='position:absolute'>");
  mn = 0;
  mni = 1;
  start = -1;

  for(i=0;i<Link.length;i++) {
   la = Link[i].split("|");
   if (la[0] == "0") {
    if(start == 0) {
      document.write("</div>");
      h =  csmc * iheight;
      tmn = mn; //-h
      self_menu[smc] = new Array(tmn,h,0,-2);
      smc++;
      mn--;
     }
     csmc = 0;
    document.write("<div class='menu' style='top:"+mn+";height:"+height+"' id='down"+smc+"' onclick='pull_down("+smc+","+mni+")'> "+ la[1] + "</div>");
    self_menu[smc] = new Array(mn,height,0,mni);
    smc++;
    mni++;
    mn+=height;
    start = 1;
   } else {
    if(start == 1) {
      if(N)mn+=2;
       document.write("<div class='item_panel' id='down"+smc+"' style='top:"+mn+"'>");
       start = 0;
     }

    document.write("<a href='"+la[2]+"'");
    if (la[3] != "") document.write(" target='" + la[3] + "' ");
    document.write("><div class='item' id='d"+i+"' style='height:"+iheight);
    if (N) document.write(";width:150");
    document.write("' onmouseover='color(this.id)' onmouseout='uncolor(this.id)'>  "+ la[1] + "</div></a>");
    csmc++;
   }
  }
  if (start == 0) {
     document.write("</div>");
     h =  csmc * iheight;
     tmn = mn + 5; //-h
     self_menu[smc] = new Array(tmn,h,0);
     name = "down" + (self_menu.length-1);
     obj = document.getElementById(name);
     obj.style.borderBottomColor = "darkblue";
     obj.style.borderBottomWidth = 0;
     obj.style.borderBottomStyle = "solid";
   }
  document.write("</div>");
}

function color(obj) {
 document.getElementById(obj).style.backgroundColor = over_bgc;
 document.getElementById(obj).style.color = over_tc
}

function uncolor(obj) {
 document.getElementById(obj).style.backgroundColor = bgc;
 document.getElementById(obj).style.color = tc
}

function pull_down(nr,c) {
 if (timerID == "") {
 to = self_menu[nr+1][1]
 begin = nr + 2;
 if (timerID != "") clearTimeout(timerID);
 if (self_menu[nr+1][2] == 0) {
  self_menu[nr+1][2] = 1;
  if(nr == self_menu.length-2) {to++;}
  epull_down(begin,to,0);
 } else {
  to = 0;
  self_menu[nr+1][2] = 0;
  name = "down"+(nr+2);
  open_item = 0;
  for(i=0;i<nr;i++) {
   if(self_menu[i][2] == 1)
    {open_item += self_menu[i][1];
    }
  }
  if (N == false) {open_item-= (c*1)};
  if (nr== self_menu.length-2) {val = self_menu[self_menu.length-1][1];to=-1;}
  else  val = parseInt(document.getElementById(name).style.top) -(open_item)-(c*height);
  epull_up(begin,to,val);
  }
  }
}

function epull_down(nr,to,nowv) {
 name = "down" + (nr-1);
 obj = document.getElementById(name).style.clip = "rect(0,"+width+","+(nowv+1)+",0)";
 for (i=nr;i<self_menu.length;i++) {
  name = "down" + i;
  obj = document.getElementById(name);
  obj.style.top = parseInt(obj.style.top)+1;
 }
 nowv++;
 if(nowv < to) timerID = setTimeout("epull_down("+nr+","+to+","+nowv+")",speed);
 else timerID = ""; 
}

function epull_up(nr,to,nowv) {
 name = "down" + (nr-1);
 obj = document.getElementById(name).style.clip = "rect(0,"+width+","+nowv+",0)";
 for (i=nr;i<self_menu.length;i++) {
  name = "down" + i;
  obj = document.getElementById(name);
  obj.style.top = parseInt(obj.style.top)-1;
 }
 nowv--;
 if(nowv > to) timerID = setTimeout("epull_up("+nr+","+to+","+nowv+")",speed);
 else timerID = "";
}

function startup(nr) {
 write_menu();
 if (nr != 0) {
 for(i=0;i<self_menu.length;i++)
 {
  if(self_menu[i][3] == nr) pull_down(i,nr)
  i==self_menu.length;
 }
 }
}


//End Latest Updates Code