").append(m.parsehtml(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responsetext,b,a])}),this},m.each(["ajaxstart","ajaxstop","ajaxcomplete","ajaxerror","ajaxsuccess","ajaxsend"],function(a,b){m.fn[b]=function(a){return this.on(b,a)}}),m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cd=a.document.documentelement;function dd(a){return m.iswindow(a)?a:9===a.nodetype?a.defaultview||a.parentwindow:!1}m.offset={setoffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inarray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parsefloat(f)||0,e=parsefloat(i)||0),m.isfunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using"in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){m.offset.setoffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerdocument;if(f)return b=f.documentelement,m.contains(b,e)?(typeof e.getboundingclientrect!==k&&(d=e.getboundingclientrect()),c=dd(f),{top:d.top+(c.pageyoffset||b.scrolltop)-(b.clienttop||0),left:d.left+(c.pagexoffset||b.scrollleft)-(b.clientleft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getboundingclientrect():(a=this.offsetparent(),b=this.offset(),m.nodename(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"bordertopwidth",!0),c.left+=m.css(a[0],"borderleftwidth",!0)),{top:b.top-c.top-m.css(d,"margintop",!0),left:b.left-c.left-m.css(d,"marginleft",!0)}}},offsetparent:function(){return this.map(function(){var a=this.offsetparent||cd;while(a&&!m.nodename(a,"html")&&"static"===m.css(a,"position"))a=a.offsetparent;return a||cd})}}),m.each({scrollleft:"pagexoffset",scrolltop:"pageyoffset"},function(a,b){var c=/y/.test(b);m.fn[a]=function(d){return v(this,function(a,d,e){var f=dd(a);return void 0===e?f?b in f?f[b]:f.document.documentelement[d]:a[d]:void(f?f.scrollto(c?m(f).scrollleft():e,c?e:m(f).scrolltop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.csshooks[b]=lb(k.pixelposition,function(a,c){return c?(c=jb(a,b),hb.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({height:"height",width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return v(this,function(b,c,d){var e;return m.iswindow(b)?b.document.documentelement["client"+a]:9===b.nodetype?(e=b.documentelement,math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andself=m.fn.addback,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var ed=a.jquery,fd=a.$;return m.noconflict=function(b){return a.$===m&&(a.$=fd),b&&a.jquery===m&&(a.jquery=ed),m},typeof b===k&&(a.jquery=a.$=m),m});
/*
* jquery easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* uses the built in easing capabilities added in jquery 1.1
* to offer multiple easing options
*
* terms of use - jquery easing
*
*/
// t: current time, b: beginning value, c: change in value, d: duration
jquery.easing['jswing']=jquery.easing['swing'];jquery.extend(jquery.easing,{def:'easeoutquad',swing:function(x,t,b,c,d){return jquery.easing[jquery.easing.def](x,t,b,c,d)},easeinquad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeoutquad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeinoutquad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b},easeincubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeoutcubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeinoutcubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeinquart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeoutquart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeinoutquart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeinquint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeoutquint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeinoutquint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeinsine:function(x,t,b,c,d){return-c*math.cos(t/d*(math.pi/2))+c+b},easeoutsine:function(x,t,b,c,d){return c*math.sin(t/d*(math.pi/2))+b},easeinoutsine:function(x,t,b,c,d){return-c/2*(math.cos(math.pi*t/d)-1)+b},easeinexpo:function(x,t,b,c,d){return(t==0)?b:c*math.pow(2,10*(t/d-1))+b},easeoutexpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-math.pow(2,-10*t/d)+1)+b},easeinoutexpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*math.pow(2,10*(t-1))+b;return c/2*(-math.pow(2,-10*--t)+2)+b},easeincirc:function(x,t,b,c,d){return-c*(math.sqrt(1-(t/=d)*t)-1)+b},easeoutcirc:function(x,t,b,c,d){return c*math.sqrt(1-(t=t/d-1)*t)+b},easeinoutcirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(math.sqrt(1-t*t)-1)+b;return c/2*(math.sqrt(1-(t-=2)*t)+1)+b},easeinelastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a
600)){n=e.fix(n,!0,t);if(i){n=n.replace(/url\(\s*?((?:"|')?)(.+?)\1\s*?\)/gi,function(e,t,n){return/^([a-z]{3,10}:|#)/i.test(n)?e:/^\/\//.test(n)?'url("'+s+n+'")':/^\//.test(n)?'url("'+o+n+'")':/^\?/.test(n)?'url("'+u+n+'")':'url("'+i+n+'")'});var r=i.replace(/([\\\^\$*+[\]?{}.=!:(|)])/g,"\\$1");n=n.replace(regexp("\\b(behavior:\\s*?url\\('?\"?)"+r,"gi"),"$1")}var l=document.createelement("style");l.textcontent=n;l.media=t.media;l.disabled=t.disabled;l.setattribute("data-href",t.getattribute("href"));a.insertbefore(l,t);a.removechild(t);l.media=t.media}};try{f.open("get",r);f.send(null)}catch(n){if(typeof xdomainrequest!="undefined"){f=new xdomainrequest;f.onerror=f.onprogress=function(){};f.onload=l;f.open("get",r);f.send(null)}}t.setattribute("data-inprogress","")},styleelement:function(t){if(t.hasattribute("data-noprefix"))return;var n=t.disabled;t.textcontent=e.fix(t.textcontent,!0,t);t.disabled=n},styleattribute:function(t){var n=t.getattribute("style");n=e.fix(n,!1,t);t.setattribute("style",n)},process:function(){t('link[rel="stylesheet"]:not([data-inprogress])').foreach(stylefix.link);t("style").foreach(stylefix.styleelement);t("[style]").foreach(stylefix.styleattribute)},register:function(t,n){(e.fixers=e.fixers||[]).splice(n===undefined?e.fixers.length:n,0,t)},fix:function(t,n,r){for(var i=0;i-1&&(e=e.replace(/(\s|:|,)(repeating-)?linear-gradient\(\s*(-?\d*\.?\d*)deg/ig,function(e,t,n,r){return t+(n||"")+"linear-gradient("+(90-r)+"deg"}));e=t("functions","(\\s|:|,)","\\s*\\(","$1"+s+"$2(",e);e=t("keywords","(\\s|:)","(\\s|;|\\}|$)","$1"+s+"$2$3",e);e=t("properties","(^|\\{|\\s|;)","\\s*:","$1"+s+"$2:",e);if(n.properties.length){var o=regexp("\\b("+n.properties.join("|")+")(?!:)","gi");e=t("valueproperties","\\b",":(.+?);",function(e){return e.replace(o,s+"$1")},e)}if(r){e=t("selectors","","\\b",n.prefixselector,e);e=t("atrules","@","\\b","@"+s+"$1",e)}e=e.replace(regexp("-"+s,"g"),"-");e=e.replace(/-\*-(?=[a-z]+)/gi,n.prefix);return e},property:function(e){return(n.properties.indexof(e)?n.prefix:"")+e},value:function(e,r){e=t("functions","(^|\\s|,)","\\s*\\(","$1"+n.prefix+"$2(",e);e=t("keywords","(^|\\s)","(\\s|$)","$1"+n.prefix+"$2$3",e);return e},prefixselector:function(e){return e.replace(/^:{1,2}/,function(e){return e+n.prefix})},prefixproperty:function(e,t){var r=n.prefix+e;return t?stylefix.camelcase(r):r}};(function(){var e={},t=[],r={},i=getcomputedstyle(document.documentelement,null),s=document.createelement("div").style,o=function(n){if(n.charat(0)==="-"){t.push(n);var r=n.split("-"),i=r[1];e[i]=++e[i]||1;while(r.length>3){r.pop();var s=r.join("-");u(s)&&t.indexof(s)===-1&&t.push(s)}}},u=function(e){return stylefix.camelcase(e)in s};if(i.length>0)for(var a=0;a1)return this.each(function(){t(this).bxslider(n)}),this;var o={},r=this;e.el=this;var a=t(window).width(),l=t(window).height(),d=function(){o.settings=t.extend({},s,n),o.settings.slidewidth=parseint(o.settings.slidewidth),o.children=r.children(o.settings.slideselector),o.children.length1||o.settings.maxslides>1,o.carousel&&(o.settings.preloadimages="all"),o.minthreshold=o.settings.minslides*o.settings.slidewidth+(o.settings.minslides-1)*o.settings.slidemargin,o.maxthreshold=o.settings.maxslides*o.settings.slidewidth+(o.settings.maxslides-1)*o.settings.slidemargin,o.working=!1,o.controls={},o.interval=null,o.animprop="vertical"==o.settings.mode?"top":"left",o.usingcss=o.settings.usecss&&"fade"!=o.settings.mode&&function(){var t=document.createelement("div"),e=["webkitperspective","mozperspective","operspective","msperspective"];for(var i in e)if(void 0!==t.style[e[i]])return o.cssprefix=e[i].replace("perspective","").tolowercase(),o.animprop="-"+o.cssprefix+"-transform",!0;return!1}(),"vertical"==o.settings.mode&&(o.settings.maxslides=o.settings.minslides),r.data("origstyle",r.attr("style")),r.children(o.settings.slideselector).each(function(){t(this).data("origstyle",t(this).attr("style"))}),c()},c=function(){r.wrap(''),o.viewport=r.parent(),o.loader=t(''),o.viewport.prepend(o.loader),r.css({width:"horizontal"==o.settings.mode?100*o.children.length+215+"%":"auto",position:"relative"}),o.usingcss&&o.settings.easing?r.css("-"+o.cssprefix+"-transition-timing-function",o.settings.easing):o.settings.easing||(o.settings.easing="swing"),f(),o.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),o.viewport.parent().css({maxwidth:p()}),o.settings.pager||o.viewport.parent().css({margin:"0 auto 0px"}),o.children.css({"float":"horizontal"==o.settings.mode?"left":"none",liststyle:"none",position:"relative"}),o.children.css("width",u()),"horizontal"==o.settings.mode&&o.settings.slidemargin>0&&o.children.css("marginright",o.settings.slidemargin),"vertical"==o.settings.mode&&o.settings.slidemargin>0&&o.children.css("marginbottom",o.settings.slidemargin),"fade"==o.settings.mode&&(o.children.css({position:"absolute",zindex:0,display:"none"}),o.children.eq(o.settings.startslide).css({zindex:o.settings.slidezindex,display:"block"})),o.controls.el=t(''),o.settings.captions&&p(),o.active.last=o.settings.startslide==x()-1,o.settings.video&&r.fitvids();var e=o.children.eq(o.settings.startslide);"all"==o.settings.preloadimages&&(e=o.children),o.settings.ticker?o.settings.pager=!1:(o.settings.pager&&t(),o.settings.controls&&c(),o.settings.auto&&o.settings.autocontrols&&e(),(o.settings.controls||o.settings.autocontrols||o.settings.pager)&&o.viewport.after(o.controls.el)),g(e,h)},g=function(e,i){var s=e.find("img, iframe").length;if(0==s)return i(),void 0;var n=0;e.find("img, iframe").each(function(){t(this).one("load",function(){++n==s&&i()}).each(function(){this.complete&&t(this).load()})})},h=function(){if(o.settings.infiniteloop&&"fade"!=o.settings.mode&&!o.settings.ticker){var e="vertical"==o.settings.mode?o.settings.minslides:o.settings.maxslides,i=o.children.slice(0,e).clone().addclass("bx-clone"),s=o.children.slice(-e).clone().addclass("bx-clone");r.append(i).prepend(s)}o.loader.remove(),s(),"vertical"==o.settings.mode&&(o.settings.adaptiveheight=!0),o.viewport.height(v()),r.redrawslider(),o.settings.onsliderload(o.active.index),o.initialized=!0,o.settings.responsive&&t(window).bind("resize",z),o.settings.auto&&o.settings.autostart&&h(),o.settings.ticker&&l(),o.settings.pager&&q(o.settings.startslide),o.settings.controls&&w(),o.settings.touchenabled&&!o.settings.ticker&&o()},v=function(){var e=0,s=t();if("vertical"==o.settings.mode||o.settings.adaptiveheight)if(o.carousel){var n=1==o.settings.moveslides?o.active.index:o.active.index*m();for(s=o.children.eq(n),i=1;i<=o.settings.maxslides-1;i++)s=n+i>=o.children.length?s.add(o.children.eq(i-1)):s.add(o.children.eq(n+i))}else s=o.children.eq(o.active.index);else s=o.children;return"vertical"==o.settings.mode?(s.each(function(){e+=t(this).outerheight()}),o.settings.slidemargin>0&&(e+=o.settings.slidemargin*(o.settings.minslides-1))):e=math.max.apply(math,s.map(function(){return t(this).outerheight(!1)}).get()),e},p=function(){var t="100%";return o.settings.slidewidth>0&&(t="horizontal"==o.settings.mode?o.settings.maxslides*o.settings.slidewidth+(o.settings.maxslides-1)*o.settings.slidemargin:o.settings.slidewidth),t},u=function(){var t=o.settings.slidewidth,e=o.viewport.width();return 0==o.settings.slidewidth||o.settings.slidewidth>e&&!o.carousel||"vertical"==o.settings.mode?t=e:o.settings.maxslides>1&&"horizontal"==o.settings.mode&&(e>o.maxthreshold||e0)if(o.viewport.width()o.maxthreshold)t=o.settings.maxslides;else{var e=o.children.first().width();t=math.floor(o.viewport.width()/e)}else"vertical"==o.settings.mode&&(t=o.settings.minslides);return t},x=function(){var t=0;if(o.settings.moveslides>0)if(o.settings.infiniteloop)t=o.children.length/m();else for(var e=0,i=0;e0&&o.settings.moveslides<=f()?o.settings.moveslides:f()},s=function(){if(o.children.length>o.settings.maxslides&&o.active.last&&!o.settings.infiniteloop){if("horizontal"==o.settings.mode){var t=o.children.last(),e=t.position();b(-(e.left-(o.viewport.width()-t.width())),"reset",0)}else if("vertical"==o.settings.mode){var i=o.children.length-o.settings.minslides,e=o.children.eq(i).position();b(-e.top,"reset",0)}}else{var e=o.children.eq(o.active.index*m()).position();o.active.index==x()-1&&(o.active.last=!0),void 0!=e&&("horizontal"==o.settings.mode?b(-e.left,"reset",0):"vertical"==o.settings.mode&&b(-e.top,"reset",0))}},b=function(t,e,i,s){if(o.usingcss){var n="vertical"==o.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)";r.css("-"+o.cssprefix+"-transition-duration",i/1e3+"s"),"slide"==e?(r.css(o.animprop,n),r.bind("transitionend webkittransitionend otransitionend mstransitionend",function(){r.unbind("transitionend webkittransitionend otransitionend mstransitionend"),d()})):"reset"==e?r.css(o.animprop,n):"ticker"==e&&(r.css("-"+o.cssprefix+"-transition-timing-function","linear"),r.css(o.animprop,n),r.bind("transitionend webkittransitionend otransitionend mstransitionend",function(){r.unbind("transitionend webkittransitionend otransitionend mstransitionend"),b(s.resetvalue,"reset",0),n()}))}else{var a={};a[o.animprop]=t,"slide"==e?r.animate(a,i,o.settings.easing,function(){d()}):"reset"==e?r.css(o.animprop,t):"ticker"==e&&r.animate(a,speed,"linear",function(){b(s.resetvalue,"reset",0),n()})}},w=function(){for(var e="",i=x(),s=0;i>s;s++){var n="";o.settings.buildpager&&t.isfunction(o.settings.buildpager)?(n=o.settings.buildpager(s),o.pagerel.addclass("bx-custom-pager")):(n=s+1,o.pagerel.addclass("bx-default-pager")),e+='"}o.pagerel.html(e)},t=function(){o.settings.pagercustom?o.pagerel=t(o.settings.pagercustom):(o.pagerel=t(''),o.settings.pagerselector?t(o.settings.pagerselector).html(o.pagerel):o.controls.el.addclass("bx-has-pager").append(o.pagerel),w()),o.pagerel.on("click","a",i)},c=function(){o.controls.next=t(''+o.settings.nexttext+""),o.controls.prev=t(''+o.settings.prevtext+""),o.controls.next.bind("click",y),o.controls.prev.bind("click",z),o.settings.nextselector&&t(o.settings.nextselector).append(o.controls.next),o.settings.prevselector&&t(o.settings.prevselector).append(o.controls.prev),o.settings.nextselector||o.settings.prevselector||(o.controls.directionel=t(''),o.controls.directionel.append(o.controls.prev).append(o.controls.next),o.controls.el.addclass("bx-has-controls-direction").append(o.controls.directionel))},e=function(){o.controls.start=t('"),o.controls.stop=t('"),o.controls.autoel=t(''),o.controls.autoel.on("click",".bx-start",k),o.controls.autoel.on("click",".bx-stop",m),o.settings.autocontrolscombine?o.controls.autoel.append(o.controls.start):o.controls.autoel.append(o.controls.start).append(o.controls.stop),o.settings.autocontrolsselector?t(o.settings.autocontrolsselector).html(o.controls.autoel):o.controls.el.addclass("bx-has-controls-auto").append(o.controls.autoel),a(o.settings.autostart?"stop":"start")},p=function(){o.children.each(function(){var e=t(this).find("img:first").attr("title");void 0!=e&&(""+e).length&&t(this).append(''+e+"
")})},y=function(t){o.settings.auto&&r.stopauto(),r.gotonextslide(),t.preventdefault()},z=function(t){o.settings.auto&&r.stopauto(),r.gotoprevslide(),t.preventdefault()},k=function(t){r.startauto(),t.preventdefault()},m=function(t){r.stopauto(),t.preventdefault()},i=function(e){o.settings.auto&&r.stopauto();var i=t(e.currenttarget),s=parseint(i.attr("data-slide-index"));s!=o.active.index&&r.gotoslide(s),e.preventdefault()},q=function(e){var i=o.children.length;return"short"==o.settings.pagertype?(o.settings.maxslides>1&&(i=math.ceil(o.children.length/o.settings.maxslides)),o.pagerel.html(e+1+o.settings.pagershortseparator+i),void 0):(o.pagerel.find("a").removeclass("active"),o.pagerel.each(function(i,s){t(s).find("a").eq(e).addclass("active")}),void 0)},d=function(){if(o.settings.infiniteloop){var t="";0==o.active.index?t=o.children.eq(0).position():o.active.index==x()-1&&o.carousel?t=o.children.eq((x()-1)*m()).position():o.active.index==o.children.length-1&&(t=o.children.eq(o.children.length-1).position()),t&&("horizontal"==o.settings.mode?b(-t.left,"reset",0):"vertical"==o.settings.mode&&b(-t.top,"reset",0))}o.working=!1,o.settings.onslideafter(o.children.eq(o.active.index),o.oldindex,o.active.index)},a=function(t){o.settings.autocontrolscombine?o.controls.autoel.html(o.controls[t]):(o.controls.autoel.find("a").removeclass("active"),o.controls.autoel.find("a:not(.bx-"+t+")").addclass("active"))},w=function(){1==x()?(o.controls.prev.addclass("disabled"),o.controls.next.addclass("disabled")):!o.settings.infiniteloop&&o.settings.hidecontrolonend&&(0==o.active.index?(o.controls.prev.addclass("disabled"),o.controls.next.removeclass("disabled")):o.active.index==x()-1?(o.controls.next.addclass("disabled"),o.controls.prev.removeclass("disabled")):(o.controls.prev.removeclass("disabled"),o.controls.next.removeclass("disabled")))},h=function(){o.settings.autodelay>0?settimeout(r.startauto,o.settings.autodelay):r.startauto(),o.settings.autohover&&r.hover(function(){o.interval&&(r.stopauto(!0),o.autopaused=!0)},function(){o.autopaused&&(r.startauto(!0),o.autopaused=null)})},l=function(){var e=0;if("next"==o.settings.autodirection)r.append(o.children.clone().addclass("bx-clone"));else{r.prepend(o.children.clone().addclass("bx-clone"));var i=o.children.first().position();e="horizontal"==o.settings.mode?-i.left:-i.top}b(e,"reset",0),o.settings.pager=!1,o.settings.controls=!1,o.settings.autocontrols=!1,o.settings.tickerhover&&!o.usingcss&&o.viewport.hover(function(){r.stop()},function(){var e=0;o.children.each(function(){e+="horizontal"==o.settings.mode?t(this).outerwidth(!0):t(this).outerheight(!0)});var i=o.settings.speed/e,s="horizontal"==o.settings.mode?"left":"top",n=i*(e-math.abs(parseint(r.css(s))));n(n)}),n()},n=function(t){speed=t?t:o.settings.speed;var e={left:0,top:0},i={left:0,top:0};"next"==o.settings.autodirection?e=r.find(".bx-clone").first().position():i=o.children.first().position();var s="horizontal"==o.settings.mode?-e.left:-e.top,n="horizontal"==o.settings.mode?-i.left:-i.top,a={resetvalue:n};b(s,"ticker",speed,a)},o=function(){o.touch={start:{x:0,y:0},end:{x:0,y:0}},o.viewport.bind("touchstart",x)},x=function(t){if(o.working)t.preventdefault();else{o.touch.originalpos=r.position();var e=t.originalevent;o.touch.start.x=e.changedtouches[0].pagex,o.touch.start.y=e.changedtouches[0].pagey,o.viewport.bind("touchmove",y),o.viewport.bind("touchend",v)}},y=function(t){var e=t.originalevent,i=math.abs(e.changedtouches[0].pagex-o.touch.start.x),s=math.abs(e.changedtouches[0].pagey-o.touch.start.y);if(3*i>s&&o.settings.preventdefaultswipex?t.preventdefault():3*s>i&&o.settings.preventdefaultswipey&&t.preventdefault(),"fade"!=o.settings.mode&&o.settings.onetoonetouch){var n=0;if("horizontal"==o.settings.mode){var r=e.changedtouches[0].pagex-o.touch.start.x;n=o.touch.originalpos.left+r}else{var r=e.changedtouches[0].pagey-o.touch.start.y;n=o.touch.originalpos.top+r}b(n,"reset",0)}},v=function(t){o.viewport.unbind("touchmove",y);var e=t.originalevent,i=0;if(o.touch.end.x=e.changedtouches[0].pagex,o.touch.end.y=e.changedtouches[0].pagey,"fade"==o.settings.mode){var s=math.abs(o.touch.start.x-o.touch.end.x);s>=o.settings.swipethreshold&&(o.touch.start.x>o.touch.end.x?r.gotonextslide():r.gotoprevslide(),r.stopauto())}else{var s=0;"horizontal"==o.settings.mode?(s=o.touch.end.x-o.touch.start.x,i=o.touch.originalpos.left):(s=o.touch.end.y-o.touch.start.y,i=o.touch.originalpos.top),!o.settings.infiniteloop&&(0==o.active.index&&s>0||o.active.last&&0>s)?b(i,"reset",200):math.abs(s)>=o.settings.swipethreshold?(0>s?r.gotonextslide():r.gotoprevslide(),r.stopauto()):b(i,"reset",200)}o.viewport.unbind("touchend",v)},z=function(){var e=t(window).width(),i=t(window).height();(a!=e||l!=i)&&(a=e,l=i,r.redrawslider(),o.settings.onsliderresize.call(r,o.active.index))};return r.gotoslide=function(e,i){if(!o.working&&o.active.index!=e)if(o.working=!0,o.oldindex=o.active.index,o.active.index=0>e?x()-1:e>=x()?0:e,o.settings.onslidebefore(o.children.eq(o.active.index),o.oldindex,o.active.index),"next"==i?o.settings.onslidenext(o.children.eq(o.active.index),o.oldindex,o.active.index):"prev"==i&&o.settings.onslideprev(o.children.eq(o.active.index),o.oldindex,o.active.index),o.active.last=o.active.index>=x()-1,o.settings.pager&&q(o.active.index),o.settings.controls&&w(),"fade"==o.settings.mode)o.settings.adaptiveheight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveheightspeed),o.children.filter(":visible").fadeout(o.settings.speed).css({zindex:0}),o.children.eq(o.active.index).css("zindex",o.settings.slidezindex+1).fadein(o.settings.speed,function(){t(this).css("zindex",o.settings.slidezindex),d()});else{o.settings.adaptiveheight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveheightspeed);var s=0,n={left:0,top:0};if(!o.settings.infiniteloop&&o.carousel&&o.active.last)if("horizontal"==o.settings.mode){var a=o.children.eq(o.children.length-1);n=a.position(),s=o.viewport.width()-a.outerwidth()}else{var l=o.children.length-o.settings.minslides;n=o.children.eq(l).position()}else if(o.carousel&&o.active.last&&"prev"==i){var d=1==o.settings.moveslides?o.settings.maxslides-m():(x()-1)*m()-(o.children.length-o.settings.maxslides),a=r.children(".bx-clone").eq(d);n=a.position()}else if("next"==i&&0==o.active.index)n=r.find("> .bx-clone").eq(o.settings.maxslides).position(),o.active.last=!1;else if(e>=0){var c=e*m();n=o.children.eq(c).position()}if("undefined"!=typeof n){var g="horizontal"==o.settings.mode?-(n.left-s):-n.top;b(g,"slide",o.settings.speed)}}},r.gotonextslide=function(){if(o.settings.infiniteloop||!o.active.last){var t=parseint(o.active.index)+1;r.gotoslide(t,"next")}},r.gotoprevslide=function(){if(o.settings.infiniteloop||0!=o.active.index){var t=parseint(o.active.index)-1;r.gotoslide(t,"prev")}},r.startauto=function(t){o.interval||(o.interval=setinterval(function(){"next"==o.settings.autodirection?r.gotonextslide():r.gotoprevslide()},o.settings.pause),o.settings.autocontrols&&1!=t&&a("stop"))},r.stopauto=function(t){o.interval&&(clearinterval(o.interval),o.interval=null,o.settings.autocontrols&&1!=t&&a("start"))},r.getcurrentslide=function(){return o.active.index},r.getcurrentslideelement=function(){return o.children.eq(o.active.index)},r.getslidecount=function(){return o.children.length},r.redrawslider=function(){o.children.add(r.find(".bx-clone")).outerwidth(u()),o.viewport.css("height",v()),o.settings.ticker||s(),o.active.last&&(o.active.index=x()-1),o.active.index>=x()&&(o.active.last=!0),o.settings.pager&&!o.settings.pagercustom&&(w(),q(o.active.index))},r.destroyslider=function(){o.initialized&&(o.initialized=!1,t(".bx-clone",this).remove(),o.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(),o.controls.el&&o.controls.el.remove(),o.controls.next&&o.controls.next.remove(),o.controls.prev&&o.controls.prev.remove(),o.pagerel&&o.settings.controls&&o.pagerel.remove(),t(".bx-caption",this).remove(),o.controls.autoel&&o.controls.autoel.remove(),clearinterval(o.interval),o.settings.responsive&&t(window).unbind("resize",z))},r.reloadslider=function(t){void 0!=t&&(n=t),r.destroyslider(),d()},d(),this}}(jquery);
/*!
* imagesloaded packaged v3.1.8
* javascript is all like "you images are done yet or what?"
* mit license
*/
(function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,r=this,o=r.eventemitter;i.getlisteners=function(e){var t,n,i=this._getevents();if("object"==typeof e){t={};for(n in i)i.hasownproperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenlisteners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},i.getlistenersasobject=function(e){var t,n=this.getlisteners(e);return n instanceof array&&(t={},t[e]=n),t||n},i.addlistener=function(e,n){var i,r=this.getlistenersasobject(e),o="object"==typeof n;for(i in r)r.hasownproperty(i)&&-1===t(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n("addlistener"),i.addoncelistener=function(e,t){return this.addlistener(e,{listener:t,once:!0})},i.once=n("addoncelistener"),i.defineevent=function(e){return this.getlisteners(e),this},i.defineevents=function(e){for(var t=0;e.length>t;t+=1)this.defineevent(e[t]);return this},i.removelistener=function(e,n){var i,r,o=this.getlistenersasobject(e);for(r in o)o.hasownproperty(r)&&(i=t(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n("removelistener"),i.addlisteners=function(e,t){return this.manipulatelisteners(!1,e,t)},i.removelisteners=function(e,t){return this.manipulatelisteners(!0,e,t)},i.manipulatelisteners=function(e,t,n){var i,r,o=e?this.removelistener:this.addlistener,s=e?this.removelisteners:this.addlisteners;if("object"!=typeof t||t instanceof regexp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasownproperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):s.call(this,i,r));return this},i.removeevent=function(e){var t,n=typeof e,i=this._getevents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasownproperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removealllisteners=n("removeevent"),i.emitevent=function(e,t){var n,i,r,o,s=this.getlistenersasobject(e);for(r in s)if(s.hasownproperty(r))for(i=s[r].length;i--;)n=s[r][i],n.once===!0&&this.removelistener(e,n.listener),o=n.listener.apply(this,t||[]),o===this._getoncereturnvalue()&&this.removelistener(e,n.listener);return this},i.trigger=n("emitevent"),i.emit=function(e){var t=array.prototype.slice.call(arguments,1);return this.emitevent(e,t)},i.setoncereturnvalue=function(e){return this._oncereturnvalue=e,this},i._getoncereturnvalue=function(){return this.hasownproperty("_oncereturnvalue")?this._oncereturnvalue:!0},i._getevents=function(){return this._events||(this._events={})},e.noconflict=function(){return r.eventemitter=o,e},"function"==typeof define&&define.amd?define("eventemitter/eventemitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.eventemitter=e}).call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcelement||t,n}var n=document.documentelement,i=function(){};n.addeventlistener?i=function(e,t,n){e.addeventlistener(t,n,!1)}:n.attachevent&&(i=function(e,n,i){e[n+i]=i.handleevent?function(){var n=t(e);i.handleevent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachevent("on"+n,e[n+i])});var r=function(){};n.removeeventlistener?r=function(e,t,n){e.removeeventlistener(t,n,!1)}:n.detachevent&&(r=function(e,t,n){e.detachevent("on"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var o={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventemitter/eventemitter","eventie/eventie"],function(n,i){return t(e,n,i)}):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesloaded=t(e,e.eventemitter,e.eventie)}(window,function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}function r(e){return"[object array]"===d.call(e)}function o(e){var t=[];if(r(e))t=e;else if("number"==typeof e.length)for(var n=0,i=e.length;i>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.queryselectorall(e)),this.elements=o(e),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getimages(),a&&(this.jqdeferred=new a.deferred);var r=this;settimeout(function(){r.check()})}function f(e){this.img=e}function c(e){this.src=e,v[e]=this}var a=e.jquery,u=e.console,h=u!==void 0,d=object.prototype.tostring;s.prototype=new t,s.prototype.options={},s.prototype.getimages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"img"===n.nodename&&this.addimage(n);var i=n.nodetype;if(i&&(1===i||9===i||11===i))for(var r=n.queryselectorall("img"),o=0,s=r.length;s>o;o++){var f=r[o];this.addimage(f)}}},s.prototype.addimage=function(e){var t=new f(e);this.images.push(t)},s.prototype.check=function(){function e(e,r){return t.options.debug&&h&&u.log("confirm",e,r),t.progress(e),n++,n===i&&t.complete(),!0}var t=this,n=0,i=this.images.length;if(this.hasanybroken=!1,!i)return this.complete(),void 0;for(var r=0;i>r;r++){var o=this.images[r];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasanybroken=this.hasanybroken||!e.isloaded;var t=this;settimeout(function(){t.emit("progress",t,e),t.jqdeferred&&t.jqdeferred.notify&&t.jqdeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasanybroken?"fail":"done";this.iscomplete=!0;var t=this;settimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqdeferred){var n=t.hasanybroken?"reject":"resolve";t.jqdeferred[n](t)}})},a&&(a.fn.imagesloaded=function(e,t){var n=new s(this,e,t);return n.jqdeferred.promise(a(this))}),f.prototype=new t,f.prototype.check=function(){var e=v[this.img.src]||new c(this.img.src);if(e.isconfirmed)return this.confirm(e.isloaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalwidth)return this.confirm(0!==this.img.naturalwidth,"naturalwidth"),void 0;var t=this;e.on("confirm",function(e,n){return t.confirm(e.isloaded,n),!0}),e.check()},f.prototype.confirm=function(e,t){this.isloaded=e,this.emit("confirm",this,t)};var v={};return c.prototype=new t,c.prototype.check=function(){if(!this.ischecked){var e=new image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.ischecked=!0}},c.prototype.handleevent=function(e){var t="on"+e.type;this[t]&&this[t](e)},c.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindproxyevents(e)},c.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindproxyevents(e)},c.prototype.confirm=function(e,t){this.isconfirmed=!0,this.isloaded=e,this.emit("confirm",this,t)},c.prototype.unbindproxyevents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s});