!function(a){var b={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,ariaLive:!0,ariaHidden:!0,keyboardEnabled:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",stopAutoOnClick:!1,autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,shrinkItems:!1,onSliderLoad:function(){return!0},onSlideBefore:function(){return!0},onSlideAfter:function(){return!0},onSlideNext:function(){return!0},onSlidePrev:function(){return!0},onSliderResize:function(){return!0}};a.fn.bxSlider=function(c){if(0===this.length)return this;if(this.length>1)return this.each(function(){a(this).bxSlider(c)}),this;var d={},e=this,f=a(window).width(),g=a(window).height();if(!a(e).data("bxSlider")){var h=function(){a(e).data("bxSlider")||(d.settings=a.extend({},b,c),d.settings.slideWidth=parseInt(d.settings.slideWidth),d.children=e.children(d.settings.slideSelector),d.children.length1||d.settings.maxSlides>1,d.carousel&&(d.settings.preloadImages="all"),d.minThreshold=d.settings.minSlides*d.settings.slideWidth+(d.settings.minSlides-1)*d.settings.slideMargin,d.maxThreshold=d.settings.maxSlides*d.settings.slideWidth+(d.settings.maxSlides-1)*d.settings.slideMargin,d.working=!1,d.controls={},d.interval=null,d.animProp="vertical"===d.settings.mode?"top":"left",d.usingCSS=d.settings.useCSS&&"fade"!==d.settings.mode&&function(){for(var a=document.createElement("div"),b=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],c=0;c
'),d.viewport=e.parent(),d.settings.ariaLive&&!d.settings.ticker&&d.viewport.attr("aria-live","polite"),d.loader=a('
'),d.viewport.prepend(d.loader),e.css({width:"horizontal"===d.settings.mode?100*d.children.length+215+"%":"auto",position:"relative"}),d.usingCSS&&d.settings.easing?e.css("-"+d.cssPrefix+"-transition-timing-function",d.settings.easing):d.settings.easing||(d.settings.easing="swing"),d.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),d.viewport.parent().css({maxWidth:n()}),d.settings.pager||d.settings.controls||d.viewport.parent().css({margin:"0 auto 0px"}),d.children.css({float:"horizontal"===d.settings.mode?"left":"none",listStyle:"none",position:"relative"}),d.children.css("width",o()),"horizontal"===d.settings.mode&&d.settings.slideMargin>0&&d.children.css("marginRight",d.settings.slideMargin),"vertical"===d.settings.mode&&d.settings.slideMargin>0&&d.children.css("marginBottom",d.settings.slideMargin),"fade"===d.settings.mode&&(d.children.css({position:"absolute",zIndex:0,display:"none"}),d.children.eq(d.settings.startSlide).css({zIndex:d.settings.slideZIndex,display:"block"})),d.controls.el=a('
'),d.settings.captions&&y(),d.active.last=d.settings.startSlide===q()-1,d.settings.video&&e.fitVids(),("all"===d.settings.preloadImages||d.settings.ticker)&&(b=d.children),d.settings.ticker?d.settings.pager=!1:(d.settings.controls&&w(),d.settings.auto&&d.settings.autoControls&&x(),d.settings.pager&&v(),(d.settings.controls||d.settings.autoControls||d.settings.pager)&&d.viewport.after(d.controls.el)),k(b,l)},k=function(b,c){var d=b.find('img:not([src=""]), iframe').length,e=0;return 0===d?void c():void b.find('img:not([src=""]), iframe').each(function(){a(this).one("load error",function(){++e===d&&c()}).each(function(){this.complete&&a(this).load()})})},l=function(){if(d.settings.infiniteLoop&&"fade"!==d.settings.mode&&!d.settings.ticker){var b="vertical"===d.settings.mode?d.settings.minSlides:d.settings.maxSlides,c=d.children.slice(0,b).clone(!0).addClass("bx-clone"),f=d.children.slice(-b).clone(!0).addClass("bx-clone");d.settings.ariaHidden&&(c.attr("aria-hidden",!0),f.attr("aria-hidden",!0)),e.append(c).prepend(f)}d.loader.remove(),s(),"vertical"===d.settings.mode&&(d.settings.adaptiveHeight=!0),d.viewport.height(m()),e.redrawSlider(),d.settings.onSliderLoad.call(e,d.active.index),d.initialized=!0,d.settings.responsive&&a(window).bind("resize",S),d.settings.auto&&d.settings.autoStart&&(q()>1||d.settings.autoSlideForOnePage)&&I(),d.settings.ticker&&J(),d.settings.pager&&E(d.settings.startSlide),d.settings.controls&&H(),d.settings.touchEnabled&&!d.settings.ticker&&N(),d.settings.keyboardEnabled&&!d.settings.ticker&&a(document).keydown(M)},m=function(){var b=0,c=a();if("vertical"===d.settings.mode||d.settings.adaptiveHeight)if(d.carousel){var e=1===d.settings.moveSlides?d.active.index:d.active.index*r();for(c=d.children.eq(e),i=1;i<=d.settings.maxSlides-1;i++)c=e+i>=d.children.length?c.add(d.children.eq(i-1)):c.add(d.children.eq(e+i))}else c=d.children.eq(d.active.index);else c=d.children;return"vertical"===d.settings.mode?(c.each(function(c){b+=a(this).outerHeight()}),d.settings.slideMargin>0&&(b+=d.settings.slideMargin*(d.settings.minSlides-1))):b=Math.max.apply(Math,c.map(function(){return a(this).outerHeight(!1)}).get()),"border-box"===d.viewport.css("box-sizing")?b+=parseFloat(d.viewport.css("padding-top"))+parseFloat(d.viewport.css("padding-bottom"))+parseFloat(d.viewport.css("border-top-width"))+parseFloat(d.viewport.css("border-bottom-width")):"padding-box"===d.viewport.css("box-sizing")&&(b+=parseFloat(d.viewport.css("padding-top"))+parseFloat(d.viewport.css("padding-bottom"))),b},n=function(){var a="100%";return d.settings.slideWidth>0&&(a="horizontal"===d.settings.mode?d.settings.maxSlides*d.settings.slideWidth+(d.settings.maxSlides-1)*d.settings.slideMargin:d.settings.slideWidth),a},o=function(){var a=d.settings.slideWidth,b=d.viewport.width();if(0===d.settings.slideWidth||d.settings.slideWidth>b&&!d.carousel||"vertical"===d.settings.mode)a=b;else if(d.settings.maxSlides>1&&"horizontal"===d.settings.mode){if(b>d.maxThreshold)return a;b0?d.viewport.width()d.maxThreshold?a=d.settings.maxSlides:(b=d.children.first().width()+d.settings.slideMargin,a=Math.floor((d.viewport.width()+d.settings.slideMargin)/b)):"vertical"===d.settings.mode&&(a=d.settings.minSlides),a},q=function(){var a=0,b=0,c=0;if(d.settings.moveSlides>0)if(d.settings.infiniteLoop)a=Math.ceil(d.children.length/r());else for(;b0&&d.settings.moveSlides<=p()?d.settings.moveSlides:p()},s=function(){var a,b,c;d.children.length>d.settings.maxSlides&&d.active.last&&!d.settings.infiniteLoop?"horizontal"===d.settings.mode?(b=d.children.last(),a=b.position(),t(-(a.left-(d.viewport.width()-b.outerWidth())),"reset",0)):"vertical"===d.settings.mode&&(c=d.children.length-d.settings.minSlides,a=d.children.eq(c).position(),t(-a.top,"reset",0)):(a=d.children.eq(d.active.index*r()).position(),d.active.index===q()-1&&(d.active.last=!0),void 0!==a&&("horizontal"===d.settings.mode?t(-a.left,"reset",0):"vertical"===d.settings.mode&&t(-a.top,"reset",0)))},t=function(b,c,f,g){var h,i;d.usingCSS?(i="vertical"===d.settings.mode?"translate3d(0, "+b+"px, 0)":"translate3d("+b+"px, 0, 0)",e.css("-"+d.cssPrefix+"-transition-duration",f/1e3+"s"),"slide"===c?(e.css(d.animProp,i),0!==f?e.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(b){a(b.target).is(e)&&(e.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),F())}):F()):"reset"===c?e.css(d.animProp,i):"ticker"===c&&(e.css("-"+d.cssPrefix+"-transition-timing-function","linear"),e.css(d.animProp,i),0!==f?e.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(b){a(b.target).is(e)&&(e.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),t(g.resetValue,"reset",0),K())}):(t(g.resetValue,"reset",0),K()))):(h={},h[d.animProp]=b,"slide"===c?e.animate(h,f,d.settings.easing,function(){F()}):"reset"===c?e.css(d.animProp,b):"ticker"===c&&e.animate(h,f,"linear",function(){t(g.resetValue,"reset",0),K()}))},u=function(){for(var b="",c="",e=q(),f=0;f'+c+"
";d.pagerEl.html(b)},v=function(){d.settings.pagerCustom?d.pagerEl=a(d.settings.pagerCustom):(d.pagerEl=a('
'),d.settings.pagerSelector?a(d.settings.pagerSelector).html(d.pagerEl):d.controls.el.addClass("bx-has-pager").append(d.pagerEl),u()),d.pagerEl.on("click touchend","a",D)},w=function(){d.controls.next=a(''+d.settings.nextText+""),d.controls.prev=a(''+d.settings.prevText+""),d.controls.next.bind("click touchend",z),d.controls.prev.bind("click touchend",A),d.settings.nextSelector&&a(d.settings.nextSelector).append(d.controls.next),d.settings.prevSelector&&a(d.settings.prevSelector).append(d.controls.prev),d.settings.nextSelector||d.settings.prevSelector||(d.controls.directionEl=a('
'),d.controls.directionEl.append(d.controls.prev).append(d.controls.next),d.controls.el.addClass("bx-has-controls-direction").append(d.controls.directionEl))},x=function(){d.controls.start=a('"),d.controls.stop=a('"),d.controls.autoEl=a('
'),d.controls.autoEl.on("click",".bx-start",B),d.controls.autoEl.on("click",".bx-stop",C),d.settings.autoControlsCombine?d.controls.autoEl.append(d.controls.start):d.controls.autoEl.append(d.controls.start).append(d.controls.stop),d.settings.autoControlsSelector?a(d.settings.autoControlsSelector).html(d.controls.autoEl):d.controls.el.addClass("bx-has-controls-auto").append(d.controls.autoEl),G(d.settings.autoStart?"stop":"start")},y=function(){d.children.each(function(b){var c=a(this).find("img:first").attr("title");void 0!==c&&(""+c).length&&a(this).append('
'+c+"
")})},z=function(a){a.preventDefault(),d.controls.el.hasClass("disabled")||(d.settings.auto&&d.settings.stopAutoOnClick&&e.stopAuto(),e.goToNextSlide())},A=function(a){a.preventDefault(),d.controls.el.hasClass("disabled")||(d.settings.auto&&d.settings.stopAutoOnClick&&e.stopAuto(),e.goToPrevSlide())},B=function(a){e.startAuto(),a.preventDefault()},C=function(a){e.stopAuto(),a.preventDefault()},D=function(b){var c,f;b.preventDefault(),d.controls.el.hasClass("disabled")||(d.settings.auto&&d.settings.stopAutoOnClick&&e.stopAuto(),c=a(b.currentTarget),void 0!==c.attr("data-slide-index")&&(f=parseInt(c.attr("data-slide-index")),f!==d.active.index&&e.goToSlide(f)))},E=function(b){var c=d.children.length;return"short"===d.settings.pagerType?(d.settings.maxSlides>1&&(c=Math.ceil(d.children.length/d.settings.maxSlides)),void d.pagerEl.html(b+1+d.settings.pagerShortSeparator+c)):(d.pagerEl.find("a").removeClass("active"),void d.pagerEl.each(function(c,d){a(d).find("a").eq(b).addClass("active")}))},F=function(){if(d.settings.infiniteLoop){var a="";0===d.active.index?a=d.children.eq(0).position():d.active.index===q()-1&&d.carousel?a=d.children.eq((q()-1)*r()).position():d.active.index===d.children.length-1&&(a=d.children.eq(d.children.length-1).position()),a&&("horizontal"===d.settings.mode?t(-a.left,"reset",0):"vertical"===d.settings.mode&&t(-a.top,"reset",0))}d.working=!1,d.settings.onSlideAfter.call(e,d.children.eq(d.active.index),d.oldIndex,d.active.index)},G=function(a){d.settings.autoControlsCombine?d.controls.autoEl.html(d.controls[a]):(d.controls.autoEl.find("a").removeClass("active"),d.controls.autoEl.find("a:not(.bx-"+a+")").addClass("active"))},H=function(){1===q()?(d.controls.prev.addClass("disabled"),d.controls.next.addClass("disabled")):!d.settings.infiniteLoop&&d.settings.hideControlOnEnd&&(0===d.active.index?(d.controls.prev.addClass("disabled"),d.controls.next.removeClass("disabled")):d.active.index===q()-1?(d.controls.next.addClass("disabled"),d.controls.prev.removeClass("disabled")):(d.controls.prev.removeClass("disabled"),d.controls.next.removeClass("disabled")))},I=function(){if(d.settings.autoDelay>0){setTimeout(e.startAuto,d.settings.autoDelay)}else e.startAuto(),a(window).focus(function(){e.startAuto()}).blur(function(){e.stopAuto()});d.settings.autoHover&&e.hover(function(){d.interval&&(e.stopAuto(!0),d.autoPaused=!0)},function(){d.autoPaused&&(e.startAuto(!0),d.autoPaused=null)})},J=function(){var b,c,f,g,h,i,j,k,l=0;"next"===d.settings.autoDirection?e.append(d.children.clone().addClass("bx-clone")):(e.prepend(d.children.clone().addClass("bx-clone")),b=d.children.first().position(),l="horizontal"===d.settings.mode?-b.left:-b.top),t(l,"reset",0),d.settings.pager=!1,d.settings.controls=!1,d.settings.autoControls=!1,d.settings.tickerHover&&(d.usingCSS?(g="horizontal"===d.settings.mode?4:5,d.viewport.hover(function(){c=e.css("-"+d.cssPrefix+"-transform"),f=parseFloat(c.split(",")[g]),t(f,"reset",0)},function(){k=0,d.children.each(function(b){k+="horizontal"===d.settings.mode?a(this).outerWidth(!0):a(this).outerHeight(!0)}),h=d.settings.speed/k,i="horizontal"===d.settings.mode?"left":"top",j=h*(k-Math.abs(parseInt(f))),K(j)})):d.viewport.hover(function(){e.stop()},function(){k=0,d.children.each(function(b){k+="horizontal"===d.settings.mode?a(this).outerWidth(!0):a(this).outerHeight(!0)}),h=d.settings.speed/k,i="horizontal"===d.settings.mode?"left":"top",j=h*(k-Math.abs(parseInt(e.css(i)))),K(j)})),K()},K=function(a){var b,c,f,g=a?a:d.settings.speed,h={left:0,top:0},i={left:0,top:0};"next"===d.settings.autoDirection?h=e.find(".bx-clone").first().position():i=d.children.first().position(),b="horizontal"===d.settings.mode?-h.left:-h.top,c="horizontal"===d.settings.mode?-i.left:-i.top,f={resetValue:c},t(b,"ticker",g,f)},L=function(b){var c=a(window),d={top:c.scrollTop(),left:c.scrollLeft()},e=b.offset();return d.right=d.left+c.width(),d.bottom=d.top+c.height(),e.right=e.left+b.outerWidth(),e.bottom=e.top+b.outerHeight(),!(d.righte.right||d.bottome.bottom)},M=function(a){var b=document.activeElement.tagName.toLowerCase(),c="input|textarea",d=new RegExp(b,["i"]),f=d.exec(c);if(null==f&&L(e)){if(39===a.keyCode)return z(a),!1;if(37===a.keyCode)return A(a),!1}},N=function(){d.touch={start:{x:0,y:0},end:{x:0,y:0}},d.viewport.bind("touchstart MSPointerDown pointerdown",O),d.viewport.on("click",".bxslider a",function(a){d.viewport.hasClass("click-disabled")&&(a.preventDefault(),d.viewport.removeClass("click-disabled"))})},O=function(a){if(d.controls.el.addClass("disabled"),d.working)a.preventDefault(),d.controls.el.removeClass("disabled");else{d.touch.originalPos=e.position();var b=a.originalEvent,c="undefined"!=typeof b.changedTouches?b.changedTouches:[b];d.touch.start.x=c[0].pageX,d.touch.start.y=c[0].pageY,d.viewport.get(0).setPointerCapture&&(d.pointerId=b.pointerId,d.viewport.get(0).setPointerCapture(d.pointerId)),d.viewport.bind("touchmove MSPointerMove pointermove",Q),d.viewport.bind("touchend MSPointerUp pointerup",R),d.viewport.bind("MSPointerCancel pointercancel",P)}},P=function(a){t(d.touch.originalPos.left,"reset",0),d.controls.el.removeClass("disabled"),d.viewport.unbind("MSPointerCancel pointercancel",P),d.viewport.unbind("touchmove MSPointerMove pointermove",Q),d.viewport.unbind("touchend MSPointerUp pointerup",R),d.viewport.get(0).releasePointerCapture&&d.viewport.get(0).releasePointerCapture(d.pointerId)},Q=function(a){var b=a.originalEvent,c="undefined"!=typeof b.changedTouches?b.changedTouches:[b],e=Math.abs(c[0].pageX-d.touch.start.x),f=Math.abs(c[0].pageY-d.touch.start.y),g=0,h=0;3*e>f&&d.settings.preventDefaultSwipeX?a.preventDefault():3*f>e&&d.settings.preventDefaultSwipeY&&a.preventDefault(),"fade"!==d.settings.mode&&d.settings.oneToOneTouch&&("horizontal"===d.settings.mode?(h=c[0].pageX-d.touch.start.x,g=d.touch.originalPos.left+h):(h=c[0].pageY-d.touch.start.y,g=d.touch.originalPos.top+h),t(g,"reset",0))},R=function(a){d.viewport.unbind("touchmove MSPointerMove pointermove",Q),d.controls.el.removeClass("disabled");var b=a.originalEvent,c="undefined"!=typeof b.changedTouches?b.changedTouches:[b],f=0,g=0;d.touch.end.x=c[0].pageX,d.touch.end.y=c[0].pageY,"fade"===d.settings.mode?(g=Math.abs(d.touch.start.x-d.touch.end.x),g>=d.settings.swipeThreshold&&(d.touch.start.x>d.touch.end.x?e.goToNextSlide():e.goToPrevSlide(),e.stopAuto())):("horizontal"===d.settings.mode?(g=d.touch.end.x-d.touch.start.x,f=d.touch.originalPos.left):(g=d.touch.end.y-d.touch.start.y,f=d.touch.originalPos.top),!d.settings.infiniteLoop&&(0===d.active.index&&g>0||d.active.last&&g<0)?t(f,"reset",200):Math.abs(g)>=d.settings.swipeThreshold?(g<0?e.goToNextSlide():e.goToPrevSlide(),e.stopAuto()):t(f,"reset",200)),d.viewport.unbind("touchend MSPointerUp pointerup",R),d.viewport.get(0).releasePointerCapture&&d.viewport.get(0).releasePointerCapture(d.pointerId)},S=function(b){if(d.initialized)if(d.working)window.setTimeout(S,10);else{var c=a(window).width(),h=a(window).height();f===c&&g===h||(f=c,g=h,e.redrawSlider(),d.settings.onSliderResize.call(e,d.active.index))}},T=function(a){var b=p();d.settings.ariaHidden&&!d.settings.ticker&&(d.children.attr("aria-hidden","true"),d.children.slice(a,a+b).attr("aria-hidden","false"))},U=function(a){return a<0?d.settings.infiniteLoop?q()-1:d.active.index:a>=q()?d.settings.infiniteLoop?0:d.active.index:a};return e.goToSlide=function(b,c){var f,g,h,i,j=!0,k=0,l={left:0,top:0},n=null;if(d.oldIndex=d.active.index,d.active.index=U(b),!d.working&&d.active.index!==d.oldIndex){if(d.working=!0,j=d.settings.onSlideBefore.call(e,d.children.eq(d.active.index),d.oldIndex,d.active.index),"undefined"!=typeof j&&!j)return d.active.index=d.oldIndex,void(d.working=!1);"next"===c?d.settings.onSlideNext.call(e,d.children.eq(d.active.index),d.oldIndex,d.active.index)||(j=!1):"prev"===c&&(d.settings.onSlidePrev.call(e,d.children.eq(d.active.index),d.oldIndex,d.active.index)||(j=!1)),d.active.last=d.active.index>=q()-1,(d.settings.pager||d.settings.pagerCustom)&&E(d.active.index),d.settings.controls&&H(),"fade"===d.settings.mode?(d.settings.adaptiveHeight&&d.viewport.height()!==m()&&d.viewport.animate({height:m()},d.settings.adaptiveHeightSpeed),d.children.filter(":visible").fadeOut(d.settings.speed).css({zIndex:0}),d.children.eq(d.active.index).css("zIndex",d.settings.slideZIndex+1).fadeIn(d.settings.speed,function(){a(this).css("zIndex",d.settings.slideZIndex),F()})):(d.settings.adaptiveHeight&&d.viewport.height()!==m()&&d.viewport.animate({height:m()},d.settings.adaptiveHeightSpeed),!d.settings.infiniteLoop&&d.carousel&&d.active.last?"horizontal"===d.settings.mode?(n=d.children.eq(d.children.length-1),l=n.position(),k=d.viewport.width()-n.outerWidth()):(f=d.children.length-d.settings.minSlides,l=d.children.eq(f).position()):d.carousel&&d.active.last&&"prev"===c?(g=1===d.settings.moveSlides?d.settings.maxSlides-r():(q()-1)*r()-(d.children.length-d.settings.maxSlides),n=e.children(".bx-clone").eq(g),l=n.position()):"next"===c&&0===d.active.index?(l=e.find("> .bx-clone").eq(d.settings.maxSlides).position(),d.active.last=!1):b>=0&&(i=b*parseInt(r()),l=d.children.eq(i).position()),"undefined"!=typeof l?(h="horizontal"===d.settings.mode?-(l.left-k):-l.top,t(h,"slide",d.settings.speed)):d.working=!1),d.settings.ariaHidden&&T(d.active.index*r())}},e.goToNextSlide=function(){if(d.settings.infiniteLoop||!d.active.last){var a=parseInt(d.active.index)+1;e.goToSlide(a,"next")}},e.goToPrevSlide=function(){if(d.settings.infiniteLoop||0!==d.active.index){var a=parseInt(d.active.index)-1;e.goToSlide(a,"prev")}},e.startAuto=function(a){d.forceStop||d.interval||(d.interval=setInterval(function(){"next"===d.settings.autoDirection?e.goToNextSlide():e.goToPrevSlide()},d.settings.pause),d.settings.autoControls&&a!==!0&&G("stop"))},e.forceStartAuto=function(){d.forceStop=!1,e.startAuto()},e.stopAuto=function(a){d.interval&&(clearInterval(d.interval),d.interval=null,d.settings.autoControls&&a!==!0&&G("start"))},e.forceStopAuto=function(){d.forceStop=!0,e.stopAuto()},e.getCurrentSlide=function(){return d.active.index},e.getCurrentSlideElement=function(){return d.children.eq(d.active.index)},e.getSlideElement=function(a){return d.children.eq(a)},e.getSlideCount=function(){return d.children.length},e.isWorking=function(){return d.working},e.redrawSlider=function(){d.children.add(e.find(".bx-clone")).outerWidth(o()),d.viewport.css("height",m()),d.settings.ticker||s(),d.active.last&&(d.active.index=q()-1),d.active.index>=q()&&(d.active.last=!0),d.settings.pager&&!d.settings.pagerCustom&&(u(),E(d.active.index)),d.settings.ariaHidden&&T(d.active.index*r())},e.destroySlider=function(){d.initialized&&(d.initialized=!1,a(".bx-clone",this).remove(),d.children.each(function(){void 0!==a(this).data("origStyle")?a(this).attr("style",a(this).data("origStyle")):a(this).removeAttr("style")}),void 0!==a(this).data("origStyle")?this.attr("style",a(this).data("origStyle")):a(this).removeAttr("style"),a(this).unwrap().unwrap(),d.controls.el&&d.controls.el.remove(),d.controls.next&&d.controls.next.remove(),d.controls.prev&&d.controls.prev.remove(),d.pagerEl&&d.settings.controls&&!d.settings.pagerCustom&&d.pagerEl.remove(),a(".bx-caption",this).remove(),d.controls.autoEl&&d.controls.autoEl.remove(),clearInterval(d.interval),d.settings.responsive&&a(window).unbind("resize",S),d.settings.keyboardEnabled&&a(document).unbind("keydown",M),a(this).removeData("bxSlider"))},e.reloadSlider=function(b){void 0!==b&&(c=b),e.destroySlider(),h(),a(e).data("bxSlider",this)},h(),a(e).data("bxSlider",this),this}}}(jQuery);!function(){"use strict";$(function(){function a(){var a=$("#ww-groupNum").val();return/^[1-9][0-9]*$/.test(a)}function b(){if(0!=$("#ww-username").val().trim().length){var a,b,c=$("[name='type']")[0].checked?1:2,d=encodeURIComponent($("#ww-username").val().trim()),e=$("#pic-text")[0].value,f="http://amos.alicdn.com",g=f+"/online.aw?v=2";if($("#divide")[0].checked){var h=f+"/getcid.aw?v=2";b=h+"&uid="+d+"&site=cntaobao&s="+c+"&groupid=0&charset=utf-8"}else{var h="https://awp.taobao.com/bs/wwlight.html?ver=3";b=h+"&touid="+d+"&siteid=cntaobao&status="+c+"&charset=utf-8"}var i=g+"&uid="+d+"&site=cntaobao&s="+c+"&charset=utf-8";a=''+e+'',$("#firstCode").val(a),$(".wbtx-preview-1").show(),$(".wbtx-preview-1 > a")[0].href=b,$(".wbtx-preview-1 > a >img")[0].src=i,$(".wbtx-preview-1 > a >img")[0].alt=e,$(".wbtx-preview-1 > a >img")[0].title=e,console.log(a)}}function c(){if($("#ww-groupNum").val().length<=0)return $("#second-label").html("必须输入"),void($("#second-label")[0].style.display="inline-block");if(!a())return $("#second-label").html("必须是数字"),$("#second-label")[0].style.display="inline-block",void $("#secondCode").val("");$("#second-label")[0].style.display="none";var b,c,d=$("#ww-groupNum").val(),e=$("#qun-text").val(),f="",g="https://alimarket.taobao.com/markets/qnww/wbtx?uid=&tribeid="+d;$('[name="groupType"]').each(function(a){this.checked&&(b=a+1)}),1==b?c="http://img04.taobaocdn.com/tps/i4/T1fdykXgtiXXXXXXXX-63-20.gif":2==b?c="http://img02.taobaocdn.com/tps/i2/T1m206XhdDXXXXXXXX-25-20.gif":3==b?c="http://img01.taobaocdn.com/tps/i1/T1o2J6XoFFXXXXXXXX-84-33.gif":4==b&&(c="http://img03.taobaocdn.com/tps/i3/T1QLB6XgVDXXXXXXXX-42-33.gif"),f=''+e+'',$("#secondCode").val(f),$(".wbtx-preview-2").show(),$(".wbtx-preview-2 > a")[0].href=g,$(".wbtx-preview-2 > a >img")[0].src=c,$(".wbtx-preview-2 > a >img")[0].alt=e,$(".wbtx-preview-2 > a >img")[0].title=e}function d(){if($("#ww-mobile-username").val().trim().length<=0)return $("#thirdLabel")[0].style.display="inline-block",void $("#thirdCode").val("");$("#thirdLabel")[0].style.display="none";var a,b=$("#ww-mobile-username").val(),c=$("#saleId").val(),d=$("#shopId").val(),e=$("#billId").val(),f=$("#divideId").val();a="https://h5.m.taobao.com/ww/index.htm#!dialog-"+Base64.encode(b)+"-"+c+"-"+d+"-"+e+"-"+f,$("#thirdCode").val(a)}var e=new Image;e.src="//img.alicdn.com/tps/TB1u43MKFXXXXchapXXXXXXXXXX-1680-801.jpg";var f=new Image;f.src="//img.alicdn.com/tps/TB1eGxfKVXXXXbSXXXXXXXXXXXX-1680-801.jpg";var g;try{g=new Clipboard(".clipboard")}catch(k){$(".clipboard").hide()}g&&g.on("success",function(a){console.info("Action:",a.action),console.info("Trigger:",a.trigger),$(a.trigger).addClass("success"),$(a.trigger).removeClass("copyBtn");a.trigger.clientHeight;a.trigger.innerHTML="复制成功",setTimeout(function(){a.trigger.innerHTML="复制代码",$(a.trigger).removeClass("success"),$(a.trigger).addClass("copyBtn")},500),a.clearSelection()}),g&&g.on("error",function(a){console.error("Action:",a.action),console.error("Trigger:",a.trigger),a.trigger.classList.add("success");a.trigger.clientHeight;a.trigger.innerHTML="复制成功",setTimeout(function(){a.trigger.innerHTML="复制代码",a.trigger.classList.remove("success")},4e3),a.clearSelection()});var h,i=navigator.userAgent.toLowerCase(),j=0;(h=i.match(/msie ([\d\.]+)/))&&Number(h[1])<=8&&(j=1e3),setTimeout(function(){try{$("#J_slider").bxSlider({auto:!0,controls:!1,autoHover:!0,speed:1e3,pause:4e3})}catch(a){}},j),$("[data-click]").click(function(){switch($(this).data("click")){case"ww-home":wwGoldlog.record("wwgw.1.7");break;case"ww-func":wwGoldlog.record("wwgw.1.8");break;case"ww-download":wwGoldlog.record("wwgw.1.9");break;case"ww-hj":wwGoldlog.record("wwgw.1.10");break;case"pc-tab":wwGoldlog.record("wwgw.1.22");break;case"mobile-tab":wwGoldlog.record("wwgw.1.23")}}),$(".j_version").mouseenter(function(){$(".slider .bg").eq(1).css("background-image","url("+e.src+")")}),$(".j_version").mouseleave(function(){$(".slider .bg")[1].style.backgroundImage="url("+f.src+")"}),$(".j_version").click(function(){wwGoldlog.record("wwxb.16.1")}),$("a[data-download]").click(function(){switch($(this).data("download")){case"banner-windows":wwGoldlog.record("wwgw.1.14");break;case"banner-win8":wwGoldlog.record("wwgw.1.15");break;case"banner-mac":wwGoldlog.record("wwgw.1.16");break;case"banner-android":wwGoldlog.record("wwgw.1.17");break;case"banner-iphone":wwGoldlog.record("wwgw.1.18");break;case"floating-windows":wwGoldlog.record("wwgw.1.19");break;case"floating-win8":wwGoldlog.record("wwgw.1.20");break;case"floating-mac":wwGoldlog.record("wwgw.1.21");break;case"download-windows":wwGoldlog.record("wwgw.1.24");break;case"download-win8":wwGoldlog.record("wwgw.1.25");break;case"download-mac":wwGoldlog.record("wwgw.1.26");break;case"download-iphone":wwGoldlog.record("wwgw.1.27");break;case"download-android":wwGoldlog.record("wwgw.1.28");break;case"download-wp":wwGoldlog.record("wwgw.1.29");break;case"download-ipad":wwGoldlog.record("wwgw.1.30");break;case"download-android-simplified":wwGoldlog.record("wwgw.1.31")}}),String.prototype.trim=String.prototype.trim||function(){return this.replace(/^\s*|\s*$/g,"")},$("[name='type']").click(function(){b()}),$("#pic-text").keyup(function(){b()}),$("[name='isDivide']").click(function(){b()}),$("#ww-username").keyup(function(){this.value.length>0?($("#first-label")[0].style.display="none",b()):($("#first-label")[0].style.display="inline-block",$("#firstCode").val(""))}),$("[name='groupType']").click(function(){c()}),$("#qun-text").keyup(function(){c()}),$("#ww-groupNum").keyup(function(){this.value.length>0?c():($("#second-label")[0].style.display="inline-block",$("#secondCode").val(""))}),$("#ww-mobile-username").keyup(function(){d()}),$('[name="ww-mobile-option"]').keyup(function(){d()})})}();!function(a){var b={_resize:function(){var b=a(window).width();return b>1e3?a(".floating-download").addClass("horizontal-visible"):a(".floating-download").removeClass("horizontal-visible"),this},_scrollTo:function(b){a("html,body").animate({scrollTop:b},400)},_iePatch:function(){var b,c,d=navigator.userAgent.toLowerCase(),e=a("body > div");return(b=d.match(/msie ([\d\.]+)/))&&(c=Number(b[1]),c<=9&&(e.addClass("ielte9"),9===c?e.addClass("ie9"):8===c?e.addClass("ie8"):7===c&&e.addClass("ie7"))),this},_scroll:function(){var b=a(window).scrollTop();b>=41?a("#J_navbar").addClass("fixed"):a("#J_navbar").removeClass("fixed");try{b>=a("#J_content").offset().top-50?(a(".floating-download").addClass("vertical-visible"),a("#J_scrollToTop").removeClass("hide")):(a(".floating-download").removeClass("vertical-visible"),a("#J_scrollToTop").addClass("hide"))}catch(c){}return this},_underlineTo:function(b){var c=a(".links");return a(".nav-underline").css({width:b.width(),left:b.offset().left-c.offset().left+25}),this},initUnderline:function(){return this._underlineTo(a(".nav.active")),this},events:function(){var b=a(".nav").not(".divider"),c=this;return b.hover(function(){c._underlineTo(a(this))},function(){c._underlineTo(a(".nav.active"))}),b.click(function(){b.removeClass("active"),a(this).addClass("active")}),a("#J_top").click(function(){c._scrollTo(0)}),a("#J_functionIntro, .function-intro").click(function(){a("#J_tabs").length?c._scrollTo(a("#J_tabs").offset().top-50+"px"):c._scrollTo(a("#J_content").offset().top-50+"px")}),a("#J_tabs").click(function(){a("#J_tabs").length?c._scrollTo(a("#J_tabs").offset().top-50+"px"):c._scrollTo(a("#J_content").offset().top-50+"px")}),a(window).scroll(function(){c._scroll()}),a(".tab-wrapper").click(function(){a(this).hasClass("active")||(a(".tabs .tab-wrapper").toggleClass("active"),a(".contents section").toggleClass("hide"),a(".floating-download").toggleClass("tab-visible"))}),a("#J_scrollToTop").click(function(){c._scrollTo(0)}),a(".floating-download").length&&a(window).resize(function(){c._resize()}),a("a[download]").click(function(){var b=a(this).data("terminal"),c=0;switch(b){case"qn-android":case"qn-iphone":c=1;break;case"qn-windows":c=2;break;case"ww-windows":c=3;break;case"ww-win8":c=4;break;case"ww-mac":c=5;break;case"ww-iphone":c=6;break;case"ww-android":c=7;break;case"qt-windows":c=8;break;case"qn-mac":c=9;break;default:c=0}0!==c&&wwGoldlog.record("qn.124."+c)}),a("a[data-click]").click(function(){switch(a(this).data("click")){case"ww-home-link":wwGoldlog.record("wwgw.1.11");break;case"qn-home-link":wwGoldlog.record("wwgw.1.12");break;case"yw-home-link":wwGoldlog.record("wwgw.1.13")}}),this},init:function(){a("#J_tabs").length&&"#J_tabs"===location.hash&&(a("#J_top").parent().removeClass("active"),a("#J_functionIntro").parent().addClass("active"),this._scrollTo(a("#J_tabs").offset().top-50+"px")),a(".slider li").show(),a(".wangwang-page").length?a("#J_mobile").addClass("hide"):a(".qianniu-page").length&&(a(".contents section").addClass("hide"),a("#J_mobile").removeClass("hide")),this._scroll().initUnderline().events()._resize()._iePatch()}};a(function(){b.init()})}(jQuery);!function(a){"use strict";var b=function(){var b,c,d={},e=-1;return a.extend(d,{initLandmark:function(){return c=a("section").not(".hide").find(".figure"),b=[0],c.each(function(d){var e,f=a(window).width();e=f>1200?window.location.href.indexOf("qintao")!==-1||window.location.href.indexOf("qt")!==-1?a(this).offset().top-400:a(this).offset().top-1e3:a(this).offset().top-600,e=e<0?0:e,b.push(e),d===c.length-1&&b.push(a(this).offset().top+a(this).outerHeight())}),this},updateLandmark:function(){return a(window).on("resize",this.initLandmark),this},getCurSec:function(a){var c,d=-1;for(c=0;c=b[c]&&a=b.length)return void(e>=0&&e