$(window).on('load',function(){ jquery('.target').delay(300).scrollclass(); }); /*********************************************************************************************/ // 渐入效果 /*********************************************************************************************/ (function(jquery){ $.fn.scrollclass = function(config){ var num=50; var defaults = {}; var config = jquery.extend(defaults, config); var target = this; function addaction(){ var length = target.length; for(var i=0; ip;p++)if(v=e[p],h=j.style[v],u(v,"-")&&(v=l(v)),j.style[v]!==t){if(r||o(s,"undefined"))return a(),"pfx"==n?v:!0;try{j.style[v]=s}catch(y){}if(j.style[v]!=h)return a(),"pfx"==n?v:!0}return a(),!1}function h(e,n,t,s,r){var i=e.charat(0).touppercase()+e.slice(1),a=(e+" "+p.join(i+" ")+i).split(" ");return o(n,"string")||o(n,"undefined")?v(a,n,s,r):(a=(e+" "+e.join(i+" ")+i).split(" "),p(a,n,t))}function g(e,n,s){return h(e,t,t,n,s)}var y=[],x=[],b={_version:"3.1.0",_config:{classprefix:"",enableclasses:!0,enablejsclass:!0,useprefixes:!0},_q:[],on:function(e,n){var t=this;settimeout(function(){n(t[e])},0)},addtest:function(e,n,t){x.push({name:e,fn:n,options:t})},addasynctest:function(e){x.push({name:null,fn:e})}},modernizr=function(){};modernizr.prototype=b,modernizr=new modernizr;var c=n.documentelement,s="svg"===c.nodename.tolowercase(),w=b._config.useprefixes?" -webkit- -moz- -o- -ms- ".split(" "):[];b._prefixes=w;var _="css"in e&&"supports"in e.css,t="supportscss"in e;modernizr.addtest("supports",_||t);var z=b.teststyles=f;modernizr.addtest("touchevents",function(){var t;if("ontouchstart"in e||e.documenttouch&&n instanceof documenttouch)t=!0;else{var s=["@media (",w.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");z(s,function(e){t=9===e.offsettop})}return t});var k="moz o ms webkit",p=b._config.useprefixes?k.split(" "):[];b._cssomprefixes=p;var e=b._config.useprefixes?k.tolowercase().split(" "):[];b._domprefixes=e;var n={elem:i("modernizr")};modernizr._q.push(function(){delete n.elem});var j={style:n.elem.style};modernizr._q.unshift(function(){delete j.style}),b.testallprops=h,b.testallprops=g,modernizr.addtest("cssanimations",g("animationname","a",!0)),modernizr.addtest("backgroundsize",g("backgroundsize","100%",!0)),modernizr.addtest("csstransitions",g("transition","all",!0)),modernizr.addtest("csstransforms3d",function(){var e=!!g("perspective","1px",!0),n=modernizr._config.useprefixes;if(e&&(!n||"webkitperspective"in c.style)){var t;modernizr.supports?t="@supports (perspective: 1px)":(t="@media (transform-3d)",n&&(t+=",(-webkit-transform-3d)")),t+="{#modernizr{left:9px;position:absolute;height:5px;margin:0;padding:0;border:0}}",z(t,function(n){e=9===n.offsetleft&&5===n.offsetheight})}return e}),modernizr.addtest("bgsizecover",g("backgroundsize","cover")),modernizr.addtest("borderradius",g("borderradius","0px",!0)),modernizr.addtest("boxshadow",g("boxshadow","1px 1px",!0)),modernizr.addtest("csstransforms",function(){return-1===navigator.useragent.indexof("android 2.")&&g("transform","scale(1)",!0)}),r(),s(y),delete b.addtest,delete b.addasynctest;for(var a=0;a0,p=r.vars.animation==="fade",d=r.vars.asnavfor!=="",v={},m=!0;e.data(t,"flexslider",r);v={init:function(){r.animating=!1;r.currentslide=parseint(r.vars.startat?r.vars.startat:0,10);isnan(r.currentslide)&&(r.currentslide=0);r.animatingto=r.currentslide;r.atend=r.currentslide===0||r.currentslide===r.last;r.containerselector=r.vars.selector.substr(0,r.vars.selector.search(" "));r.slides=e(r.vars.selector,r);r.container=e(r.containerselector,r);r.count=r.slides.length;r.syncexists=e(r.vars.sync).length>0;r.vars.animation==="slide"&&(r.vars.animation="swing");r.prop=l?"top":"marginleft";r.args={};r.manualpause=!1;r.stopped=!1;r.started=!1;r.starttimeout=null;r.transitions=!r.vars.video&&!p&&r.vars.usecss&&function(){var e=document.createelement("div"),t=["perspectiveproperty","webkitperspective","mozperspective","operspective","msperspective"];for(var n in t)if(e.style[t[n]]!==undefined){r.pfx=t[n].replace("perspective","").tolowercase();r.prop="-"+r.pfx+"-transform";return!0}return!1}();r.vars.controlscontainer!==""&&(r.controlscontainer=e(r.vars.controlscontainer).length>0&&e(r.vars.controlscontainer));r.vars.manualcontrols!==""&&(r.manualcontrols=e(r.vars.manualcontrols).length>0&&e(r.vars.manualcontrols));if(r.vars.randomize){r.slides.sort(function(){return math.round(math.random())-.5});r.container.empty().append(r.slides)}r.domath();r.setup("init");r.vars.controlnav&&v.controlnav.setup();r.vars.directionnav&&v.directionnav.setup();r.vars.keyboard&&(e(r.containerselector).length===1||r.vars.multiplekeyboard)&&e(document).bind("keyup",function(e){var t=e.keycode;if(!r.animating&&(t===39||t===37)){var n=t===39?r.gettarget("next"):t===37?r.gettarget("prev"):!1;r.flexanimate(n,r.vars.pauseonaction)}});r.vars.mousewheel&&r.bind("mousewheel",function(e,t,n,i){e.preventdefault();var s=t<0?r.gettarget("next"):r.gettarget("prev");r.flexanimate(s,r.vars.pauseonaction)});r.vars.pauseplay&&v.pauseplay.setup();r.vars.slideshow&&r.vars.pauseinvisible&&v.pauseinvisible.init();if(r.vars.slideshow){r.vars.pauseonhover&&r.hover(function(){!r.manualplay&&!r.manualpause&&r.pause()},function(){!r.manualpause&&!r.manualplay&&!r.stopped&&r.play()});if(!r.vars.pauseinvisible||!v.pauseinvisible.ishidden())r.vars.initdelay>0?r.starttimeout=settimeout(r.play,r.vars.initdelay):r.play()}d&&v.asnav.setup();o&&r.vars.touch&&v.touch();(!p||p&&r.vars.smoothheight)&&e(window).bind("resize orientationchange focus",v.resize);r.find("img").attr("draggable","false");settimeout(function(){r.vars.start(r)},200)},asnav:{setup:function(){r.asnav=!0;r.animatingto=math.floor(r.currentslide/r.move);r.currentitem=r.currentslide;r.slides.removeclass(i+"active-slide").eq(r.currentitem).addclass(i+"active-slide");if(!s)r.slides.on(u,function(t){t.preventdefault();var n=e(this),s=n.index(),o=n.offset().left-e(r).scrollleft();if(o<=0&&n.hasclass(i+"active-slide"))r.flexanimate(r.gettarget("prev"),!0);else if(!e(r.vars.asnavfor).data("flexslider").animating&&!n.hasclass(i+"active-slide")){r.direction=r.currentitem');if(r.pagingcount>1)for(var f=0;f':""+n+"";if("thumbnails"===r.vars.controlnav&&!0===r.vars.thumbcaptions){var l=o.attr("data-thumbcaption");""!=l&&undefined!=l&&(s+=''+l+"")}r.controlnavscaffold.append("
  • "+s+"
  • ");n++}r.controlscontainer?e(r.controlscontainer).append(r.controlnavscaffold):r.append(r.controlnavscaffold);v.controlnav.set();v.controlnav.active();r.controlnavscaffold.delegate("a, img",u,function(t){t.preventdefault();if(a===""||a===t.type){var n=e(this),s=r.controlnav.index(n);if(!n.hasclass(i+"active")){r.direction=s>r.currentslide?"next":"prev";r.flexanimate(s,r.vars.pauseonaction)}}a===""&&(a=t.type);v.settoclearwatchedevent()})},setupmanual:function(){r.controlnav=r.manualcontrols;v.controlnav.active();r.controlnav.bind(u,function(t){t.preventdefault();if(a===""||a===t.type){var n=e(this),s=r.controlnav.index(n);if(!n.hasclass(i+"active")){s>r.currentslide?r.direction="next":r.direction="prev";r.flexanimate(s,r.vars.pauseonaction)}}a===""&&(a=t.type);v.settoclearwatchedevent()})},set:function(){var t=r.vars.controlnav==="thumbnails"?"img":"a";r.controlnav=e("."+i+"control-nav li "+t,r.controlscontainer?r.controlscontainer:r)},active:function(){r.controlnav.removeclass(i+"active").eq(r.animatingto).addclass(i+"active")},update:function(t,n){r.pagingcount>1&&t==="add"?r.controlnavscaffold.append(e("
  • "+r.count+"
  • ")):r.pagingcount===1?r.controlnavscaffold.find("li").remove():r.controlnav.eq(n).closest("li").remove();v.controlnav.set();r.pagingcount>1&&r.pagingcount!==r.controlnav.length?r.update(n,t):v.controlnav.active()}},directionnav:{setup:function(){var t=e('");if(r.controlscontainer){e(r.controlscontainer).append(t);r.directionnav=e("."+i+"direction-nav li a",r.controlscontainer)}else{r.append(t);r.directionnav=e("."+i+"direction-nav li a",r)}v.directionnav.update();r.directionnav.bind(u,function(t){t.preventdefault();var n;if(a===""||a===t.type){n=e(this).hasclass(i+"next")?r.gettarget("next"):r.gettarget("prev");r.flexanimate(n,r.vars.pauseonaction)}a===""&&(a=t.type);v.settoclearwatchedevent()})},update:function(){var e=i+"disabled";r.pagingcount===1?r.directionnav.addclass(e).attr("tabindex","-1"):r.vars.animationloop?r.directionnav.removeclass(e).removeattr("tabindex"):r.animatingto===0?r.directionnav.removeclass(e).filter("."+i+"prev").addclass(e).attr("tabindex","-1"):r.animatingto===r.last?r.directionnav.removeclass(e).filter("."+i+"next").addclass(e).attr("tabindex","-1"):r.directionnav.removeclass(e).removeattr("tabindex")}},pauseplay:{setup:function(){var t=e('
    ');if(r.controlscontainer){r.controlscontainer.append(t);r.pauseplay=e("."+i+"pauseplay a",r.controlscontainer)}else{r.append(t);r.pauseplay=e("."+i+"pauseplay a",r)}v.pauseplay.update(r.vars.slideshow?i+"pause":i+"play");r.pauseplay.bind(u,function(t){t.preventdefault();if(a===""||a===t.type)if(e(this).hasclass(i+"pause")){r.manualpause=!0;r.manualplay=!1;r.pause()}else{r.manualpause=!1;r.manualplay=!0;r.play()}a===""&&(a=t.type);v.settoclearwatchedevent()})},update:function(e){e==="play"?r.pauseplay.removeclass(i+"pause").addclass(i+"play").html(r.vars.playtext):r.pauseplay.removeclass(i+"play").addclass(i+"pause").html(r.vars.pausetext)}},touch:function(){var e,n,i,o,u,a,f=!1,d=0,v=0,m=0;if(!s){t.addeventlistener("touchstart",g,!1);function g(s){if(r.animating)s.preventdefault();else if(window.navigator.mspointerenabled||s.touches.length===1){r.pause();o=l?r.h:r.w;a=number(new date);d=s.touches[0].pagex;v=s.touches[0].pagey;i=h&&c&&r.animatingto===r.last?0:h&&c?r.limit-(r.itemw+r.vars.itemmargin)*r.move*r.animatingto:h&&r.currentslide===r.last?r.limit:h?(r.itemw+r.vars.itemmargin)*r.move*r.currentslide:c?(r.last-r.currentslide+r.cloneoffset)*o:(r.currentslide+r.cloneoffset)*o;e=l?v:d;n=l?d:v;t.addeventlistener("touchmove",y,!1);t.addeventlistener("touchend",b,!1)}}function y(t){d=t.touches[0].pagex;v=t.touches[0].pagey;u=l?e-v:e-d;f=l?math.abs(u)s){t.preventdefault();if(!p&&r.transitions){r.vars.animationloop||(u/=r.currentslide===0&&u<0||r.currentslide===r.last&&u>0?math.abs(u)/o+2:1);r.setprops(i+u,"settouch")}}}function b(s){t.removeeventlistener("touchmove",y,!1);if(r.animatingto===r.currentslide&&!f&&u!==null){var l=c?-u:u,h=l>0?r.gettarget("next"):r.gettarget("prev");r.canadvance(h)&&(number(new date)-a<550&&math.abs(l)>50||math.abs(l)>o/2)?r.flexanimate(h,r.vars.pauseonaction):p||r.flexanimate(r.currentslide,r.vars.pauseonaction,!0)}t.removeeventlistener("touchend",b,!1);e=null;n=null;u=null;i=null}}else{t.style.mstouchaction="none";t._gesture=new msgesture;t._gesture.target=t;t.addeventlistener("mspointerdown",w,!1);t._slider=r;t.addeventlistener("msgesturechange",e,!1);t.addeventlistener("msgestureend",s,!1);function w(e){e.stoppropagation();if(r.animating)e.preventdefault();else{r.pause();t._gesture.addpointer(e.pointerid);m=0;o=l?r.h:r.w;a=number(new date);i=h&&c&&r.animatingto===r.last?0:h&&c?r.limit-(r.itemw+r.vars.itemmargin)*r.move*r.animatingto:h&&r.currentslide===r.last?r.limit:h?(r.itemw+r.vars.itemmargin)*r.move*r.currentslide:c?(r.last-r.currentslide+r.cloneoffset)*o:(r.currentslide+r.cloneoffset)*o}}function e(e){e.stoppropagation();var n=e.target._slider;if(!n)return;var r=-e.translationx,s=-e.translationy;m+=l?s:r;u=m;f=l?math.abs(m)500){e.preventdefault();if(!p&&n.transitions){n.vars.animationloop||(u=m/(n.currentslide===0&&m<0||n.currentslide===n.last&&m>0?math.abs(m)/o+2:1));n.setprops(i+u,"settouch")}}}function s(t){t.stoppropagation();var r=t.target._slider;if(!r)return;if(r.animatingto===r.currentslide&&!f&&u!==null){var s=c?-u:u,l=s>0?r.gettarget("next"):r.gettarget("prev");r.canadvance(l)&&(number(new date)-a<550&&math.abs(s)>50||math.abs(s)>o/2)?r.flexanimate(l,r.vars.pauseonaction):p||r.flexanimate(r.currentslide,r.vars.pauseonaction,!0)}e=null;n=null;u=null;i=null;m=0}}},resize:function(){if(!r.animating&&r.is(":visible")){h||r.domath();if(p)v.smoothheight();else if(h){r.slides.width(r.computedw);r.update(r.pagingcount);r.setprops()}else if(l){r.viewport.height(r.h);r.setprops(r.h,"settotal")}else{r.vars.smoothheight&&v.smoothheight();r.newslides.width(r.computedw);r.setprops(r.computedw,"settotal")}}},smoothheight:function(e){if(!l||p){var t=p?r:r.viewport;e?t.animate({height:r.slides.eq(r.animatingto).height()},e):t.height(r.slides.eq(r.animatingto).height())}},sync:function(t){var n=e(r.vars.sync).data("flexslider"),i=r.animatingto;switch(t){case"animate":n.flexanimate(i,r.vars.pauseonaction,!1,!0);break;case"play":!n.playing&&!n.asnav&&n.play();break;case"pause":n.pause()}},uniqueid:function(t){t.find("[id]").each(function(){var t=e(this);t.attr("id",t.attr("id")+"_clone")});return t},pauseinvisible:{visprop:null,init:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t0?settimeout(r.play,r.vars.initdelay):r.play()})}},ishidden:function(){return document[v.pauseinvisible.visprop]||!1}},settoclearwatchedevent:function(){cleartimeout(f);f=settimeout(function(){a=""},3e3)}};r.flexanimate=function(t,n,s,u,a){!r.vars.animationloop&&t!==r.currentslide&&(r.direction=t>r.currentslide?"next":"prev");d&&r.pagingcount===1&&(r.direction=r.currentitemr.limit&&r.visible!==1?r.limit:b}else r.currentslide===0&&t===r.count-1&&r.vars.animationloop&&r.direction!=="next"?y=c?(r.count+r.cloneoffset)*m:0:r.currentslide===r.last&&t===0&&r.vars.animationloop&&r.direction!=="prev"?y=c?0:(r.count+1)*m:y=c?(r.count-1-t+r.cloneoffset)*m:(t+r.cloneoffset)*m;r.setprops(y,"",r.vars.animationspeed);if(r.transitions){if(!r.vars.animationloop||!r.atend){r.animating=!1;r.currentslide=r.animatingto}r.container.unbind("webkittransitionend transitionend");r.container.bind("webkittransitionend transitionend",function(){r.wrapup(m)})}else r.container.animate(r.args,r.vars.animationspeed,r.vars.easing,function(){r.wrapup(m)})}else if(!o){r.slides.eq(r.currentslide).css({zindex:1}).animate({opacity:0},r.vars.animationspeed,r.vars.easing);r.slides.eq(t).css({zindex:2}).animate({opacity:1},r.vars.animationspeed,r.vars.easing,r.wrapup)}else{r.slides.eq(r.currentslide).css({opacity:0,zindex:1});r.slides.eq(t).css({opacity:1,zindex:2});r.wrapup(m)}r.vars.smoothheight&&v.smoothheight(r.vars.animationspeed)}};r.wrapup=function(e){!p&&!h&&(r.currentslide===0&&r.animatingto===r.last&&r.vars.animationloop?r.setprops(e,"jumpend"):r.currentslide===r.last&&r.animatingto===0&&r.vars.animationloop&&r.setprops(e,"jumpstart"));r.animating=!1;r.currentslide=r.animatingto;r.vars.after(r)};r.animateslides=function(){!r.animating&&m&&r.flexanimate(r.gettarget("next"))};r.pause=function(){clearinterval(r.animatedslides);r.animatedslides=null;r.playing=!1;r.vars.pauseplay&&v.pauseplay.update("play");r.syncexists&&v.sync("pause")};r.play=function(){r.playing&&clearinterval(r.animatedslides);r.animatedslides=r.animatedslides||setinterval(r.animateslides,r.vars.slideshowspeed);r.started=r.playing=!0;r.vars.pauseplay&&v.pauseplay.update("pause");r.syncexists&&v.sync("play")};r.stop=function(){r.pause();r.stopped=!0};r.canadvance=function(e,t){var n=d?r.pagingcount-1:r.last;return t?!0:d&&r.currentitem===r.count-1&&e===0&&r.direction==="prev"?!0:d&&r.currentitem===0&&e===r.pagingcount-1&&r.direction!=="next"?!1:e===r.currentslide&&!d?!1:r.vars.animationloop?!0:r.atend&&r.currentslide===0&&e===n&&r.direction!=="next"?!1:r.atend&&r.currentslide===n&&e===0&&r.direction==="next"?!1:!0};r.gettarget=function(e){r.direction=e;return e==="next"?r.currentslide===r.last?0:r.currentslide+1:r.currentslide===0?r.last:r.currentslide-1};r.setprops=function(e,t,n){var i=function(){var n=e?e:(r.itemw+r.vars.itemmargin)*r.move*r.animatingto,i=function(){if(h)return t==="settouch"?e:c&&r.animatingto===r.last?0:c?r.limit-(r.itemw+r.vars.itemmargin)*r.move*r.animatingto:r.animatingto===r.last?r.limit:n;switch(t){case"settotal":return c?(r.count-1-r.currentslide+r.cloneoffset)*e:(r.currentslide+r.cloneoffset)*e;case"settouch":return c?e:e;case"jumpend":return c?e:r.count*e;case"jumpstart":return c?r.count*e:e;default:return e}}();return i*-1+"px"}();if(r.transitions){i=l?"translate3d(0,"+i+",0)":"translate3d("+i+",0,0)";n=n!==undefined?n/1e3+"s":"0s";r.container.css("-"+r.pfx+"-transition-duration",n);r.container.css("transition-duration",n)}r.args[r.prop]=i;(r.transitions||n===undefined)&&r.container.css(r.args);r.container.css("transform",i)};r.setup=function(t){if(!p){var n,s;if(t==="init"){r.viewport=e('
    ').css({overflow:"hidden",position:"relative"}).appendto(r).append(r.container);r.clonecount=0;r.cloneoffset=0;if(c){s=e.makearray(r.slides).reverse();r.slides=e(s);r.container.empty().append(r.slides)}}if(r.vars.animationloop&&!h){r.clonecount=2;r.cloneoffset=1;t!=="init"&&r.container.find(".clone").remove();r.container.append(r.slides.first().clone().addclass("clone").attr("aria-hidden","true")).prepend(r.slides.last().clone().addclass("clone").attr("aria-hidden","true"));v.uniqueid(r.slides.first().clone().addclass("clone")).appendto(r.container);v.uniqueid(r.slides.last().clone().addclass("clone")).prependto(r.container)}r.newslides=e(r.vars.selector,r);n=c?r.count-1-r.currentslide+r.cloneoffset:r.currentslide+r.cloneoffset;if(l&&!h){r.container.height((r.count+r.clonecount)*200+"%").css("position","absolute").width("100%");settimeout(function(){r.newslides.css({display:"block"});r.domath();r.viewport.height(r.h);r.setprops(n*r.h,"init")},t==="init"?100:0)}else{r.container.width((r.count+r.clonecount)*200+"%");r.setprops(n*r.computedw,"init");settimeout(function(){r.domath();r.newslides.css({width:r.computedw,"float":"left",display:"block"});r.vars.smoothheight&&v.smoothheight()},t==="init"?100:0)}}else{r.slides.css({width:"100%","float":"left",marginright:"-100%",position:"relative"});t==="init"&&(o?r.slides.css({opacity:0,display:"block",webkittransition:"opacity "+r.vars.animationspeed/1e3+"s ease",zindex:1}).eq(r.currentslide).css({opacity:1,zindex:2}):r.slides.css({opacity:0,display:"block",zindex:1}).eq(r.currentslide).css({zindex:2}).animate({opacity:1},r.vars.animationspeed,r.vars.easing));r.vars.smoothheight&&v.smoothheight()}h||r.slides.removeclass(i+"active-slide").eq(r.currentslide).addclass(i+"active-slide");r.vars.init(r)};r.domath=function(){var e=r.slides.first(),t=r.vars.itemmargin,n=r.vars.minitems,i=r.vars.maxitems;r.w=r.viewport===undefined?r.width():r.viewport.width();r.h=e.height();r.boxpadding=e.outerwidth()-e.width();if(h){r.itemt=r.vars.itemwidth+t;r.minw=n?n*r.itemt:r.w;r.maxw=i?i*r.itemt-t:r.w;r.itemw=r.minw>r.w?(r.w-t*(n-1))/n:r.maxwr.w?r.w:r.vars.itemwidth;r.visible=math.floor(r.w/r.itemw);r.move=r.vars.move>0&&r.vars.mover.w?r.itemw*(r.count-1)+t*(r.count-1):(r.itemw+t)*r.count-r.w-t}else{r.itemw=r.w;r.pagingcount=r.count;r.last=r.count-1}r.computedw=r.itemw-r.boxpadding};r.update=function(e,t){r.domath();if(!h){er.controlnav.length)v.controlnav.update("add");else if(t==="remove"&&!h||r.pagingcountr.last){r.currentslide-=1;r.animatingto-=1}v.controlnav.update("remove",r.last)}r.vars.directionnav&&v.directionnav.update()};r.addslide=function(t,n){var i=e(t);r.count+=1;r.last=r.count-1;l&&c?n!==undefined?r.slides.eq(r.count-n).after(i):r.container.prepend(i):n!==undefined?r.slides.eq(n).before(i):r.container.append(i);r.update(n,"add");r.slides=e(r.vars.selector+":not(.clone)",r);r.setup();r.vars.added(r)};r.removeslide=function(t){var n=isnan(t)?r.slides.index(e(t)):t;r.count-=1;r.last=r.count-1;isnan(t)?e(t,r.slides).remove():l&&c?r.slides.eq(r.last).remove():r.slides.eq(t).remove();r.domath();r.update(n,"remove");r.slides=e(r.vars.selector+":not(.clone)",r);r.setup();r.vars.removed(r)};v.init()};e(window).blur(function(e){focused=!1}).focus(function(e){focused=!0});e.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationloop:!0,smoothheight:!1,startat:0,slideshow:!0,slideshowspeed:7e3,animationspeed:600,initdelay:0,randomize:!1,thumbcaptions:!1,pauseonaction:!0,pauseonhover:!1,pauseinvisible:!0,usecss:!0,touch:!0,video:!1,controlnav:!0,directionnav:!0,prevtext:"previous",nexttext:"next",keyboard:!0,multiplekeyboard:!1,mousewheel:!1,pauseplay:!1,pausetext:"pause",playtext:"play",controlscontainer:"",manualcontrols:"",sync:"",asnavfor:"",itemwidth:0,itemmargin:0,minitems:1,maxitems:0,move:0,allowoneslide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}};e.fn.flexslider=function(t){t===undefined&&(t={});if(typeof t=="object")return this.each(function(){var n=e(this),r=t.selector?t.selector:".slides > li",i=n.find(r);if(i.length===1&&t.allowoneslide===!0||i.length===0){i.fadein(400);t.start&&t.start(n)}else n.data("flexslider")===undefined&&new e.flexslider(this,t)});var n=e(this).data("flexslider");switch(t){case"play":n.play();break;case"pause":n.pause();break;case"stop":n.stop();break;case"next":n.flexanimate(n.gettarget("next"),!0);break;case"prev":case"previous":n.flexanimate(n.gettarget("prev"),!0);break;default:typeof t=="number"&&n.flexanimate(t,!0)}}})(jquery);(function(e){e.flexslider=function(t,n){var r=e(t);r.vars=e.extend({},e.flexslider.defaults,n);var i=r.vars.namespace,s=window.navigator&&window.navigator.mspointerenabled&&window.msgesture,o=("ontouchstart"in window||s||window.documenttouch&&document instanceof documenttouch)&&r.vars.touch,u="click touchend mspointerup",a="",f,l=r.vars.direction==="vertical",c=r.vars.reverse,h=r.vars.itemwidth>0,p=r.vars.animation==="fade",d=r.vars.asnavfor!=="",v={},m=!0;e.data(t,"flexslider",r);v={init:function(){r.animating=!1;r.currentslide=parseint(r.vars.startat?r.vars.startat:0,10);isnan(r.currentslide)&&(r.currentslide=0);r.animatingto=r.currentslide;r.atend=r.currentslide===0||r.currentslide===r.last;r.containerselector=r.vars.selector.substr(0,r.vars.selector.search(" "));r.slides=e(r.vars.selector,r);r.container=e(r.containerselector,r);r.count=r.slides.length;r.syncexists=e(r.vars.sync).length>0;r.vars.animation==="slide"&&(r.vars.animation="swing");r.prop=l?"top":"marginleft";r.args={};r.manualpause=!1;r.stopped=!1;r.started=!1;r.starttimeout=null;r.transitions=!r.vars.video&&!p&&r.vars.usecss&&function(){var e=document.createelement("div"),t=["perspectiveproperty","webkitperspective","mozperspective","operspective","msperspective"];for(var n in t)if(e.style[t[n]]!==undefined){r.pfx=t[n].replace("perspective","").tolowercase();r.prop="-"+r.pfx+"-transform";return!0}return!1}();r.vars.controlscontainer!==""&&(r.controlscontainer=e(r.vars.controlscontainer).length>0&&e(r.vars.controlscontainer));r.vars.manualcontrols!==""&&(r.manualcontrols=e(r.vars.manualcontrols).length>0&&e(r.vars.manualcontrols));if(r.vars.randomize){r.slides.sort(function(){return math.round(math.random())-.5});r.container.empty().append(r.slides)}r.domath();r.setup("init");r.vars.controlnav&&v.controlnav.setup();r.vars.directionnav&&v.directionnav.setup();r.vars.keyboard&&(e(r.containerselector).length===1||r.vars.multiplekeyboard)&&e(document).bind("keyup",function(e){var t=e.keycode;if(!r.animating&&(t===39||t===37)){var n=t===39?r.gettarget("next"):t===37?r.gettarget("prev"):!1;r.flexanimate(n,r.vars.pauseonaction)}});r.vars.mousewheel&&r.bind("mousewheel",function(e,t,n,i){e.preventdefault();var s=t<0?r.gettarget("next"):r.gettarget("prev");r.flexanimate(s,r.vars.pauseonaction)});r.vars.pauseplay&&v.pauseplay.setup();r.vars.slideshow&&r.vars.pauseinvisible&&v.pauseinvisible.init();if(r.vars.slideshow){r.vars.pauseonhover&&r.hover(function(){!r.manualplay&&!r.manualpause&&r.pause()},function(){!r.manualpause&&!r.manualplay&&!r.stopped&&r.play()});if(!r.vars.pauseinvisible||!v.pauseinvisible.ishidden())r.vars.initdelay>0?r.starttimeout=settimeout(r.play,r.vars.initdelay):r.play()}d&&v.asnav.setup();o&&r.vars.touch&&v.touch();(!p||p&&r.vars.smoothheight)&&e(window).bind("resize orientationchange focus",v.resize);r.find("img").attr("draggable","false");settimeout(function(){r.vars.start(r)},200)},asnav:{setup:function(){r.asnav=!0;r.animatingto=math.floor(r.currentslide/r.move);r.currentitem=r.currentslide;r.slides.removeclass(i+"active-slide").eq(r.currentitem).addclass(i+"active-slide");if(!s)r.slides.on(u,function(t){t.preventdefault();var n=e(this),s=n.index(),o=n.offset().left-e(r).scrollleft();if(o<=0&&n.hasclass(i+"active-slide"))r.flexanimate(r.gettarget("prev"),!0);else if(!e(r.vars.asnavfor).data("flexslider").animating&&!n.hasclass(i+"active-slide")){r.direction=r.currentitem');if(r.pagingcount>1)for(var f=0;f':""+n+"";if("thumbnails"===r.vars.controlnav&&!0===r.vars.thumbcaptions){var l=o.attr("data-thumbcaption");""!=l&&undefined!=l&&(s+=''+l+"")}r.controlnavscaffold.append("
  • "+s+"
  • ");n++}r.controlscontainer?e(r.controlscontainer).append(r.controlnavscaffold):r.append(r.controlnavscaffold);v.controlnav.set();v.controlnav.active();r.controlnavscaffold.delegate("a, img",u,function(t){t.preventdefault();if(a===""||a===t.type){var n=e(this),s=r.controlnav.index(n);if(!n.hasclass(i+"active")){r.direction=s>r.currentslide?"next":"prev";r.flexanimate(s,r.vars.pauseonaction)}}a===""&&(a=t.type);v.settoclearwatchedevent()})},setupmanual:function(){r.controlnav=r.manualcontrols;v.controlnav.active();r.controlnav.bind(u,function(t){t.preventdefault();if(a===""||a===t.type){var n=e(this),s=r.controlnav.index(n);if(!n.hasclass(i+"active")){s>r.currentslide?r.direction="next":r.direction="prev";r.flexanimate(s,r.vars.pauseonaction)}}a===""&&(a=t.type);v.settoclearwatchedevent()})},set:function(){var t=r.vars.controlnav==="thumbnails"?"img":"a";r.controlnav=e("."+i+"control-nav li "+t,r.controlscontainer?r.controlscontainer:r)},active:function(){r.controlnav.removeclass(i+"active").eq(r.animatingto).addclass(i+"active")},update:function(t,n){r.pagingcount>1&&t==="add"?r.controlnavscaffold.append(e("
  • "+r.count+"
  • ")):r.pagingcount===1?r.controlnavscaffold.find("li").remove():r.controlnav.eq(n).closest("li").remove();v.controlnav.set();r.pagingcount>1&&r.pagingcount!==r.controlnav.length?r.update(n,t):v.controlnav.active()}},directionnav:{setup:function(){var t=e('");if(r.controlscontainer){e(r.controlscontainer).append(t);r.directionnav=e("."+i+"direction-nav li a",r.controlscontainer)}else{r.append(t);r.directionnav=e("."+i+"direction-nav li a",r)}v.directionnav.update();r.directionnav.bind(u,function(t){t.preventdefault();var n;if(a===""||a===t.type){n=e(this).hasclass(i+"next")?r.gettarget("next"):r.gettarget("prev");r.flexanimate(n,r.vars.pauseonaction)}a===""&&(a=t.type);v.settoclearwatchedevent()})},update:function(){var e=i+"disabled";r.pagingcount===1?r.directionnav.addclass(e).attr("tabindex","-1"):r.vars.animationloop?r.directionnav.removeclass(e).removeattr("tabindex"):r.animatingto===0?r.directionnav.removeclass(e).filter("."+i+"prev").addclass(e).attr("tabindex","-1"):r.animatingto===r.last?r.directionnav.removeclass(e).filter("."+i+"next").addclass(e).attr("tabindex","-1"):r.directionnav.removeclass(e).removeattr("tabindex")}},pauseplay:{setup:function(){var t=e('
    ');if(r.controlscontainer){r.controlscontainer.append(t);r.pauseplay=e("."+i+"pauseplay a",r.controlscontainer)}else{r.append(t);r.pauseplay=e("."+i+"pauseplay a",r)}v.pauseplay.update(r.vars.slideshow?i+"pause":i+"play");r.pauseplay.bind(u,function(t){t.preventdefault();if(a===""||a===t.type)if(e(this).hasclass(i+"pause")){r.manualpause=!0;r.manualplay=!1;r.pause()}else{r.manualpause=!1;r.manualplay=!0;r.play()}a===""&&(a=t.type);v.settoclearwatchedevent()})},update:function(e){e==="play"?r.pauseplay.removeclass(i+"pause").addclass(i+"play").html(r.vars.playtext):r.pauseplay.removeclass(i+"play").addclass(i+"pause").html(r.vars.pausetext)}},touch:function(){var e,n,i,o,u,a,f=!1,d=0,v=0,m=0;if(!s){t.addeventlistener("touchstart",g,!1);function g(s){if(r.animating)s.preventdefault();else if(window.navigator.mspointerenabled||s.touches.length===1){r.pause();o=l?r.h:r.w;a=number(new date);d=s.touches[0].pagex;v=s.touches[0].pagey;i=h&&c&&r.animatingto===r.last?0:h&&c?r.limit-(r.itemw+r.vars.itemmargin)*r.move*r.animatingto:h&&r.currentslide===r.last?r.limit:h?(r.itemw+r.vars.itemmargin)*r.move*r.currentslide:c?(r.last-r.currentslide+r.cloneoffset)*o:(r.currentslide+r.cloneoffset)*o;e=l?v:d;n=l?d:v;t.addeventlistener("touchmove",y,!1);t.addeventlistener("touchend",b,!1)}}function y(t){d=t.touches[0].pagex;v=t.touches[0].pagey;u=l?e-v:e-d;f=l?math.abs(u)s){t.preventdefault();if(!p&&r.transitions){r.vars.animationloop||(u/=r.currentslide===0&&u<0||r.currentslide===r.last&&u>0?math.abs(u)/o+2:1);r.setprops(i+u,"settouch")}}}function b(s){t.removeeventlistener("touchmove",y,!1);if(r.animatingto===r.currentslide&&!f&&u!==null){var l=c?-u:u,h=l>0?r.gettarget("next"):r.gettarget("prev");r.canadvance(h)&&(number(new date)-a<550&&math.abs(l)>50||math.abs(l)>o/2)?r.flexanimate(h,r.vars.pauseonaction):p||r.flexanimate(r.currentslide,r.vars.pauseonaction,!0)}t.removeeventlistener("touchend",b,!1);e=null;n=null;u=null;i=null}}else{t.style.mstouchaction="none";t._gesture=new msgesture;t._gesture.target=t;t.addeventlistener("mspointerdown",w,!1);t._slider=r;t.addeventlistener("msgesturechange",e,!1);t.addeventlistener("msgestureend",s,!1);function w(e){e.stoppropagation();if(r.animating)e.preventdefault();else{r.pause();t._gesture.addpointer(e.pointerid);m=0;o=l?r.h:r.w;a=number(new date);i=h&&c&&r.animatingto===r.last?0:h&&c?r.limit-(r.itemw+r.vars.itemmargin)*r.move*r.animatingto:h&&r.currentslide===r.last?r.limit:h?(r.itemw+r.vars.itemmargin)*r.move*r.currentslide:c?(r.last-r.currentslide+r.cloneoffset)*o:(r.currentslide+r.cloneoffset)*o}}function e(e){e.stoppropagation();var n=e.target._slider;if(!n)return;var r=-e.translationx,s=-e.translationy;m+=l?s:r;u=m;f=l?math.abs(m)500){e.preventdefault();if(!p&&n.transitions){n.vars.animationloop||(u=m/(n.currentslide===0&&m<0||n.currentslide===n.last&&m>0?math.abs(m)/o+2:1));n.setprops(i+u,"settouch")}}}function s(t){t.stoppropagation();var r=t.target._slider;if(!r)return;if(r.animatingto===r.currentslide&&!f&&u!==null){var s=c?-u:u,l=s>0?r.gettarget("next"):r.gettarget("prev");r.canadvance(l)&&(number(new date)-a<550&&math.abs(s)>50||math.abs(s)>o/2)?r.flexanimate(l,r.vars.pauseonaction):p||r.flexanimate(r.currentslide,r.vars.pauseonaction,!0)}e=null;n=null;u=null;i=null;m=0}}},resize:function(){if(!r.animating&&r.is(":visible")){h||r.domath();if(p)v.smoothheight();else if(h){r.slides.width(r.computedw);r.update(r.pagingcount);r.setprops()}else if(l){r.viewport.height(r.h);r.setprops(r.h,"settotal")}else{r.vars.smoothheight&&v.smoothheight();r.newslides.width(r.computedw );r.setprops(r.computedw,"settotal")}}},smoothheight:function(e){if(!l||p){var t=p?r:r.viewport;e?t.animate({height:r.slides.eq(r.animatingto).height()},e):t.height(r.slides.eq(r.animatingto).height())}},sync:function(t){var n=e(r.vars.sync).data("flexslider"),i=r.animatingto;switch(t){case"animate":n.flexanimate(i,r.vars.pauseonaction,!1,!0);break;case"play":!n.playing&&!n.asnav&&n.play();break;case"pause":n.pause()}},uniqueid:function(t){t.find("[id]").each(function(){var t=e(this);t.attr("id",t.attr("id")+"_clone")});return t},pauseinvisible:{visprop:null,init:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t0?settimeout(r.play,r.vars.initdelay):r.play()})}},ishidden:function(){return document[v.pauseinvisible.visprop]||!1}},settoclearwatchedevent:function(){cleartimeout(f);f=settimeout(function(){a=""},3e3)}};r.flexanimate=function(t,n,s,u,a){!r.vars.animationloop&&t!==r.currentslide&&(r.direction=t>r.currentslide?"next":"prev");d&&r.pagingcount===1&&(r.direction=r.currentitemr.limit&&r.visible!==1?r.limit:b}else r.currentslide===0&&t===r.count-1&&r.vars.animationloop&&r.direction!=="next"?y=c?(r.count+r.cloneoffset)*m:0:r.currentslide===r.last&&t===0&&r.vars.animationloop&&r.direction!=="prev"?y=c?0:(r.count+1)*m:y=c?(r.count-1-t+r.cloneoffset)*m:(t+r.cloneoffset)*m;r.setprops(y,"",r.vars.animationspeed);if(r.transitions){if(!r.vars.animationloop||!r.atend){r.animating=!1;r.currentslide=r.animatingto}r.container.unbind("webkittransitionend transitionend");r.container.bind("webkittransitionend transitionend",function(){r.wrapup(m)})}else r.container.animate(r.args,r.vars.animationspeed,r.vars.easing,function(){r.wrapup(m)})}else if(!o){r.slides.eq(r.currentslide).css({zindex:1}).animate({opacity:0},r.vars.animationspeed,r.vars.easing);r.slides.eq(t).css({zindex:2}).animate({opacity:1},r.vars.animationspeed,r.vars.easing,r.wrapup)}else{r.slides.eq(r.currentslide).css({opacity:0,zindex:1});r.slides.eq(t).css({opacity:1,zindex:2});r.wrapup(m)}r.vars.smoothheight&&v.smoothheight(r.vars.animationspeed)}};r.wrapup=function(e){!p&&!h&&(r.currentslide===0&&r.animatingto===r.last&&r.vars.animationloop?r.setprops(e,"jumpend"):r.currentslide===r.last&&r.animatingto===0&&r.vars.animationloop&&r.setprops(e,"jumpstart"));r.animating=!1;r.currentslide=r.animatingto;r.vars.after(r)};r.animateslides=function(){!r.animating&&m&&r.flexanimate(r.gettarget("next"))};r.pause=function(){clearinterval(r.animatedslides);r.animatedslides=null;r.playing=!1;r.vars.pauseplay&&v.pauseplay.update("play");r.syncexists&&v.sync("pause")};r.play=function(){r.playing&&clearinterval(r.animatedslides);r.animatedslides=r.animatedslides||setinterval(r.animateslides,r.vars.slideshowspeed);r.started=r.playing=!0;r.vars.pauseplay&&v.pauseplay.update("pause");r.syncexists&&v.sync("play")};r.stop=function(){r.pause();r.stopped=!0};r.canadvance=function(e,t){var n=d?r.pagingcount-1:r.last;return t?!0:d&&r.currentitem===r.count-1&&e===0&&r.direction==="prev"?!0:d&&r.currentitem===0&&e===r.pagingcount-1&&r.direction!=="next"?!1:e===r.currentslide&&!d?!1:r.vars.animationloop?!0:r.atend&&r.currentslide===0&&e===n&&r.direction!=="next"?!1:r.atend&&r.currentslide===n&&e===0&&r.direction==="next"?!1:!0};r.gettarget=function(e){r.direction=e;return e==="next"?r.currentslide===r.last?0:r.currentslide+1:r.currentslide===0?r.last:r.currentslide-1};r.setprops=function(e,t,n){var i=function(){var n=e?e:(r.itemw+r.vars.itemmargin)*r.move*r.animatingto,i=function(){if(h)return t==="settouch"?e:c&&r.animatingto===r.last?0:c?r.limit-(r.itemw+r.vars.itemmargin)*r.move*r.animatingto:r.animatingto===r.last?r.limit:n;switch(t){case"settotal":return c?(r.count-1-r.currentslide+r.cloneoffset)*e:(r.currentslide+r.cloneoffset)*e;case"settouch":return c?e:e;case"jumpend":return c?e:r.count*e;case"jumpstart":return c?r.count*e:e;default:return e}}();return i*-1+"px"}();if(r.transitions){i=l?"translate3d(0,"+i+",0)":"translate3d("+i+",0,0)";n=n!==undefined?n/1e3+"s":"0s";r.container.css("-"+r.pfx+"-transition-duration",n);r.container.css("transition-duration",n)}r.args[r.prop]=i;(r.transitions||n===undefined)&&r.container.css(r.args);r.container.css("transform",i)};r.setup=function(t){if(!p){var n,s;if(t==="init"){r.viewport=e('
    ').css({overflow:"hidden",position:"relative"}).appendto(r).append(r.container);r.clonecount=0;r.cloneoffset=0;if(c){s=e.makearray(r.slides).reverse();r.slides=e(s);r.container.empty().append(r.slides)}}if(r.vars.animationloop&&!h){r.clonecount=2;r.cloneoffset=1;t!=="init"&&r.container.find(".clone").remove();r.container.append(r.slides.first().clone().addclass("clone").attr("aria-hidden","true")).prepend(r.slides.last().clone().addclass("clone").attr("aria-hidden","true"));v.uniqueid(r.slides.first().clone().addclass("clone")).appendto(r.container);v.uniqueid(r.slides.last().clone().addclass("clone")).prependto(r.container)}r.newslides=e(r.vars.selector,r);n=c?r.count-1-r.currentslide+r.cloneoffset:r.currentslide+r.cloneoffset;if(l&&!h){r.container.height((r.count+r.clonecount)*200+"%").css("position","absolute").width("100%");settimeout(function(){r.newslides.css({display:"block"});r.domath();r.viewport.height(r.h);r.setprops(n*r.h,"init")},t==="init"?100:0)}else{r.container.width((r.count+r.clonecount)*200+"%");r.setprops(n*r.computedw,"init");settimeout(function(){r.domath();r.newslides.css({width:r.computedw,"float":"left",display:"block"});r.vars.smoothheight&&v.smoothheight()},t==="init"?100:0)}}else{r.slides.css({width:"100%","float":"left",marginright:"-100%",position:"relative"});t==="init"&&(o?r.slides.css({opacity:0,display:"block",webkittransition:"opacity "+r.vars.animationspeed/1e3+"s ease",zindex:1}).eq(r.currentslide).css({opacity:1,zindex:2}):r.slides.css({opacity:0,display:"block",zindex:1}).eq(r.currentslide).css({zindex:2}).animate({opacity:1},r.vars.animationspeed,r.vars.easing));r.vars.smoothheight&&v.smoothheight()}h||r.slides.removeclass(i+"active-slide").eq(r.currentslide).addclass(i+"active-slide");r.vars.init(r)};r.domath=function(){var e=r.slides.first(),t=r.vars.itemmargin,n=r.vars.minitems,i=r.vars.maxitems;r.w=r.viewport===undefined?r.width():r.viewport.width();r.h=e.height();r.boxpadding=e.outerwidth()-e.width();if(h){r.itemt=r.vars.itemwidth+t;r.minw=n?n*r.itemt:r.w;r.maxw=i?i*r.itemt-t:r.w;r.itemw=r.minw>r.w?(r.w-t*(n-1))/n:r.maxwr.w?r.w:r.vars.itemwidth;r.visible=math.floor(r.w/r.itemw);r.move=r.vars.move>0&&r.vars.mover.w?r.itemw*(r.count-1)+t*(r.count-1):(r.itemw+t)*r.count-r.w-t}else{r.itemw=r.w;r.pagingcount=r.count;r.last=r.count-1}r.computedw=r.itemw-r.boxpadding};r.update=function(e,t){r.domath();if(!h){er.controlnav.length)v.controlnav.update("add");else if(t==="remove"&&!h||r.pagingcountr.last){r.currentslide-=1;r.animatingto-=1}v.controlnav.update("remove",r.last)}r.vars.directionnav&&v.directionnav.update()};r.addslide=function(t,n){var i=e(t);r.count+=1;r.last=r.count-1;l&&c?n!==undefined?r.slides.eq(r.count-n).after(i):r.container.prepend(i):n!==undefined?r.slides.eq(n).before(i):r.container.append(i);r.update(n,"add");r.slides=e(r.vars.selector+":not(.clone)",r);r.setup();r.vars.added(r)};r.removeslide=function(t){var n=isnan(t)?r.slides.index(e(t)):t;r.count-=1;r.last=r.count-1;isnan(t)?e(t,r.slides).remove():l&&c?r.slides.eq(r.last).remove():r.slides.eq(t).remove();r.domath();r.update(n,"remove");r.slides=e(r.vars.selector+":not(.clone)",r);r.setup();r.vars.removed(r)};v.init()};e(window).blur(function(e){focused=!1}).focus(function(e){focused=!0});e.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationloop:!0,smoothheight:!1,startat:0,slideshow:!0,slideshowspeed:7e3,animationspeed:600,initdelay:0,randomize:!1,thumbcaptions:!1,pauseonaction:!0,pauseonhover:!1,pauseinvisible:!0,usecss:!0,touch:!0,video:!1,controlnav:!0,directionnav:!0,prevtext:"previous",nexttext:"next",keyboard:!0,multiplekeyboard:!1,mousewheel:!1,pauseplay:!1,pausetext:"pause",playtext:"play",controlscontainer:"",manualcontrols:"",sync:"",asnavfor:"",itemwidth:0,itemmargin:0,minitems:1,maxitems:0,move:0,allowoneslide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}};e.fn.flexslider=function(t){t===undefined&&(t={});if(typeof t=="object")return this.each(function(){var n=e(this),r=t.selector?t.selector:".slides > li",i=n.find(r);if(i.length===1&&t.allowoneslide===!0||i.length===0){i.fadein(400);t.start&&t.start(n)}else n.data("flexslider")===undefined&&new e.flexslider(this,t)});var n=e(this).data("flexslider");switch(t){case"play":n.play();break;case"pause":n.pause();break;case"stop":n.stop();break;case"next":n.flexanimate(n.gettarget("next"),!0);break;case"prev":case"previous":n.flexanimate(n.gettarget("prev"),!0);break;default:typeof t=="number"&&n.flexanimate(t,!0)}}})(jquery); /* _ _ _ _ ___| (_) ___| | __ (_)___ / __| | |/ __| |/ / | / __| \__ \ | | (__| < _ | \__ \ |___/_|_|\___|_|\_(_)/ |___/ |__/ */ /* global window, document, define, jquery, setinterval, clearinterval */ (function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],factory)}else{if(typeof exports!=="undefined"){module.exports=factory(require("jquery"))}else{factory(jquery)}}}(function($){var slick=window.slick||{};slick=(function(){var instanceuid=0;function slick(element,settings){var _=this,datasettings;_.defaults={accessibility:true,adaptiveheight:false,appendarrows:$(element),appenddots:$(element),arrows:true,asnavfor:null,prevarrow:'',nextarrow:'',autoplay:false,autoplayspeed:3000,centermode:false,centerpadding:"50px",cssease:"ease",custompaging:function(slider,i){return $('')},dots:false,dotsclass:"slick-dots",draggable:true,easing:"linear",edgefriction:0.35,fade:false,focusonselect:false,infinite:true,initialslide:0,lazyload:"ondemand",mobilefirst:false,pauseonhover:false,pauseonfocus:false,pauseondotshover:false,respondto:"window",responsive:null,rows:1,rtl:false,slide:"",slidesperrow:1,slidestoshow:1,slidestoscroll:1,speed:500,swipe:true,swipetoslide:false,touchmove:true,touchthreshold:5,usecss:true,usetransform:true,variablewidth:false,vertical:false,verticalswiping:false,waitforanimate:true,zindex:1000};_.initials={animating:false,dragging:false,autoplaytimer:null,currentdirection:0,currentleft:null,currentslide:0,direction:1,$dots:null,listwidth:null,listheight:null,loadindex:0,$nextarrow:null,$prevarrow:null,slidecount:null,slidewidth:null,$slidetrack:null,$slides:null,sliding:false,slideoffset:0,swipeleft:null,$list:null,touchobject:{},transformsenabled:false,unslicked:false};$.extend(_,_.initials);_.activebreakpoint=null;_.animtype=null;_.animprop=null;_.breakpoints=[];_.breakpointsettings=[];_.csstransitions=false;_.focussed=false;_.interrupted=false;_.hidden="hidden";_.paused=true;_.positionprop=null;_.respondto=null;_.rowcount=1;_.shouldclick=true;_.$slider=$(element);_.$slidescache=null;_.transformtype=null;_.transitiontype=null;_.visibilitychange="visibilitychange";_.windowwidth=0;_.windowtimer=null;datasettings=$(element).data("slick")||{};_.options=$.extend({},_.defaults,settings,datasettings);_.currentslide=_.options.initialslide;_.originalsettings=_.options;if(typeof document.mozhidden!=="undefined"){_.hidden="mozhidden";_.visibilitychange="mozvisibilitychange"}else{if(typeof document.webkithidden!=="undefined"){_.hidden="webkithidden";_.visibilitychange="webkitvisibilitychange"}}_.autoplay=$.proxy(_.autoplay,_);_.autoplayclear=$.proxy(_.autoplayclear,_);_.autoplayiterator=$.proxy(_.autoplayiterator,_);_.changeslide=$.proxy(_.changeslide,_);_.clickhandler=$.proxy(_.clickhandler,_);_.selecthandler=$.proxy(_.selecthandler,_);_.setposition=$.proxy(_.setposition,_);_.swipehandler=$.proxy(_.swipehandler,_);_.draghandler=$.proxy(_.draghandler,_);_.keyhandler=$.proxy(_.keyhandler,_);_.instanceuid=instanceuid++;_.htmlexpr=/^(?:\s*(<[\w\w]+>)[^>]*)$/;_.registerbreakpoints();_.init(true)}return slick}());slick.prototype.activateada=function(){var _=this;_.$slidetrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({"tabindex":"0"})};slick.prototype.addslide=slick.prototype.slickadd=function(markup,index,addbefore){var _=this;if(typeof(index)==="boolean"){addbefore=index;index=null}else{if(index<0||(index>=_.slidecount)){return false}}_.unload();if(typeof(index)==="number"){if(index===0&&_.$slides.length===0){$(markup).appendto(_.$slidetrack)}else{if(addbefore){$(markup).insertbefore(_.$slides.eq(index))}else{$(markup).insertafter(_.$slides.eq(index))}}}else{if(addbefore===true){$(markup).prependto(_.$slidetrack)}else{$(markup).appendto(_.$slidetrack)}}_.$slides=_.$slidetrack.children(this.options.slide);_.$slidetrack.children(this.options.slide).detach();_.$slidetrack.append(_.$slides);_.$slides.each(function(index,element){$(element).attr("data-slick-index",index)});_.$slidescache=_.$slides;_.reinit()};slick.prototype.animateheight=function(){var _=this;if(_.options.slidestoshow===1&&_.options.adaptiveheight===true&&_.options.vertical===false){var targetheight=_.$slides.eq(_.currentslide).outerheight(true);_.$list.animate({height:targetheight},_.options.speed)}};slick.prototype.animateslide=function(targetleft,callback){var animprops={},_=this;_.animateheight();if(_.options.rtl===true&&_.options.vertical===false){targetleft=-targetleft}if(_.transformsenabled===false){if(_.options.vertical===false){_.$slidetrack.animate({left:targetleft},_.options.speed,_.options.easing,callback)}else{_.$slidetrack.animate({top:targetleft},_.options.speed,_.options.easing,callback)}}else{if(_.csstransitions===false){if(_.options.rtl===true){_.currentleft=-(_.currentleft)}$({animstart:_.currentleft}).animate({animstart:targetleft},{duration:_.options.speed,easing:_.options.easing,step:function(now){now=math.ceil(now);if(_.options.vertical===false){animprops[_.animtype]="translate("+now+"px, 0px)"; _.$slidetrack.css(animprops)}else{animprops[_.animtype]="translate(0px,"+now+"px)";_.$slidetrack.css(animprops)}},complete:function(){if(callback){callback.call()}}})}else{_.applytransition();targetleft=math.ceil(targetleft);if(_.options.vertical===false){animprops[_.animtype]="translate3d("+targetleft+"px, 0px, 0px)"}else{animprops[_.animtype]="translate3d(0px,"+targetleft+"px, 0px)"}_.$slidetrack.css(animprops);if(callback){settimeout(function(){_.disabletransition();callback.call()},_.options.speed)}}}};slick.prototype.getnavtarget=function(){var _=this,asnavfor=_.options.asnavfor;if(asnavfor&&asnavfor!==null){asnavfor=$(asnavfor).not(_.$slider)}return asnavfor};slick.prototype.asnavfor=function(index){var _=this,asnavfor=_.getnavtarget();if(asnavfor!==null&&typeof asnavfor==="object"){asnavfor.each(function(){var target=$(this).slick("getslick");if(!target.unslicked){target.slidehandler(index,true)}})}};slick.prototype.applytransition=function(slide){var _=this,transition={};if(_.options.fade===false){transition[_.transitiontype]=_.transformtype+" "+_.options.speed+"ms "+_.options.cssease}else{transition[_.transitiontype]="opacity "+_.options.speed+"ms "+_.options.cssease}if(_.options.fade===false){_.$slidetrack.css(transition)}else{_.$slides.eq(slide).css(transition)}};slick.prototype.autoplay=function(){var _=this;_.autoplayclear();if(_.slidecount>_.options.slidestoshow){_.autoplaytimer=setinterval(_.autoplayiterator,_.options.autoplayspeed)}};slick.prototype.autoplayclear=function(){var _=this;if(_.autoplaytimer){clearinterval(_.autoplaytimer)}};slick.prototype.autoplayiterator=function(){var _=this,slideto=_.currentslide+_.options.slidestoscroll;if(!_.paused&&!_.interrupted&&!_.focussed){if(_.options.infinite===false){if(_.direction===1&&(_.currentslide+1)===(_.slidecount-1)){_.direction=0}else{if(_.direction===0){slideto=_.currentslide-_.options.slidestoscroll;if(_.currentslide-1===0){_.direction=1}}}}_.slidehandler(slideto)}};slick.prototype.buildarrows=function(){var _=this;if(_.options.arrows===true){_.$prevarrow=$(_.options.prevarrow).addclass("slick-arrow");_.$nextarrow=$(_.options.nextarrow).addclass("slick-arrow");if(_.slidecount>_.options.slidestoshow){_.$prevarrow.removeclass("slick-hidden").removeattr("aria-hidden tabindex");_.$nextarrow.removeclass("slick-hidden").removeattr("aria-hidden tabindex");if(_.htmlexpr.test(_.options.prevarrow)){_.$prevarrow.prependto(_.options.appendarrows)}if(_.htmlexpr.test(_.options.nextarrow)){_.$nextarrow.appendto(_.options.appendarrows)}if(_.options.infinite!==true){_.$prevarrow.addclass("slick-disabled").attr("aria-disabled","true")}}else{_.$prevarrow.add(_.$nextarrow).addclass("slick-hidden").attr({"aria-disabled":"true","tabindex":"-1"})}}};slick.prototype.builddots=function(){var _=this,i,dot;if(_.options.dots===true&&_.slidecount>_.options.slidestoshow){_.$slider.addclass("slick-dotted");dot=$("
      ").addclass(_.options.dotsclass);for(i=0;i<=_.getdotcount();i+=1){dot.append($("
    • ").append(_.options.custompaging.call(this,_,i)))}_.$dots=dot.appendto(_.options.appenddots);_.$dots.find("li").first().addclass("slick-active").attr("aria-hidden","false")}};slick.prototype.buildout=function(){var _=this;_.$slides=_.$slider.children(_.options.slide+":not(.slick-cloned)").addclass("slick-slide");_.slidecount=_.$slides.length;_.$slides.each(function(index,element){$(element).attr("data-slick-index",index).data("originalstyling",$(element).attr("style")||"")});_.$slider.addclass("slick-slider");_.$slidetrack=(_.slidecount===0)?$('
      ').appendto(_.$slider):_.$slides.wrapall('
      ').parent();_.$list=_.$slidetrack.wrap('
      ').parent();_.$slidetrack.css("opacity",0);if(_.options.centermode===true||_.options.swipetoslide===true){_.options.slidestoscroll=1}$("img[data-lazy]",_.$slider).not("[src]").addclass("slick-loading");_.setupinfinite();_.buildarrows();_.builddots();_.updatedots();_.setslideclasses(typeof _.currentslide==="number"?_.currentslide:0);if(_.options.draggable===true){_.$list.addclass("draggable")}};slick.prototype.buildrows=function(){var _=this,a,b,c,newslides,numofslides,originalslides,slidespersection;newslides=document.createdocumentfragment();originalslides=_.$slider.children();if(_.options.rows>1){slidespersection=_.options.slidesperrow*_.options.rows;numofslides=math.ceil(originalslides.length/slidespersection);for(a=0;a_.breakpoints[breakpoint]){targetbreakpoint=_.breakpoints[breakpoint]}}}}if(targetbreakpoint!==null){if(_.activebreakpoint!==null){if(targetbreakpoint!==_.activebreakpoint||forceupdate){_.activebreakpoint=targetbreakpoint;if(_.breakpointsettings[targetbreakpoint]==="unslick"){_.unslick(targetbreakpoint)}else{_.options=$.extend({},_.originalsettings,_.breakpointsettings[targetbreakpoint]);if(initial===true){_.currentslide=_.options.initialslide}_.refresh(initial)}triggerbreakpoint=targetbreakpoint}}else{_.activebreakpoint=targetbreakpoint;if(_.breakpointsettings[targetbreakpoint]==="unslick"){_.unslick(targetbreakpoint)}else{_.options=$.extend({},_.originalsettings,_.breakpointsettings[targetbreakpoint]);if(initial===true){_.currentslide=_.options.initialslide}_.refresh(initial)}triggerbreakpoint=targetbreakpoint}}else{if(_.activebreakpoint!==null){_.activebreakpoint=null;_.options=_.originalsettings;if(initial===true){_.currentslide=_.options.initialslide}_.refresh(initial);triggerbreakpoint=targetbreakpoint}}if(!initial&&triggerbreakpoint!==false){_.$slider.trigger("breakpoint",[_,triggerbreakpoint])}}};slick.prototype.changeslide=function(event,dontanimate){var _=this,$target=$(event.currenttarget),indexoffset,slideoffset,unevenoffset;if($target.is("a")){event.preventdefault()}if(!$target.is("li")){$target=$target.closest("li")}unevenoffset=(_.slidecount%_.options.slidestoscroll!==0);indexoffset=unevenoffset?0:(_.slidecount-_.currentslide)%_.options.slidestoscroll;switch(event.data.message){case"previous":slideoffset=indexoffset===0?_.options.slidestoscroll:_.options.slidestoshow-indexoffset;if(_.slidecount>_.options.slidestoshow){_.slidehandler(_.currentslide-slideoffset,false,dontanimate)}break;case"next":slideoffset=indexoffset===0?_.options.slidestoscroll:indexoffset;if(_.slidecount>_.options.slidestoshow){_.slidehandler(_.currentslide+slideoffset,false,dontanimate)}break;case"index":var index=event.data.index===0?0:event.data.index||$target.index()*_.options.slidestoscroll;_.slidehandler(_.checknavigable(index),false,dontanimate);$target.children().trigger("focus");break;default:return}};slick.prototype.checknavigable=function(index){var _=this,navigables,prevnavigable;navigables=_.getnavigableindexes();prevnavigable=0;if(index>navigables[navigables.length-1]){index=navigables[navigables.length-1]}else{for(var n in navigables){if(index_.options.slidestoshow){_.$prevarrow&&_.$prevarrow.off("click.slick",_.changeslide);_.$nextarrow&&_.$nextarrow.off("click.slick",_.changeslide)}_.$list.off("touchstart.slick mousedown.slick",_.swipehandler);_.$list.off("touchmove.slick mousemove.slick",_.swipehandler);_.$list.off("touchend.slick mouseup.slick",_.swipehandler);_.$list.off("touchcancel.slick mouseleave.slick",_.swipehandler);_.$list.off("click.slick",_.clickhandler);$(document).off(_.visibilitychange,_.visibility);_.cleanupslideevents();if(_.options.accessibility===true){_.$list.off("keydown.slick",_.keyhandler)}if(_.options.focusonselect===true){$(_.$slidetrack).children().off("click.slick",_.selecthandler)}$(window).off("orientationchange.slick.slick-"+_.instanceuid,_.orientationchange);$(window).off("resize.slick.slick-"+_.instanceuid,_.resize);$("[draggable!=true]",_.$slidetrack).off("dragstart",_.preventdefault);$(window).off("load.slick.slick-"+_.instanceuid,_.setposition);$(document).off("ready.slick.slick-"+_.instanceuid,_.setposition)};slick.prototype.cleanupslideevents=function(){var _=this;_.$list.off("mouseenter.slick",$.proxy(_.interrupt,_,true));_.$list.off("mouseleave.slick",$.proxy(_.interrupt,_,false))};slick.prototype.cleanuprows=function(){var _=this,originalslides;if(_.options.rows>1){originalslides=_.$slides.children().children();originalslides.removeattr("style");_.$slider.empty().append(originalslides)}};slick.prototype.clickhandler=function(event){var _=this;if(_.shouldclick===false){event.stopimmediatepropagation();event.stoppropagation();event.preventdefault()}};slick.prototype.destroy=function(refresh){var _=this; _.autoplayclear();_.touchobject={};_.cleanupevents();$(".slick-cloned",_.$slider).detach();if(_.$dots){_.$dots.remove()}if(_.$prevarrow&&_.$prevarrow.length){_.$prevarrow.removeclass("slick-disabled slick-arrow slick-hidden").removeattr("aria-hidden aria-disabled tabindex").css("display","");if(_.htmlexpr.test(_.options.prevarrow)){_.$prevarrow.remove()}}if(_.$nextarrow&&_.$nextarrow.length){_.$nextarrow.removeclass("slick-disabled slick-arrow slick-hidden").removeattr("aria-hidden aria-disabled tabindex").css("display","");if(_.htmlexpr.test(_.options.nextarrow)){_.$nextarrow.remove()}}if(_.$slides){_.$slides.removeclass("slick-slide slick-active slick-center slick-visible slick-current").removeattr("aria-hidden").removeattr("data-slick-index").each(function(){$(this).attr("style",$(this).data("originalstyling"))});_.$slidetrack.children(this.options.slide).detach();_.$slidetrack.detach();_.$list.detach();_.$slider.append(_.$slides)}_.cleanuprows();_.$slider.removeclass("slick-slider");_.$slider.removeclass("slick-initialized");_.$slider.removeclass("slick-dotted");_.unslicked=true;if(!refresh){_.$slider.trigger("destroy",[_])}};slick.prototype.disabletransition=function(slide){var _=this,transition={};transition[_.transitiontype]="";if(_.options.fade===false){_.$slidetrack.css(transition)}else{_.$slides.eq(slide).css(transition)}};slick.prototype.fadeslide=function(slideindex,callback){var _=this;if(_.csstransitions===false){_.$slides.eq(slideindex).css({zindex:_.options.zindex});_.$slides.eq(slideindex).animate({opacity:1},_.options.speed,_.options.easing,callback)}else{_.applytransition(slideindex);_.$slides.eq(slideindex).css({opacity:1,zindex:_.options.zindex});if(callback){settimeout(function(){_.disabletransition(slideindex);callback.call()},_.options.speed)}}};slick.prototype.fadeslideout=function(slideindex){var _=this;if(_.csstransitions===false){_.$slides.eq(slideindex).animate({opacity:0,zindex:_.options.zindex-2},_.options.speed,_.options.easing)}else{_.applytransition(slideindex);_.$slides.eq(slideindex).css({opacity:0,zindex:_.options.zindex-2})}};slick.prototype.filterslides=slick.prototype.slickfilter=function(filter){var _=this;if(filter!==null){_.$slidescache=_.$slides;_.unload();_.$slidetrack.children(this.options.slide).detach();_.$slidescache.filter(filter).appendto(_.$slidetrack);_.reinit()}};slick.prototype.focushandler=function(){var _=this;_.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(event){event.stopimmediatepropagation();var $sf=$(this);settimeout(function(){if(_.options.pauseonfocus){_.focussed=$sf.is(":focus");_.autoplay()}},0)})};slick.prototype.getcurrent=slick.prototype.slickcurrentslide=function(){var _=this;return _.currentslide};slick.prototype.getdotcount=function(){var _=this;var breakpoint=0;var counter=0;var pagerqty=0;if(_.options.infinite===true){while(breakpoint<_.slidecount){++pagerqty;breakpoint=counter+_.options.slidestoscroll;counter+=_.options.slidestoscroll<=_.options.slidestoshow?_.options.slidestoscroll:_.options.slidestoshow}}else{if(_.options.centermode===true){pagerqty=_.slidecount}else{if(!_.options.asnavfor){pagerqty=1+math.ceil((_.slidecount-_.options.slidestoshow)/_.options.slidestoscroll)}else{while(breakpoint<_.slidecount){++pagerqty;breakpoint=counter+_.options.slidestoscroll;counter+=_.options.slidestoscroll<=_.options.slidestoshow?_.options.slidestoscroll:_.options.slidestoshow}}}}return pagerqty-1};slick.prototype.getleft=function(slideindex){var _=this,targetleft,verticalheight,verticaloffset=0,targetslide;_.slideoffset=0;verticalheight=_.$slides.first().outerheight(true);if(_.options.infinite===true){if(_.slidecount>_.options.slidestoshow){_.slideoffset=(_.slidewidth*_.options.slidestoshow)*-1;verticaloffset=(verticalheight*_.options.slidestoshow)*-1}if(_.slidecount%_.options.slidestoscroll!==0){if(slideindex+_.options.slidestoscroll>_.slidecount&&_.slidecount>_.options.slidestoshow){if(slideindex>_.slidecount){_.slideoffset=((_.options.slidestoshow-(slideindex-_.slidecount))*_.slidewidth)*-1;verticaloffset=((_.options.slidestoshow-(slideindex-_.slidecount))*verticalheight)*-1}else{_.slideoffset=((_.slidecount%_.options.slidestoscroll)*_.slidewidth)*-1;verticaloffset=((_.slidecount%_.options.slidestoscroll)*verticalheight)*-1}}}}else{if(slideindex+_.options.slidestoshow>_.slidecount){_.slideoffset=((slideindex+_.options.slidestoshow)-_.slidecount)*_.slidewidth;verticaloffset=((slideindex+_.options.slidestoshow)-_.slidecount)*verticalheight}}if(_.slidecount<=_.options.slidestoshow){_.slideoffset=0;verticaloffset=0}if(_.options.centermode===true&&_.options.infinite===true){_.slideoffset+=_.slidewidth*math.floor(_.options.slidestoshow/2)-_.slidewidth}else{if(_.options.centermode===true){_.slideoffset=0;_.slideoffset+=_.slidewidth*math.floor(_.options.slidestoshow/2)}}if(_.options.vertical===false){targetleft=((slideindex*_.slidewidth)*-1)+_.slideoffset}else{targetleft=((slideindex*verticalheight)*-1)+verticaloffset }if(_.options.variablewidth===true){if(_.slidecount<=_.options.slidestoshow||_.options.infinite===false){targetslide=_.$slidetrack.children(".slick-slide").eq(slideindex)}else{targetslide=_.$slidetrack.children(".slick-slide").eq(slideindex+_.options.slidestoshow)}if(_.options.rtl===true){if(targetslide[0]){targetleft=(_.$slidetrack.width()-targetslide[0].offsetleft-targetslide.width())*-1}else{targetleft=0}}else{targetleft=targetslide[0]?targetslide[0].offsetleft*-1:0}if(_.options.centermode===true){if(_.slidecount<=_.options.slidestoshow||_.options.infinite===false){targetslide=_.$slidetrack.children(".slick-slide").eq(slideindex)}else{targetslide=_.$slidetrack.children(".slick-slide").eq(slideindex+_.options.slidestoshow+1)}if(_.options.rtl===true){if(targetslide[0]){targetleft=(_.$slidetrack.width()-targetslide[0].offsetleft-targetslide.width())*-1}else{targetleft=0}}else{targetleft=targetslide[0]?targetslide[0].offsetleft*-1:0}targetleft+=(_.$list.width()-targetslide.outerwidth())/2}}return targetleft};slick.prototype.getoption=slick.prototype.slickgetoption=function(option){var _=this;return _.options[option]};slick.prototype.getnavigableindexes=function(){var _=this,breakpoint=0,counter=0,indexes=[],max;if(_.options.infinite===false){max=_.slidecount}else{breakpoint=_.options.slidestoscroll*-1;counter=_.options.slidestoscroll*-1;max=_.slidecount*2}while(breakpoint(_.swipeleft*-1)){swipedslide=slide;return false}});slidestraversed=math.abs($(swipedslide).attr("data-slick-index")-_.currentslide)||1;return slidestraversed}else{return _.options.slidestoscroll}};slick.prototype.goto=slick.prototype.slickgoto=function(slide,dontanimate){var _=this;_.changeslide({data:{message:"index",index:parseint(slide)}},dontanimate)};slick.prototype.init=function(creation){var _=this;if(!$(_.$slider).hasclass("slick-initialized")){$(_.$slider).addclass("slick-initialized");_.buildrows();_.buildout();_.setprops();_.startload();_.loadslider();_.initializeevents();_.updatearrows();_.updatedots();_.checkresponsive(true);_.focushandler()}if(creation){_.$slider.trigger("init",[_])}if(_.options.accessibility===true){_.initada()}if(_.options.autoplay){_.paused=false;_.autoplay()}};slick.prototype.initada=function(){var _=this;_.$slides.add(_.$slidetrack.find(".slick-cloned")).attr({"aria-hidden":"true","tabindex":"-1"}).find("a, input, button, select").attr({"tabindex":"-1"});_.$slidetrack.attr("role","listbox");_.$slides.not(_.$slidetrack.find(".slick-cloned")).each(function(i){$(this).attr({"role":"option","aria-describedby":"slick-slide"+_.instanceuid+i+""})});if(_.$dots!==null){_.$dots.attr("role","tablist").find("li").each(function(i){$(this).attr({"role":"presentation","aria-selected":"false","aria-controls":"navigation"+_.instanceuid+i+"","id":"slick-slide"+_.instanceuid+i+""})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar")}_.activateada()};slick.prototype.initarrowevents=function(){var _=this;if(_.options.arrows===true&&_.slidecount>_.options.slidestoshow){_.$prevarrow.off("click.slick").on("click.slick",{message:"previous"},_.changeslide);_.$nextarrow.off("click.slick").on("click.slick",{message:"next"},_.changeslide)}};slick.prototype.initdotevents=function(){var _=this;if(_.options.dots===true&&_.slidecount>_.options.slidestoshow){$("li",_.$dots).on("click.slick",{message:"index"},_.changeslide)}if(_.options.dots===true&&_.options.pauseondotshover===true){$("li",_.$dots).on("mouseenter.slick",$.proxy(_.interrupt,_,true)).on("mouseleave.slick",$.proxy(_.interrupt,_,false))}};slick.prototype.initslideevents=function(){var _=this;if(_.options.pauseonhover){_.$list.on("mouseenter.slick",$.proxy(_.interrupt,_,true));_.$list.on("mouseleave.slick",$.proxy(_.interrupt,_,false))}};slick.prototype.initializeevents=function(){var _=this;_.initarrowevents();_.initdotevents();_.initslideevents();_.$list.on("touchstart.slick mousedown.slick",{action:"start"},_.swipehandler);_.$list.on("touchmove.slick mousemove.slick",{action:"move"},_.swipehandler);_.$list.on("touchend.slick mouseup.slick",{action:"end"},_.swipehandler);_.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},_.swipehandler);_.$list.on("click.slick",_.clickhandler);$(document).on(_.visibilitychange,$.proxy(_.visibility,_));if(_.options.accessibility===true){_.$list.on("keydown.slick",_.keyhandler)}if(_.options.focusonselect===true){$(_.$slidetrack).children().on("click.slick",_.selecthandler) }$(window).on("orientationchange.slick.slick-"+_.instanceuid,$.proxy(_.orientationchange,_));$(window).on("resize.slick.slick-"+_.instanceuid,$.proxy(_.resize,_));$("[draggable!=true]",_.$slidetrack).on("dragstart",_.preventdefault);$(window).on("load.slick.slick-"+_.instanceuid,_.setposition);$(document).on("ready.slick.slick-"+_.instanceuid,_.setposition)};slick.prototype.initui=function(){var _=this;if(_.options.arrows===true&&_.slidecount>_.options.slidestoshow){_.$prevarrow.show();_.$nextarrow.show()}if(_.options.dots===true&&_.slidecount>_.options.slidestoshow){_.$dots.show()}};slick.prototype.keyhandler=function(event){var _=this;if(!event.target.tagname.match("textarea|input|select")){if(event.keycode===37&&_.options.accessibility===true){_.changeslide({data:{message:_.options.rtl===true?"next":"previous"}})}else{if(event.keycode===39&&_.options.accessibility===true){_.changeslide({data:{message:_.options.rtl===true?"previous":"next"}})}}}};slick.prototype.lazyload=function(){var _=this,loadrange,clonerange,rangestart,rangeend;function loadimages(imagesscope){$("img[data-lazy]",imagesscope).each(function(){var image=$(this),imagesource=$(this).attr("data-lazy"),imagetoload=document.createelement("img");imagetoload.onload=function(){image.animate({opacity:0},100,function(){image.attr("src",imagesource).animate({opacity:1},200,function(){image.removeattr("data-lazy").removeclass("slick-loading")});_.$slider.trigger("lazyloaded",[_,image,imagesource])})};imagetoload.onerror=function(){image.removeattr("data-lazy").removeclass("slick-loading").addclass("slick-lazyload-error");_.$slider.trigger("lazyloaderror",[_,image,imagesource])};imagetoload.src=imagesource})}if(_.options.centermode===true){if(_.options.infinite===true){rangestart=_.currentslide+(_.options.slidestoshow/2+1);rangeend=rangestart+_.options.slidestoshow+2}else{rangestart=math.max(0,_.currentslide-(_.options.slidestoshow/2+1));rangeend=2+(_.options.slidestoshow/2+1)+_.currentslide}}else{rangestart=_.options.infinite?_.options.slidestoshow+_.currentslide:_.currentslide;rangeend=math.ceil(rangestart+_.options.slidestoshow);if(_.options.fade===true){if(rangestart>0){rangestart--}if(rangeend<=_.slidecount){rangeend++}}}loadrange=_.$slider.find(".slick-slide").slice(rangestart,rangeend);loadimages(loadrange);if(_.slidecount<=_.options.slidestoshow){clonerange=_.$slider.find(".slick-slide");loadimages(clonerange)}else{if(_.currentslide>=_.slidecount-_.options.slidestoshow){clonerange=_.$slider.find(".slick-cloned").slice(0,_.options.slidestoshow);loadimages(clonerange)}else{if(_.currentslide===0){clonerange=_.$slider.find(".slick-cloned").slice(_.options.slidestoshow*-1);loadimages(clonerange)}}}};slick.prototype.loadslider=function(){var _=this;_.setposition();_.$slidetrack.css({opacity:1});_.$slider.removeclass("slick-loading");_.initui();if(_.options.lazyload==="progressive"){_.progressivelazyload()}};slick.prototype.next=slick.prototype.slicknext=function(){var _=this;_.changeslide({data:{message:"next"}})};slick.prototype.orientationchange=function(){var _=this;_.checkresponsive();_.setposition()};slick.prototype.pause=slick.prototype.slickpause=function(){var _=this;_.autoplayclear();_.paused=true};slick.prototype.play=slick.prototype.slickplay=function(){var _=this;_.autoplay();_.options.autoplay=true;_.paused=false;_.focussed=false;_.interrupted=false};slick.prototype.postslide=function(index){var _=this;if(!_.unslicked){_.$slider.trigger("afterchange",[_,index]);_.animating=false;_.setposition();_.swipeleft=null;if(_.options.autoplay){_.autoplay()}if(_.options.accessibility===true){_.initada()}}};slick.prototype.prev=slick.prototype.slickprev=function(){var _=this;_.changeslide({data:{message:"previous"}})};slick.prototype.preventdefault=function(event){event.preventdefault()};slick.prototype.progressivelazyload=function(trycount){trycount=trycount||1;var _=this,$imgstoload=$("img[data-lazy]",_.$slider),image,imagesource,imagetoload;if($imgstoload.length){image=$imgstoload.first();imagesource=image.attr("data-lazy");imagetoload=document.createelement("img");imagetoload.onload=function(){image.attr("src",imagesource).removeattr("data-lazy").removeclass("slick-loading");if(_.options.adaptiveheight===true){_.setposition()}_.$slider.trigger("lazyloaded",[_,image,imagesource]);_.progressivelazyload()};imagetoload.onerror=function(){if(trycount<3){settimeout(function(){_.progressivelazyload(trycount+1)},500)}else{image.removeattr("data-lazy").removeclass("slick-loading").addclass("slick-lazyload-error");_.$slider.trigger("lazyloaderror",[_,image,imagesource]);_.progressivelazyload()}};imagetoload.src=imagesource}else{_.$slider.trigger("allimagesloaded",[_])}};slick.prototype.refresh=function(initializing){var _=this,currentslide,lastvisibleindex;lastvisibleindex=_.slidecount-_.options.slidestoshow;if(!_.options.infinite&&(_.currentslide>lastvisibleindex)){_.currentslide=lastvisibleindex}if(_.slidecount<=_.options.slidestoshow){_.currentslide=0 }currentslide=_.currentslide;_.destroy(true);$.extend(_,_.initials,{currentslide:currentslide});_.init();if(!initializing){_.changeslide({data:{message:"index",index:currentslide}},false)}};slick.prototype.registerbreakpoints=function(){var _=this,breakpoint,currentbreakpoint,l,responsivesettings=_.options.responsive||null;if($.type(responsivesettings)==="array"&&responsivesettings.length){_.respondto=_.options.respondto||"window";for(breakpoint in responsivesettings){l=_.breakpoints.length-1;currentbreakpoint=responsivesettings[breakpoint].breakpoint;if(responsivesettings.hasownproperty(breakpoint)){while(l>=0){if(_.breakpoints[l]&&_.breakpoints[l]===currentbreakpoint){_.breakpoints.splice(l,1)}l--}_.breakpoints.push(currentbreakpoint);_.breakpointsettings[currentbreakpoint]=responsivesettings[breakpoint].settings}}_.breakpoints.sort(function(a,b){return(_.options.mobilefirst)?a-b:b-a})}};slick.prototype.reinit=function(){var _=this;_.$slides=_.$slidetrack.children(_.options.slide).addclass("slick-slide");_.slidecount=_.$slides.length;if(_.currentslide>=_.slidecount&&_.currentslide!==0){_.currentslide=_.currentslide-_.options.slidestoscroll}if(_.slidecount<=_.options.slidestoshow){_.currentslide=0}_.registerbreakpoints();_.setprops();_.setupinfinite();_.buildarrows();_.updatearrows();_.initarrowevents();_.builddots();_.updatedots();_.initdotevents();_.cleanupslideevents();_.initslideevents();_.checkresponsive(false,true);if(_.options.focusonselect===true){$(_.$slidetrack).children().on("click.slick",_.selecthandler)}_.setslideclasses(typeof _.currentslide==="number"?_.currentslide:0);_.setposition();_.focushandler();_.paused=!_.options.autoplay;_.autoplay();_.$slider.trigger("reinit",[_])};slick.prototype.resize=function(){var _=this;if($(window).width()!==_.windowwidth){cleartimeout(_.windowdelay);_.windowdelay=window.settimeout(function(){_.windowwidth=$(window).width();_.checkresponsive();if(!_.unslicked){_.setposition()}},50)}};slick.prototype.removeslide=slick.prototype.slickremove=function(index,removebefore,removeall){var _=this;if(typeof(index)==="boolean"){removebefore=index;index=removebefore===true?0:_.slidecount-1}else{index=removebefore===true?--index:index}if(_.slidecount<1||index<0||index>_.slidecount-1){return false}_.unload();if(removeall===true){_.$slidetrack.children().remove()}else{_.$slidetrack.children(this.options.slide).eq(index).remove()}_.$slides=_.$slidetrack.children(this.options.slide);_.$slidetrack.children(this.options.slide).detach();_.$slidetrack.append(_.$slides);_.$slidescache=_.$slides;_.reinit()};slick.prototype.setcss=function(position){var _=this,positionprops={},x,y;if(_.options.rtl===true){position=-position}x=_.positionprop=="left"?math.ceil(position)+"px":"0px";y=_.positionprop=="top"?math.ceil(position)+"px":"0px";positionprops[_.positionprop]=position;if(_.transformsenabled===false){_.$slidetrack.css(positionprops)}else{positionprops={};if(_.csstransitions===false){positionprops[_.animtype]="translate("+x+", "+y+")";_.$slidetrack.css(positionprops)}else{positionprops[_.animtype]="translate3d("+x+", "+y+", 0px)";_.$slidetrack.css(positionprops)}}};slick.prototype.setdimensions=function(){var _=this;if(_.options.vertical===false){if(_.options.centermode===true){_.$list.css({padding:("0px "+_.options.centerpadding)})}}else{_.$list.height(_.$slides.first().outerheight(true)*_.options.slidestoshow);if(_.options.centermode===true){_.$list.css({padding:(_.options.centerpadding+" 0px")})}}_.listwidth=_.$list.width();_.listheight=_.$list.height();if(_.options.vertical===false&&_.options.variablewidth===false){_.slidewidth=math.ceil(_.listwidth/_.options.slidestoshow);_.$slidetrack.width(math.ceil((_.slidewidth*_.$slidetrack.children(".slick-slide").length)))}else{if(_.options.variablewidth===true){_.$slidetrack.width(5000*_.slidecount)}else{_.slidewidth=math.ceil(_.listwidth);_.$slidetrack.height(math.ceil((_.$slides.first().outerheight(true)*_.$slidetrack.children(".slick-slide").length)))}}var offset=_.$slides.first().outerwidth(true)-_.$slides.first().width();if(_.options.variablewidth===false){_.$slidetrack.children(".slick-slide").width(_.slidewidth-offset)}};slick.prototype.setfade=function(){var _=this,targetleft;_.$slides.each(function(index,element){targetleft=(_.slidewidth*index)*-1;if(_.options.rtl===true){$(element).css({position:"relative",right:targetleft,top:0,zindex:_.options.zindex-2,opacity:0})}else{$(element).css({position:"relative",left:targetleft,top:0,zindex:_.options.zindex-2,opacity:0})}});_.$slides.eq(_.currentslide).css({zindex:_.options.zindex-1,opacity:1})};slick.prototype.setheight=function(){var _=this;if(_.options.slidestoshow===1&&_.options.adaptiveheight===true&&_.options.vertical===false){var targetheight=_.$slides.eq(_.currentslide).outerheight(true);_.$list.css("height",targetheight)}};slick.prototype.setoption=slick.prototype.slicksetoption=function(){var _=this,l,item,option,value,refresh=false,type;if($.type(arguments[0])==="object"){option=arguments[0]; refresh=arguments[1];type="multiple"}else{if($.type(arguments[0])==="string"){option=arguments[0];value=arguments[1];refresh=arguments[2];if(arguments[0]==="responsive"&&$.type(arguments[1])==="array"){type="responsive"}else{if(typeof arguments[1]!=="undefined"){type="single"}}}}if(type==="single"){_.options[option]=value}else{if(type==="multiple"){$.each(option,function(opt,val){_.options[opt]=val})}else{if(type==="responsive"){for(item in value){if($.type(_.options.responsive)!=="array"){_.options.responsive=[value[item]]}else{l=_.options.responsive.length-1;while(l>=0){if(_.options.responsive[l].breakpoint===value[item].breakpoint){_.options.responsive.splice(l,1)}l--}_.options.responsive.push(value[item])}}}}}if(refresh){_.unload();_.reinit()}};slick.prototype.setposition=function(){var _=this;_.setdimensions();_.setheight();if(_.options.fade===false){_.setcss(_.getleft(_.currentslide))}else{_.setfade()}_.$slider.trigger("setposition",[_])};slick.prototype.setprops=function(){var _=this,bodystyle=document.body.style;_.positionprop=_.options.vertical===true?"top":"left";if(_.positionprop==="top"){_.$slider.addclass("slick-vertical")}else{_.$slider.removeclass("slick-vertical")}if(bodystyle.webkittransition!==undefined||bodystyle.moztransition!==undefined||bodystyle.mstransition!==undefined){if(_.options.usecss===true){_.csstransitions=true}}if(_.options.fade){if(typeof _.options.zindex==="number"){if(_.options.zindex<3){_.options.zindex=3}}else{_.options.zindex=_.defaults.zindex}}if(bodystyle.otransform!==undefined){_.animtype="otransform";_.transformtype="-o-transform";_.transitiontype="otransition";if(bodystyle.perspectiveproperty===undefined&&bodystyle.webkitperspective===undefined){_.animtype=false}}if(bodystyle.moztransform!==undefined){_.animtype="moztransform";_.transformtype="-moz-transform";_.transitiontype="moztransition";if(bodystyle.perspectiveproperty===undefined&&bodystyle.mozperspective===undefined){_.animtype=false}}if(bodystyle.webkittransform!==undefined){_.animtype="webkittransform";_.transformtype="-webkit-transform";_.transitiontype="webkittransition";if(bodystyle.perspectiveproperty===undefined&&bodystyle.webkitperspective===undefined){_.animtype=false}}if(bodystyle.mstransform!==undefined){_.animtype="mstransform";_.transformtype="-ms-transform";_.transitiontype="mstransition";if(bodystyle.mstransform===undefined){_.animtype=false}}if(bodystyle.transform!==undefined&&_.animtype!==false){_.animtype="transform";_.transformtype="transform";_.transitiontype="transition"}_.transformsenabled=_.options.usetransform&&(_.animtype!==null&&_.animtype!==false)};slick.prototype.setslideclasses=function(index){var _=this,centeroffset,allslides,indexoffset,remainder;allslides=_.$slider.find(".slick-slide").removeclass("slick-active slick-center slick-current").attr("aria-hidden","true");_.$slides.eq(index).addclass("slick-current");if(_.options.centermode===true){centeroffset=math.floor(_.options.slidestoshow/2);if(_.options.infinite===true){if(index>=centeroffset&&index<=(_.slidecount-1)-centeroffset){_.$slides.slice(index-centeroffset,index+centeroffset+1).addclass("slick-active").attr("aria-hidden","false")}else{indexoffset=_.options.slidestoshow+index;allslides.slice(indexoffset-centeroffset+1,indexoffset+centeroffset+2).addclass("slick-active").attr("aria-hidden","false")}if(index===0){allslides.eq(allslides.length-1-_.options.slidestoshow).addclass("slick-center")}else{if(index===_.slidecount-1){allslides.eq(_.options.slidestoshow).addclass("slick-center")}}}_.$slides.eq(index).addclass("slick-center")}else{if(index>=0&&index<=(_.slidecount-_.options.slidestoshow)){_.$slides.slice(index,index+_.options.slidestoshow).addclass("slick-active").attr("aria-hidden","false")}else{if(allslides.length<=_.options.slidestoshow){allslides.addclass("slick-active").attr("aria-hidden","false")}else{remainder=_.slidecount%_.options.slidestoshow;indexoffset=_.options.infinite===true?_.options.slidestoshow+index:index;if(_.options.slidestoshow==_.options.slidestoscroll&&(_.slidecount-index)<_.options.slidestoshow){allslides.slice(indexoffset-(_.options.slidestoshow-remainder),indexoffset+remainder).addclass("slick-active").attr("aria-hidden","false")}else{allslides.slice(indexoffset,indexoffset+_.options.slidestoshow).addclass("slick-active").attr("aria-hidden","false")}}}}if(_.options.lazyload==="ondemand"){_.lazyload()}};slick.prototype.setupinfinite=function(){var _=this,i,slideindex,infinitecount;if(_.options.fade===true){_.options.centermode=false}if(_.options.infinite===true&&_.options.fade===false){slideindex=null;if(_.slidecount>_.options.slidestoshow){if(_.options.centermode===true){infinitecount=_.options.slidestoshow+1}else{infinitecount=_.options.slidestoshow}for(i=_.slidecount;i>(_.slidecount-infinitecount);i-=1){slideindex=i-1;$(_.$slides[slideindex]).clone(true).attr("id","").attr("data-slick-index",slideindex-_.slidecount).prependto(_.$slidetrack).addclass("slick-cloned")}for(i=0;i_.getdotcount()*_.options.slidestoscroll)){if(_.options.fade===false){targetslide=_.currentslide;if(dontanimate!==true){_.animateslide(slideleft,function(){_.postslide(targetslide)})}else{_.postslide(targetslide)}}return}else{if(_.options.infinite===false&&_.options.centermode===true&&(index<0||index>(_.slidecount-_.options.slidestoscroll))){if(_.options.fade===false){targetslide=_.currentslide;if(dontanimate!==true){_.animateslide(slideleft,function(){_.postslide(targetslide)})}else{_.postslide(targetslide)}}return}}if(_.options.autoplay){clearinterval(_.autoplaytimer)}if(targetslide<0){if(_.slidecount%_.options.slidestoscroll!==0){animslide=_.slidecount-(_.slidecount%_.options.slidestoscroll)}else{animslide=_.slidecount+targetslide}}else{if(targetslide>=_.slidecount){if(_.slidecount%_.options.slidestoscroll!==0){animslide=0}else{animslide=targetslide-_.slidecount}}else{animslide=targetslide}}_.animating=true;_.$slider.trigger("beforechange",[_,_.currentslide,animslide]);oldslide=_.currentslide;_.currentslide=animslide;_.setslideclasses(_.currentslide);if(_.options.asnavfor){navtarget=_.getnavtarget();navtarget=navtarget.slick("getslick");if(navtarget.slidecount<=navtarget.options.slidestoshow){navtarget.setslideclasses(_.currentslide)}}_.updatedots();_.updatearrows();if(_.options.fade===true){if(dontanimate!==true){_.fadeslideout(oldslide);_.fadeslide(animslide,function(){_.postslide(animslide)})}else{_.postslide(animslide)}_.animateheight();return}if(dontanimate!==true){_.animateslide(targetleft,function(){_.postslide(animslide)})}else{_.postslide(animslide)}};slick.prototype.startload=function(){var _=this;if(_.options.arrows===true&&_.slidecount>_.options.slidestoshow){_.$prevarrow.hide();_.$nextarrow.hide()}if(_.options.dots===true&&_.slidecount>_.options.slidestoshow){_.$dots.hide()}_.$slider.addclass("slick-loading")};slick.prototype.swipedirection=function(){var xdist,ydist,r,swipeangle,_=this;xdist=_.touchobject.startx-_.touchobject.curx;ydist=_.touchobject.starty-_.touchobject.cury;r=math.atan2(ydist,xdist);swipeangle=math.round(r*180/math.pi);if(swipeangle<0){swipeangle=360-math.abs(swipeangle)}if((swipeangle<=45)&&(swipeangle>=0)){return(_.options.rtl===false?"left":"right")}if((swipeangle<=360)&&(swipeangle>=315)){return(_.options.rtl===false?"left":"right")}if((swipeangle>=135)&&(swipeangle<=225)){return(_.options.rtl===false?"right":"left")}if(_.options.verticalswiping===true){if((swipeangle>=35)&&(swipeangle<=135)){return"down"}else{return"up"}}return"vertical"};slick.prototype.swipeend=function(event){var _=this,slidecount,direction;_.dragging=false;_.interrupted=false;_.shouldclick=(_.touchobject.swipelength>10)?false:true;if(_.touchobject.curx===undefined){return false}if(_.touchobject.edgehit===true){_.$slider.trigger("edge",[_,_.swipedirection()])}if(_.touchobject.swipelength>=_.touchobject.minswipe){direction=_.swipedirection();switch(direction){case"left":case"down":slidecount=_.options.swipetoslide?_.checknavigable(_.currentslide+_.getslidecount()):_.currentslide+_.getslidecount();_.currentdirection=0;break;case"right":case"up":slidecount=_.options.swipetoslide?_.checknavigable(_.currentslide-_.getslidecount()):_.currentslide-_.getslidecount();_.currentdirection=1;break;default:}if(direction!="vertical"){_.slidehandler(slidecount);_.touchobject={};_.$slider.trigger("swipe",[_,direction])}}else{if(_.touchobject.startx!==_.touchobject.curx){_.slidehandler(_.currentslide);_.touchobject={}}}};slick.prototype.swipehandler=function(event){var _=this;if((_.options.swipe===false)||("ontouchend" in document&&_.options.swipe===false)){return}else{if(_.options.draggable===false&&event.type.indexof("mouse")!==-1){return}}_.touchobject.fingercount=event.originalevent&&event.originalevent.touches!==undefined?event.originalevent.touches.length:1; _.touchobject.minswipe=_.listwidth/_.options.touchthreshold;if(_.options.verticalswiping===true){_.touchobject.minswipe=_.listheight/_.options.touchthreshold}switch(event.data.action){case"start":_.swipestart(event);break;case"move":_.swipemove(event);break;case"end":_.swipeend(event);break}};slick.prototype.swipemove=function(event){var _=this,edgewashit=false,curleft,swipedirection,swipelength,positionoffset,touches;touches=event.originalevent!==undefined?event.originalevent.touches:null;if(!_.dragging||touches&&touches.length!==1){return false}curleft=_.getleft(_.currentslide);_.touchobject.curx=touches!==undefined?touches[0].pagex:event.clientx;_.touchobject.cury=touches!==undefined?touches[0].pagey:event.clienty;_.touchobject.swipelength=math.round(math.sqrt(math.pow(_.touchobject.curx-_.touchobject.startx,2)));if(_.options.verticalswiping===true){_.touchobject.swipelength=math.round(math.sqrt(math.pow(_.touchobject.cury-_.touchobject.starty,2)))}swipedirection=_.swipedirection();if(swipedirection==="vertical"){return}if(event.originalevent!==undefined&&_.touchobject.swipelength>4){event.preventdefault()}positionoffset=(_.options.rtl===false?1:-1)*(_.touchobject.curx>_.touchobject.startx?1:-1);if(_.options.verticalswiping===true){positionoffset=_.touchobject.cury>_.touchobject.starty?1:-1}swipelength=_.touchobject.swipelength;_.touchobject.edgehit=false;if(_.options.infinite===false){if((_.currentslide===0&&swipedirection==="right")||(_.currentslide>=_.getdotcount()&&swipedirection==="left")){swipelength=_.touchobject.swipelength*_.options.edgefriction;_.touchobject.edgehit=true}}if(_.options.vertical===false){_.swipeleft=curleft+swipelength*positionoffset}else{_.swipeleft=curleft+(swipelength*(_.$list.height()/_.listwidth))*positionoffset}if(_.options.verticalswiping===true){_.swipeleft=curleft+swipelength*positionoffset}if(_.options.fade===true||_.options.touchmove===false){return false}if(_.animating===true){_.swipeleft=null;return false}_.setcss(_.swipeleft)};slick.prototype.swipestart=function(event){var _=this,touches;_.interrupted=true;if(_.touchobject.fingercount!==1||_.slidecount<=_.options.slidestoshow){_.touchobject={};return false}if(event.originalevent!==undefined&&event.originalevent.touches!==undefined){touches=event.originalevent.touches[0]}_.touchobject.startx=_.touchobject.curx=touches!==undefined?touches.pagex:event.clientx;_.touchobject.starty=_.touchobject.cury=touches!==undefined?touches.pagey:event.clienty;_.dragging=true};slick.prototype.unfilterslides=slick.prototype.slickunfilter=function(){var _=this;if(_.$slidescache!==null){_.unload();_.$slidetrack.children(this.options.slide).detach();_.$slidescache.appendto(_.$slidetrack);_.reinit()}};slick.prototype.unload=function(){var _=this;$(".slick-cloned",_.$slider).remove();if(_.$dots){_.$dots.remove()}if(_.$prevarrow&&_.htmlexpr.test(_.options.prevarrow)){_.$prevarrow.remove()}if(_.$nextarrow&&_.htmlexpr.test(_.options.nextarrow)){_.$nextarrow.remove()}_.$slides.removeclass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")};slick.prototype.unslick=function(frombreakpoint){var _=this;_.$slider.trigger("unslick",[_,frombreakpoint]);_.destroy()};slick.prototype.updatearrows=function(){var _=this,centeroffset;centeroffset=math.floor(_.options.slidestoshow/2);if(_.options.arrows===true&&_.slidecount>_.options.slidestoshow&&!_.options.infinite){_.$prevarrow.removeclass("slick-disabled").attr("aria-disabled","false");_.$nextarrow.removeclass("slick-disabled").attr("aria-disabled","false");if(_.currentslide===0){_.$prevarrow.addclass("slick-disabled").attr("aria-disabled","true");_.$nextarrow.removeclass("slick-disabled").attr("aria-disabled","false")}else{if(_.currentslide>=_.slidecount-_.options.slidestoshow&&_.options.centermode===false){_.$nextarrow.addclass("slick-disabled").attr("aria-disabled","true");_.$prevarrow.removeclass("slick-disabled").attr("aria-disabled","false")}else{if(_.currentslide>=_.slidecount-1&&_.options.centermode===true){_.$nextarrow.addclass("slick-disabled").attr("aria-disabled","true");_.$prevarrow.removeclass("slick-disabled").attr("aria-disabled","false")}}}}};slick.prototype.updatedots=function(){var _=this;if(_.$dots!==null){_.$dots.find("li").removeclass("slick-active").attr("aria-hidden","true");_.$dots.find("li").eq(math.floor(_.currentslide/_.options.slidestoscroll)).addclass("slick-active").attr("aria-hidden","false")}};slick.prototype.visibility=function(){var _=this;if(_.options.autoplay){if(document[_.hidden]){_.interrupted=true}else{_.interrupted=false}}};$.fn.slick=function(){var _=this,opt=arguments[0],args=array.prototype.slice.call(arguments,1),l=_.length,i,ret;for(i=0;i