// JavaScript Document//CONFIGURE MESSAGES AND VARIABLESvar tickercontents=new Array()tickercontents[0]='4,995 people were killed in crashes involving large trucks in 2005, representing about 12-13 percent of all traffic fatalities.'tickercontents[1]='The annual death toll from truck-related crashes is the equivalent of 52 major airline crashes every year, one crash every week resulting in 95 deaths.'tickercontents[2]='Fully loaded, a tractor-trailer may weigh as much as 80,000 pounds and can be over 65 feet long.'tickercontents[3]='Since the year 2000, there have been 859,000 injuries due to large truck accidents.'tickercontents[4]='The highest percentatage of injuries and deaths from crashes involving large trucks occur from 12pm to 3pm.'tickercontents[5]='The costs of large truck crashes in a year exceed $19 billion.'var tickerwidth="250px"var tickerheight="80px"var fontcss="font-family: Arial Narrow; color:#FF3300; style:normal; size:larger; font-weight:bold;"var tickdelay=8000 //delay btw messagesvar highlightspeed=2 //2 pixels at a time.var highlightcolor="#FFFFFF"var backdroptextcolor="#FFFFFF"////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
