var tickercontents=new Array()
tickercontents[0]='Mrs M Elliot from Glasgow... <p>"Geoff and his drivers were really understanding of the pressures for my daughter on her wedding day".</p> <p>"They went out of their way to ensure the transport of all the wedding guests went without a hitch". </p>Thank you so much.'
tickercontents[1]='Hi Geoff,<p>"I would like to take this opportunity to say a massive Thank You for the service you provided at our wedding on Saturday.</p><p> Both cars were amazing & the wedding car will look great in the wedding photos".</p> <p>"I would also like to say thank you for looking after me while I was waiting in the car at the hotel as I was so nervous".</p>'
tickercontents[2]='Dear Geoff,<p>"Thank you for your first class service".</p> <p> "I would have no hesitation in recommending your service and firm". </p> <p> Kind Regards </p>Irene & Jim'
tickercontents[3]='Dear Geoff,<p>"Your car was absolutely amazing with the sunshine sparkling on it".</p> <p> "We felt so special".</p><p> Kind Regards </p><p>Mr & Mrs McMillan - Greenock</p>'

var tickerwidth="180px"
var tickerheight="280px"
var fontcss="font: bold 14px Verdana; color:black"
var tickdelay=2500 //delay btw messages
var highlightspeed=10 //2 pixels at a time.
var highlightcolor="lightgreen"
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)"
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
