
/*
Ticker Tape script- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
//configure tickercontents[] to set the messges you wish be displayed (HTML codes accepted)
var tickercontents=new Array()
tickercontents[0]='<font class=ticker>Care and Repair Specialists</font>'
tickercontents[1]='<font class=ticker>Tel 07624 424317 for 24 hr service.</font>'
tickercontents[2]='<font class=ticker>Blocked drains unblocked fast.</font>'
tickercontents[3]='<font class=ticker>All new equipment</font>'
tickercontents[4]='<font class=ticker>Fully trained and insured</font>'
tickercontents[5]='<font class=ticker>20 years Construction & Groundwork experience</font>'

//configure the below 2 variables to set the width/background color of the ticker
var tickerwidth='370' //in "px" or "%"
var tickerbgcolor=''

//configure the below variable to determine the delay between ticking of messages (in miliseconds
var tickdelay=4000

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

var currentmessage=0

function changetickercontent(){
if (document.layers){
document.tickernsmain.document.tickernssub.document.write(tickercontents[currentmessage])
document.tickernsmain.document.tickernssub.document.close()
}
else
crosstick.innerHTML=tickercontents[currentmessage]

if (currentmessage==tickercontents.length-1) currentmessage=0
else currentmessage++
setTimeout("changetickercontent()",tickdelay)
}

function start_ticking(){
if (document.layers)
document.tickernsmain.visibility="show"
else
crosstick=document.getElementById? document.getElementById("tickerie") : document.all.tickerie
changetickercontent()
}

if (document.all||document.getElementById)
document.write('<div id="tickerie" style="width:'+tickerwidth+'; background-color:'+tickerbgcolor+'"></div>')
window.onload=start_ticking
