!function(m){var a=!0;m.flexslider=function(g,e){var h=m(g);"undefined"==typeof e.rtl&&"rtl"==m("html").attr("dir")&&(e.rtl=!0),h.vars=m.extend({},m.flexslider.defaults,e);var t,c=h.vars.namespace,s=window.navigator&&window.navigator.mspointerenabled&&window.msgesture,u=("ontouchstart"in window||s||window.documenttouch&&document instanceof documenttouch)&&h.vars.touch,l="click touchend mspointerup keyup",d="",x="vertical"===h.vars.direction,y=h.vars.reverse,b=0'),1").attr("href","#").text(n),"thumbnails"===h.vars.controlnav&&(e=m("").attr("src",t.attr("data-thumb"))),""!==t.attr("data-thumb-alt")&&e.attr("alt",t.attr("data-thumb-alt")),"thumbnails"===h.vars.controlnav&&!0===h.vars.thumbcaptions){var r=t.attr("data-thumbcaption");if(""!==r&&undefined!==r){var s=m("").addclass(c+"caption").text(r);e.append(s)}}var o=m("
  • ");e.appendto(o),o.append("
  • "),h.controlnavscaffold.append(o),n++}h.controlscontainer?m(h.controlscontainer).append(h.controlnavscaffold):h.append(h.controlnavscaffold),p.controlnav.set(),p.controlnav.active(),h.controlnavscaffold.delegate("a, img",l,function(e){if(e.preventdefault(),""===d||d===e.type){var t=m(this),a=h.controlnav.index(t);t.hasclass(c+"active")||(h.direction=a>h.currentslide?"next":"prev",h.flexanimate(a,h.vars.pauseonaction))}""===d&&(d=e.type),p.settoclearwatchedevent()})},setupmanual:function(){h.controlnav=h.manualcontrols,p.controlnav.active(),h.controlnav.bind(l,function(e){if(e.preventdefault(),""===d||d===e.type){var t=m(this),a=h.controlnav.index(t);t.hasclass(c+"active")||(a>h.currentslide?h.direction="next":h.direction="prev",h.flexanimate(a,h.vars.pauseonaction))}""===d&&(d=e.type),p.settoclearwatchedevent()})},set:function(){var e="thumbnails"===h.vars.controlnav?"img":"a";h.controlnav=m("."+c+"control-nav li "+e,h.controlscontainer?h.controlscontainer:h)},active:function(){h.controlnav.removeclass(c+"active").eq(h.animatingto).addclass(c+"active")},update:function(e,t){1'+h.count+"")):1===h.pagingcount?h.controlnavscaffold.find("li").remove():h.controlnav.eq(t).closest("li").remove(),p.controlnav.set(),1
  • '+h.vars.prevtext+'
  • '+h.vars.nexttext+"
  • ");h.customdirectionnav?h.directionnav=h.customdirectionnav:h.controlscontainer?(m(h.controlscontainer).append(e),h.directionnav=m("."+c+"direction-nav li a",h.controlscontainer)):(h.append(e),h.directionnav=m("."+c+"direction-nav li a",h)),p.directionnav.update(),h.directionnav.bind(l,function(e){var t;e.preventdefault(),""!==d&&d!==e.type||(t=m(this).hasclass(c+"next")?h.gettarget("next"):h.gettarget("prev"),h.flexanimate(t,h.vars.pauseonaction)),""===d&&(d=e.type),p.settoclearwatchedevent()})},update:function(){var e=c+"disabled";1===h.pagingcount?h.directionnav.addclass(e).attr("tabindex","-1"):h.vars.animationloop?h.directionnav.removeclass(e).removeattr("tabindex"):0===h.animatingto?h.directionnav.removeclass(e).filter("."+c+"prev").addclass(e).attr("tabindex","-1"):h.animatingto===h.last?h.directionnav.removeclass(e).filter("."+c+"next").addclass(e).attr("tabindex","-1"):h.directionnav.removeclass(e).removeattr("tabindex")}},pauseplay:{setup:function(){var e=m('
    ');h.controlscontainer?(h.controlscontainer.append(e),h.pauseplay=m("."+c+"pauseplay a",h.controlscontainer)):(h.append(e),h.pauseplay=m("."+c+"pauseplay a",h)),p.pauseplay.update(h.vars.slideshow?c+"pause":c+"play"),h.pauseplay.bind(l,function(e){e.preventdefault(),""!==d&&d!==e.type||(m(this).hasclass(c+"pause")?(h.manualpause=!0,h.manualplay=!1,h.pause()):(h.manualpause=!1,h.manualplay=!0,h.play())),""===d&&(d=e.type),p.settoclearwatchedevent()})},update:function(e){"play"===e?h.pauseplay.removeclass(c+"pause").addclass(c+"play").html(h.vars.playtext):h.pauseplay.removeclass(c+"play").addclass(c+"pause").html(h.vars.pausetext)}},touch:function(){var i,r,s,o,l,d,e,n,c,u=!1,t=0,a=0,v=0;if(s){g.style.mstouchaction="none",g._gesture=new msgesture,(g._gesture.target=g).addeventlistener("mspointerdown",function p(e){e.stoppropagation(),h.animating?e.preventdefault():(h.pause(),g._gesture.addpointer(e.pointerid),v=0,o=x?h.h:h.w,d=number(new date),s=b&&y&&h.animatingto===h.last?0:b&&y?h.limit-(h.itemw+h.vars.itemmargin)*h.move*h.animatingto:b&&h.currentslide===h.last?h.limit:b?(h.itemw+h.vars.itemmargin)*h.move*h.currentslide:y?(h.last-h.currentslide+h.cloneoffset)*o:(h.currentslide+h.cloneoffset)*o)},!1),g._slider=h,g.addeventlistener("msgesturechange",function m(e){e.stoppropagation();var t=e.target._slider;if(!t)return;var a=-e.translationx,n=-e.translationy;if(v+=x?n:a,l=(t.vars.rtl?-1:1)*v,u=x?math.abs(v)o/2)?t.flexanimate(n,t.vars.pauseonaction):w||t.flexanimate(t.currentslide,t.vars.pauseonaction,!0)}s=l=r=i=null,v=0},!1)}else e=function(e){h.animating?e.preventdefault():(window.navigator.mspointerenabled||1===e.touches.length)&&(h.pause(),o=x?h.h:h.w,d=number(new date),t=e.touches[0].pagex,a=e.touches[0].pagey,s=b&&y&&h.animatingto===h.last?0:b&&y?h.limit-(h.itemw+h.vars.itemmargin)*h.move*h.animatingto:b&&h.currentslide===h.last?h.limit:b?(h.itemw+h.vars.itemmargin)*h.move*h.currentslide:y?(h.last-h.currentslide+h.cloneoffset)*o:(h.currentslide+h.cloneoffset)*o,i=x?a:t,r=x?t:a,g.addeventlistener("touchmove",n,!1),g.addeventlistener("touchend",c,!1))},n=function(e){t=e.touches[0].pagex,a=e.touches[0].pagey,l=x?i-a:(h.vars.rtl?-1:1)*(i-t);(!(u=x?math.abs(l)o/2)?h.flexanimate(a,h.vars.pauseonaction):w||h.flexanimate(h.currentslide,h.vars.pauseonaction,!0)}g.removeeventlistener("touchend",c,!1),s=l=r=i=null},g.addeventlistener("touchstart",e,!1)},resize:function(){!h.animating&&h.is(":visible")&&(b||h.domath(),w?p.smoothheight():b?(h.slides.width(h.computedw),h.update(h.pagingcount),h.setprops()):x?(h.viewport.height(h.h),h.setprops(h.h,"settotal")):(h.vars.smoothheight&&p.smoothheight(),h.newslides.width(h.computedw),h.setprops(h.computedw,"settotal")))},smoothheight:function(e){if(!x||w){var t=w?h:h.viewport;e?t.animate({height:h.slides.eq(h.animatingto).innerheight()},e):t.innerheight(h.slides.eq(h.animatingto).innerheight())}},sync:function(e){var t=m(h.vars.sync).data("flexslider"),a=h.animatingto;switch(e){case"animate":t.flexanimate(a,h.vars.pauseonaction,!1,!0);break;case"play":t.playing||t.asnav||t.play();break;case"pause":t.pause()}},uniqueid:function(e){return e.filter("[id]").add(e.find("[id]")).each(function(){var e=m(this);e.attr("id",e.attr("id")+"_clone")}),e},pauseinvisible:{visprop:null,init:function(){var e=p.pauseinvisible.gethiddenprop();if(e){var t=e.replace(/[h|h]idden/,"")+"visibilitychange";document.addeventlistener(t,function(){p.pauseinvisible.ishidden()?h.starttimeout?cleartimeout(h.starttimeout):h.pause():h.started?h.play():0h.currentslide?"next":"prev"),v&&1===h.pagingcount&&(h.direction=h.currentitemh.limit&&1!==h.visible?h.limit:l):0===h.currentslide&&e===h.count-1&&h.vars.animationloop&&"next"!==h.direction?y?(h.count+h.cloneoffset)*d:0:h.currentslide===h.last&&0===e&&h.vars.animationloop&&"prev"!==h.direction?y?0:(h.count+1)*d:y?(h.count-1-e+h.cloneoffset)*d:(e+h.cloneoffset)*d,h.setprops(o,"",h.vars.animationspeed),h.transitions?(h.vars.animationloop&&h.atend||(h.animating=!1,h.currentslide=h.animatingto),h.container.unbind("webkittransitionend transitionend"),h.container.bind("webkittransitionend transitionend",function(){cleartimeout(h.ensureanimationend),h.wrapup(d)}),cleartimeout(h.ensureanimationend),h.ensureanimationend=settimeout(function(){h.wrapup(d)},h.vars.animationspeed+100)):h.container.animate(h.args,h.vars.animationspeed,h.vars.easing,function(){h.wrapup(d)})}h.vars.smoothheight&&p.smoothheight(h.vars.animationspeed)}},h.wrapup=function(e){w||b||(0===h.currentslide&&h.animatingto===h.last&&h.vars.animationloop?h.setprops(e,"jumpend"):h.currentslide===h.last&&0===h.animatingto&&h.vars.animationloop&&h.setprops(e,"jumpstart")),h.animating=!1,h.currentslide=h.animatingto,h.vars.after(h)},h.animateslides=function(){!h.animating&&a&&h.flexanimate(h.gettarget("next"))},h.pause=function(){clearinterval(h.animatedslides),h.animatedslides=null,h.playing=!1,h.vars.pauseplay&&p.pauseplay.update("play"),h.syncexists&&p.sync("pause")},h.play=function(){h.playing&&clearinterval(h.animatedslides),h.animatedslides=h.animatedslides||setinterval(h.animateslides,h.vars.slideshowspeed),h.started=h.playing=!0,h.vars.pauseplay&&p.pauseplay.update("pause"),h.syncexists&&p.sync("play")},h.stop=function(){h.pause(),h.stopped=!0},h.canadvance=function(e,t){var a=v?h.pagingcount-1:h.last;return!!t||(v&&h.currentitem===h.count-1&&0===e&&"prev"===h.direction||(!v||0!==h.currentitem||e!==h.pagingcount-1||"next"===h.direction)&&((e!==h.currentslide||v)&&(!!h.vars.animationloop||(!h.atend||0!==h.currentslide||e!==a||"next"===h.direction)&&(!h.atend||h.currentslide!==a||0!==e||"next"!==h.direction))))},h.gettarget=function(e){return"next"===(h.direction=e)?h.currentslide===h.last?0:h.currentslide+1:0===h.currentslide?h.last:h.currentslide-1},h.setprops=function(e,t,a){var n,i=(n=e||(h.itemw+h.vars.itemmargin)*h.move*h.animatingto,function(){if(b)return"settouch"===t?e:y&&h.animatingto===h.last?0:y?h.limit-(h.itemw+h.vars.itemmargin)*h.move*h.animatingto:h.animatingto===h.last?h.limit:n;switch(t){case"settotal":return y?(h.count-1-h.currentslide+h.cloneoffset)*e:(h.currentslide+h.cloneoffset)*e;case"settouch":return e;case"jumpend":return y?e:h.count*e;case"jumpstart":return y?h.count*e:e;default:return e}}()*(h.vars.rtl?1:-1)+"px");h.transitions&&(i=x?"translate3d(0,"+i+",0)":"translate3d("+parseint(i)+"px,0,0)",a=a!==undefined?a/1e3+"s":"0s",h.container.css("-"+h.pfx+"-transition-duration",a),h.container.css("transition-duration",a)),h.args[h.prop]=i,(h.transitions||a===undefined)&&h.container.css(h.args),h.container.css("transform",i)},h.setup=function(e){var t,a;w?(h.vars.rtl?h.slides.css({width:"100%","float":"right",marginleft:"-100%",position:"relative"}):h.slides.css({width:"100%","float":"left",marginright:"-100%",position:"relative"}),"init"===e&&(u?h.slides.css({opacity:0,display:"block",webkittransition:"opacity "+h.vars.animationspeed/1e3+"s ease",zindex:1}).eq(h.currentslide).css({opacity:1,zindex:2}):0==h.vars.fadefirstslide?h.slides.css({opacity:0,display:"block",zindex:1}).eq(h.currentslide).css({zindex:2}).css({opacity:1}):h.slides.css({opacity:0,display:"block",zindex:1}).eq(h.currentslide).css({zindex:2}).animate({opacity:1},h.vars.animationspeed,h.vars.easing)),h.vars.smoothheight&&p.smoothheight()):("init"===e&&(h.viewport=m('
    ').css({overflow:"hidden",position:"relative"}).appendto(h).append(h.container),h.clonecount=0,h.cloneoffset=0,y&&(a=m.makearray(h.slides).reverse(),h.slides=m(a),h.container.empty().append(h.slides))),h.vars.animationloop&&!b&&(h.clonecount=2,h.cloneoffset=1,"init"!==e&&h.container.find(".clone").remove(),h.container.append(p.uniqueid(h.slides.first().clone().addclass("clone")).attr("aria-hidden","true")).prepend(p.uniqueid(h.slides.last().clone().addclass("clone")).attr("aria-hidden","true"))),h.newslides=m(h.vars.selector,h),t=y?h.count-1-h.currentslide+h.cloneoffset:h.currentslide+h.cloneoffset,x&&!b?(h.container.height(200*(h.count+h.clonecount)+"%").css("position","absolute").width("100%"),settimeout(function(){h.newslides.css({display:"block"}),h.domath(),h.viewport.height(h.h),h.setprops(t*h.h,"init")},"init"===e?100:0)):(h.container.width(200*(h.count+h.clonecount)+"%"),h.setprops(t*h.computedw,"init"),settimeout(function(){h.domath(),h.vars.rtl?h.newslides.css({width:h.computedw,marginright:h.computedm,"float":"right",display:"block"}):h.newslides.css({width:h.computedw,marginright:h.computedm,"float":"left",display:"block"}),h.vars.smoothheight&&p.smoothheight()},"init"===e?100:0)));b||h.slides.removeclass(c+"active-slide").eq(h.currentslide).addclass(c+"active-slide"),h.vars.init(h)},h.domath=function(){var e=h.slides.first(),t=h.vars.itemmargin,a=h.vars.minitems,n=h.vars.maxitems;h.w=h.viewport===undefined?h.width():h.viewport.width(),h.isfirefox&&(h.w=h.width()),h.h=e.height(),h.boxpadding=e.outerwidth()-e.width(),b?(h.itemt=h.vars.itemwidth+t,h.itemm=t,h.minw=a?a*h.itemt:h.w,h.maxw=n?n*h.itemt-t:h.w,h.itemw=h.minw>h.w?(h.w-t*(a-1))/a:h.maxwh.w?h.w:h.vars.itemwidth,h.visible=math.floor(h.w/h.itemw),h.move=0h.w?h.itemw*(h.count-1)+t*(h.count-1):(h.itemw+t)*h.count-h.w-t):(h.itemw=h.w,h.itemm=t,h.pagingcount=h.count,h.last=h.count-1),h.computedw=h.itemw-h.boxpadding,h.computedm=h.itemm},h.update=function(e,t){h.domath(),b||(eh.controlnav.length?p.controlnav.update("add"):("remove"===t&&!b||h.pagingcounth.last&&(h.currentslide-=1,h.animatingto-=1),p.controlnav.update("remove",h.last))),h.vars.directionnav&&p.directionnav.update()},h.addslide=function(e,t){var a=m(e);h.count+=1,h.last=h.count-1,x&&y?t!==undefined?h.slides.eq(h.count-t).after(a):h.container.prepend(a):t!==undefined?h.slides.eq(t).before(a):h.container.append(a),h.update(t,"add"),h.slides=m(h.vars.selector+":not(.clone)",h),h.setup(),h.vars.added(h)},h.removeslide=function(e){var t=isnan(e)?h.slides.index(m(e)):e;h.count-=1,h.last=h.count-1,isnan(e)?m(e,h.slides).remove():x&&y?h.slides.eq(h.last).remove():h.slides.eq(e).remove(),h.domath(),h.update(t,"remove"),h.slides=m(h.vars.selector+":not(.clone)",h),h.setup(),h.vars.removed(h)},p.init()},m(window).blur(function(e){a=!1}).focus(function(e){a=!0}),m.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,fadefirstslide:!0,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:"",customdirectionnav:"",sync:"",asnavfor:"",itemwidth:0,itemmargin:0,minitems:1,maxitems:0,move:0,allowoneslide:!0,isfirefox:!1,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){},rtl:!1},m.fn.flexslider=function(n){if(n===undefined&&(n={}),"object"==typeof n)return this.each(function(){var e=m(this),t=n.selector?n.selector:".slides > li",a=e.find(t);1===a.length&&!1===n.allowoneslide||0===a.length?(a.fadein(400),n.start&&n.start(e)):e.data("flexslider")===undefined&&new m.flexslider(this,n)});var e=m(this).data("flexslider");switch(n){case"play":e.play();break;case"pause":e.pause();break;case"stop":e.stop();break;case"next":e.flexanimate(e.gettarget("next"),!0);break;case"prev":case"previous":e.flexanimate(e.gettarget("prev"),!0);break;default:"number"==typeof n&&e.flexanimate(n,!0)}}}(jquery);