/** * bxslider v4.2.5 * copyright 2013-2015 steven wanderski * written while drinking belgian ales and listening to jazz * licensed under mit (http://opensource.org/licenses/mit) */ !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?!0:!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?1e3*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;e>f;f++)c="",d.settings.buildpager&&a.isfunction(d.settings.buildpager)||d.settings.pagercustom?(c=d.settings.buildpager(f),d.pagerel.addclass("bx-custom-pager")):(c=f+1,d.pagerel.addclass("bx-default-pager")),b+='";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&&0>g)?t(f,"reset",200):math.abs(g)>=d.settings.swipethreshold?(0>g?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 0>a?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.interval||(d.interval=setinterval(function(){"next"===d.settings.autodirection?e.gotonextslide():e.gotoprevslide()},d.settings.pause),d.settings.autocontrols&&a!==!0&&g("stop"))},e.stopauto=function(a){d.interval&&(clearinterval(d.interval),d.interval=null,d.settings.autocontrols&&a!==!0&&g("start"))},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);