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

/*IMPORTANT! Ensure that any apostrophes (') in the below update texts
are preceded by a backslash (\) or the scroller won't work. Also ensure
you keep the first text (number [0]) simply as 'LATEST&nbspUPDATES',
because Internet Explorer has some weird problem of wrapping the first
text on its first display. This is why there is a &nbsp; between the
words, since it prevents it wrapping like it does with a blank space.
*/
var tickercontents=new Array()
tickercontents[0]='<b>22/11/09 - <a href="home/news/news.htm">LATEST&nbsp;UPDATES:</a></b>'
tickercontents[1]='<b>12/11/09</b> - Revised <a href="home/news/news.htm"><u>news &amp; updates</u></a> section.'
tickercontents[2]='<b>26/10/09</b> - Remodelled and improved <a href="articles/starstory/starstory.htm"><u>Star Story</u></a> and <a href="articles/yourarticles/yourarticles.htm"><u>Your Articles</u></a> sections.'
tickercontents[3]='<b>12/10/09</b> - New Ogg Vorbis versions of the <a href="gallery/soundfx/soundfx.htm"><u>sound effects</u></a>.'
tickercontents[4]='<b>27/9/09</b> - <a href="http://www.cafepress.co.uk/renault4play.409581037" target="_top"><u>New 2010 wall calendar</u></a> now available from the gift shop.'
tickercontents[5]='<b>27/9/09</b> - <a href="gallery/peoplespics/peoplespics.htm"><u>People\'s Pics</u></a> updated.'
tickercontents[6]='<b>18/9/09</b> - I couldn\'t help it. I opened my big gob again. Read my latest <a href="articles/rants/rants.htm"><u>rant</u></a> and prepare to be enraged!'
tickercontents[7]='<b>15/9/09</b> - A new <a href="gallery/starcar/starcar.htm"><u>star car</u></a> in the gallery, at last!'
tickercontents[8]='<b>30/6/09</b> - Read the review of the <a href="articles/starstory/SSa/SS8.htm"><u>1st European R4 Meeting, June 2009</u></a> and view the pics.'
tickercontents[9]='<a href="home/news/news.htm"><u>Click here for further news and updates.</u></a>'

var tickdelay=7000 //delay btw messages
var highlightspeed=7 //7 pixels at a time.

////Do not edit past 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'",200) //delay for Mozilla's sake
changetickercontent()
}

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