//CONFIGURE MESSAGES AND VARIABLES
var tickercontents=new Array()
tickercontents[0]='Surely, for the faithful, Julian\'s book must arrive as a comfort in corporate times, a balm in business, a printed sanctuary for souls strained in the modern workplace. <br /><br />-- CNN.com'
tickercontents[1]='Larry Julian\'s <i>God Is My CEO</i> is a more serious work, capturing some of the difficulty of combining Christianity and capitalism. <br /><br />-- Wall St. Journal'
tickercontents[2]='<i>God Is My CEO</i> is direct, on target, beautiful, and convincing. Excellent! <br /><br />-- Zig Ziglar, motivational teacher, author of See<i> You at the Top</i>'
tickercontents[3]='<i>God Is My Success</i> is a tour de force in the vital area of applying spiritual solutions to human problems. <br /><br />-- Ken Blanchard, co-author of <i>The One Minute Manager&reg;</i> and <i>The Secret.</i>'

var tickerwidth="230px"
var tickerheight="110px"
var fontcss="font: bold 12px Verdana; color:black"
var tickdelay=10000 //delay btw messages
var highlightspeed=3 //2 pixels at a time.
var highlightcolor="white"
var backdroptextcolor="#E1E1E1"

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

document.write('<style>#highlighterbg a{color:'+backdroptextcolor+'}</style>')
document.write('<div style="position:relative;left:0px;top:0px; width:'+tickerwidth+'; height:'+tickerheight+';'+fontcss+'">')
document.write('<span id="highlighterbg" style="position:absolute;left:0;top:0;color:'+backdroptextcolor+'; width:'+tickerwidth+'; height:'+tickerheight+';padding: 4px"></span><span id="highlighter" style="position:absolute;left:0;top:0;clip:rect(auto auto auto 0px); background-color:'+highlightcolor+'; width:'+tickerwidth+';height:'+tickerheight+';padding: 4px"></span>')
document.write('</div>')

var currentmessage=0
var clipbottom=1

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

function highlightmsg(){
//var msgheight=crosstick.offsetHeight
if (clipbottom>0){
clipbottom-=highlightspeed
/*crosstick.style.clip="rect("+clipbottom+"px auto auto 0px)"*/
/*crosstick.style.clip="rect(auto 0px "+clipbottom+"px auto )"*/
crosstick.style.clip="rect("+clipbottom+"px auto auto 0px)"
beginclip=setTimeout("highlightmsg()",20)
}
else{
clipbottom=msgheight
clearTimeout(beginclip)
if (currentmessage==tickercontents.length-1) currentmessage=0
else currentmessage++
setTimeout("changetickercontent()",tickdelay)
}
}

function start_ticking(){
crosstickbg=document.getElementById? document.getElementById("highlighterbg") : document.all.highlighterbg
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

