!function(Z){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}};Z.fn.bxSlider=function(e){if(0===this.length)return this;if(1<this.length)return this.each(function(){Z(this).bxSlider(e)}),this;var c={},g=this,n=Z(window).width(),s=Z(window).height();if(!Z(g).data("bxSlider")){function o(){Z(g).data("bxSlider")||(c.settings=Z.extend({},B,e),c.settings.slideWidth=parseInt(c.settings.slideWidth),c.children=g.children(c.settings.slideSelector),c.children.length<c.settings.minSlides&&(c.settings.minSlides=c.children.length),c.children.length<c.settings.maxSlides&&(c.settings.maxSlides=c.children.length),c.settings.randomStart&&(c.settings.startSlide=Math.floor(Math.random()*c.children.length)),c.active={index:c.settings.startSlide},c.carousel=1<c.settings.minSlides||1<c.settings.maxSlides,c.carousel&&(c.settings.preloadImages="all"),c.minThreshold=c.settings.minSlides*c.settings.slideWidth+(c.settings.minSlides-1)*c.settings.slideMargin,c.maxThreshold=c.settings.maxSlides*c.settings.slideWidth+(c.settings.maxSlides-1)*c.settings.slideMargin,c.working=!1,c.controls={},c.interval=null,c.animProp="vertical"===c.settings.mode?"top":"left",c.usingCSS=c.settings.useCSS&&"fade"!==c.settings.mode&&function(){for(var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=0;i<e.length;i++)if(void 0!==t.style[e[i]])return c.cssPrefix=e[i].replace("Perspective","").toLowerCase(),c.animProp="-"+c.cssPrefix+"-transform",!0;return!1}(),"vertical"===c.settings.mode&&(c.settings.maxSlides=c.settings.minSlides),g.data("origStyle",g.attr("style")),g.children(c.settings.slideSelector).each(function(){Z(this).data("origStyle",Z(this).attr("style"))}),a())}function r(){var t=1,e=null;return"horizontal"===c.settings.mode&&0<c.settings.slideWidth?t=c.viewport.width()<c.minThreshold?c.settings.minSlides:c.viewport.width()>c.maxThreshold?c.settings.maxSlides:(e=c.children.first().width()+c.settings.slideMargin,Math.floor((c.viewport.width()+c.settings.slideMargin)/e)):"vertical"===c.settings.mode&&(t=c.settings.minSlides),t}function t(){for(var t="",e="",i=f(),n=0;n<i;n++)e="",c.settings.buildPager&&Z.isFunction(c.settings.buildPager)||c.settings.pagerCustom?(e=c.settings.buildPager(n),c.pagerEl.addClass("bx-custom-pager")):(e=n+1,c.pagerEl.addClass("bx-default-pager")),t+='<div class="bx-pager-item"><a href="" data-slide-index="'+n+'" class="bx-pager-link">'+e+"</a></div>";c.pagerEl.html(t)}function p(t){var e=r();c.settings.ariaHidden&&!c.settings.ticker&&(c.children.attr("aria-hidden","true"),c.children.slice(t,t+e).attr("aria-hidden","false"))}var a=function(){var t=c.children.eq(c.settings.startSlide);g.wrap('<div class="'+c.settings.wrapperClass+'"><div class="bx-viewport"></div></div>'),c.viewport=g.parent(),c.settings.ariaLive&&!c.settings.ticker&&c.viewport.attr("aria-live","polite"),c.loader=Z('<div class="bx-loading" />'),c.viewport.prepend(c.loader),g.css({width:"horizontal"===c.settings.mode?1e3*c.children.length+215+"%":"auto",position:"relative"}),c.usingCSS&&c.settings.easing?g.css("-"+c.cssPrefix+"-transition-timing-function",c.settings.easing):c.settings.easing||(c.settings.easing="swing"),c.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),c.viewport.parent().css({maxWidth:u()}),c.children.css({float:"horizontal"===c.settings.mode?"left":"none",listStyle:"none",position:"relative"}),c.children.css("width",v()),"horizontal"===c.settings.mode&&0<c.settings.slideMargin&&c.children.css("marginRight",c.settings.slideMargin),"vertical"===c.settings.mode&&0<c.settings.slideMargin&&c.children.css("marginBottom",c.settings.slideMargin),"fade"===c.settings.mode&&(c.children.css({position:"absolute",zIndex:0,display:"none"}),c.children.eq(c.settings.startSlide).css({zIndex:c.settings.slideZIndex,display:"block"})),c.controls.el=Z('<div class="bx-controls" />'),c.settings.captions&&T(),c.active.last=c.settings.startSlide===f()-1,c.settings.video&&g.fitVids(),"all"!==c.settings.preloadImages&&!c.settings.ticker||(t=c.children),c.settings.ticker?c.settings.pager=!1:(c.settings.controls&&w(),c.settings.auto&&c.settings.autoControls&&C(),c.settings.pager&&b(),(c.settings.controls||c.settings.autoControls||c.settings.pager)&&c.viewport.after(c.controls.el)),l(t,d)},l=function(t,e){var i=t.find('img:not([src=""]), iframe').length,n=0;0!==i?t.find('img:not([src=""]), iframe').each(function(){Z(this).one("load error",function(){++n===i&&e()}).each(function(){this.complete&&Z(this).trigger("load")})}):e()},d=function(){if(c.settings.infiniteLoop&&"fade"!==c.settings.mode&&!c.settings.ticker){var t="vertical"===c.settings.mode?c.settings.minSlides:c.settings.maxSlides,e=c.children.slice(0,t).clone(!0).addClass("bx-clone"),i=c.children.slice(-t).clone(!0).addClass("bx-clone");c.settings.ariaHidden&&(e.attr("aria-hidden",!0),i.attr("aria-hidden",!0)),g.append(e).prepend(i)}c.loader.remove(),m(),"vertical"===c.settings.mode&&(c.settings.adaptiveHeight=!0),c.viewport.height(h()),g.redrawSlider(),c.settings.onSliderLoad.call(g,c.active.index),c.initialized=!0,c.settings.responsive&&Z(window).bind("resize",R),c.settings.auto&&c.settings.autoStart&&(1<f()||c.settings.autoSlideForOnePage)&&D(),c.settings.ticker&&H(),c.settings.pager&&z(c.settings.startSlide),c.settings.controls&&A(),c.settings.touchEnabled&&!c.settings.ticker&&O(),c.settings.keyboardEnabled&&!c.settings.ticker&&Z(document).keydown(L)},h=function(){var e=0,t=Z();if("vertical"===c.settings.mode||c.settings.adaptiveHeight)if(c.carousel){var n=1===c.settings.moveSlides?c.active.index:c.active.index*x();for(t=c.children.eq(n),i=1;i<=c.settings.maxSlides-1;i++)t=n+i>=c.children.length?t.add(c.children.eq(i-1)):t.add(c.children.eq(n+i))}else t=c.children.eq(c.active.index);else t=c.children;return"vertical"===c.settings.mode?(t.each(function(t){e+=Z(this).outerHeight()}),0<c.settings.slideMargin&&(e+=c.settings.slideMargin*(c.settings.minSlides-1))):e=Math.max.apply(Math,t.map(function(){return Z(this).outerHeight(!1)}).get()),"border-box"===c.viewport.css("box-sizing")?e+=parseFloat(c.viewport.css("padding-top"))+parseFloat(c.viewport.css("padding-bottom"))+parseFloat(c.viewport.css("border-top-width"))+parseFloat(c.viewport.css("border-bottom-width")):"padding-box"===c.viewport.css("box-sizing")&&(e+=parseFloat(c.viewport.css("padding-top"))+parseFloat(c.viewport.css("padding-bottom"))),e},u=function(){var t="100%";return 0<c.settings.slideWidth&&(t="horizontal"===c.settings.mode?c.settings.maxSlides*c.settings.slideWidth+(c.settings.maxSlides-1)*c.settings.slideMargin:c.settings.slideWidth),t},v=function(){var t=c.settings.slideWidth,e=c.viewport.width();if(0===c.settings.slideWidth||c.settings.slideWidth>e&&!c.carousel||"vertical"===c.settings.mode)t=e;else if(1<c.settings.maxSlides&&"horizontal"===c.settings.mode){if(e>c.maxThreshold)return t;e<c.minThreshold?t=(e-c.settings.slideMargin*(c.settings.minSlides-1))/c.settings.minSlides:c.settings.shrinkItems&&(t=Math.floor((e+c.settings.slideMargin)/Math.ceil((e+c.settings.slideMargin)/(t+c.settings.slideMargin))-c.settings.slideMargin))}return t},f=function(){var t=0,e=0,i=0;if(0<c.settings.moveSlides)if(c.settings.infiniteLoop)t=Math.ceil(c.children.length/x());else for(;e<c.children.length;)++t,e=i+r(),i+=c.settings.moveSlides<=r()?c.settings.moveSlides:r();else t=Math.ceil(c.children.length/r());return t},x=function(){return 0<c.settings.moveSlides&&c.settings.moveSlides<=r()?c.settings.moveSlides:r()},m=function(){var t,e,i;c.children.length>c.settings.maxSlides&&c.active.last&&!c.settings.infiniteLoop?"horizontal"===c.settings.mode?(t=(e=c.children.last()).position(),S(-(t.left-(c.viewport.width()-e.outerWidth())),"reset",0)):"vertical"===c.settings.mode&&(i=c.children.length-c.settings.minSlides,t=c.children.eq(i).position(),S(-t.top,"reset",0)):(t=c.children.eq(c.active.index*x()).position(),c.active.index===f()-1&&(c.active.last=!0),void 0!==t&&("horizontal"===c.settings.mode?S(-t.left,"reset",0):"vertical"===c.settings.mode&&S(-t.top,"reset",0)))},S=function(t,e,i,n){var s,o;c.usingCSS?(o="vertical"===c.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)",g.css("-"+c.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"===e?(g.css(c.animProp,o),0!==i?g.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){Z(t.target).is(g)&&(g.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),I())}):I()):"reset"===e?g.css(c.animProp,o):"ticker"===e&&(g.css("-"+c.cssPrefix+"-transition-timing-function","linear"),g.css(c.animProp,o),0!==i?g.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){Z(t.target).is(g)&&(g.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),S(n.resetValue,"reset",0),W())}):(S(n.resetValue,"reset",0),W()))):((s={})[c.animProp]=t,"slide"===e?g.animate(s,i,c.settings.easing,function(){I()}):"reset"===e?g.css(c.animProp,t):"ticker"===e&&g.animate(s,i,"linear",function(){S(n.resetValue,"reset",0),W()}))},b=function(){c.settings.pagerCustom?c.pagerEl=Z(c.settings.pagerCustom):(c.pagerEl=Z('<div class="bx-pager" />'),c.settings.pagerSelector?Z(c.settings.pagerSelector).html(c.pagerEl):c.controls.el.addClass("bx-has-pager").append(c.pagerEl),t()),c.pagerEl.on("click touchend","a",y)},w=function(){c.controls.next=Z('<a class="bx-next" href="">'+c.settings.nextText+"</a>"),c.controls.prev=Z('<a class="bx-prev" href="">'+c.settings.prevText+"</a>"),c.controls.next.bind("click touchend",E),c.controls.prev.bind("click touchend",P),c.settings.nextSelector&&Z(c.settings.nextSelector).append(c.controls.next),c.settings.prevSelector&&Z(c.settings.prevSelector).append(c.controls.prev),c.settings.nextSelector||c.settings.prevSelector||(c.controls.directionEl=Z('<div class="bx-controls-direction" />'),c.controls.directionEl.append(c.controls.prev).append(c.controls.next),c.controls.el.addClass("bx-has-controls-direction").append(c.controls.directionEl))},C=function(){c.controls.start=Z('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+c.settings.startText+"</a></div>"),c.controls.stop=Z('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+c.settings.stopText+"</a></div>"),c.controls.autoEl=Z('<div class="bx-controls-auto" />'),c.controls.autoEl.on("click",".bx-start",k),c.controls.autoEl.on("click",".bx-stop",M),c.settings.autoControlsCombine?c.controls.autoEl.append(c.controls.start):c.controls.autoEl.append(c.controls.start).append(c.controls.stop),c.settings.autoControlsSelector?Z(c.settings.autoControlsSelector).html(c.controls.autoEl):c.controls.el.addClass("bx-has-controls-auto").append(c.controls.autoEl),q(c.settings.autoStart?"stop":"start")},T=function(){c.children.each(function(t){var e=Z(this).find("img:first").attr("title");void 0!==e&&(""+e).length&&Z(this).append('<div class="bx-caption"><span>'+e+"</span></div>")})},E=function(t){t.preventDefault(),c.controls.el.hasClass("disabled")||(c.settings.auto&&c.settings.stopAutoOnClick&&g.stopAuto(),g.goToNextSlide())},P=function(t){t.preventDefault(),c.controls.el.hasClass("disabled")||(c.settings.auto&&c.settings.stopAutoOnClick&&g.stopAuto(),g.goToPrevSlide())},k=function(t){g.startAuto(),t.preventDefault()},M=function(t){g.stopAuto(),t.preventDefault()},y=function(t){var e,i;t.preventDefault(),c.controls.el.hasClass("disabled")||(c.settings.auto&&c.settings.stopAutoOnClick&&g.stopAuto(),void 0!==(e=Z(t.currentTarget)).attr("data-slide-index")&&(i=parseInt(e.attr("data-slide-index")))!==c.active.index&&g.goToSlide(i))},z=function(i){var t=c.children.length;if("short"===c.settings.pagerType)return 1<c.settings.maxSlides&&(t=Math.ceil(c.children.length/c.settings.maxSlides)),void c.pagerEl.html(i+1+c.settings.pagerShortSeparator+t);c.pagerEl.find("a").removeClass("active"),c.pagerEl.each(function(t,e){Z(e).find("a").eq(i).addClass("active")})},I=function(){if(c.settings.infiniteLoop){var t="";0===c.active.index?t=c.children.eq(0).position():c.active.index===f()-1&&c.carousel?t=c.children.eq((f()-1)*x()).position():c.active.index===c.children.length-1&&(t=c.children.eq(c.children.length-1).position()),t&&("horizontal"===c.settings.mode?S(-t.left,"reset",0):"vertical"===c.settings.mode&&S(-t.top,"reset",0))}c.working=!1,c.settings.onSlideAfter.call(g,c.children.eq(c.active.index),c.oldIndex,c.active.index)},q=function(t){c.settings.autoControlsCombine?c.controls.autoEl.html(c.controls[t]):(c.controls.autoEl.find("a").removeClass("active"),c.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},A=function(){1===f()?(c.controls.prev.addClass("disabled"),c.controls.next.addClass("disabled")):!c.settings.infiniteLoop&&c.settings.hideControlOnEnd&&(0===c.active.index?(c.controls.prev.addClass("disabled"),c.controls.next.removeClass("disabled")):c.active.index===f()-1?(c.controls.next.addClass("disabled"),c.controls.prev.removeClass("disabled")):(c.controls.prev.removeClass("disabled"),c.controls.next.removeClass("disabled")))},D=function(){if(0<c.settings.autoDelay)setTimeout(g.startAuto,c.settings.autoDelay);else g.startAuto(),Z(window).focus(function(){g.startAuto()}).blur(function(){g.stopAuto()});c.settings.autoHover&&g.hover(function(){c.interval&&(g.stopAuto(!0),c.autoPaused=!0)},function(){c.autoPaused&&(g.startAuto(!0),c.autoPaused=null)})},H=function(){var t,e,i,n,s,o,r,a,l=0;"next"===c.settings.autoDirection?g.append(c.children.clone().addClass("bx-clone")):(g.prepend(c.children.clone().addClass("bx-clone")),t=c.children.first().position(),l="horizontal"===c.settings.mode?-t.left:-t.top),S(l,"reset",0),c.settings.pager=!1,c.settings.controls=!1,c.settings.autoControls=!1,c.settings.tickerHover&&(c.usingCSS?(n="horizontal"===c.settings.mode?4:5,c.viewport.hover(function(){e=g.css("-"+c.cssPrefix+"-transform"),i=parseFloat(e.split(",")[n]),S(i,"reset",0)},function(){a=0,c.children.each(function(t){a+="horizontal"===c.settings.mode?Z(this).outerWidth(!0):Z(this).outerHeight(!0)}),s=c.settings.speed/a,o="horizontal"===c.settings.mode?"left":"top",r=s*(a-Math.abs(parseInt(i))),W(r)})):c.viewport.hover(function(){g.stop()},function(){a=0,c.children.each(function(t){a+="horizontal"===c.settings.mode?Z(this).outerWidth(!0):Z(this).outerHeight(!0)}),s=c.settings.speed/a,o="horizontal"===c.settings.mode?"left":"top",r=s*(a-Math.abs(parseInt(g.css(o)))),W(r)})),W()},W=function(t){var e,i,n=t||c.settings.speed,s={left:0,top:0},o={left:0,top:0};"next"===c.settings.autoDirection?s=g.find(".bx-clone").first().position():o=c.children.first().position(),e="horizontal"===c.settings.mode?-s.left:-s.top,i="horizontal"===c.settings.mode?-o.left:-o.top,S(e,"ticker",n,{resetValue:i})},L=function(t){var e=document.activeElement.tagName.toLowerCase();if(null==new RegExp(e,["i"]).exec("input|textarea")&&function(t){var e=Z(window),i={top:e.scrollTop(),left:e.scrollLeft()},n=t.offset();return i.right=i.left+e.width(),i.bottom=i.top+e.height(),n.right=n.left+t.outerWidth(),n.bottom=n.top+t.outerHeight(),!(i.right<n.left||i.left>n.right||i.bottom<n.top||i.top>n.bottom)}(g)){if(39===t.keyCode)return E(t),!1;if(37===t.keyCode)return P(t),!1}},O=function(){c.touch={start:{x:0,y:0},end:{x:0,y:0},event:""},c.viewport.bind("touchstart MSPointerDown pointerdown",F),c.viewport.on("click",".bxslider a",function(t){c.viewport.hasClass("click-disabled")&&(t.preventDefault(),c.viewport.removeClass("click-disabled"))})},F=function(t){if(c.controls.el.addClass("disabled"),c.working)t.preventDefault(),c.controls.el.removeClass("disabled");else{c.touch.originalPos=g.position();var e=t.originalEvent,i=void 0!==e.changedTouches?e.changedTouches:[e];c.touch.start.x=i[0].pageX,c.touch.start.y=i[0].pageY,c.touch.event=t,c.viewport.get(0).setPointerCapture&&(c.pointerId=e.pointerId,c.viewport.get(0).setPointerCapture(c.pointerId)),c.viewport.bind("touchmove MSPointerMove pointermove",X),c.viewport.bind("touchend MSPointerUp pointerup",Y),c.viewport.bind("MSPointerCancel pointercancel",N)}},N=function(t){S(c.touch.originalPos.left,"reset",0),c.controls.el.removeClass("disabled"),c.viewport.unbind("MSPointerCancel pointercancel",N),c.viewport.unbind("touchmove MSPointerMove pointermove",X),c.viewport.unbind("touchend MSPointerUp pointerup",Y),c.viewport.get(0).releasePointerCapture&&c.viewport.get(0).releasePointerCapture(c.pointerId)},X=function(t){var e=t.originalEvent,i=void 0!==e.changedTouches?e.changedTouches:[e],n=Math.abs(i[0].pageX-c.touch.start.x),s=Math.abs(i[0].pageY-c.touch.start.y),o=0,r=0;s<3*n&&c.settings.preventDefaultSwipeX?t.preventDefault():n<3*s&&c.settings.preventDefaultSwipeY&&t.preventDefault(),"fade"!==c.settings.mode&&c.settings.oneToOneTouch&&(o="horizontal"===c.settings.mode?(r=i[0].pageX-c.touch.start.x,c.touch.originalPos.left+r):(r=i[0].pageY-c.touch.start.y,c.touch.originalPos.top+r),S(o,"reset",0))},Y=function(t){c.viewport.unbind("touchmove MSPointerMove pointermove",X),c.controls.el.removeClass("disabled");var e=t.originalEvent,i=void 0!==e.changedTouches?e.changedTouches:[e],n=0,s=0;c.touch.end.x=i[0].pageX,c.touch.end.y=i[0].pageY,"fade"===c.settings.mode?(s=Math.abs(c.touch.start.x-c.touch.end.x))>=c.settings.swipeThreshold&&(c.touch.start.x>c.touch.end.x?g.goToNextSlide():g.goToPrevSlide(),g.stopAuto()):(n="horizontal"===c.settings.mode?(s=c.touch.end.x-c.touch.start.x,c.touch.originalPos.left):(s=c.touch.end.y-c.touch.start.y,c.touch.originalPos.top),!c.settings.infiniteLoop&&(0===c.active.index&&0<s||c.active.last&&s<0)?S(n,"reset",200):Math.abs(s)>=c.settings.swipeThreshold?(s<0?g.goToNextSlide():g.goToPrevSlide(),g.stopAuto()):S(n,"reset",200)),c.viewport.unbind("touchend MSPointerUp pointerup",Y),c.viewport.get(0).releasePointerCapture&&c.viewport.get(0).releasePointerCapture(c.pointerId),V(t)},V=function(t){if(/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)&&"object"==typeof c.touch.event.originalEvent){var e=c.touch.event.originalEvent,i=Math.abs(c.touch.start.x-c.touch.end.x),n=Math.abs(c.touch.start.y-c.touch.end.y);if(!(5<i||5<n))e.path[0].click()}},R=function(t){if(c.initialized)if(c.working)window.setTimeout(R,10);else{var e=Z(window).width(),i=Z(window).height();n===e&&s===i||(n=e,s=i,g.redrawSlider(),c.settings.onSliderResize.call(g,c.active.index))}};return g.goToSlide=function(t,e){var i,n,s,o,r=!0,a=0,l={left:0,top:0},d=null;if(c.oldIndex=c.active.index,c.active.index=function(t){return t<0?c.settings.infiniteLoop?f()-1:c.active.index:t>=f()?c.settings.infiniteLoop?0:c.active.index:t}(t),!c.working&&c.active.index!==c.oldIndex){if(c.working=!0,void 0!==(r=c.settings.onSlideBefore.call(g,c.children.eq(c.active.index),c.oldIndex,c.active.index))&&!r)return c.active.index=c.oldIndex,void(c.working=!1);"next"===e?c.settings.onSlideNext.call(g,c.children.eq(c.active.index),c.oldIndex,c.active.index)||(r=!1):"prev"===e&&(c.settings.onSlidePrev.call(g,c.children.eq(c.active.index),c.oldIndex,c.active.index)||(r=!1)),c.active.last=c.active.index>=f()-1,(c.settings.pager||c.settings.pagerCustom)&&z(c.active.index),c.settings.controls&&A(),"fade"===c.settings.mode?(c.settings.adaptiveHeight&&c.viewport.height()!==h()&&c.viewport.animate({height:h()},c.settings.adaptiveHeightSpeed),c.children.filter(":visible").fadeOut(c.settings.speed).css({zIndex:0}),c.children.eq(c.active.index).css("zIndex",c.settings.slideZIndex+1).fadeIn(c.settings.speed,function(){Z(this).css("zIndex",c.settings.slideZIndex),I()})):(c.settings.adaptiveHeight&&c.viewport.height()!==h()&&c.viewport.animate({height:h()},c.settings.adaptiveHeightSpeed),!c.settings.infiniteLoop&&c.carousel&&c.active.last?"horizontal"===c.settings.mode?(l=(d=c.children.eq(c.children.length-1)).position(),a=c.viewport.width()-d.outerWidth()):(i=c.children.length-c.settings.minSlides,l=c.children.eq(i).position()):c.carousel&&c.active.last&&"prev"===e?(n=1===c.settings.moveSlides?c.settings.maxSlides-x():(f()-1)*x()-(c.children.length-c.settings.maxSlides),l=(d=g.children(".bx-clone").eq(n)).position()):"next"===e&&0===c.active.index?(l=g.find("> .bx-clone").eq(c.settings.maxSlides).position(),c.active.last=!1):0<=t&&(o=t*parseInt(x()),l=c.children.eq(o).position()),void 0!==l?(s="horizontal"===c.settings.mode?-(l.left-a):-l.top,S(s,"slide",c.settings.speed)):c.working=!1),c.settings.ariaHidden&&p(c.active.index*x())}},g.goToNextSlide=function(){if(c.settings.infiniteLoop||!c.active.last){var t=parseInt(c.active.index)+1;g.goToSlide(t,"next")}},g.goToPrevSlide=function(){if(c.settings.infiniteLoop||0!==c.active.index){var t=parseInt(c.active.index)-1;g.goToSlide(t,"prev")}},g.startAuto=function(t){c.interval||(c.interval=setInterval(function(){"next"===c.settings.autoDirection?g.goToNextSlide():g.goToPrevSlide()},c.settings.pause),c.settings.autoControls&&!0!==t&&q("stop"))},g.stopAuto=function(t){c.interval&&(clearInterval(c.interval),c.interval=null,c.settings.autoControls&&!0!==t&&q("start"))},g.getCurrentSlide=function(){return c.active.index},g.getCurrentSlideElement=function(){return c.children.eq(c.active.index)},g.getSlideElement=function(t){return c.children.eq(t)},g.getSlideCount=function(){return c.children.length},g.isWorking=function(){return c.working},g.redrawSlider=function(){c.children.add(g.find(".bx-clone")).outerWidth(v()),c.viewport.css("height",h()),c.settings.ticker||m(),c.active.last&&(c.active.index=f()-1),c.active.index>=f()&&(c.active.last=!0),c.settings.pager&&!c.settings.pagerCustom&&(t(),z(c.active.index)),c.settings.ariaHidden&&p(c.active.index*x())},g.destroySlider=function(){c.initialized&&(c.initialized=!1,Z(".bx-clone",this).remove(),c.children.each(function(){void 0!==Z(this).data("origStyle")?Z(this).attr("style",Z(this).data("origStyle")):Z(this).removeAttr("style")}),void 0!==Z(this).data("origStyle")?this.attr("style",Z(this).data("origStyle")):Z(this).removeAttr("style"),Z(this).unwrap().unwrap(),c.controls.el&&c.controls.el.remove(),c.controls.next&&c.controls.next.remove(),c.controls.prev&&c.controls.prev.remove(),c.pagerEl&&c.settings.controls&&!c.settings.pagerCustom&&c.pagerEl.remove(),Z(".bx-caption",this).remove(),c.controls.autoEl&&c.controls.autoEl.remove(),clearInterval(c.interval),c.settings.responsive&&Z(window).unbind("resize",R),c.settings.keyboardEnabled&&Z(document).unbind("keydown",L),Z(this).removeData("bxSlider"))},g.reloadSlider=function(t){void 0!==t&&(e=t),g.destroySlider(),o(),Z(g).data("bxSlider",this)},o(),Z(g).data("bxSlider",this),this}}}(jQuery);