// ************************************************************************************
// ** This file has been created with the Rotating Content Tool by Randy Hoyt.       **
// ** For more information, visit us on the web:                                     **
// **                                                                                **
// **     Rotating Content Tool   -- http://www.rotatecontent.com/                   **
// **     Author: Randy Hoyt      -- http://www.randyhoyt.com/                       **
// ************************************************************************************

varLength = 16  //THIS NUMBER IS THE TOTAL NUMBER OF VERSES, AND SHOULD BE INCREMENTED AS NEW VERSES ARE ADDED
//varLength = 1                //uncomment this line when you wish to show only verse[0] - for example, if a special announcement is needed on the webpage

var htmlCode = new Array(3)
var verse = new Array(varLength)
var ref = new Array(varLength)

htmlCode[0]='<span class="verse">'
htmlCode[1]='</span><p><span class="verse">'
htmlCode[2]='</span></p><br>'

verse[0] = 'Delight yourself in the LORD, and he will give you the desires of your heart.'
ref[0] = 'Psalm 37:4'

//verse[0] = 'DUE TO WEATHER, WEDNESDAY NIGHT SERVICES FOR JAN. 28 2009 HAVE BEEN CANCELLED.'
//ref[0] = ''

verse[1] = 'For God so loved the world, that he gave his only Son, that whoever believes in him should not perish but have eternal life.'
ref[1] = 'John 3:16'

verse[2] = 'But seek first the kingdom of God and his righteousness, and all these things will be added to you.'
ref[2] = 'Matthew 6:33'

verse[3] = 'In the beginning, God created the heavens and the earth.'
ref[3] = 'Genesis 1:1'

verse[4] = 'In the beginning was the Word, and the Word was with God, and the Word was God.'
ref[4] = 'John 1:1'

verse[5] = 'And let us consider how to stir up one another to love and good works, not neglecting to meet together, as is the habit of some, but encouraging one another, and all the more as you see the Day drawing near.'
ref[5] = 'Hebrews 10:24-25'

verse[6] = 'The humble He guides in justice, And the humble He teaches His way.'
ref[6] = 'Psalm 25:9'

verse[7] = 'But let justice roll down like water, and righteousness like a mighty stream.'
ref[7] = 'Amos 5:24'

verse[8] = 'So we built the wall. And all the wall was joined together to half its height, for the people had a mind to work.'
ref[8] = 'Nehemiah 4:6'

verse[9] = 'For as many as are led by the Spirit of God, these are sons of God.'
ref[9] = 'Romans 8:14'

verse[10] = 'Fear not, O land; be glad and rejoice: for the LORD will do great things.'
ref[10] = 'Joel 2:21'

verse[11] = 'Now I, Nebuchadnezzar, praise and extol and honor the King of heaven; for all his works are truth, and his ways justice; and those that walk in pride he is able to abase.'
ref[11] = 'Daniel 4:37'

verse[12] = 'For you are all sons of God through faith in Christ Jesus.'
ref[12] = 'Galatians 3:26'

verse[13] = 'The LORD your God is with you, he is mighty to save. He will take great delight in you, he will quiet you with his love, he will rejoice over you with singing.'
ref[13] = 'Zephaniah 3:17'

verse[14] = 'They shall not hunger nor thirst; nor shall the heat nor sun strike them; for He who has mercy on them shall lead them; even by the springs of water He shall guide them.'
ref[14] = 'Isaiah 49:10'

verse[15] = 'Come to me, all you who are weary and burdened, and I will give you rest. Take my yoke upon you and learn from me, for I am gentle and humble in heart, and you will find rest for your souls.'
ref[15] = 'Matthew 11:28-29'

verse[16] = ''
ref[16] = ''

verse[17] = ''
ref[17] = ''

verse[18] = ''
ref[18] = ''

verse[19] = ''
ref[19] = ''

verse[20] = ''
ref[20] = ''

verse[21] = ''
ref[21] = ''


var randomNumber = Math.random()
randomNumber *= varLength
randomNumber = parseInt(randomNumber)
if(isNaN(randomNumber)) randomNumber = 0
else randomNumber %= varLength
selectedContent = htmlCode[0] + verse[randomNumber]+ htmlCode[1] + ref[randomNumber] + htmlCode[2]
document.write (selectedContent)
