/*!
	 * SuperSlide v2.1.1 
	 * 轻松解决网站大部分特效展示问题
	 * 详尽信息请看官网：http://www.SuperSlide2.com/
	 *
	 * Copyright 2011-2013, 大话主席
	 *
	 * 请尊重原创，保留头部版权
	 * 在保留版权的前提下可应用于个人或商业用途

	 * v2.1.1：修复当调用多个SuperSlide，并设置returnDefault:true 时返回defaultIndex索引错误

*/
!function(b){b.fn.slide=function(L){return b.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 g=b.extend({},b.fn.slide.defaults,L),A=b(this),bM=g.effect,f=b(g.prevCell,A),La=b(g.nextCell,A),U=b(g.pageStateCell,A),e=b(g.playStateCell,A),D=b(g.titCell,A),c=D.size(),P=b(g.mainCell,A),a=P.children().size(),R=g.switchLoad,gH=b(g.targetCell,A),fQ=parseInt(g.defaultIndex),fF=parseInt(g.delayTime),gF=parseInt(g.interTime);parseInt(g.triggerTime);var gFa,bd=parseInt(g.scroll),F=parseInt(g.vis),fb="false"==g.autoPlay||0==g.autoPlay?!1:!0,d="false"==g.opp||0==g.opp?!1:!0,Z="false"==g.autoPage||0==g.autoPage?!1:!0,eV="false"==g.pnLoop||0==g.pnLoop?!1:!0,cg="false"==g.mouseOverStop||0==g.mouseOverStop?!1:!0,fU="false"==g.defaultPlay||0==g.defaultPlay?!1:!0,bh="false"==g.returnDefault||0==g.returnDefault?!1:!0,cf=0,fT=0,fZ=0,h=0,c_=g.easing,i=null,j=null,k=null,l=g.titOnClassName,m=D.index(A.find("."+l)),n=fQ=-1==m?fQ:m,o=fQ,p=fQ,q=a>=F?0!=a%bd?a%bd:bd:0,r="leftMarquee"==bM||"topMarquee"==bM?!0:!1,s=function(){b.isFunction(g.startFun)&&g.startFun(fQ,c,A,b(g.titCell,A),P,gH,f,La)},t=function(){b.isFunction(g.endFun)&&g.endFun(fQ,c,A,b(g.titCell,A),P,gH,f,La)},u=function(){D.removeClass(l),fU&&D.eq(o).addClass(l)};if("menu"==g.type)return fU&&D.removeClass(l).eq(fQ).addClass(l),D.hover(function(){gFa=b(this).find(g.targetCell);var L=D.index(b(this));j=setTimeout(function(){switch(fQ=L,D.removeClass(l).eq(fQ).addClass(l),s(),bM){case"fade":gFa.stop(!0,!0).animate({opacity:"show"},fF,c_,t);break;case"slideDown":gFa.stop(!0,!0).animate({height:"show"},fF,c_,t)}},g.triggerTime)},function(){switch(clearTimeout(j),bM){case"fade":gFa.animate({opacity:"hide"},fF,c_);break;case"slideDown":gFa.animate({height:"hide"},fF,c_)}}),bh&&A.hover(function(){clearTimeout(k)},function(){k=setTimeout(u,fF)}),void 0;if(0==c&&(c=a),r&&(c=2),Z){if(a>=F)if("leftLoop"==bM||"topLoop"==bM)c=0!=a%bd?(0^a/bd)+1:a/bd;else{var v=a-F;c=1+parseInt(0!=v%bd?v/bd+1:v/bd),0>=c&&(c=1)}else c=1;D.html("");var w="";if(1==g.autoPage||"true"==g.autoPage)for(var x=0;c>x;x++)w+="<li>"+(x+1)+"</li>";else for(var x=0;c>x;x++)w+=g.autoPage.replace("$",x+1);D.html(w);var D=D.children()}if(a>=F){P.children().each(function(){b(this).width()>fZ&&(fZ=b(this).width(),fT=b(this).outerWidth(!0)),b(this).height()>h&&(h=b(this).height(),cf=b(this).outerHeight(!0))});var y=P.children(),z=function(){for(var b=0;F>b;b++)y.eq(b).clone().addClass("clone").appendTo(P);for(var b=0;q>b;b++)y.eq(a-b-1).clone().addClass("clone").prependTo(P)};switch(bM){case"fold":P.css({position:"relative",width:fT,height:cf}).children().css({position:"absolute",width:fZ,left:0,top:0,display:"none"});break;case"top":P.wrap('<div class="tempWrap" style="overflow:hidden; position:relative; height:'+F*cf+'px"></div>').css({top:-(fQ*bd)*cf,position:"relative",padding:"0",margin:"0"}).children().css({height:h});break;case"left":P.wrap('<div class="tempWrap" style="overflow:hidden; position:relative; width:'+F*fT+'px"></div>').css({width:a*fT,left:-(fQ*bd)*fT,position:"relative",overflow:"hidden",padding:"0",margin:"0"}).children().css({float:"left",width:fZ});break;case"leftLoop":case"leftMarquee":z(),P.wrap('<div class="tempWrap" style="overflow:hidden; position:relative; width:'+F*fT+'px"></div>').css({width:(a+F+q)*fT,position:"relative",overflow:"hidden",padding:"0",margin:"0",left:-(q+fQ*bd)*fT}).children().css({float:"left",width:fZ});break;case"topLoop":case"topMarquee":z(),P.wrap('<div class="tempWrap" style="overflow:hidden; position:relative; height:'+F*cf+'px"></div>').css({height:(a+F+q)*cf,position:"relative",padding:"0",margin:"0",top:-(q+fQ*bd)*cf}).children().css({height:h})}}var B=function(b){var L=b*bd;return b==c?L=a:-1==b&&0!=a%bd&&(L=-a%bd),L},C=function(L){var g=function(g){for(var A=g;F+g>A;A++)L.eq(A).find("img["+R+"]").each(function(){var L=b(this);if(L.attr("src",L.attr(R)).removeAttr(R),P.find(".clone")[0])for(var g=P.children(),A=0;A<g.size();A++)g.eq(A).find("img["+R+"]").each(function(){b(this).attr(R)==L.attr("src")&&b(this).attr("src",b(this).attr(R)).removeAttr(R)})})};switch(bM){case"fade":case"fold":case"top":case"left":case"slideDown":g(fQ*bd);break;case"leftLoop":case"topLoop":g(q+B(p));break;case"leftMarquee":case"topMarquee":var A="leftMarquee"==bM?P.css("left").replace("px",""):P.css("top").replace("px",""),f="leftMarquee"==bM?fT:cf,La=q;if(0!=A%f){var U=Math.abs(0^A/f);La=1==fQ?q+U:q+U-1}g(La)}},E=function(b){if(!fU||n!=fQ||b||r){if(r?fQ>=1?fQ=1:0>=fQ&&(fQ=0):(p=fQ,fQ>=c?fQ=0:0>fQ&&(fQ=c-1)),s(),null!=R&&C(P.children()),gH[0]&&(gFa=gH.eq(fQ),null!=R&&C(gH),"slideDown"==bM?(gH.not(gFa).stop(!0,!0).slideUp(fF),gFa.slideDown(fF,c_,function(){P[0]||t()})):(gH.not(gFa).stop(!0,!0).hide(),gFa.animate({opacity:"show"},fF,function(){P[0]||t()}))),a>=F)switch(bM){case"fade":P.children().stop(!0,!0).eq(fQ).animate({opacity:"show"},fF,c_,function(){t()}).siblings().hide();break;case"fold":P.children().stop(!0,!0).eq(fQ).animate({opacity:"show"},fF,c_,function(){t()}).siblings().animate({opacity:"hide"},fF,c_);break;case"top":P.stop(!0,!1).animate({top:-fQ*bd*cf},fF,c_,function(){t()});break;case"left":P.stop(!0,!1).animate({left:-fQ*bd*fT},fF,c_,function(){t()});break;case"leftLoop":var L=p;P.stop(!0,!0).animate({left:-(B(p)+q)*fT},fF,c_,function(){-1>=L?P.css("left",-(q+(c-1)*bd)*fT):L>=c&&P.css("left",-q*fT),t()});break;case"topLoop":var L=p;P.stop(!0,!0).animate({top:-(B(p)+q)*cf},fF,c_,function(){-1>=L?P.css("top",-(q+(c-1)*bd)*cf):L>=c&&P.css("top",-q*cf),t()});break;case"leftMarquee":var g=P.css("left").replace("px","");0==fQ?P.animate({left:++g},0,function(){P.css("left").replace("px","")>=0&&P.css("left",-a*fT)}):P.animate({left:--g},0,function(){P.css("left").replace("px","")<=-(a+q)*fT&&P.css("left",-q*fT)});break;case"topMarquee":var A=P.css("top").replace("px","");0==fQ?P.animate({top:++A},0,function(){P.css("top").replace("px","")>=0&&P.css("top",-a*cf)}):P.animate({top:--A},0,function(){P.css("top").replace("px","")<=-(a+q)*cf&&P.css("top",-q*cf)})}D.removeClass(l).eq(fQ).addClass(l),n=fQ,eV||(La.removeClass("nextStop"),f.removeClass("prevStop"),0==fQ&&f.addClass("prevStop"),fQ==c-1&&La.addClass("nextStop")),U.html("<span>"+(fQ+1)+"</span>/"+c)}};fU&&E(!0),bh&&A.hover(function(){clearTimeout(k)},function(){k=setTimeout(function(){fQ=o,fU?E():"slideDown"==bM?gFa.slideUp(fF,u):gFa.animate({opacity:"hide"},fF,u),n=fQ},300)});var G=function(b){i=setInterval(function(){d?fQ--:fQ++,E()},b?b:gF)},H=function(b){i=setInterval(E,b?b:gF)},I=function(){cg||(clearInterval(i),G())},J=function(){(eV||fQ!=c-1)&&(fQ++,E(),r||I())},K=function(){(eV||0!=fQ)&&(fQ--,E(),r||I())},M=function(){clearInterval(i),r?H():G(),e.removeClass("pauseState")},N=function(){clearInterval(i),e.addClass("pauseState")};if(fb?r?(d?fQ--:fQ++,H(),cg&&P.hover(N,M)):(G(),cg&&A.hover(N,M)):(r&&(d?fQ--:fQ++),e.addClass("pauseState")),e.click(function(){e.hasClass("pauseState")?M():N()}),"mouseover"==g.trigger?D.hover(function(){var b=D.index(this);j=setTimeout(function(){fQ=b,E(),I()},g.triggerTime)},function(){clearTimeout(j)}):D.click(function(){fQ=D.index(this),E(),I()}),r){if(La.mousedown(J),f.mousedown(K),eV){var O,Q=function(){O=setTimeout(function(){clearInterval(i),H(0^gF/10)},150)},S=function(){clearTimeout(O),clearInterval(i),H()};La.mousedown(Q),La.mouseup(S),f.mousedown(Q),f.mouseup(S)}"mouseover"==g.trigger&&(La.hover(J,function(){}),f.hover(K,function(){}))}else La.click(J),f.click(K)})}}(jQuery),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(b,L,g,A,bM){return jQuery.easing[jQuery.easing.def](b,L,g,A,bM)},easeInQuad:function(b,L,g,A,bM){return A*(L/=bM)*L+g},easeOutQuad:function(b,L,g,A,bM){return-A*(L/=bM)*(L-2)+g},easeInOutQuad:function(b,L,g,A,bM){return(L/=bM/2)<1?A/2*L*L+g:-A/2*(--L*(L-2)-1)+g},easeInCubic:function(b,L,g,A,bM){return A*(L/=bM)*L*L+g},easeOutCubic:function(b,L,g,A,bM){return A*((L=L/bM-1)*L*L+1)+g},easeInOutCubic:function(b,L,g,A,bM){return(L/=bM/2)<1?A/2*L*L*L+g:A/2*((L-=2)*L*L+2)+g},easeInQuart:function(b,L,g,A,bM){return A*(L/=bM)*L*L*L+g},easeOutQuart:function(b,L,g,A,bM){return-A*((L=L/bM-1)*L*L*L-1)+g},easeInOutQuart:function(b,L,g,A,bM){return(L/=bM/2)<1?A/2*L*L*L*L+g:-A/2*((L-=2)*L*L*L-2)+g},easeInQuint:function(b,L,g,A,bM){return A*(L/=bM)*L*L*L*L+g},easeOutQuint:function(b,L,g,A,bM){return A*((L=L/bM-1)*L*L*L*L+1)+g},easeInOutQuint:function(b,L,g,A,bM){return(L/=bM/2)<1?A/2*L*L*L*L*L+g:A/2*((L-=2)*L*L*L*L+2)+g},easeInSine:function(b,L,g,A,bM){return-A*Math.cos(L/bM*(Math.PI/2))+A+g},easeOutSine:function(b,L,g,A,bM){return A*Math.sin(L/bM*(Math.PI/2))+g},easeInOutSine:function(b,L,g,A,bM){return-A/2*(Math.cos(Math.PI*L/bM)-1)+g},easeInExpo:function(b,L,g,A,bM){return 0==L?g:A*Math.pow(2,10*(L/bM-1))+g},easeOutExpo:function(b,L,g,A,bM){return L==bM?g+A:A*(-Math.pow(2,-10*L/bM)+1)+g},easeInOutExpo:function(b,L,g,A,bM){return 0==L?g:L==bM?g+A:(L/=bM/2)<1?A/2*Math.pow(2,10*(L-1))+g:A/2*(-Math.pow(2,-10*--L)+2)+g},easeInCirc:function(b,L,g,A,bM){return-A*(Math.sqrt(1-(L/=bM)*L)-1)+g},easeOutCirc:function(b,L,g,A,bM){return A*Math.sqrt(1-(L=L/bM-1)*L)+g},easeInOutCirc:function(b,L,g,A,bM){return(L/=bM/2)<1?-A/2*(Math.sqrt(1-L*L)-1)+g:A/2*(Math.sqrt(1-(L-=2)*L)+1)+g},easeInElastic:function(b,L,g,A,bM){var f=1.70158,La=0,U=A;if(0==L)return g;if(1==(L/=bM))return g+A;if(La||(La=.3*bM),U<Math.abs(A)){U=A;var f=La/4}else var f=La/(2*Math.PI)*Math.asin(A/U);return-(U*Math.pow(2,10*(L-=1))*Math.sin((L*bM-f)*2*Math.PI/La))+g},easeOutElastic:function(b,L,g,A,bM){var f=1.70158,La=0,U=A;if(0==L)return g;if(1==(L/=bM))return g+A;if(La||(La=.3*bM),U<Math.abs(A)){U=A;var f=La/4}else var f=La/(2*Math.PI)*Math.asin(A/U);return U*Math.pow(2,-10*L)*Math.sin((L*bM-f)*2*Math.PI/La)+A+g},easeInOutElastic:function(b,L,g,A,bM){var f=1.70158,La=0,U=A;if(0==L)return g;if(2==(L/=bM/2))return g+A;if(La||(La=bM*.3*1.5),U<Math.abs(A)){U=A;var f=La/4}else var f=La/(2*Math.PI)*Math.asin(A/U);return 1>L?-.5*U*Math.pow(2,10*(L-=1))*Math.sin((L*bM-f)*2*Math.PI/La)+g:.5*U*Math.pow(2,-10*(L-=1))*Math.sin((L*bM-f)*2*Math.PI/La)+A+g},easeInBack:function(b,L,g,A,bM,f){return void 0==f&&(f=1.70158),A*(L/=bM)*L*((f+1)*L-f)+g},easeOutBack:function(b,L,g,A,bM,f){return void 0==f&&(f=1.70158),A*((L=L/bM-1)*L*((f+1)*L+f)+1)+g},easeInOutBack:function(b,L,g,A,bM,f){return void 0==f&&(f=1.70158),(L/=bM/2)<1?A/2*L*L*(((f*=1.525)+1)*L-f)+g:A/2*((L-=2)*L*(((f*=1.525)+1)*L+f)+2)+g},easeInBounce:function(b,L,g,A,bM){return A-jQuery.easing.easeOutBounce(b,bM-L,0,A,bM)+g},easeOutBounce:function(b,L,g,A,bM){return(L/=bM)<1/2.75?A*7.5625*L*L+g:2/2.75>L?A*(7.5625*(L-=1.5/2.75)*L+.75)+g:2.5/2.75>L?A*(7.5625*(L-=2.25/2.75)*L+.9375)+g:A*(7.5625*(L-=2.625/2.75)*L+.984375)+g},easeInOutBounce:function(b,L,g,A,bM){return bM/2>L?.5*jQuery.easing.easeInBounce(b,2*L,0,A,bM)+g:.5*jQuery.easing.easeOutBounce(b,2*L-bM,0,A,bM)+.5*A+g}});(function(){jQuery(".hdp_focusbox").hover(function(){jQuery(this).find(".prev,.next").stop(true,true).fadeTo("show",1)},function(){jQuery(this).find(".prev,.next").fadeOut()});jQuery(".hdp_focusbox").slide({titCell:".hd ul",mainCell:".bd ul",effect:"left",easing:"easeOutQuart",interTime:5e3,delayTime:500,autoPlay:true,autoPage:true,trigger:"click"})})();