var mytimer=null;var Ticker=new Class({setOptions:function(A){this.options=Object.extend({speed:1500,delay:2000,direction:"vertical",onComplete:Class.empty,onStart:Class.empty},A||{})},initialize:function(D,B){this.setOptions(B);this.el=$(D);this.items=this.el.getElements("li");var A=0;var C=0;if(this.options.direction.toLowerCase()=="horizontal"){C=this.el.getSize().y;this.items.each(function(E,F){A+=E.getSize().x})}else{A=this.el.getSize().x;this.items.each(function(E,F){C+=E.getSize().y})}this.el.setStyles({position:"absolute",top:0,left:0,width:A,height:C});this.fx=new Fx.Morph(this.el,{duration:this.options.speed,onComplete:function(){var E=(this.current==0)?this.items.length:this.current;this.items[E-1].injectInside(this.el);this.el.setStyles({left:0,top:0})}.bind(this)});this.current=0;this.next()},next:function(){this.current++;if(this.current>=this.items.length){this.current=0}var A=this.items[this.current];this.fx.start({top:-A.offsetTop,left:-A.offsetLeft});mytimer=this.next.bind(this).delay(this.options.delay+this.options.speed)},pause:function(){$clear(mytimer);mytimer=null},resume:function(){if(mytimer==null){this.next()}}});window.addEvent("domready",function(){var A=new Ticker("TickerVertical",{speed:1000,delay:2000,direction:"vertical"});$("stop_scroll").addEvent("click",function(){$("play_scroll_cont").style.display="block";$("stop_scroll_cont").style.display="none";A.pause()});$("play_scroll").addEvent("click",function(){$("stop_scroll_cont").style.display="block";$("play_scroll_cont").style.display="none";A.resume()})});