var ticker=function(textArray){this.speed=50;this.width=600;this.border='none';this.background='';this.fontSize='12px';this.fontFamily='Lucida Console, Courier New, Monospace';this.fontWeight='bolder';this.fontStyle='normal';this.fontColor='#000';this.messageSeperator='.  + + +  .';var pObj,tObj;var l=0,e=0,t=0;var cRT=[0],cTO=[];var iRef=null;var tw=this.width;var sp;var d=document;pObj=(isMethod(d,'getElementById'))?d.getElementById('tContainer'):null;tObj=(isMethod(d,'createElement'))?d.createElement('div'):null;function isMethod(x,p){return x&&/function|object|unknown/.test(typeof x[p])&&x[p];}
function tick(){var n=0;for(var m=0;m<l;m++){if(cRT.inArray(m)!==false){n=parseInt(cTO[m].style.left);n-=Math.round(sp/10);cTO[m].style.left=n+'px';if(n<-cTO[m].offsetWidth){cTO[m].style.left=tw+'px';cRT.shift();}
if(n<tw-cTO[m].offsetWidth&&cRT.inArray(m+1)===false){if(m>=l-1&&cRT.inArray(0)===false)
cRT[cRT.length]=0;if(m<l-1)
cRT[cRT.length]=++m;}}}}
this.tickerStart=function(){pObj.style.width=this.width+'px';pObj.style.height=this.fontSize||'12px';pObj.style.border=this.border||'none';pObj.style.background=this.background||'';pObj.style.fontFamily=this.fontFamily||'Monospace';pObj.style.fontSize=this.fontSize||'12px';pObj.style.fontWeight=this.fontWeight||'normal';pObj.style.fontStyle=this.fontStyle||'normal';pObj.style.color=this.fontColor||'#000';tw=this.width;sp=this.speed;for(var m=l;m--;){cTO[m].style.left=tw+'px';}
iRef=window.setInterval(tick,100-(sp>>1));};this.tickerStop=function(){window.clearInterval(iRef);};(function __construct(o){if(pObj&&tObj&&textArray.length>0){pObj.style.overflow='hidden';pObj.style.display='block';pObj.style.position=tObj.style.position='absolute';tObj.style.whiteSpace='nowrap';tObj.style.styleFloat=tObj.style.cssfloat='left';l=textArray.length;for(var m=l;m--;){cTO[m]=tObj.cloneNode(true);cTO[m].appendChild(d.createTextNode(textArray[m]+((l>=2)?o.messageSeperator:'')));pObj.appendChild(cTO[m]);t+=cTO[m].offsetWidth;}}else{return;}})(this);};Array.prototype.inArray=function(s){var j=this.length,i=0;if(j){for(;i<j;i++){if(s===this[i]){return i;}}}
return false;}; 



