function pausescroller(content,divId,divClass,delay){this.content=content
this.tickerid=divId
this.delay=delay
this.mouseoverBol=0
this.itempertime=3
this.hiddendivpointer=this.itempertime
this.widthone=140
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden">');this.tickerdiv=document.getElementById(this.tickerid)
this.leftposition=Math.round((parseInt(pausescroller.getCSSwidthheight(this.tickerdiv,"width"))-this.widthone)/2);for(i=0;i<=this.itempertime;i++)
{document.write('<div class="innerDiv" style="position: absolute; width: 100%; '+(i==this.itempertime?"visibility: hidden; ":"")+'left:'+this.leftposition+'" id="'+divId+(i+1)+'">'+content[i]+'</div>');}
document.write('</div>');var scrollerinstance=this
if(window.addEventListener)
window.addEventListener("load",function(){scrollerinstance.initialize()},false)
else if(window.attachEvent)
window.attachEvent("onload",function(){scrollerinstance.initialize()})
else if(document.getElementById)
setTimeout(function(){scrollerinstance.initialize()},500)}
pausescroller.prototype.initialize=function(){this.visiblediv=document.getElementById(this.tickerid+"1")
this.topitem=0;this.hiddendivnumber=this.itempertime+1;this.paddingtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv));this.visibiledivheight=parseInt(pausescroller.getCSSwidthheight(this.visiblediv,"height"));this.visibledivtop=this.paddingtop;this.getinlineitems();this.sethiddendiv();this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if(window.attachEvent)
window.attachEvent("onunload",function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()},this.delay)}
pausescroller.prototype.animateup=function(){var scrollerinstance=this
if(parseInt(this.hiddendiv.style.top)>(this.hiddendivnextstop+5)){for(i=0;i<this.itempertime+1;i++)
{document.getElementById(this.tickerid+(i+1)).style.top=parseInt(document.getElementById(this.tickerid+(i+1)).style.top)-5+"px";}
setTimeout(function(){scrollerinstance.animateup()},50)}
else{this.topitem=(this.topitem<this.itempertime?(this.topitem+1):0);this.getinlineitems();this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()},this.delay)}}
pausescroller.prototype.swapdivs=function()
{this.hiddendivnumber=(this.hiddendivnumber<this.itempertime+1?(this.hiddendivnumber+1):1);this.sethiddendiv();}
pausescroller.prototype.sethiddendiv=function()
{this.hiddendiv=document.getElementById(this.tickerid+this.hiddendivnumber)
this.hiddendivnextstop=parseInt(document.getElementById(this.tickerid+(this.hiddendivnumber>1?this.hiddendivnumber-1:this.itempertime+1)).style.top);}
pausescroller.prototype.getinlineitems=function(){for(i=this.topitem;i<this.itempertime+1;i++)
{document.getElementById(this.tickerid+(i+1)).style.top=(this.paddingtop*(i-this.topitem+1)+(this.visibiledivheight*(i-this.topitem)))+"px";}
precount=this.itempertime+1-this.topitem;for(i=0;i<this.topitem;i++)
{document.getElementById(this.tickerid+(i+1)).style.top=(this.paddingtop*(precount+i+1)+(this.visibiledivheight*(precount+i)))+"px";}}
pausescroller.prototype.setmessage=function(){var scrollerinstance=this
if(this.mouseoverBol==1)
setTimeout(function(){scrollerinstance.setmessage()},100)
else{var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)?0:i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()}}
pausescroller.getCSSpadding=function(tickerobj){if(tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if(window.getComputedStyle)
return window.getComputedStyle(tickerobj,"").getPropertyValue("padding-top")
else
return 0}
pausescroller.getCSSwidthheight=function(tickerobj,widthheight){if(tickerobj.currentStyle)
return tickerobj.currentStyle[widthheight]
else if(window.getComputedStyle)
return window.getComputedStyle(tickerobj,"").getPropertyValue(widthheight)
else
return 0}