
var tickercontents=new Array()
tickercontents[0]='<a href="News.html">Chipheads wins 2009 Super Service Award from Angies List Consumer Reviews</a>'
tickercontents[1]='<a href="News.html">Carry in or on site, home or business</a>'
tickercontents[2]='<a href="News.html">Serving the greater Minneapolis and St. Paul metro areas</a>'
tickercontents[3]='<a href="News.html">In a jam? Ask about our Express Services.</a>'
tickercontents[4]='<a href="News.html">I am happy to recommend Chipheads to others. - Joseph P.</a>'
tickercontents[5]='<a href="News.html">The best Computer Repair Shop in the TC area! - George K.</a>'
tickercontents[6]='<a href="News.html">Definitely consider Chipheads as a first choice! - Susan K.</a>'
tickercontents[7]='<a href="News.html">Jarret, Thank you for saving my hard drive! I really appreciate it! - Dwight W.</a>'
tickercontents[8]='<a href="News.html">Brians work and capabilities are outstanding! - Lizzie H.</a>'
tickercontents[4]='<a href="News.html">Chipheads offers PERSONAL service for PERSONAL Computers!</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