<\/div>').css({width:e*l,left:-(i*o)*l,position:"relative",overflow:"hidden",padding:"0",margin:"0"}).children().css({float:"left",width:ct});break;case"leftLoop":case"left":ui();u.wrap('
<\/div>').css({width:(e+p+s)*l,position:"relative",overflow:"hidden",padding:"0",margin:"0",left:-(s+i*o)*l}).children().css({float:"left",width:ct});break;case"topLoop":case"top":ui();u.wrap('
<\/div>').css({height:(e+p+s)*v,position:"relative",padding:"0",margin:"0",top:-(s+i*o)*v}).children().css({height:at})}}var fi=function(n){var t=n*o;return n==f?t=e:-1==n&&0!=e%o&&(t=-e%o),t},wi=function(t){var r=function(i){for(var r=i;p+i>r;r++)t.eq(r).find("img["+nt+"]").each(function(){var i=n(this),r,t;if(i.attr("src",i.attr(nt)).removeAttr(nt),u.find(".clone")[0])for(r=u.children(),t=0;r.size()>t;t++)r.eq(t).find("img["+nt+"]").each(function(){n(this).attr(nt)==i.attr("src")&&n(this).attr("src",n(this).attr(nt)).removeAttr(nt)})})},f;switch(y){case"fade":case"fold":case"top":case"left":case"slideDown":r(i*o);break;case"leftLoop":case"topLoop":r(s+fi(ot));break;case"left":case"top":var e="left"==y?u.css("left").replace("px",""):u.css("top").replace("px",""),h="left"==y?l:v,c=s;0!=e%h&&(f=Math.abs(0^e/h),c=1==i?s+f:s+f-1);r(c)}},ut=function(n){var t,r,a;if(!ht||ti!=i||n||it){if(it?i>=1?i=1:0>=i&&(i=0):(ot=i,i>=f?i=0:0>i&&(i=f-1)),pi(),null!=nt&&wi(u.children()),ft[0]&&(w=ft.eq(i),null!=nt&&wi(ft),"slideDown"==y?(ft.not(w).stop(!0,!0).slideUp(c),w.slideDown(c,b,function(){u[0]||k()})):(ft.not(w).stop(!0,!0).hide(),w.animate({opacity:"show"},c,function(){u[0]||k()}))),e>=p)switch(y){case"fade":u.children().stop(!0,!0).eq(i).animate({opacity:"show"},c,b,function(){k()}).siblings().hide();break;case"fold":u.children().stop(!0,!0).eq(i).animate({opacity:"show"},c,b,function(){k()}).siblings().animate({opacity:"hide"},c,b);break;case"top":u.stop(!0,!1).animate({top:-i*o*v},c,b,function(){k()});break;case"left":u.stop(!0,!1).animate({left:-i*o*l},c,b,function(){k()});break;case"leftLoop":t=ot;u.stop(!0,!0).animate({left:-(fi(ot)+s)*l},c,b,function(){-1>=t?u.css("left",-(s+(f-1)*o)*l):t>=f&&u.css("left",-s*l);k()});break;case"topLoop":t=ot;u.stop(!0,!0).animate({top:-(fi(ot)+s)*v},c,b,function(){-1>=t?u.css("top",-(s+(f-1)*o)*v):t>=f&&u.css("top",-s*v);k()});break;case"left":r=u.css("left").replace("px","");0==i?u.animate({left:++r},0,function(){u.css("left").replace("px","")>=0&&u.css("left",-e*l)}):u.animate({left:--r},0,function(){-(e+s)*l>=u.css("left").replace("px","")&&u.css("left",-s*l)});break;case"top":a=u.css("top").replace("px","");0==i?u.animate({top:++a},0,function(){u.css("top").replace("px","")>=0&&u.css("top",-e*v)}):u.animate({top:--a},0,function(){-(e+s)*v>=u.css("top").replace("px","")&&u.css("top",-s*v)})}h.removeClass(tt).eq(i).addClass(tt);ti=i;lt||(g.removeClass("nextStop"),d.removeClass("prevStop"),0==i&&d.addClass("prevStop"),i==f-1&&g.addClass("nextStop"));ki.html(""+(i+1)+"<\/span>/"+f)}};ht&&ut(!0);vi&&a.hover(function(){clearTimeout(yt)},function(){yt=setTimeout(function(){i=defaultIndex;ht?ut():"slideDown"==y?w.slideUp(c,ii):w.animate({opacity:"hide"},c,ii);ti=i},300)});var ei=function(n){et=setInterval(function(){gt?i--:i++;ut()},n?n:dt)},bt=function(n){et=setInterval(ut,n?n:dt)},kt=function(){ni||(clearInterval(et),ei())},oi=function(){(lt||i!=f-1)&&(i++,ut(),it||kt())},si=function(){(lt||0!=i)&&(i--,ut(),it||kt())},hi=function(){clearInterval(et);it?bt():ei();st.removeClass("pauseState")},ci=function(){clearInterval(et);st.addClass("pauseState")};(di?it?(gt?i--:i++,bt(),ni&&u.hover(ci,hi)):(ei(),ni&&a.hover(ci,hi)):(it&&(gt?i--:i++),st.addClass("pauseState")),st.click(function(){st.hasClass("pauseState")?hi():ci()}),"mouseover"==r.trigger?h.hover(function(){var n=h.index(this);vt=setTimeout(function(){i=n;ut();kt()},r.triggerTime)},function(){clearTimeout(vt)}):h.click(function(){i=h.index(this);ut();kt()}),it)?((g.mousedown(oi),d.mousedown(si),lt)&&(li=function(){bi=setTimeout(function(){clearInterval(et);bt(0^dt/10)},150)},ai=function(){clearTimeout(bi);clearInterval(et);bt()},g.mousedown(li),g.mouseup(ai),d.mousedown(li),d.mouseup(ai)),"mouseover"==r.trigger&&(g.hover(oi,function(){}),d.hover(si,function(){}))):(g.click(oi),d.click(si))})}})(jQuery);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 1>(t/=u/2)?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 1>(t/=u/2)?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 1>(t/=u/2)?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 1>(t/=u/2)?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 0==t?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 0==t?i:t==u?i+r:1>(t/=u/2)?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 1>(t/=u/2)?-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 f=1.70158,e=0,o=r;return 0==t?i:1==(t/=u)?i+r:((e||(e=.3*u),Math.abs(r)>o)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),-(o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e))+i)},easeOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return 0==t?i:1==(t/=u)?i+r:((e||(e=.3*u),Math.abs(r)>o)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),o*Math.pow(2,-10*t)*Math.sin((t*u-f)*2*Math.PI/e)+r+i)},easeInOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return 0==t?i:2==(t/=u/2)?i+r:((e||(e=u*.3*1.5),Math.abs(r)>o)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),1>t?-.5*o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)+i:.5*o*Math.pow(2,-10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)+r+i)},easeInBack:function(n,t,i,r,u,f){return void 0==f&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return void 0==f&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return void 0==f&&(f=1.70158),1>(t/=u/2)?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 1/2.75>(t/=u)?r*7.5625*t*t+i:2/2.75>t?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:2.5/2.75>t?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 u/2>t?.5*jQuery.easing.easeInBounce(n,2*t,0,r,u)+i:.5*jQuery.easing.easeOutBounce(n,2*t-u,0,r,u)+.5*r+i}})