var fader = new Array();

var hash = new Array();
function throb(item) {

  // If the hash array does not have an entry for this item, initialise it at 2
  if (!hash[item]) hash[item] = 2;

  // Send a fade command, using the hash array to tell us what parameters we should use
  fader[item].fade(Math.floor(hash[item] / 2), !(hash[item] % 2));

  // Call this function again for this same item after a certain amount of time
  setTimeout(function() { throb(item); }, (hash[item] % 2) ? 100 : 8000);

  // If we have exceeded the number of messages in this fader, start over again at 2
  if (++hash[item] > fader[item].msg.length * 2 - 1) hash[item] = 2;
}


fader[2] = new fadeObject('fade2', '000000', 'ffffff', 30, 30);
fader[2].msg[1] = "In recognition of you dedication and commitment to reaching the youth of our community through the Raise The Praise productions and for your heart and passion of reaching the youth in the tri-county area.  <br><br><b>- Presented By the Portland Chamber of Commerce</b>";
fader[2].msg[2] = "My Family and I went this past year and it was awesome! My kids 9&7, really had a great time! <br><br><b>- Lindsey Brooks Boykin</b><br><br><br><br>We have attended RTP, awesome outreach ministry, don't miss the next one!<br><br><b>- Deborah & Wayne Baird - Faith Ministries International</b>";
fader[2].msg[3] = "As pastor of Byram's Chapel for the last nineteen years I am proud to be a part of RTP Ministries. This is a very aggressive outreach ministry intended to reach a generation that has been all but forgotten. This is not a denominational endeavor but a joint effort by all local church's and businesses that wish to be involved in reaching the youth of our community.  I stand beside her in this outreach ministry and would encourage anyone who has a heart for souls to get on board. <br><br><b>- Pastor, Dr. Roger Putman</b>"; 
fader[2].msg[4] = "I can't say enough good about RTP...Great music, Great speaking, Just a great time for the whole family!<br><br><b>- Aaron Davis</b><br><br><br>Playing a set at Raise the Praise was amazing - not because I got to perform, but because I got to witness people connecting to God through worship!<br><br><b>- Danya Powell</b>";
fader[2].msg[5] = "RTP is not just cool safe place for teens. Its not just a place where edgy music is available for teens, Its not just a place where some really good food and fun happen...Its not just another Christian event....RTP is a place where young people from all over get free from addictions that are stopping them from what God... has planned for them, they find out that Jesus loves them and not mad at them, they see other teenagers who love Jesus and are souled out to him, and they experience Gods Amazing Love through the most amazing people that are involved! RTP is ordained by God and I endorse it!<br><br><b>- JD Gregory</b>";
fader[2].msg[6] = "I am a 15 yr old sophomore at EHS and to me Raise The Praise is an uplifting, spiritual oasis for the youth AND the family of the tri-state area. I have attended Raise The Praise since it started in 2006 and it is absolutely breathtaking every time I attend. I would encourage everyone I know to attend RTP, and I also hope that RTP will continue for many years to come and I plan to attend many more to come... thank you RTP for all of your hard work.<br><br><b>- Logan Jernigan</b>";
fader[2].msg[7] = "I'm a 14 yr old student who came in from Ocala, Florida to attend RTP and I stayed the whole 2 days camping out. This festival was incredible and totally rocks as an event for teenagers and even older people like it. Thx RTP looking forward to next year!<br><br><b>- Lora Garcia</b>";
// Start this fader
setTimeout(function() { throb(2); }, 1000);
