
var tickercontents=new Array()

tickercontents[0]='<a href="/news">Chipheads is the PREMIER retail repair shop in the Twin Cities Metro</a>'
tickercontents[1]='<a href="/news">Carry in or on site, home or business</a>'
//tickercontents[1]='<a href="/news">Chipheads will be CLOSED Christmas Eve after 4, Christmas Day and New Years Day</a>'
tickercontents[2]='<a href="/news">Serving the greater Minneapolis and St. Paul metro areas</a>'
tickercontents[3]='<a href="/news">In a jam? Ask about our Express Services.</a>'
tickercontents[4]='<a href="/news">I am happy to recommend Chipheads to others. - Joseph P.</a>'
tickercontents[5]='<a href="/news">The best Computer Repair Shop in the TC area! - George K.</a>'
tickercontents[6]='<a href="/news">Definitely consider Chipheads as a first choice! - Susan K.</a>'
tickercontents[7]='<a href="/news">Jarret, Thank you for saving my hard drive! I really appreciate it! - Dwight W.</a>'
tickercontents[8]='<a href="/news">Brians work and capabilities are outstanding! - Lizzie H.</a>'
tickercontents[9]='<a href="/news">On a scale of 1 - 10, these guys are a 15! - Richard L.</a>'

var tickdelay=4000 //delay btw messages
var highlightspeed=5 //10 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
