var SCROLL=0,TYPEWRITER=1,STATIC=2;var SCROLLDELAY=20;var CHANGEDELAY=3000;var BLINKDELAY=500;var TYPEDELAY=100;var SEPARATOR=" ....   ";function Ticker(tickerId){var tickerId=tickerId;var theTickerDiv=document.getElementById(tickerId);var theHeaderDiv;var theOutroDiv;var theDivs=theTickerDiv.getElementsByTagName("div");for(var d=0;d=0){theTickerUl.style.left=(theTickerUl.offsetLeft-7)+"px";if(theTickerUl.style.left.substring&&theTickerUl.style.left.substring(0,theTickerUl.style.left.length-2)<-tickerLength){theTickerUl.style.left=theTickerDivWidth+"px";} timer=setTimeout(tickerId+".scrollTicker()",SCROLLDELAY);}else{timer=setTimeout(tickerId+".scrollTicker()",1000);}}else{theTickerUl.style.left=(theTickerUl.offsetLeft-1)+"px";if(theTickerUl.style.left.substring&&theTickerUl.style.left.substring(0,theTickerUl.style.left.length-2)<-tickerLength){theTickerUl.style.left=theTickerDivWidth+"px";} timer=setTimeout(tickerId+".scrollTicker()",SCROLLDELAY);} break;case TYPEWRITER:case STATIC:var len=0;for(var i=0;i")+typeCount+1;newStr+=str.substring(typeCount,endTypeCount);}else if(str.charAt(typeCount)=="&"){endTypeCount=str.substring(typeCount,str.length).indexOf(";")+typeCount+1;newStr+=str.substring(typeCount,endTypeCount);} el.innerHTML=newStr+"_";typeCount=endTypeCount;var calculatedWidth=theTickerDivWidth;if(theHeaderDiv){calculatedWidth-=theHeaderDiv.offsetWidth;} if(theOutroDiv){calculatedWidth-=theOutroDiv.offsetWidth;} if(!showAll&&!dontScroll&&el.offsetWidth>calculatedWidth){el.style.left=(el.style.left.substring(el.style.left,(el.style.left).indexOf("px"))-6)+"px"} if(typeCount>str.length){clearInterval(typeInt);typeCount=0;if(!this.dashTimer){this.dashTimer=setInterval(function(){if(el.innerHTML.length>str.length){el.innerHTML=str;}else{el.innerHTML=str+"_";}},BLINKDELAY)} timer=setTimeout(function(){clearInterval(this.dashTimer);this.dashTimer=null;this.dashTimer2=setTimeout(function(){el.innerHTML=str},1);el.style.left=startPos;eval(tickerId+".scrollTicker()");},CHANGEDELAY);}},TYPEDELAY);}} this.init=function(){if(mode==TYPEWRITER){for(var i=0;i