/* * SuperSlide v2.1.1 * 杞绘澗瑙e喅缃戠珯澶ч儴鍒嗙壒鏁堝睍绀洪棶棰 * 璇﹀敖淇℃伅璇风湅瀹樼綉锛歨ttp://www.SuperSlide2.com/ * * Copyright 2011-2013, 澶ц瘽涓诲腑 * * 璇峰皧閲嶅師鍒涳紝淇濈暀澶撮儴鐗堟潈 * 鍦ㄤ繚鐣欑増鏉冪殑鍓嶆彁涓嬪彲搴旂敤浜庝釜浜烘垨鍟嗕笟鐢ㄩ€ * v2.1.1锛氫慨澶嶅綋璋冪敤澶氫釜SuperSlide锛屽苟璁剧疆returnDefault:true 鏃惰繑鍥瀌efaultIndex绱㈠紩閿欒 */ !function(A){A.fn.slide=function(B){return A.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 A3=A.extend({},A.fn.slide.defaults,B),A6=A(this),a=A3.effect,A4=A(A3.prevCell,A6),A5=A(A3.nextCell,A6),AX=A(A3.pageStateCell,A6),AY=A(A3.playStateCell,A6),AV=A(A3.titCell,A6),AW=AV.size(),A1=A(A3.mainCell,A6),A2=A1.children().size(),AZ=A3.switchLoad,A0=A(A3.targetCell,A6),AP=parseInt(A3.defaultIndex),AQ=parseInt(A3.delayTime),AN=parseInt(A3.interTime);parseInt(A3.triggerTime);var Ao,AT=parseInt(A3.scroll),AU=parseInt(A3.vis),AR="false"==A3.autoPlay||0==A3.autoPlay?!1:!0,AS="false"==A3.opp||0==A3.opp?!1:!0,AJ="false"==A3.autoPage||0==A3.autoPage?!1:!0,AK="false"==A3.pnLoop||0==A3.pnLoop?!1:!0,AI="false"==A3.mouseOverStop||0==A3.mouseOverStop?!1:!0,AD="false"==A3.defaultPlay||0==A3.defaultPlay?!1:!0,AB="false"==A3.returnDefault||0==A3.returnDefault?!1:!0,AC=0,AG=0,AH=0,AE=0,AF=A3.easing,Av=null,Aw=null,At=null,Au=A3.titOnClassName,Az=AV.index(A6.find("."+Au)),AA=AP=-1==Az?AP:Az,Ax=AP,Ay=AP,An=A2>=AU?0!=A2%AT?A2%AT:AT:0,Al="leftMarquee"==a||"topMarquee"==a?!0:!1,Am=function(){A.isFunction(A3.startFun)&&A3.startFun(AP,AW,A6,A(A3.titCell,A6),A1,A0,A4,A5)},Ar=function(){A.isFunction(A3.endFun)&&A3.endFun(AP,AW,A6,A(A3.titCell,A6),A1,A0,A4,A5)},As=function(){AV.removeClass(Au),AD&&AV.eq(Ax).addClass(Au)};if("menu"==A3.type){return AD&&AV.removeClass(Au).eq(AP).addClass(Au),AV.hover(function(){Ao=A(this).find(A3.targetCell);var C=AV.index(A(this));Aw=setTimeout(function(){switch(AP=C,AV.removeClass(Au).eq(AP).addClass(Au),Am(),a){case"fade":Ao.stop(!0,!0).animate({opacity:"show"},AQ,AF,Ar);break;case"slideDown":Ao.stop(!0,!0).animate({height:"show"},AQ,AF,Ar)}},A3.triggerTime)},function(){switch(clearTimeout(Aw),a){case"fade":Ao.animate({opacity:"hide"},AQ,AF);break;case"slideDown":Ao.animate({height:"hide"},AQ,AF)}}),AB&&A6.hover(function(){clearTimeout(At)},function(){At=setTimeout(As,AQ)}),void 0}if(0==AW&&(AW=A2),Al&&(AW=2),AJ){if(A2>=AU){if("leftLoop"==a||"topLoop"==a){AW=0!=A2%AT?(0^A2/AT)+1:A2/AT}else{var Ap=A2-AU;AW=1+parseInt(0!=Ap%AT?Ap/AT+1:Ap/AT),0>=AW&&(AW=1)}}else{AW=1}AV.html("");var Aq="";if(1==A3.autoPage||"true"==A3.autoPage){for(var Ai=0;AW>Ai;Ai++){Aq+="
  • "+(Ai+1)+"
  • "}}else{for(var Ai=0;AW>Ai;Ai++){Aq+=A3.autoPage.replace("$",Ai+1)}}AV.html(Aq);var AV=AV.children()}if(A2>=AU){A1.children().each(function(){A(this).width()>AH&&(AH=A(this).width(),AG=A(this).outerWidth(!0)),A(this).height()>AE&&(AE=A(this).height(),AC=A(this).outerHeight(!0))});var Aj=A1.children(),Ah=function(){for(var C=0;AU>C;C++){Aj.eq(C).clone().addClass("clone").appendTo(A1)}for(var C=0;An>C;C++){Aj.eq(A2-C-1).clone().addClass("clone").prependTo(A1)}};switch(a){case"fold":A1.css({position:"relative",width:AG,height:AC}).children().css({position:"absolute",width:AH,left:0,top:0,display:"none"});break;case"top":A1.wrap('
    ').css({top:-(AP*AT)*AC,position:"relative",padding:"0",margin:"0"}).children().css({height:AE});break;case"left":A1.wrap('
    ').css({width:A2*AG,left:-(AP*AT)*AG,position:"relative",overflow:"hidden",padding:"0",margin:"0"}).children().css({"float":"left",width:AH});break;case"leftLoop":case"leftMarquee":Ah(),A1.wrap('
    ').css({width:(A2+AU+An)*AG,position:"relative",overflow:"hidden",padding:"0",margin:"0",left:-(An+AP*AT)*AG}).children().css({"float":"left",width:AH});break;case"topLoop":case"topMarquee":Ah(),A1.wrap('
    ').css({height:(A2+AU+An)*AC,position:"relative",padding:"0",margin:"0",top:-(An+AP*AT)*AC}).children().css({height:AE})}}var s=function(D){var C=D*AT;return D==AW?C=A2:-1==D&&0!=A2%AT&&(C=-A2%AT),C},Ak=function(F){var G=function(J){for(var I=J;AU+J>I;I++){F.eq(I).find("img["+AZ+"]").each(function(){var L=A(this);if(L.attr("src",L.attr(AZ)).removeAttr(AZ),A1.find(".clone")[0]){for(var M=A1.children(),K=0;K=1?AP=1:0>=AP&&(AP=0):(Ay=AP,AP>=AW?AP=0:0>AP&&(AP=AW-1)),Am(),null!=AZ&&Ak(A1.children()),A0[0]&&(Ao=A0.eq(AP),null!=AZ&&Ak(A0),"slideDown"==a?(A0.not(Ao).stop(!0,!0).slideUp(AQ),Ao.slideDown(AQ,AF,function(){A1[0]||Ar()})):(A0.not(Ao).stop(!0,!0).hide(),Ao.animate({opacity:"show"},AQ,function(){A1[0]||Ar()}))),A2>=AU){switch(a){case"fade":A1.children().stop(!0,!0).eq(AP).animate({opacity:"show"},AQ,AF,function(){Ar()}).siblings().hide();break;case"fold":A1.children().stop(!0,!0).eq(AP).animate({opacity:"show"},AQ,AF,function(){Ar()}).siblings().animate({opacity:"hide"},AQ,AF);break;case"top":A1.stop(!0,!1).animate({top:-AP*AT*AC},AQ,AF,function(){Ar()});break;case"left":A1.stop(!0,!1).animate({left:-AP*AT*AG},AQ,AF,function(){Ar()});break;case"leftLoop":var D=Ay;A1.stop(!0,!0).animate({left:-(s(Ay)+An)*AG},AQ,AF,function(){-1>=D?A1.css("left",-(An+(AW-1)*AT)*AG):D>=AW&&A1.css("left",-An*AG),Ar()});break;case"topLoop":var D=Ay;A1.stop(!0,!0).animate({top:-(s(Ay)+An)*AC},AQ,AF,function(){-1>=D?A1.css("top",-(An+(AW-1)*AT)*AC):D>=AW&&A1.css("top",-An*AC),Ar()});break;case"leftMarquee":var E=A1.css("left").replace("px","");0==AP?A1.animate({left:++E},0,function(){A1.css("left").replace("px","")>=0&&A1.css("left",-A2*AG)}):A1.animate({left:--E},0,function(){A1.css("left").replace("px","")<=-(A2+An)*AG&&A1.css("left",-An*AG)});break;case"topMarquee":var C=A1.css("top").replace("px","");0==AP?A1.animate({top:++C},0,function(){A1.css("top").replace("px","")>=0&&A1.css("top",-A2*AC)}):A1.animate({top:--C},0,function(){A1.css("top").replace("px","")<=-(A2+An)*AC&&A1.css("top",-An*AC)})}}AV.removeClass(Au).eq(AP).addClass(Au),AA=AP,AK||(A5.removeClass("nextStop"),A4.removeClass("prevStop"),0==AP&&A4.addClass("prevStop"),AP==AW-1&&A5.addClass("nextStop")),AX.html(""+(AP+1)+"/"+AW)}};AD&&Ac(!0),AB&&A6.hover(function(){clearTimeout(At)},function(){At=setTimeout(function(){AP=Ax,AD?Ac():"slideDown"==a?Ao.slideUp(AQ,As):Ao.animate({opacity:"hide"},AQ,As),AA=AP},300)});var Aa=function(C){Av=setInterval(function(){AS?AP--:AP++,Ac()},C?C:AN)},Ab=function(C){Av=setInterval(Ac,C?C:AN)},Af=function(){AI||(clearInterval(Av),Aa())},Ag=function(){(AK||AP!=AW-1)&&(AP++,Ac(),Al||Af())},Ad=function(){(AK||0!=AP)&&(AP--,Ac(),Al||Af())},Ae=function(){clearInterval(Av),Al?Ab():Aa(),AY.removeClass("pauseState")},b=function(){clearInterval(Av),AY.addClass("pauseState")};if(AR?Al?(AS?AP--:AP++,Ab(),AI&&A1.hover(b,Ae)):(Aa(),AI&&A6.hover(b,Ae)):(Al&&(AS?AP--:AP++),AY.addClass("pauseState")),AY.click(function(){AY.hasClass("pauseState")?Ae():b()}),"mouseover"==A3.trigger?AV.hover(function(){var C=AV.index(this);Aw=setTimeout(function(){AP=C,Ac(),Af()},A3.triggerTime)},function(){clearTimeout(Aw)}):AV.click(function(){AP=AV.index(this),Ac(),Af()}),Al){if(A5.mousedown(Ag),A4.mousedown(Ad),AK){var AO,AL=function(){AO=setTimeout(function(){clearInterval(Av),Ab(0^AN/10)},150)},AM=function(){clearTimeout(AO),clearInterval(Av),Ab()};A5.mousedown(AL),A5.mouseup(AM),A4.mousedown(AL),A4.mouseup(AM)}"mouseover"==A3.trigger&&(A5.hover(Ag,function(){}),A4.hover(Ad,function(){}))}else{A5.click(Ag),A4.click(Ad)}})}}(jQuery),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(E,C,D,A,B){return jQuery.easing[jQuery.easing.def](E,C,D,A,B)},easeInQuad:function(E,C,D,A,B){return A*(C/=B)*C+D},easeOutQuad:function(E,C,D,A,B){return -A*(C/=B)*(C-2)+D},easeInOutQuad:function(E,C,D,A,B){return(C/=B/2)<1?A/2*C*C+D:-A/2*(--C*(C-2)-1)+D},easeInCubic:function(E,C,D,A,B){return A*(C/=B)*C*C+D},easeOutCubic:function(E,C,D,A,B){return A*((C=C/B-1)*C*C+1)+D},easeInOutCubic:function(E,C,D,A,B){return(C/=B/2)<1?A/2*C*C*C+D:A/2*((C-=2)*C*C+2)+D},easeInQuart:function(E,C,D,A,B){return A*(C/=B)*C*C*C+D},easeOutQuart:function(E,C,D,A,B){return -A*((C=C/B-1)*C*C*C-1)+D},easeInOutQuart:function(E,C,D,A,B){return(C/=B/2)<1?A/2*C*C*C*C+D:-A/2*((C-=2)*C*C*C-2)+D},easeInQuint:function(E,C,D,A,B){return A*(C/=B)*C*C*C*C+D},easeOutQuint:function(E,C,D,A,B){return A*((C=C/B-1)*C*C*C*C+1)+D},easeInOutQuint:function(E,C,D,A,B){return(C/=B/2)<1?A/2*C*C*C*C*C+D:A/2*((C-=2)*C*C*C*C+2)+D},easeInSine:function(E,C,D,A,B){return -A*Math.cos(C/B*(Math.PI/2))+A+D},easeOutSine:function(E,C,D,A,B){return A*Math.sin(C/B*(Math.PI/2))+D},easeInOutSine:function(E,C,D,A,B){return -A/2*(Math.cos(Math.PI*C/B)-1)+D},easeInExpo:function(E,C,D,A,B){return 0==C?D:A*Math.pow(2,10*(C/B-1))+D},easeOutExpo:function(E,C,D,A,B){return C==B?D+A:A*(-Math.pow(2,-10*C/B)+1)+D},easeInOutExpo:function(E,C,D,A,B){return 0==C?D:C==B?D+A:(C/=B/2)<1?A/2*Math.pow(2,10*(C-1))+D:A/2*(-Math.pow(2,-10*--C)+2)+D},easeInCirc:function(E,C,D,A,B){return -A*(Math.sqrt(1-(C/=B)*C)-1)+D},easeOutCirc:function(E,C,D,A,B){return A*Math.sqrt(1-(C=C/B-1)*C)+D},easeInOutCirc:function(E,C,D,A,B){return(C/=B/2)<1?-A/2*(Math.sqrt(1-C*C)-1)+D:A/2*(Math.sqrt(1-(C-=2)*C)+1)+D},easeInElastic:function(E,C,D,H,A){var F=1.70158,G=0,B=H;if(0==C){return D}if(1==(C/=A)){return D+H}if(G||(G=0.3*A),BC?-0.5*B*Math.pow(2,10*(C-=1))*Math.sin((C*A-F)*2*Math.PI/G)+D:0.5*B*Math.pow(2,-10*(C-=1))*Math.sin((C*A-F)*2*Math.PI/G)+H+D},easeInBack:function(E,C,D,A,B,F){return void 0==F&&(F=1.70158),A*(C/=B)*C*((F+1)*C-F)+D},easeOutBack:function(E,C,D,A,B,F){return void 0==F&&(F=1.70158),A*((C=C/B-1)*C*((F+1)*C+F)+1)+D},easeInOutBack:function(E,C,D,A,B,F){return void 0==F&&(F=1.70158),(C/=B/2)<1?A/2*C*C*(((F*=1.525)+1)*C-F)+D:A/2*((C-=2)*C*(((F*=1.525)+1)*C+F)+2)+D},easeInBounce:function(E,C,D,A,B){return A-jQuery.easing.easeOutBounce(E,B-C,0,A,B)+D},easeOutBounce:function(E,C,D,A,B){return(C/=B)<1/2.75?A*7.5625*C*C+D:2/2.75>C?A*(7.5625*(C-=1.5/2.75)*C+0.75)+D:2.5/2.75>C?A*(7.5625*(C-=2.25/2.75)*C+0.9375)+D:A*(7.5625*(C-=2.625/2.75)*C+0.984375)+D},easeInOutBounce:function(E,C,D,A,B){return B/2>C?0.5*jQuery.easing.easeInBounce(E,2*C,0,A,B)+D:0.5*jQuery.easing.easeOutBounce(E,2*C-B,0,A,B)+0.5*A+D}});