
var tickercontents=new Array()
tickercontents[0]='Now Broadcasting across the Costa Blanca ...'
tickercontents[1]='Tune in on 101.3 and 102.8 FM'
tickercontents[2]='Playing the best music mix!'
tickercontents[3]='Now you can listen LIVE on the internet too!'
tickercontents[4]='With LIVE streaming through Windows Media Player!'
tickercontents[5]='Also WinAMP and RealPlayer are supported!'
tickercontents[6]='Simply clik the "Listen Live" link below to get up and running in minutes!'
tickercontents[7]='Got a request? - Phone, Email or Text us!'
tickercontents[8]='And let us give you or your loved ones a mention!'
tickercontents[9]='Call 965 322 866, Text on 6200 68 400 or Email DJ@sunhine-fm.com'
tickercontents[10]='keep up to date with our regular News and Traffic Reports'
tickercontents[11]='Follow the Torre FC football club with match reports and results!'
tickercontents[12]='Sunshine FM brings you all local and international news throughout the day!'
tickercontents[13]='Kick off your day with Simon Morton from 8:00am until Midday!'
tickercontents[14]='Chill out with Glen Masters in The Big Drive Home!'
tickercontents[15]='The Celtic Connection, all your irish classics, Monday from 8:00pm!'
tickercontents[16]='Have A Laugh with Chris Ashley and his antics on Thursday &amp; Friday from 8pm!'
tickercontents[17]='Tune in to Chris Marsden Weekend Brunch from 9:00am Saturday and Sunday!'
tickercontents[18]='Missing your Sport? Not anymore, The Sports Show With Chris Ashley!'
tickercontents[19]='Get your line dancing boots on for The Country Music Show With Glenn Masters'
tickercontents[20]='All the latest charts heard here first on the chart show.'
tickercontents[21]='And of course "Jezzas Confession" on Sunday night - what a scream!'
tickercontents[22]='Sunshine FM is the Costa Blanca radio station!'


var tickerwidth="550px"
var tickerheight="18px"
var fontcss="font: bold 12px Verdana; color:navy"
var tickdelay=3000 //delay btw messages
var highlightspeed=2 //2 pixels at a time.
var highlightcolor=""
var backdroptextcolor=""

//document.write('<style>#highlighterbg a{color:'+backdroptextcolor+'}</style>')
document.write('<div style="position:relative;left:0px;top:2px; width:'+tickerwidth+'; height:'+tickerheight+';'+fontcss+'">')
document.write('<span id="highlighterbg" style="position:absolute;left:0;top:0;color:'+backdroptextcolor+'; width:'+tickerwidth+'; height:'+tickerheight+';padding: 0px"></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: 0px"></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

