/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Sandeep Gangadharan | http://sivamdesign.com/scripts/ */
var text = 0;

var message=new Array();
  message[0] = "Welcome to the St. Paul A.M.E. Church WebSite."
  message[1] = "At St. Paul the Holy Spirit is always welcome in this place."
  message[2] = "Because we know that Prayer Is The Way."
  message[3] = "We welcome your interest in what God is doing here at St. Paul."
  message[4] = "Please feel free to visit us at any time here on the web site,"
  message[5] = "or at the church at 336 Washington Ave., Glencoe, IL."
  message[6] = "We would love to meet you and, should you so choose,"
  message[7] = "Welcome you as a part of our family in the Body of Christ at St. Paul."
  message[8] = "You may call us with your prayer request..."
  message[9] = "We thank God for the opportunity to serve you."
  message[10] = "We are working to finish the PRAYER REQUEST page for your convenience."
  message[11] = "Be Blessed By the Best..."
  message[12] = ""

function changeText() {
  if (message.length > 0) {
    document.change.descript.value=message[text];
    text++;
  }
  if (text == 13) {text = 0; }  // change the # 4 at the left to the maximum # of message lines you want included
    window.setTimeout("changeText()", 4500); }  // change the # on the left to adjust the speed of the
                                               // scroll. The smaller the # the faster the speed

// Multiple onload function created by: Simon Willison
// http://simon.incutio.com/archive/2004/05/26/addLoadEvent
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(function() {
  changeText();
});
