(function(n){var t={},r={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,touchEnabled:!0,swipeThreshold:50,video:!1,useCSS:!0,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",autoHover:!1,autoDelay:0,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){}};n.fn.bxSlider=function(u){var f,e,w,b;if(this.length!=0){if(this.length>1)return this.each(function(){n(this).bxSlider(u)}),this;f={};e=this;t.el=this;var rt=function(){f.settings=n.extend({},r,u);f.children=e.children(f.settings.slideSelector);f.settings.randomStart&&(f.settings.startSlide=Math.floor(Math.random()*f.children.length));f.active={index:f.settings.startSlide};f.carousel=f.settings.minSlides>1||f.settings.maxSlides>1;f.minThreshold=f.settings.minSlides*f.settings.slideWidth+(f.settings.minSlides-1)*f.settings.slideMargin;f.maxThreshold=f.settings.maxSlides*f.settings.slideWidth+(f.settings.maxSlides-1)*f.settings.slideMargin;f.working=!1;f.controls={};f.animProp=f.settings.mode=="vertical"?"top":"left";f.usingCSS=f.settings.useCSS&&f.settings.mode!="fade"&&function(){var i=document.createElement("div"),n=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var t in n)if(i.style[n[t]]!==void 0)return f.cssPrefix=n[t].replace("Perspective","").toLowerCase(),f.animProp="-"+f.cssPrefix+"-transform",!0;return!1}();f.settings.mode=="vertical"&&(f.settings.maxSlides=f.settings.minSlides);ut()},ut=function(){if(e.wrap('<div class="bx-wrapper"><div class="bx-viewport"><\/div><\/div>'),f.viewport=e.parent(),f.loader=n('<div class="bx-loading" />'),f.viewport.prepend(f.loader),e.css({width:f.settings.mode=="horizontal"?f.children.length*215+"%":"auto",position:"relative"}),f.usingCSS&&f.settings.easing?e.css("-"+f.cssPrefix+"-transition-timing-function",f.settings.easing):f.settings.easing||(f.settings.easing="swing"),f.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),f.children.css({float:f.settings.mode=="horizontal"?"left":"none",listStyle:"none"}),f.children.width(k()),f.settings.mode=="horizontal"&&f.settings.slideMargin>0&&f.children.css("marginRight",f.settings.slideMargin),f.settings.mode=="vertical"&&f.settings.slideMargin>0&&f.children.css("marginBottom",f.settings.slideMargin),f.settings.mode=="fade"&&(f.children.css({position:"absolute",zIndex:0,display:"none"}),f.children.eq(f.settings.startSlide).css({zIndex:50,display:"block"})),f.controls.el=n('<div class="bx-controls" />'),f.settings.captions&&st(),f.settings.infiniteLoop&&f.settings.mode!="fade"&&!f.settings.ticker){var t=f.settings.mode=="vertical"?f.settings.minSlides:f.settings.maxSlides,i=f.children.slice(0,t).clone().addClass("bx-clone"),r=f.children.slice(-t).clone().addClass("bx-clone");e.append(i).prepend(r)}f.active.last=f.settings.startSlide==s()-1;f.settings.video&&e.fitVids();f.settings.ticker||(f.settings.pager&&ft(),f.settings.controls&&et(),f.settings.auto&&f.settings.autoControls&&ot(),(f.settings.controls||f.settings.autoControls||f.settings.pager)&&f.viewport.after(f.controls.el));e.children().imagesLoaded(function(){f.loader.remove();d();f.settings.mode=="vertical"&&(f.settings.adaptiveHeight=!0);f.viewport.height(c());f.settings.onSliderLoad(f.active.index);f.settings.auto&&f.settings.autoStart&&yt();f.settings.ticker&&pt();f.settings.pager&&v(f.settings.startSlide);f.settings.controls&&nt();f.settings.touchEnabled&&!f.settings.ticker&&wt()})},c=function(){var r=0,t=n(),u;if(f.settings.mode=="vertical"||f.settings.adaptiveHeight)if(f.carousel)for(u=f.settings.moveSlides==1?f.active.index:f.active.index*h(),t=f.children.eq(u),i=1;f.settings.maxSlides-1>=i;i++)t=u+i>=f.children.length?t.add(f.children.eq(i-1)):t.add(f.children.eq(u+i));else t=f.children.eq(f.active.index);else t=f.children;return f.settings.mode=="vertical"?(t.each(function(){r+=n(this).outerHeight()}),f.settings.slideMargin>0&&(r+=f.settings.slideMargin*(f.settings.minSlides-1))):r=Math.max.apply(Math,t.map(function(){return n(this).outerHeight(!1)}).get()),r},k=function(){var t=f.settings.slideWidth,n=f.viewport.width();return f.settings.slideWidth==0?t=n:n>f.maxThreshold?t=(n-f.settings.slideMargin*(f.settings.maxSlides-1))/f.settings.maxSlides:f.minThreshold>n&&(t=(n-f.settings.slideMargin*(f.settings.minSlides-1))/f.settings.minSlides),t},l=function(){var n=1,t;return f.settings.mode=="horizontal"?f.minThreshold>f.viewport.width()?n=f.settings.minSlides:f.viewport.width()>f.maxThreshold?n=f.settings.maxSlides:(t=f.children.first().width(),n=Math.floor(f.viewport.width()/t)):f.settings.mode=="vertical"&&(n=f.settings.minSlides),n},s=function(){var n=0,t,i;if(f.settings.moveSlides>0)if(f.settings.infiniteLoop)n=f.children.length/h();else for(t=0,i=0;f.children.length>t;)++n,t=i+l(),i+=l()>=f.settings.moveSlides?f.settings.moveSlides:l();else n=Math.ceil(f.children.length/l());return n},h=function(){return f.settings.moveSlides>0&&l()>=f.settings.moveSlides?f.settings.moveSlides:l()},d=function(){var t,i,n;f.active.last?f.settings.mode=="horizontal"?(t=f.children.last(),n=t.position(),o(-(n.left-(f.viewport.width()-t.width())),"reset",0)):f.settings.mode=="vertical"&&(i=f.children.length-f.settings.minSlides,n=f.children.eq(i).position(),o(-n.top,"reset",0)):(n=f.children.eq(f.active.index*h()).position(),f.active.index==s()-1&&(f.active.last=!0),n!=void 0&&(f.settings.mode=="horizontal"?o(-n.left,"reset",0):f.settings.mode=="vertical"&&o(-n.top,"reset",0)))},o=function(n,t,i,r){var u,s;f.usingCSS?(u=f.settings.mode=="vertical"?"translate3d(0, "+n+"px, 0)":"translate3d("+n+"px, 0, 0)",e.css("-"+f.cssPrefix+"-transition-duration",i/1e3+"s"),t=="slide"?(e.css(f.animProp,u),e.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){e.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd");y()})):t=="reset"?e.css(f.animProp,u):t=="ticker"&&(e.css("-"+f.cssPrefix+"-transition-timing-function","linear"),e.css(f.animProp,u),e.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){e.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd");o(r.resetValue,"reset",0);a()}))):(s={},s[f.animProp]=n,t=="slide"?e.animate(s,i,f.settings.easing,function(){y()}):t=="reset"?e.css(f.animProp,n):t=="ticker"&&e.animate(s,speed,"linear",function(){o(r.resetValue,"reset",0);a()}))},g=function(){var r="",t,i;for(pagerQty=s(),t=0;pagerQty>t;t++)i="",f.settings.buildPager&&n.isFunction(f.settings.buildPager)?(i=f.settings.buildPager(t),f.pagerEl.addClass("bx-custom-pager")):(i=t+1,f.pagerEl.addClass("bx-default-pager")),r+='<div class="bx-pager-item"><a href="" data-slide-index="'+t+'" class="bx-pager-link">'+i+"<\/a><\/div>";f.pagerEl.html(r)},ft=function(){f.settings.pagerCustom?f.pagerEl=n(f.settings.pagerCustom):(f.pagerEl=n('<div class="bx-pager" />'),f.settings.pagerSelector?n(f.settings.pagerSelector).html(f.pagerEl):f.controls.el.addClass("bx-has-pager").append(f.pagerEl),g());f.pagerEl.delegate("a","click",vt)},et=function(){f.controls.next=n('<a class="bx-next" href="">'+f.settings.nextText+"<\/a>");f.controls.prev=n('<a class="bx-prev" href="">'+f.settings.prevText+"<\/a>");f.controls.next.bind("click",ht);f.controls.prev.bind("click",ct);f.settings.nextSelector&&n(f.settings.nextSelector).append(f.controls.next);f.settings.prevSelector&&n(f.settings.prevSelector).append(f.controls.prev);f.settings.nextSelector||f.settings.prevSelector||(f.controls.directionEl=n('<div class="bx-controls-direction" />'),f.controls.directionEl.append(f.controls.prev).append(f.controls.next),f.controls.el.addClass("bx-has-controls-direction").append(f.controls.directionEl))},ot=function(){f.controls.start=n('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+f.settings.startText+"<\/a><\/div>");f.controls.stop=n('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+f.settings.stopText+"<\/a><\/div>");f.controls.autoEl=n('<div class="bx-controls-auto" />');f.controls.autoEl.delegate(".bx-start","click",lt);f.controls.autoEl.delegate(".bx-stop","click",at);f.settings.autoControlsCombine?f.controls.autoEl.append(f.controls.start):f.controls.autoEl.append(f.controls.start).append(f.controls.stop);f.settings.autoControlsSelector?n(f.settings.autoControlsSelector).html(f.controls.autoEl):f.controls.el.addClass("bx-has-controls-auto").append(f.controls.autoEl);p(f.settings.autoStart?"stop":"start")},st=function(){f.children.each(function(){var t=n(this).find("img:first").attr("title");t!=void 0&&n(this).append('<div class="bx-caption"><span>'+t+"<\/span><\/div>")})},ht=function(n){f.settings.auto&&e.stopAuto();e.goToNextSlide();n.preventDefault()},ct=function(n){f.settings.auto&&e.stopAuto();e.goToPrevSlide();n.preventDefault()},lt=function(n){e.startAuto();n.preventDefault()},at=function(n){e.stopAuto();n.preventDefault()},vt=function(t){f.settings.auto&&e.stopAuto();var r=n(t.currentTarget),i=parseInt(r.attr("data-slide-index"));i!=f.active.index&&e.goToSlide(i);t.preventDefault()},v=function(n){return f.settings.pagerType=="short"?(f.pagerEl.html(n+1+f.settings.pagerShortSeparator+f.children.length),void 0):(f.pagerEl.find("a").removeClass("active"),f.pagerEl.find("a").eq(n).addClass("active"),void 0)},y=function(){if(f.settings.infiniteLoop){var n="";f.active.index==0?n=f.children.eq(0).position():f.active.index==s()-1&&f.carousel?n=f.children.eq((s()-1)*h()).position():f.active.index==f.children.length-1&&(n=f.children.eq(f.children.length-1).position());f.settings.mode=="horizontal"?o(-n.left,"reset",0):f.settings.mode=="vertical"&&o(-n.top,"reset",0)}f.working=!1;f.settings.onSlideAfter(f.children.eq(f.active.index),f.oldIndex,f.active.index)},p=function(n){f.settings.autoControlsCombine?f.controls.autoEl.html(f.controls[n]):(f.controls.autoEl.find("a").removeClass("active"),f.controls.autoEl.find("a:not(.bx-"+n+")").addClass("active"))},nt=function(){!f.settings.infiniteLoop&&f.settings.hideControlOnEnd&&(f.active.index==0?(f.controls.prev.addClass("disabled"),f.controls.next.removeClass("disabled")):f.active.index==s()-1?(f.controls.next.addClass("disabled"),f.controls.prev.removeClass("disabled")):(f.controls.prev.removeClass("disabled"),f.controls.next.removeClass("disabled")))},yt=function(){f.settings.autoDelay>0?setTimeout(e.startAuto,f.settings.autoDelay):e.startAuto();f.settings.autoHover&&e.hover(function(){f.interval&&(e.stopAuto(!0),f.autoPaused=!0)},function(){f.autoPaused&&(e.startAuto(!0),f.autoPaused=null)})},pt=function(){var i=0,t;f.settings.autoDirection=="next"?e.append(f.children.clone().addClass("bx-clone")):(e.prepend(f.children.clone().addClass("bx-clone")),t=f.children.first().position(),i=f.settings.mode=="horizontal"?-t.left:-t.top);o(i,"reset",0);f.settings.pager=!1;f.settings.controls=!1;f.settings.autoControls=!1;f.settings.tickerHover&&!f.usingCSS&&f.viewport.hover(function(){e.stop()},function(){var t=0;f.children.each(function(){t+=f.settings.mode=="horizontal"?n(this).outerWidth(!0):n(this).outerHeight(!0)});var i=f.settings.speed/t,r=f.settings.mode=="horizontal"?"left":"top",u=i*(t-Math.abs(parseInt(e.css(r))));a(u)});a()},a=function(n){var t,i;speed=n?n:f.settings.speed;t={left:0,top:0};i={left:0,top:0};f.settings.autoDirection=="next"?t=e.find(".bx-clone").first().position():i=f.children.first().position();var r=f.settings.mode=="horizontal"?-t.left:-t.top,u=f.settings.mode=="horizontal"?-i.left:-i.top,s={resetValue:u};o(r,"ticker",speed,s)},wt=function(){f.touch={start:{x:0,y:0},end:{x:0,y:0}};f.viewport.bind("touchstart",bt)},bt=function(n){if(f.working)n.preventDefault();else{f.touch.originalPos=e.position();var t=n.originalEvent;f.touch.start.x=t.changedTouches[0].pageX;f.touch.start.y=t.changedTouches[0].pageY;f.viewport.bind("touchmove",tt);f.viewport.bind("touchend",it)}},tt=function(n){var r,t,i;(n.preventDefault(),f.settings.mode!="fade")&&(r=n.originalEvent,t=0,f.settings.mode=="horizontal"?(i=r.changedTouches[0].pageX-f.touch.start.x,t=f.touch.originalPos.left+i):(i=r.changedTouches[0].pageY-f.touch.start.y,t=f.touch.originalPos.top+i),o(t,"reset",0))},it=function(n){var r,i,t;f.viewport.unbind("touchmove",tt);r=n.originalEvent;i=0;(f.touch.end.x=r.changedTouches[0].pageX,f.touch.end.y=r.changedTouches[0].pageY,f.settings.mode=="fade")?(t=Math.abs(f.touch.start.x-f.touch.end.x),t>=f.settings.swipeThreshold&&(f.touch.start.x>f.touch.end.x?e.goToNextSlide():e.goToPrevSlide(),e.stopAuto())):(t=0,f.settings.mode=="horizontal"?(t=f.touch.end.x-f.touch.start.x,i=f.touch.originalPos.left):(t=f.touch.end.y-f.touch.start.y,i=f.touch.originalPos.top),!f.settings.infiniteLoop&&(f.active.index==0&&t>0||f.active.last&&0>t)?o(i,"reset",200):Math.abs(t)>=f.settings.swipeThreshold?(0>t?e.goToNextSlide():e.goToPrevSlide(),e.stopAuto()):o(i,"reset",200));f.viewport.unbind("touchend",it)};return e.goToSlide=function(t,i){var l,r,a,p,u,w,b;f.working||f.active.index==t||((f.working=!0,f.oldIndex=f.active.index,f.active.index=0>t?s()-1:t>=s()?0:t,f.settings.onSlideBefore(f.children.eq(f.active.index),f.oldIndex,f.active.index),i=="next"?f.settings.onSlideNext(f.children.eq(f.active.index),f.oldIndex,f.active.index):i=="prev"&&f.settings.onSlidePrev(f.children.eq(f.active.index),f.oldIndex,f.active.index),f.active.last=f.active.index>=s()-1,f.settings.pager&&v(f.active.index),f.settings.controls&&nt(),f.settings.mode=="fade")?(f.settings.adaptiveHeight&&f.viewport.height()!=c()&&f.viewport.animate({height:c()},f.settings.adaptiveHeightSpeed),f.children.filter(":visible").fadeOut(f.settings.speed).css({zIndex:0}),f.children.eq(f.active.index).css("zIndex",51).fadeIn(f.settings.speed,function(){n(this).css("zIndex",50);y()})):(f.settings.adaptiveHeight&&f.viewport.height()!=c()&&f.viewport.animate({height:c()},f.settings.adaptiveHeightSpeed),l=0,r={left:0,top:0},!f.settings.infiniteLoop&&f.carousel&&f.active.last?f.settings.mode=="horizontal"?(u=f.children.eq(f.children.length-1),r=u.position(),l=f.viewport.width()-u.width()):(a=f.children.length-f.settings.minSlides,r=f.children.eq(a).position()):f.carousel&&f.active.last&&i=="prev"?(p=f.settings.moveSlides==1?f.settings.maxSlides-h():(s()-1)*h()-(f.children.length-f.settings.maxSlides),u=e.children(".bx-clone").eq(p),r=u.position()):i=="next"&&f.active.index==0?(r=e.find(".bx-clone").eq(f.settings.maxSlides).position(),f.active.last=!1):t>=0&&(w=t*h(),r=f.children.eq(w).position()),b=f.settings.mode=="horizontal"?-(r.left-l):-r.top,o(b,"slide",f.settings.speed)))},e.goToNextSlide=function(){if(f.settings.infiniteLoop||!f.active.last){var n=f.active.index+1;e.goToSlide(n,"next")}},e.goToPrevSlide=function(){if(f.settings.infiniteLoop||f.active.index!=0){var n=f.active.index-1;e.goToSlide(n,"prev")}},e.startAuto=function(n){f.interval||(f.interval=setInterval(function(){f.settings.autoDirection=="next"?e.goToNextSlide():e.goToPrevSlide()},f.settings.pause),f.settings.autoControls&&n!=1&&p("stop"))},e.stopAuto=function(n){f.interval&&(clearInterval(f.interval),f.interval=null,f.settings.autoControls&&n!=1&&p("start"))},e.getCurrentSlide=function(){return f.active.index},e.getSlideCount=function(){return f.children.length},w=n(window).width(),b=n(window).height(),n(window).resize(function(){var t=n(window).width(),i=n(window).height();(w!=t||b!=i)&&(w=t,b=i,f.children.add(e.find(".bx-clone")).width(k()),f.viewport.css("height",c()),f.active.last&&(f.active.index=s()-1),f.active.index>=s()&&(f.active.last=!0),f.settings.pager&&!f.settings.pagerCustom&&(g(),v(f.active.index)),f.settings.ticker||d())}),rt(),this}}})(jQuery),function(n,t){var i="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";n.fn.imagesLoaded=function(r){function l(){var t=n(c),i=n(o);u&&(o.length?u.reject(f,t,i):u.resolve(f));n.isFunction(r)&&r.call(e,f,t,i)}function s(t,r){t.src===i||-1!==n.inArray(t,h)||(h.push(t),r?o.push(t):c.push(t),n.data(t,"imagesLoaded",{isBroken:r,src:t.src}),a&&u.notifyWith(n(t),[r,f,n(c),n(o)]),f.length===h.length&&(setTimeout(l),f.unbind(".imagesLoaded")))}var e=this,u=n.isFunction(n.Deferred)?n.Deferred():0,a=n.isFunction(u.notify),f=e.find("img").add(e.filter("img")),h=[],c=[],o=[];return n.isPlainObject(r)&&n.each(r,function(n,t){"callback"===n?r=t:u&&u[n](t)}),f.length?f.bind("load.imagesLoaded error.imagesLoaded",function(n){s(n.target,"error"===n.type)}).each(function(r,u){var e=u.src,f=n.data(u,"imagesLoaded");f&&f.src===e?s(u,f.isBroken):u.complete&&u.naturalWidth!==t?s(u,0===u.naturalWidth||0===u.naturalHeight):(u.readyState||u.complete)&&(u.src=i,u.src=e)}):l(),u?u.promise(e):e}}(jQuery)