jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),-(e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f))+i)},easeOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),e*Math.pow(2,-10*t)*Math.sin((t*u-o)*2*Math.PI/f)+r+i)},easeInOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u/2)==2?i+r:(f||(f=u*.3*1.5),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),t<1)?-.5*e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)+i:e*Math.pow(2,-10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}}),function(n,t,i){function f(r,f){function a(){e.elem.children().css("margin",0).children().css("margin",0);e.elem.css({position:"relative",height:e.opts.height,overflow:"hidden"});e.targ.css({position:"absolute",margin:0});setInterval(function(){l()},100)}function o(){e.timer=setInterval(function(){e.winFocus==1&&c(e.opts.direction)},e.opts.interval);n(e.opts.controls.toggle).addClass("et-run").html(e.opts.controls.stopText)}function s(){clearInterval(e.timer);e.timer=0;n(e.opts.controls.toggle).removeClass("et-run").html(e.opts.controls.playText)}function c(n){var t,i,r,u,f;e.elem.is(":visible")&&(n=="up"?(t=":first-child",i="-=",r="appendTo"):(t=":last-child",i="+=",r="prependTo"),u=e.targ.children(t),f=u.outerHeight(),e.targ.stop(!0,!0).animate({top:i+f+"px"},e.opts.speed,e.opts.easing,function(){u.hide()[r](e.targ).fadeIn();e.targ.css("top",0);l()}))}function h(n){s();n=="up"?c("up"):c("down")}function v(){var t=0,i=e.elem.css("display");e.elem.css("display","block");e.targ.children().each(function(){t+=n(this).outerHeight()});e.elem.css({display:i,height:t})}function y(t){var i=0;e.targ.children(":lt("+e.opts.visible+")").each(function(){i+=n(this).outerHeight()});t==1?e.elem.stop(!0,!0).animate({height:i},e.opts.speed):e.elem.css("height",i)}function l(){e.opts.height=="auto"&&e.opts.visible!=0?(anim=arguments.callee.caller.name=="init"?0:1,y(anim)):e.opts.height=="auto"&&v()}var e=this;e.opts=n.extend({},u,f);e.elem=n(r);e.targ=n(r).children(":first-child");e.timer=0;e.mHover=0;e.winFocus=1;a();o();n([t,i]).off("focus.jqet").on("focus.jqet",function(){e.winFocus=1}).off("blur.jqet").on("blur.jqet",function(){e.winFocus=0});e.opts.mousePause==1&&e.elem.mouseenter(function(){e.timerTemp=e.timer;s()}).mouseleave(function(){e.timerTemp!==0&&o()});n(e.opts.controls.up).on("click",function(n){n.preventDefault();h("up")});n(e.opts.controls.down).on("click",function(n){n.preventDefault();h("down")});n(e.opts.controls.toggle).on("click",function(n){n.preventDefault();e.timer==0?o():s()});return{up:function(){h("up")},down:function(){h("down")},start:o,stop:s,options:e.opts}}var r="easyTicker",u={direction:"up",easing:"swing",speed:"slow",interval:2e3,height:"auto",visible:0,mousePause:1,controls:{up:"",down:"",toggle:"",playText:"Play",stopText:"Stop"}};n.fn[r]=function(t){return this.each(function(){n.data(this,r)||n.data(this,r,new f(this,t))})}}(jQuery,window,document)