!function(e){e.fn.slide=function(t){return e.fn.slide.defaults={type:"slide",effect:"fade",autoplay:!1,delaytime:500,intertime:2500,triggertime:150,defaultindex:0,titcell:".hd li",maincell:".bd",targetcell:null,trigger:"mouseover",scroll:1,vis:1,titonclassname:"on",autopage:!1,prevcell:".prev",nextcell:".next",pagestatecell:".pagestate",opp:!1,pnloop:!0,easing:"swing",startfun:null,endfun:null,switchload:null,playstatecell:".playstate",mouseoverstop:!0,defaultplay:!0,returndefault:!1},this.each(function(){var a,n=e.extend({},e.fn.slide.defaults,t),i=e(this),s=n.effect,r=e(n.prevcell,i),o=e(n.nextcell,i),u=e(n.pagestatecell,i),l=e(n.playstatecell,i),c=e(n.titcell,i),f=c.size(),p=e(n.maincell,i),d=p.children().size(),h=n.switchload,v=e(n.targetcell,i),m=parseint(n.defaultindex),g=parseint(n.delaytime),w=parseint(n.intertime),i=(parseint(n.triggertime),parseint(n.scroll)),m=parseint(n.vis),c="false"==n.autoplay||0==n.autoplay?!1:!0,y="false"==n.opp||0==n.opp?!1:!0,x="false"==n.autopage||0==n.autopage?!1:!0,o="false"==n.pnloop||0==n.pnloop?!1:!0,b="false"==n.mouseoverstop||0==n.mouseoverstop?!1:!0,q="false"==n.defaultplay||0==n.defaultplay?!1:!0,k="false"==n.returndefault||0==n.returndefault?!1:!0,p=0,q=0,s=0,t=0,l=n.easing,j=null,b=null,d=null,f=n.titonclassname,e=c.index(i.find("."+f)),w=m=-1==e?m:e,z=m,a=m,n=d>=m?d%i!=0?d%i:i:0,u="leftmarquee"==s||"topmarquee"==s?!0:!1,h=function(){e.isfunction(n.startfun)&&n.startfun(m,f,i,e(n.titcell,i),p,v,r,o)},$=function(){e.isfunction(n.endfun)&&n.endfun(m,f,i,e(n.titcell,i),p,v,r,o)},g=function(){c.removeclass(f),q&&c.eq(z).addclass(f)};if("menu"==n.type)return q&&c.removeclass(f).eq(m).addclass(f),c.hover(function(){a=e(this).find(n.targetcell);var t=c.index(e(this));b=settimeout(function(){switch(m=t,c.removeclass(f).eq(m).addclass(f),h(),s){case"fade":a.stop(!0,!0).animate({opacity:"show"},g,l,$);break;case"slidedown":a.stop(!0,!0).animate({height:"show"},g,l,$)}},n.triggertime)},function(){switch(cleartimeout(b),s){case"fade":a.animate({opacity:"hide"},g,l);break;case"slidedown":a.animate({height:"hide"},g,l)}}),void(k&&i.hover(function(){cleartimeout(d)},function(){d=settimeout(g,g)}));if(0==f&&(f=d),u&&(f=2),x){if(d>=m)if("leftloop"==s||"toploop"==s)f=d%i!=0?(d/i^0)+1:d/i;else{var j=d-m;f=1+parseint(j%i!=0?j/i+1:j/i),0>=f&&(f=1)}else f=1;c.html("");var k="";if(1==n.autopage||"true"==n.autopage)for(var r=0;f>r;r++)k+="
"+(r+1)+"";else for(var r=0;f>r;r++)k+=n.autopage.replace("$",r+1);c.html(k);var c=c.children()}if(d>=m){p.children().each(function(){e(this).width()>s&&(s=e(this).width(),q=e(this).outerwidth(!0)),e(this).height()>t&&(t=e(this).height(),p=e(this).outerheight(!0))});var v=p.children(),x=function(){for(var e=0;m>e;e++)v.eq(e).clone().addclass("clone").appendto(p);for(var e=0;n>e;e++)v.eq(d-e-1).clone().addclass("clone").prependto(p)};switch(s){case"fold":p.css({position:"relative",width:q,height:p}).children().css({position:"absolute",width:s,left:0,top:0,display:"none"});break;case"top":p.wrap('').css({top:-(m*i)*p,position:"relative",padding:"0",margin:"0"}).children().css({height:t});break;case"left":p.wrap('').css({width:d*q,left:-(m*i)*q,position:"relative",overflow:"hidden",padding:"0",margin:"0"}).children().css({"float":"left",width:s});break;case"leftloop":case"leftmarquee":x(),p.wrap('').css({width:(d+m+n)*q,position:"relative",overflow:"hidden",padding:"0",margin:"0",left:-(n+m*i)*q}).children().css({"float":"left",width:s});break;case"toploop":case"topmarquee":x(),p.wrap('').css({height:(d+m+n)*p,position:"relative",padding:"0",margin:"0",top:-(n+m*i)*p}).children().css({height:t})}}var y=function(e){var t=e*i;return e==f?t=d:-1==e&&d%i!=0&&(t=-d%i),t},z=function(t){var a=function(a){for(var n=a;m+a>n;n++)t.eq(n).find("img["+h+"]").each(function(){var t=e(this);if(t.attr("src",t.attr(h)).removeattr(h),p.find(".clone")[0])for(var a=p.children(),n=0;n=1?m=1:0>=m&&(m=0):(a=m,m>=f?m=0:0>m&&(m=f-1)),h(),null!=h&&z(p.children()),v[0]&&(a=v.eq(m),null!=h&&z(v),"slidedown"==s?(v.not(a).stop(!0,!0).slideup(g),a.slidedown(g,l,function(){p[0]||$()})):(v.not(a).stop(!0,!0).hide(),a.animate({opacity:"show"},g,function(){p[0]||$()}))),d>=m)switch(s){case"fade":p.children().stop(!0,!0).eq(m).animate({opacity:"show"},g,l,function(){$()}).siblings().hide();break;case"fold":p.children().stop(!0,!0).eq(m).animate({opacity:"show"},g,l,function(){$()}).siblings().animate({opacity:"hide"},g,l);break;case"top":p.stop(!0,!1).animate({top:-m*i*p},g,l,function(){$()});break;case"left":p.stop(!0,!1).animate({left:-m*i*q},g,l,function(){$()});break;case"leftloop":var t=a;p.stop(!0,!0).animate({left:-(y(a)+n)*q},g,l,function(){-1>=t?p.css("left",-(n+(f-1)*i)*q):t>=f&&p.css("left",-n*q),$()});break;case"toploop":var t=a;p.stop(!0,!0).animate({top:-(y(a)+n)*p},g,l,function(){-1>=t?p.css("top",-(n+(f-1)*i)*p):t>=f&&p.css("top",-n*p),$()});break;case"leftmarquee":var n=p.css("left").replace("px","");0==m?p.animate({left:++n},0,function(){p.css("left").replace("px","")>=0&&p.css("left",-d*q)}):p.animate({left:--n},0,function(){p.css("left").replace("px","")<=-(d+n)*q&&p.css("left",-n*q)});break;case"topmarquee":var i=p.css("top").replace("px","");0==m?p.animate({top:++i},0,function(){p.css("top").replace("px","")>=0&&p.css("top",-d*p)}):p.animate({top:--i},0,function(){p.css("top").replace("px","")<=-(d+n)*p&&p.css("top",-n*p)})}c.removeclass(f).eq(m).addclass(f),w=m,o||(o.removeclass("nextstop"),r.removeclass("prevstop"),0==m&&r.addclass("prevstop"),m==f-1&&o.addclass("nextstop")),u.html(""+(m+1)+"/"+f)}};q&&_(!0),k&&i.hover(function(){cleartimeout(d)},function(){d=settimeout(function(){m=z,q?_():"slidedown"==s?a.slideup(g,g):a.animate({opacity:"hide"},g,g),w=m},300)});var et=function(e){j=setinterval(function(){y?m--:m++,_()},e?e:w)},tt=function(e){j=setinterval(_,e?e:w)},at=function(){b||(clearinterval(j),et())},nt=function(){(o||m!=f-1)&&(m++,_(),u||at())},it=function(){(o||0!=m)&&(m--,_(),u||at())},st=function(){clearinterval(j),u?tt():et(),l.removeclass("pausestate")},rt=function(){clearinterval(j),l.addclass("pausestate")};if(c?u?(y?m--:m++,tt(),b&&p.hover(rt,st)):(et(),b&&i.hover(rt,st)):(u&&(y?m--:m++),l.addclass("pausestate")),l.click(function(){l.hasclass("pausestate")?st():rt()}),"mouseover"==n.trigger?c.hover(function(){var e=c.index(this);b=settimeout(function(){m=e,_(),at()},n.triggertime)},function(){cleartimeout(b)}):c.click(function(){m=c.index(this),_(),at()}),u){if(o.mousedown(nt),r.mousedown(it),o){var ot,ut=function(){ot=settimeout(function(){clearinterval(j),tt(w/10^0)},150)},lt=function(){cleartimeout(ot),clearinterval(j),tt()};o.mousedown(ut),o.mouseup(lt),r.mousedown(ut),r.mouseup(lt)}"mouseover"==n.trigger&&(o.hover(nt,function(){}),r.hover(it,function(){}))}else o.click(nt),r.click(it)})}}(jquery),jquery.easing.jswing=jquery.easing.swing,jquery.extend(jquery.easing,{def:"easeoutquad",swing:function(e,t,a,n,i){return jquery.easing[jquery.easing.def](e,t,a,n,i)},easeinquad:function(e,t,a,n,i){return n*(t/=i)*t+a},easeoutquad:function(e,t,a,n,i){return-n*(t/=i)*(t-2)+a},easeinoutquad:function(e,t,a,n,i){return(t/=i/2)<1?n/2*t*t+a:-n/2*(--t*(t-2)-1)+a},easeincubic:function(e,t,a,n,i){return n*(t/=i)*t*t+a},easeoutcubic:function(e,t,a,n,i){return n*((t=t/i-1)*t*t+1)+a},easeinoutcubic:function(e,t,a,n,i){return(t/=i/2)<1?n/2*t*t*t+a:n/2*((t-=2)*t*t+2)+a},easeinquart:function(e,t,a,n,i){return n*(t/=i)*t*t*t+a},easeoutquart:function(e,t,a,n,i){return-n*((t=t/i-1)*t*t*t-1)+a},easeinoutquart:function(e,t,a,n,i){return(t/=i/2)<1?n/2*t*t*t*t+a:-n/2*((t-=2)*t*t*t-2)+a},easeinquint:function(e,t,a,n,i){return n*(t/=i)*t*t*t*t+a},easeoutquint:function(e,t,a,n,i){return n*((t=t/i-1)*t*t*t*t+1)+a},easeinoutquint:function(e,t,a,n,i){return(t/=i/2)<1?n/2*t*t*t*t*t+a:n/2*((t-=2)*t*t*t*t+2)+a},easeinsine:function(e,t,a,n,i){return-n*math.cos(t/i*(math.pi/2))+n+a},easeoutsine:function(e,t,a,n,i){return n*math.sin(t/i*(math.pi/2))+a},easeinoutsine:function(e,t,a,n,i){return-n/2*(math.cos(math.pi*t/i)-1)+a},easeinexpo:function(e,t,a,n,i){return 0==t?a:n*math.pow(2,10*(t/i-1))+a},easeoutexpo:function(e,t,a,n,i){return t==i?a+n:n*(-math.pow(2,-10*t/i)+1)+a},easeinoutexpo:function(e,t,a,n,i){return 0==t?a:t==i?a+n:(t/=i/2)<1?n/2*math.pow(2,10*(t-1))+a:n/2*(-math.pow(2,-10*--t)+2)+a},easeincirc:function(e,t,a,n,i){return-n*(math.sqrt(1-(t/=i)*t)-1)+a},easeoutcirc:function(e,t,a,n,i){return n*math.sqrt(1-(t=t/i-1)*t)+a},easeinoutcirc:function(e,t,a,n,i){return(t/=i/2)<1?-n/2*(math.sqrt(1-t*t)-1)+a:n/2*(math.sqrt(1-(t-=2)*t)+1)+a},easeinelastic:function(e,t,a,n,i){var s=1.70158,r=0,o=n;if(0==t)return a;if(1==(t/=i))return a+n;if(r||(r=.3*i),ot?-.5*o*math.pow(2,10*(t-=1))*math.sin(2*(t*i-s)*math.pi/r)+a:o*math.pow(2,-10*(t-=1))*math.sin(2*(t*i-s)*math.pi/r)*.5+n+a},easeinback:function(e,t,a,n,i,s){return void 0==s&&(s=1.70158),n*(t/=i)*t*((s+1)*t-s)+a},easeoutback:function(e,t,a,n,i,s){return void 0==s&&(s=1.70158),n*((t=t/i-1)*t*((s+1)*t+s)+1)+a},easeinoutback:function(e,t,a,n,i,s){return void 0==s&&(s=1.70158),(t/=i/2)<1?n/2*t*t*(((s*=1.525)+1)*t-s)+a:n/2*((t-=2)*t*(((s*=1.525)+1)*t+s)+2)+a},easeinbounce:function(e,t,a,n,i){return n-jquery.easing.easeoutbounce(e,i-t,0,n,i)+a},easeoutbounce:function(e,t,a,n,i){return(t/=i)<1/2.75?7.5625*n*t*t+a:2/2.75>t?n*(7.5625*(t-=1.5/2.75)*t+.75)+a:2.5/2.75>t?n*(7.5625*(t-=2.25/2.75)*t+.9375)+a:n*(7.5625*(t-=2.625/2.75)*t+.984375)+a},easeinoutbounce:function(e,t,a,n,i){return i/2>t?.5*jquery.easing.easeinbounce(e,2*t,0,n,i)+a:.5*jquery.easing.easeoutbounce(e,2*t-i,0,n,i)+.5*n+a}});