function DezideTicker(e){var d={start:function(){g=false},stop:function(){g=true},tick:function(){f()},speed:function(l){c=l},rightToLeft:function(){j=true},leftToRight:function(){j=false}};var h,i,j=true,c=1,g=false,b=null;function k(){if(typeof e==="string"){h=document.getElementById(e)}else{h=e}i=h.innerHTML;h.innerHTML='<div style="white-space: nowrap; position: absolute; display: none;">'+i+"</div>"}function a(){var m=$(h);var l=m.children("div:first");m.css("overflow","hidden").css("position","relative");if(j){l.css("left",m.width()+"px")}else{l.css("left",(l.width()*-1)+"px")}l.css("display","block");f()}function f(){var m=$(h);var l=m.children("div:first");var n=l.css("left");n=n.substring(0,n.indexOf("px"));n=parseInt(n);if(j){n=n-c;if((n+l.width())<0){n=m.width()}else{if(n>m.width()){n=m.width()}}}else{n=n+c;if(n>m.width()){n=(l.width()*-1)}else{if((n+l.width())<0){n=(l.width()*-1)}}}if(!g){l.css("left",n+"px")}clearTimeout(b);b=setTimeout(function(){d.tick()},30)}$(function(){a()});k();return d};
