/*Highligher Scroller script- By JavaScript Kit visit http://www.javascriptkit.com/*/

var tickercontents=new Array()
tickercontents[0]='Praise God for His Faithfulness&nbsp;Psalm 89:1'
tickercontents[1]='Praise God for His Fortress&nbsp;&nbsp;Psalm 59:16'
tickercontents[2]='Praise God for His Glorious Power&nbsp;Ex 15:2'
tickercontents[3]='Praise God for His Goodness&nbsp;Psalm 13:6'
tickercontents[4]='Praise God for His Grace&nbsp;Psalm 101:1'
tickercontents[5]='Praise God for His Help&nbsp;Psalm 63:7'
tickercontents[6]='Praise God for His Holiness&nbsp;&nbsp;2 Chron 20:21'
tickercontents[7]='Praise God for His Judgment&nbsp;Psalm 101:1'
tickercontents[8]='Praise God for His Kingship&nbsp;&nbsp;2 Chron 20:21'
tickercontents[9]='Praise God for His Love&nbsp;Psalm 59:16'
tickercontents[10]='Praise God for His Mercy&nbsp;Ps 89:1'
tickercontents[11]='Praise God for His Refuge&nbsp;Psalm 59:16'
tickercontents[12]='Praise God for His Righteousness&nbsp;Ps 51:14'
tickercontents[13]='Praise God for His Salvation&nbsp;1 Chron 16:23'
tickercontents[14]='Praise God for His Strength&nbsp;Psalm 59:16'
tickercontents[15]='Praise God for His Wonderful Acts&nbsp;Ps 105:2'
tickercontents[16]='Praise God for His Word&nbsp;Psalm 119:172'

var tickdelay=3000 //delay btw messages
var highlightspeed=10 //10 pixels at a time.

////Do not edit pass this line////////////////

var currentmessage=0
var clipwidth=0

function changetickercontent(){
crosstick.style.clip="rect(0px 0px auto 0px)"
crosstick.innerHTML=tickercontents[currentmessage]
highlightmsg()
}

function highlightmsg(){
var msgwidth=crosstick.offsetWidth
if (clipwidth<msgwidth){
clipwidth+=highlightspeed
crosstick.style.clip="rect(0px "+clipwidth+"px auto 0px)"
beginclip=setTimeout("highlightmsg()",20)
}
else{
clipwidth=0
clearTimeout(beginclip)
if (currentmessage==tickercontents.length-1) currentmessage=0
else currentmessage++
setTimeout("changetickercontent()",tickdelay)
}
}

function start_ticking(){
crosstick=document.getElementById? document.getElementById("highlighter") : document.all.highlighter
crosstickParent=crosstick.parentNode? crosstick.parentNode : crosstick.parentElement
if (parseInt(crosstick.offsetHeight)>0)
crosstickParent.style.height=crosstick.offsetHeight+'px'
else
setTimeout("crosstickParent.style.height=crosstick.offsetHeight+'px'",100) //delay for Mozilla's sake
changetickercontent()
}

if (document.all || document.getElementById)
window.onload=start_ticking
