!function(e){function t(t,n){return parseInt(e.css(t[0],n))||0}function n(e){return e[0].offsetWidth+t(e,"marginLeft")+t(e,"marginRight")}function l(e){return e[0].offsetHeight+t(e,"marginTop")+t(e,"marginBottom")}e.fn.jCarouselLite=function(t){return t=e.extend({btnPrev:null,btnNext:null,btnGo:null,btnPause:null,btnResume:null,mouseWheel:!1,auto:null,speed:200,easing:null,vertical:!1,circular:!0,visible:3,start:0,scroll:1,pauseOnHover:!1,beforeStart:null,afterEnd:null},t||{}),this.each(function(){function i(){return G_CURRENT_PAGE=m,h.slice(m).slice(0,d)}function r(n){if(!s&&!v){if(t.beforeStart&&t.beforeStart.call(this,i()),t.circular)n<=t.start-d-1?(a.css(c,-((p-2*d)*g)+"px"),m=n==t.start-d-1?p-2*d-1:p-2*d-t.scroll):n>=p-d+1?(a.css(c,-(d*g)+"px"),m=n==p-d+1?d+1:d+t.scroll):m=n;else{if(0>n||n>p-d)return;m=n}s=!0,a.animate("left"==c?{left:-(m*g)}:{top:-(m*g)},t.speed,t.easing,function(){t.afterEnd&&t.afterEnd.call(this,i()),s=!1}),t.circular||(e(t.btnPrev+","+t.btnNext).removeClass("disabled"),e(m-t.scroll<0&&t.btnPrev||m+t.scroll>p-d&&t.btnNext||[]).addClass("disabled"))}return!1}var s=!1,c=t.vertical?"top":"left",o=t.vertical?"height":"width",u=e(this),a=e("ul",u),f=e("li",a),b=f.size(),d=t.visible,v=0;t.circular&&(a.prepend(f.slice(b-d-1+1).clone()).append(f.slice(0,d).clone()),t.start+=d),e(t.btnPause).click(function(){return v=1,!1}),e(t.btnResume).click(function(){return v=0,!1});var h=e("li",a),p=h.size(),m=t.start;u.css("visibility","visible"),h.css({overflow:"hidden","float":t.vertical?"none":"left"}),a.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"}),u.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var g=t.vertical?l(h):n(h),x=g*p,P=g*d;h.css({width:h.width(),height:h.height()}),a.css(o,x+"px").css(c,-(m*g)),u.css(o,P+"px"),t.btnPrev&&e(t.btnPrev).click(function(){return r(m-t.scroll)}),t.btnNext&&e(t.btnNext).click(function(){return r(m+t.scroll)}),t.btnGo&&e.each(t.btnGo,function(n,l){e(l).click(function(){return r(t.circular?t.visible+n:n)})}),t.mouseWheel&&u.mousewheel&&u.mousewheel(function(e,n){return r(n>0?m-t.scroll:m+t.scroll)}),t.auto&&setInterval(function(){r(m+t.scroll)},t.auto+t.speed)})}}(jQuery);