/** * bxslider v4.2.1d * copyright 2013-2017 steven wanderski * written while drinking belgian ales and listening to jazz * licensed under mit (http://opensource.org/licenses/mit) */ !function(t){var e={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},onautochange:function(){return!0}};t.fn.bxslider=function(n){if(0===this.length)return this;if(this.length>1)return this.each(function(){t(this).bxslider(n)}),this;var s={},o=this,r=t(window).width(),a=t(window).height();if(!t(o).data("bxslider")){var l=function(){t(o).data("bxslider")||(s.settings=t.extend({},e,n),s.settings.slidewidth=parseint(s.settings.slidewidth),s.children=o.children(s.settings.slideselector),s.children.length1||s.settings.maxslides>1,s.carousel&&(s.settings.preloadimages="all"),s.minthreshold=s.settings.minslides*s.settings.slidewidth+(s.settings.minslides-1)*s.settings.slidemargin,s.maxthreshold=s.settings.maxslides*s.settings.slidewidth+(s.settings.maxslides-1)*s.settings.slidemargin,s.working=!1,s.controls={},s.interval=null,s.animprop="vertical"===s.settings.mode?"top":"left",s.usingcss=s.settings.usecss&&"fade"!==s.settings.mode&&function(){for(var t=document.createelement("div"),e=["webkitperspective","mozperspective","operspective","msperspective"],i=0;i
'),s.viewport=o.parent(),s.settings.arialive&&!s.settings.ticker&&s.viewport.attr("aria-live","polite"),s.loader=t('
'),s.viewport.prepend(s.loader),o.css({width:"horizontal"===s.settings.mode?1e3*s.children.length+215+"%":"auto",position:"relative"}),s.usingcss&&s.settings.easing?o.css("-"+s.cssprefix+"-transition-timing-function",s.settings.easing):s.settings.easing||(s.settings.easing="swing"),s.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),s.viewport.parent().css({maxwidth:u()}),s.children.css({float:"horizontal"===s.settings.mode?"left":"none",liststyle:"none",position:"relative"}),s.children.css("width",h()),"horizontal"===s.settings.mode&&s.settings.slidemargin>0&&s.children.css("marginright",s.settings.slidemargin),"vertical"===s.settings.mode&&s.settings.slidemargin>0&&s.children.css("marginbottom",s.settings.slidemargin),"fade"===s.settings.mode&&(s.children.css({position:"absolute",zindex:0,display:"none"}),s.children.eq(s.settings.startslide).css({zindex:s.settings.slidezindex,display:"block"})),s.controls.el=t('
'),s.settings.captions&&k(),s.active.last=s.settings.startslide===f()-1,s.settings.video&&o.fitvids(),"none"===s.settings.preloadimages?e=null:("all"===s.settings.preloadimages||s.settings.ticker)&&(e=s.children),s.settings.ticker?s.settings.pager=!1:(s.settings.controls&&c(),s.settings.auto&&s.settings.autocontrols&&t(),s.settings.pager&&b(),(s.settings.controls||s.settings.autocontrols||s.settings.pager)&&s.viewport.after(s.controls.el)),null===e?g():c(e,g)},c=function(e,i){var n=e.find('img:not([src=""]), iframe').length,s=0;if(0===n)return void i();e.find('img:not([src=""]), iframe').each(function(){t(this).one("load error",function(){++s===n&&i()}).each(function(){(this.complete||""==this.src)&&t(this).trigger("load")})})},g=function(){if(s.settings.infiniteloop&&"fade"!==s.settings.mode&&!s.settings.ticker){var e="vertical"===s.settings.mode?s.settings.minslides:s.settings.maxslides,i=s.children.slice(0,e).clone(!0).addclass("bx-clone"),n=s.children.slice(-e).clone(!0).addclass("bx-clone");s.settings.ariahidden&&(i.attr("aria-hidden",!0),n.attr("aria-hidden",!0)),o.append(i).prepend(n)}s.loader.remove(),m(),"vertical"===s.settings.mode&&(s.settings.adaptiveheight=!0),s.viewport.height(p()),o.redrawslider(),s.settings.onsliderload.call(o,s.active.index),s.initialized=!0,s.settings.responsive&&t(window).on("resize",u),s.settings.auto&&s.settings.autostart&&(f()>1||s.settings.autoslideforonepage)&&l(),s.settings.ticker&&o(),s.settings.pager&&z(s.settings.startslide),s.settings.controls&&q(),s.settings.touchenabled&&!s.settings.ticker&&x(),s.settings.keyboardenabled&&!s.settings.ticker&&t(document).keydown(b)},p=function(){var e=0,n=t();if("vertical"===s.settings.mode||s.settings.adaptiveheight)if(s.carousel){var o=1===s.settings.moveslides?s.active.index:s.active.index*x();for(n=s.children.eq(o),i=1;i<=s.settings.maxslides-1;i++)n=o+i>=s.children.length?n.add(s.children.eq(i-1)):n.add(s.children.eq(o+i))}else n=s.children.eq(s.active.index);else n=s.children;return"vertical"===s.settings.mode?(n.each(function(i){e+=t(this).outerheight()}),s.settings.slidemargin>0&&(e+=s.settings.slidemargin*(s.settings.minslides-1))):e=math.max.apply(math,n.map(function(){return t(this).outerheight(!1)}).get()),"border-box"===s.viewport.css("box-sizing")?e+=parsefloat(s.viewport.css("padding-top"))+parsefloat(s.viewport.css("padding-bottom"))+parsefloat(s.viewport.css("border-top-width"))+parsefloat(s.viewport.css("border-bottom-width")):"padding-box"===s.viewport.css("box-sizing")&&(e+=parsefloat(s.viewport.css("padding-top"))+parsefloat(s.viewport.css("padding-bottom"))),e},u=function(){var t="100%";return s.settings.slidewidth>0&&(t="horizontal"===s.settings.mode?s.settings.maxslides*s.settings.slidewidth+(s.settings.maxslides-1)*s.settings.slidemargin:s.settings.slidewidth),t},h=function(){var t=s.settings.slidewidth,e=s.viewport.width();if(0===s.settings.slidewidth||s.settings.slidewidth>e&&!s.carousel||"vertical"===s.settings.mode)t=e;else if(s.settings.maxslides>1&&"horizontal"===s.settings.mode){if(e>s.maxthreshold)return t;e0?s.viewport.width()s.maxthreshold?t=s.settings.maxslides:(e=s.children.first().width()+s.settings.slidemargin,t=math.floor((s.viewport.width()+s.settings.slidemargin)/e)||1):"vertical"===s.settings.mode&&(t=s.settings.minslides),t},f=function(){var t=0,e=0,i=0;if(s.settings.moveslides>0){if(!s.settings.infiniteloop){for(;e0&&s.settings.moveslides<=v()?s.settings.moveslides:v()},m=function(){var t,e,i;s.children.length>s.settings.maxslides&&s.active.last&&!s.settings.infiniteloop?"horizontal"===s.settings.mode?(e=s.children.last(),t=e.position(),s(-(t.left-(s.viewport.width()-e.outerwidth())),"reset",0)):"vertical"===s.settings.mode&&(i=s.children.length-s.settings.minslides,t=s.children.eq(i).position(),s(-t.top,"reset",0)):(t=s.children.eq(s.active.index*x()).position(),s.active.index===f()-1&&(s.active.last=!0),void 0!==t&&("horizontal"===s.settings.mode?s(-t.left,"reset",0):"vertical"===s.settings.mode&&s(-t.top,"reset",0)))},s=function(e,i,n,r){var a,l;s.usingcss?(l="vertical"===s.settings.mode?"translate3d(0, "+e+"px, 0)":"translate3d("+e+"px, 0, 0)",o.css("-"+s.cssprefix+"-transition-duration",n/1e3+"s"),"slide"===i?(o.css(s.animprop,l),0!==n?o.on("transitionend webkittransitionend otransitionend mstransitionend",function(e){t(e.target).is(o)&&(o.off("transitionend webkittransitionend otransitionend mstransitionend"),a())}):a()):"reset"===i?o.css(s.animprop,l):"ticker"===i&&(o.css("-"+s.cssprefix+"-transition-timing-function","linear"),o.css(s.animprop,l),0!==n?o.on("transitionend webkittransitionend otransitionend mstransitionend",function(e){t(e.target).is(o)&&(o.off("transitionend webkittransitionend otransitionend mstransitionend"),s(r.resetvalue,"reset",0),f())}):(s(r.resetvalue,"reset",0),f()))):(a={},a[s.animprop]=e,"slide"===i?o.animate(a,n,s.settings.easing,function(){a()}):"reset"===i?o.css(s.animprop,e):"ticker"===i&&o.animate(a,n,"linear",function(){s(r.resetvalue,"reset",0),f()}))},w=function(){for(var e="",i="",n=f(),o=0;o'+i+"
";s.pagerel.html(e)},b=function(){s.settings.pagercustom?s.pagerel=t(s.settings.pagercustom):(s.pagerel=t('
'),s.settings.pagerselector?t(s.settings.pagerselector).html(s.pagerel):s.controls.el.addclass("bx-has-pager").append(s.pagerel),w()),s.pagerel.on("click touchend","a",i)},c=function(){s.controls.next=t(''+s.settings.nexttext+""),s.controls.prev=t(''+s.settings.prevtext+""),s.controls.next.on("click touchend",p),s.controls.prev.on("click touchend",e),s.settings.nextselector&&t(s.settings.nextselector).append(s.controls.next),s.settings.prevselector&&t(s.settings.prevselector).append(s.controls.prev),s.settings.nextselector||s.settings.prevselector||(s.controls.directionel=t('
'),s.controls.directionel.append(s.controls.prev).append(s.controls.next),s.controls.el.addclass("bx-has-controls-direction").append(s.controls.directionel))},t=function(){s.controls.start=t('"),s.controls.stop=t('"),s.controls.autoel=t('
'),s.controls.autoel.on("click",".bx-start",m),s.controls.autoel.on("click",".bx-stop",y),s.settings.autocontrolscombine?s.controls.autoel.append(s.controls.start):s.controls.autoel.append(s.controls.start).append(s.controls.stop),s.settings.autocontrolsselector?t(s.settings.autocontrolsselector).html(s.controls.autoel):s.controls.el.addclass("bx-has-controls-auto").append(s.controls.autoel),d(s.settings.autostart?"stop":"start")},k=function(){s.children.each(function(e){var i=t(this).find("img:first").attr("title");void 0!==i&&(""+i).length&&t(this).append('
'+i+"
")})},p=function(t){t.preventdefault(),s.controls.el.hasclass("disabled")||(s.settings.auto&&s.settings.stopautoonclick&&o.stopauto(),o.gotonextslide())},e=function(t){t.preventdefault(),s.controls.el.hasclass("disabled")||(s.settings.auto&&s.settings.stopautoonclick&&o.stopauto(),o.gotoprevslide())},m=function(t){o.startauto(),t.preventdefault()},y=function(t){o.stopauto(),t.preventdefault()},i=function(e){var i,n;e.preventdefault(),s.controls.el.hasclass("disabled")||(s.settings.auto&&s.settings.stopautoonclick&&o.stopauto(),i=t(e.currenttarget),void 0!==i.attr("data-slide-index")&&(n=parseint(i.attr("data-slide-index")))!==s.active.index&&o.gotoslide(n))},z=function(e){var i=s.children.length;if("short"===s.settings.pagertype)return s.settings.maxslides>1&&(i=math.ceil(s.children.length/s.settings.maxslides)),void s.pagerel.html(e+1+s.settings.pagershortseparator+i);s.pagerel.find("a").removeclass("active"),s.pagerel.each(function(i,n){t(n).find("a").eq(e).addclass("active")})},a=function(){if(s.settings.infiniteloop){var t="";0===s.active.index?t=s.children.eq(0).position():s.active.index===f()-1&&s.carousel?t=s.children.eq((f()-1)*x()).position():s.active.index===s.children.length-1&&(t=s.children.eq(s.children.length-1).position()),t&&("horizontal"===s.settings.mode?s(-t.left,"reset",0):"vertical"===s.settings.mode&&s(-t.top,"reset",0))}s.working=!1,s.settings.onslideafter.call(o,s.children.eq(s.active.index),s.oldindex,s.active.index)},d=function(t){s.settings.autocontrolscombine?s.controls.autoel.html(s.controls[t]):(s.controls.autoel.find("a").removeclass("active"),s.controls.autoel.find("a:not(.bx-"+t+")").addclass("active"))},q=function(){1===f()?(s.controls.prev.addclass("disabled"),s.controls.next.addclass("disabled")):!s.settings.infiniteloop&&s.settings.hidecontrolonend&&(0===s.active.index?(s.controls.prev.addclass("disabled"),s.controls.next.removeclass("disabled")):s.active.index===f()-1?(s.controls.next.addclass("disabled"),s.controls.prev.removeclass("disabled")):(s.controls.prev.removeclass("disabled"),s.controls.next.removeclass("disabled")))},h=function(){o.startauto()},w=function(){o.stopauto()},l=function(){s.settings.autodelay>0?settimeout(o.startauto,s.settings.autodelay):(o.startauto(),t(window).focus(h).blur(w)),s.settings.autohover&&o.hover(function(){s.interval&&(o.stopauto(!0),s.autopaused=!0)},function(){s.autopaused&&(o.startauto(!0),s.autopaused=null)})},o=function(){var e,i,n,r,a,l,d,c,g=0;"next"===s.settings.autodirection?o.append(s.children.clone().addclass("bx-clone")):(o.prepend(s.children.clone().addclass("bx-clone")),e=s.children.first().position(),g="horizontal"===s.settings.mode?-e.left:-e.top),s(g,"reset",0),s.settings.pager=!1,s.settings.controls=!1,s.settings.autocontrols=!1,s.settings.tickerhover&&(s.usingcss?(r="horizontal"===s.settings.mode?4:5,s.viewport.hover(function(){i=o.css("-"+s.cssprefix+"-transform"),n=parsefloat(i.split(",")[r]),s(n,"reset",0)},function(){c=0,s.children.each(function(e){c+="horizontal"===s.settings.mode?t(this).outerwidth(!0):t(this).outerheight(!0)}),a=s.settings.speed/c,l="horizontal"===s.settings.mode?"left":"top",d=a*(c-math.abs(parseint(n))),f(d)})):s.viewport.hover(function(){o.stop()},function(){c=0,s.children.each(function(e){c+="horizontal"===s.settings.mode?t(this).outerwidth(!0):t(this).outerheight(!0)}),a=s.settings.speed/c,l="horizontal"===s.settings.mode?"left":"top",d=a*(c-math.abs(parseint(o.css(l)))),f(d)})),f()},f=function(t){var e,i,n,r=t||s.settings.speed,a={left:0,top:0},l={left:0,top:0};"next"===s.settings.autodirection?a=o.find(".bx-clone").first().position():l=s.children.first().position(),e="horizontal"===s.settings.mode?-a.left:-a.top,i="horizontal"===s.settings.mode?-l.left:-l.top,n={resetvalue:i},s(e,"ticker",r,n)},n=function(e){var i=t(window),n={top:i.scrolltop(),left:i.scrollleft()},s=e.offset();return n.right=n.left+i.width(),n.bottom=n.top+i.height(),s.right=s.left+e.outerwidth(),s.bottom=s.top+e.outerheight(),!(n.rights.right||n.bottoms.bottom)},b=function(t){var e=document.activeelement.tagname.tolowercase();if(null==new regexp(e,["i"]).exec("input|textarea")&&n(o)){if(39===t.keycode)return p(t),!1;if(37===t.keycode)return e(t),!1}},x=function(){s.touch={start:{x:0,y:0},end:{x:0,y:0}},s.viewport.on("touchstart mspointerdown pointerdown",y),s.viewport.on("click",".bxslider a",function(t){s.viewport.hasclass("click-disabled")&&(t.preventdefault(),s.viewport.removeclass("click-disabled"))})},y=function(t){if("touchstart"===t.type||0===t.button)if(t.preventdefault(),s.controls.el.addclass("disabled"),s.working)s.controls.el.removeclass("disabled");else{s.touch.originalpos=o.position();var e=t.originalevent,i=void 0!==e.changedtouches?e.changedtouches:[e],n="function"==typeof pointerevent;if(n&&void 0===e.pointerid)return;s.touch.start.x=i[0].pagex,s.touch.start.y=i[0].pagey,s.viewport.get(0).setpointercapture&&(s.pointerid=e.pointerid,s.viewport.get(0).setpointercapture(s.pointerid)),s.originalclicktarget=e.originaltarget||e.target,s.originalclickbutton=e.button,s.originalclickbuttons=e.buttons,s.originaleventtype=e.type,s.hasmove=!1,s.viewport.on("touchmove mspointermove pointermove",r),s.viewport.on("touchend mspointerup pointerup",z),s.viewport.on("mspointercancel pointercancel",v)}},v=function(t){t.preventdefault(),s(s.touch.originalpos.left,"reset",0),s.controls.el.removeclass("disabled"),s.viewport.off("mspointercancel pointercancel",v),s.viewport.off("touchmove mspointermove pointermove",r),s.viewport.off("touchend mspointerup pointerup",z),s.viewport.get(0).releasepointercapture&&s.viewport.get(0).releasepointercapture(s.pointerid)},r=function(t){var e=t.originalevent,i=void 0!==e.changedtouches?e.changedtouches:[e],n=math.abs(i[0].pagex-s.touch.start.x),o=math.abs(i[0].pagey-s.touch.start.y),r=0,a=0;s.hasmove=!0,3*n>o&&s.settings.preventdefaultswipex?t.preventdefault():3*o>n&&s.settings.preventdefaultswipey&&t.preventdefault(),"touchmove"!==t.type&&t.preventdefault(),"fade"!==s.settings.mode&&s.settings.onetoonetouch&&("horizontal"===s.settings.mode?(a=i[0].pagex-s.touch.start.x,r=s.touch.originalpos.left+a):(a=i[0].pagey-s.touch.start.y,r=s.touch.originalpos.top+a),s(r,"reset",0))},z=function(e){e.preventdefault(),s.viewport.off("touchmove mspointermove pointermove",r),s.controls.el.removeclass("disabled");var i=e.originalevent,n=void 0!==i.changedtouches?i.changedtouches:[i],r=0,a=0;s.touch.end.x=n[0].pagex,s.touch.end.y=n[0].pagey,"fade"===s.settings.mode?(a=math.abs(s.touch.start.x-s.touch.end.x))>=s.settings.swipethreshold&&(s.touch.start.x>s.touch.end.x?o.gotonextslide():o.gotoprevslide(),o.stopauto()):("horizontal"===s.settings.mode?(a=s.touch.end.x-s.touch.start.x,r=s.touch.originalpos.left):(a=s.touch.end.y-s.touch.start.y,r=s.touch.originalpos.top),!s.settings.infiniteloop&&(0===s.active.index&&a>0||s.active.last&&a<0)?s(r,"reset",200):math.abs(a)>=s.settings.swipethreshold?(a<0?o.gotonextslide():o.gotoprevslide(),o.stopauto()):s(r,"reset",200)),s.viewport.off("touchend mspointerup pointerup",z),s.viewport.get(0).releasepointercapture&&s.viewport.get(0).releasepointercapture(s.pointerid),!1!==s.hasmove||0!==s.originalclickbutton&&"touchstart"!==s.originaleventtype||t(s.originalclicktarget).trigger({type:"click",button:s.originalclickbutton,buttons:s.originalclickbuttons})},u=function(e){if(s.initialized)if(s.working)window.settimeout(u,10);else{var i=t(window).width(),n=t(window).height();r===i&&a===n||(r=i,a=n,o.redrawslider(),s.settings.onsliderresize.call(o,s.active.index))}},j=function(t){var e=v();s.settings.ariahidden&&!s.settings.ticker&&(s.children.attr("aria-hidden","true"),s.children.slice(t,t+e).attr("aria-hidden","false"))},q=function(t){return t<0?s.settings.infiniteloop?f()-1:s.active.index:t>=f()?s.settings.infiniteloop?0:s.active.index:t};return o.gotoslide=function(e,i){var n,r,a,l,d=!0,c=0,g={left:0,top:0},u=null;if(s.oldindex=s.active.index,s.active.index=q(e),!s.working&&s.active.index!==s.oldindex){if(s.working=!0,void 0!==(d=s.settings.onslidebefore.call(o,s.children.eq(s.active.index),s.oldindex,s.active.index))&&!d)return s.active.index=s.oldindex,void(s.working=!1);"next"===i?s.settings.onslidenext.call(o,s.children.eq(s.active.index),s.oldindex,s.active.index)||(d=!1):"prev"===i&&(s.settings.onslideprev.call(o,s.children.eq(s.active.index),s.oldindex,s.active.index)||(d=!1)),s.active.last=s.active.index>=f()-1,(s.settings.pager||s.settings.pagercustom)&&z(s.active.index),s.settings.controls&&q(),"fade"===s.settings.mode?(s.settings.adaptiveheight&&s.viewport.height()!==p()&&s.viewport.animate({height:p()},s.settings.adaptiveheightspeed),s.children.filter(":visible").fadeout(s.settings.speed).css({zindex:0}),s.children.eq(s.active.index).css("zindex",s.settings.slidezindex+1).fadein(s.settings.speed,function(){t(this).css("zindex",s.settings.slidezindex),a()})):(s.settings.adaptiveheight&&s.viewport.height()!==p()&&s.viewport.animate({height:p()},s.settings.adaptiveheightspeed),!s.settings.infiniteloop&&s.carousel&&s.active.last?"horizontal"===s.settings.mode?(u=s.children.eq(s.children.length-1),g=u.position(),c=s.viewport.width()-u.outerwidth()):(n=s.children.length-s.settings.minslides,g=s.children.eq(n).position()):s.carousel&&s.active.last&&"prev"===i?(r=1===s.settings.moveslides?s.settings.maxslides-x():(f()-1)*x()-(s.children.length-s.settings.maxslides),u=o.children(".bx-clone").eq(r),g=u.position()):"next"===i&&0===s.active.index?(g=o.find("> .bx-clone").eq(s.settings.maxslides).position(),s.active.last=!1):e>=0&&(l=e*parseint(x()),g=s.children.eq(l).position()),void 0!==g&&(a="horizontal"===s.settings.mode?-(g.left-c):-g.top,s(a,"slide",s.settings.speed)),s.working=!1),s.settings.ariahidden&&j(s.active.index*x())}},o.gotonextslide=function(){if((s.settings.infiniteloop||!s.active.last)&&!0!==s.working){var t=parseint(s.active.index)+1;o.gotoslide(t,"next")}},o.gotoprevslide=function(){if((s.settings.infiniteloop||0!==s.active.index)&&!0!==s.working){var t=parseint(s.active.index)-1;o.gotoslide(t,"prev")}},o.startauto=function(t){s.interval||(s.interval=setinterval(function(){"next"===s.settings.autodirection?o.gotonextslide():o.gotoprevslide()},s.settings.pause),s.settings.onautochange.call(o,!0),s.settings.autocontrols&&!0!==t&&d("stop"))},o.stopauto=function(t){s.autopaused&&(s.autopaused=!1),s.interval&&(clearinterval(s.interval),s.interval=null,s.settings.onautochange.call(o,!1),s.settings.autocontrols&&!0!==t&&d("start"))},o.getcurrentslide=function(){return s.active.index},o.getcurrentslideelement=function(){return s.children.eq(s.active.index)},o.getslideelement=function(t){return s.children.eq(t)},o.getslidecount=function(){return s.children.length},o.isworking=function(){return s.working},o.redrawslider=function(){s.children.add(o.find(".bx-clone")).outerwidth(h()),s.viewport.css("height",p()),s.settings.ticker||m(),s.active.last&&(s.active.index=f()-1),s.active.index>=f()&&(s.active.last=!0),s.settings.pager&&!s.settings.pagercustom&&(w(),z(s.active.index)),s.settings.ariahidden&&j(s.active.index*x())},o.destroyslider=function(){s.initialized&&(s.initialized=!1,t(".bx-clone",this).remove(),s.children.each(function(){void 0!==t(this).data("origstyle")?t(this).attr("style",t(this).data("origstyle")):t(this).removeattr("style")}),void 0!==t(this).data("origstyle")?this.attr("style",t(this).data("origstyle")):t(this).removeattr("style"),t(this).unwrap().unwrap(),s.controls.el&&s.controls.el.remove(),s.controls.next&&s.controls.next.remove(),s.controls.prev&&s.controls.prev.remove(),s.pagerel&&s.settings.controls&&!s.settings.pagercustom&&s.pagerel.remove(),t(".bx-caption",this).remove(),s.controls.autoel&&s.controls.autoel.remove(),clearinterval(s.interval),s.settings.responsive&&t(window).off("resize",u),s.settings.keyboardenabled&&t(document).off("keydown",b),t(this).removedata("bxslider"),t(window).off("blur",w).off("focus",h))},o.reloadslider=function(e){void 0!==e&&(n=e),o.destroyslider(),l(),t(o).data("bxslider",this)},l(),t(o).data("bxslider",this),this}}}(jquery);