/*
Highligher Scroller script- By JavaScript Kit
For this and over 400+ free scripts, visit http://www.javascriptkit.com/
This notice must stay intact
*/

var tickercontents=new Array()
tickercontents[0]='<a href="http://www.newCAJE.org">NewCAJE</a> starting to form.  Will replace CAJE.'
tickercontents[1]='<a href="http://www.newCAJE.org">NewCAJE</a> starting to form.  Will replace CAJE.'
tickercontents[2]='<I>Jerusalem Post:</i> CAJE "<B>unassuming</b>" but "<b>strategically critical</b> for Jewish communal life."'
tickercontents[3]='<a href="http://www.lashon.net"><b>Joel M. Hoffman</b></a> fills in for Dennis Ross at CAJE 33 opening program.'
tickercontents[4]='<b>Storahtelling</b> enchants CAJE 33 audience with <I>From Mourning to Magic.</I>'
tickercontents[5]='First ever <b>eco-Judaism</b> track a huge success at CAJE 33.'
tickercontents[6]='First ever <b>roundtable fishbowl</b> offers free-ranging discussion and suggests new school models.'
tickercontents[7]='Son introduces father in <b>Rabbi Larry Hoffman\'s</b> fascinating plenary session.'
tickercontents[8]='<B>Macy Hart</b> reminds CAJE 33 audience not to forget smaller schools and communities.'
tickercontents[9]='MacArthur Genius Award recipient <b>Liz Lerman</b> wows CAJE 33 audience.'
tickercontents[10]='<B>Rabbi Manny Gold</b> offers straight talk about the state of Jewish congregational education.'
tickercontents[11]='<B>Doug Cotler</b> hires part of VSO and creates CAJE 33 closing show to rival Broadway.'

var tickdelay=800 //delay btw messages
var highlightspeed=2 //2 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
