var fusion={fusionResizeWidth:0,fusionResizeHeight:0,toBool:function(e){return 1===e||"1"===e||!0===e||"true"===e||"on"===e},restArguments:function(e,t){return t=t==null?e.length-1:+t,function(){for(var o,i=Math.max(arguments.length-t,0),s=Array(i),n=0;n
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:a},t.prototype.init=function(t,n,s){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(s),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o,r,c,i=this.options.trigger.split(" "),a=i.length;a--;)o=i[a],"click"==o?this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this)):"manual"!=o&&(r="hover"==o?"mouseenter":"focusin",c="hover"==o?"mouseleave":"focusout",this.$element.on(r+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(c+"."+this.type,this.options.selector,e.proxy(this.leave,this)));this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){var i,s=this.$element.data();for(i in s)s.hasOwnProperty(i)&&-1!==e.inArray(i,o)&&delete s[i];return(t=e.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=n(t.template,t.whiteList,t.sanitizeFn)),t},t.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,s){n[e]!=s&&(t[e]=s)}),t},t.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)}},t.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},t.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},t.prototype.show=function(){if(c=e.Event("show.bs."+this.type),this.hasContent()&&this.enabled){if(this.$element.trigger(c),p=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!p)return;var i,c,d,f,p,g,o=this,s=this.tip(),m=this.getUID(this.type);this.setContent(),s.attr("id",m),this.$element.attr("aria-describedby",m),this.options.animation&&s.addClass("fade");var n="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,u=/\s?auto?\s?/i,h=u.test(n);h&&(n=n.replace(u,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(n).data("bs."+this.type,this).addClass(this.$element.data("class")),this.options.container?s.appendTo(e(document).find(this.options.container)):s.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var a=this.getPosition(),r=s[0].offsetWidth,l=s[0].offsetHeight;h&&(f=n,i=this.getPosition(this.$viewport),n="bottom"==n&&a.bottom+l>i.bottom?"top":"top"==n&&a.top-li.width?"left":"left"==n&&a.left-ro.top+o.height&&(i.top=o.top+o.height-c)):(l=t.left-a,d=t.left+a+n,lo.right&&(i.left=o.left+o.width-d)),i},t.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},t.prototype.getUID=function(e){do e+=~~(1e6*Math.random());while(document.getElementById(e))return e},t.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},t.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null})},t.prototype.sanitizeHtml=function(e){return n(e,this.options.whiteList,this.options.sanitizeFn)},s=e.fn.tooltip,e.fn.tooltip=function(n){return this.each(function(){var o=e(this),s=o.data("bs.tooltip"),i="object"==typeof n&&n;!s&&/destroy|hide/.test(n)||(s||o.data("bs.tooltip",s=new t(this,i)),"string"==typeof n&&"function"==typeof s[n]&&s[n]())})},e.fn.tooltip.Constructor=t,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=s,this}}(jQuery) ;!function(){"use strict";var n=0,t={};function e(s){if(!s)throw new Error("No options passed to Waypoint constructor");if(!s.element)throw new Error("No element option passed to Waypoint constructor");if(!s.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+n,this.options=e.Adapter.extend({},e.defaults,s),this.element=this.options.element,this.adapter=new e.Adapter(this.element),this.callback=s.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=e.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=e.Context.findOrCreateByElement(this.options.context),e.offsetAliases[this.options.offset]&&(this.options.offset=e.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),t[this.key]=this,n+=1}e.prototype.queueTrigger=function(e){this.group.queueTrigger(this,e)},e.prototype.trigger=function(e){this.enabled&&this.callback&&this.callback.apply(this,e)},e.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete t[this.key]},e.prototype.disable=function(){return this.enabled=!1,this},e.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},e.prototype.next=function(){return this.group.next(this)},e.prototype.previous=function(){return this.group.previous(this)},e.invokeAll=function(e){n=[];for(o in t)n.push(t[o]);for(var n,o,s=0,i=n.length;se.oldScroll?e.forward:e.backward;for(c in this.waypoints[o])t=this.waypoints[o][c],null!==t.triggerPoint&&(i=e.oldScroll=t.triggerPoint,(i&&a||!i&&!a)&&(t.queueTrigger(r),s[t.group.id]=t.group))}for(l in s)s[l].flushTriggers();this.oldScroll={x:n.horizontal.newScroll,y:n.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?t.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(e){delete this.waypoints[e.axis][e.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?t.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){e=[];for(n in this.waypoints)for(s in this.waypoints[n])e.push(this.waypoints[n][s]);for(var e,n,s,t=0,o=e.length;t-1&&(s=Math.ceil(n.contextDimension*s/100))),d=n.contextScroll-n.contextOffset,e.triggerPoint=Math.floor(p+d-s),r=f=n.oldScroll,u=!r&&!c,!l&&r&&c?(e.queueTrigger(n.backward),i[e.group.id]=e.group):!l&&u?(e.queueTrigger(n.forward),i[e.group.id]=e.group):l&&n.oldScroll>=e.triggerPoint&&(e.queueTrigger(n.forward),i[e.group.id]=e.group)}}return t.requestAnimationFrame(function(){for(var e in i)i[e].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var e in n)n[e].refresh()},e.findByElement=function(e){return n[e.waypointContextKey]},window.onload=function(){o&&o(),e.refreshAll()},t.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||i).call(window,e)},t.Context=e}(),function(){"use strict";function n(e,t){return e.triggerPoint-t.triggerPoint}function o(e,t){return t.triggerPoint-e.triggerPoint}var s={vertical:{},horizontal:{}},t=window.Waypoint;function e(e){this.name=e.name,this.axis=e.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),s[this.axis][this.name]=this}e.prototype.add=function(e){this.waypoints.push(e)},e.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},e.prototype.flushTriggers=function(){for(t in this.triggerQueues){var e,t,i,a,s=this.triggerQueues[t],r="up"===t||"left"===t;s.sort(r?o:n);for(e=0,a=s.length;e-1&&this.waypoints.splice(n,1)},e.prototype.first=function(){return this.waypoints[0]},e.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},e.findOrCreate=function(t){return s[t.axis][t.name]||new e(t)},t.Group=e}(),function(){"use strict";var e=window.jQuery,n=window.Waypoint;function t(t){this.$element=e(t)}e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,n){t.prototype[n]=function(){var e=Array.prototype.slice.call(arguments);return this.$element[n].apply(this.$element,e)}}),e.each(["extend","inArray","isEmptyObject"],function(n,s){t[s]=e[s]}),n.adapters.push({name:"jquery",Adapter:t}),n.Adapter=t}(),function(){"use strict";var t=window.Waypoint;function e(e){return function(){var n=[],s=arguments[0];return e.isFunction(arguments[0])&&((s=e.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var o=e.extend({},s,{element:this});"string"==typeof o.context&&(o.context=e(this).closest(o.context)[0]),n.push(new t(o))}),n}}window.jQuery&&(window.jQuery.fn.waypoint=e(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=e(window.Zepto))}() ;!function(e,t){for(var o,a=0,r=function(e){o&&(t.requestAnimationFrame(r,e),jQuery.fx.tick())},i=["ms","moz","webkit","o"],s=0,c=i.length;sx

',o.appendChild(s.childNodes[1])}return t&&e.extend(n,t),this.each(function(){var t,s,o=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];n.customSelector&&o.push(n.customSelector),t=".fitvidsignore",n.ignore&&(t=t+", "+n.ignore),s=e(this).find(o.join(",")),(s=(s=s.not("object object")).not(t)).each(function(){var s,o,n=e(this);n.parents(t).length>0||"embed"===this.tagName.toLowerCase()&&n.parent("object").length||n.parent(".fluid-width-video-wrapper").length||(n.css("height")||n.css("width")||!isNaN(n.attr("height"))&&!isNaN(n.attr("width"))||(n.attr("height",9),n.attr("width",16)),s=("object"===this.tagName.toLowerCase()||n.attr("height")&&!isNaN(parseInt(n.attr("height"),10))?parseInt(n.attr("height"),10):n.height())/(isNaN(parseInt(n.attr("width"),10))?n.width():parseInt(n.attr("width"),10)),n.attr("name")||(o="fitvid"+e.fn.fitVids._count,n.attr("name",o),e.fn.fitVids._count++),n.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*s+"%"),n.removeAttr("height").removeAttr("width"))})})},e.fn.fitVids._count=0}(window.jQuery||window.Zepto) ;!function(e){var t=!0;e.flexslider=function(n,s){o=e(n),0[0]===s.rtl&&"rtl"==e("html").attr("dir")&&(s.rtl=!0),o.vars=e.extend({},e.flexslider.defaults,s);var o,g,a=o.vars.namespace,p=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,f=("ontouchstart"in window||p||window.DocumentTouch&&document instanceof DocumentTouch)&&o.vars.touch,m="click touchend MSPointerUp keyup",c="",d="vertical"===o.vars.direction,l=o.vars.reverse,r=o.vars.itemWidth>0,u="fade"===o.vars.animation,h=""!==o.vars.asNavFor,i={};e.data(n,"flexslider",o),i={init:function(){o.animating=!1,o.currentSlide=parseInt(o.vars.startAt?o.vars.startAt:0,10),isNaN(o.currentSlide)&&(o.currentSlide=0),o.animatingTo=o.currentSlide,o.atEnd=0===o.currentSlide||o.currentSlide===o.last,o.containerSelector=o.vars.selector.substr(0,o.vars.selector.search(" ")),o.slides=e(o.vars.selector,o),o.container=e(o.containerSelector,o),o.count=o.slides.length,o.syncExists=e(o.vars.sync).length>0,"slide"===o.vars.animation&&(o.vars.animation="swing"),o.prop=d?"top":o.vars.rtl?"marginRight":"marginLeft",o.args={},o.manualPause=!1,o.stopped=!1,o.started=!1,o.startTimeout=null,o.transitions=!o.vars.video&&!u&&o.vars.useCSS&&function(){var t,n=document.createElement("div"),e=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(t in e)if(0[0]!==n.style[e[t]])return o.pfx=e[t].replace("Perspective","").toLowerCase(),o.prop="-"+o.pfx+"-transform",!0;return!1}(),o.isFirefox=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,o.ensureAnimationEnd="",""!==o.vars.controlsContainer&&(o.controlsContainer=e(o.vars.controlsContainer).length>0&&e(o.vars.controlsContainer)),""!==o.vars.manualControls&&(o.manualControls=e(o.vars.manualControls).length>0&&e(o.vars.manualControls)),""!==o.vars.customDirectionNav&&(o.customDirectionNav=2===e(o.vars.customDirectionNav).length&&e(o.vars.customDirectionNav)),o.vars.randomize&&(o.slides.sort(function(){return Math.round(Math.random())-.5}),o.container.empty().append(o.slides)),o.doMath(),o.setup("init"),o.vars.controlNav&&i.controlNav.setup(),o.vars.directionNav&&i.directionNav.setup(),o.vars.keyboard&&(1===e(o.containerSelector).length||o.vars.multipleKeyboard)&&e(document).bind("keyup",function(e){var n,t=e.keyCode;!o.animating&&(39===t||37===t)&&(n=o.vars.rtl?37===t?o.getTarget("next"):39===t&&o.getTarget("prev"):39===t?o.getTarget("next"):37===t&&o.getTarget("prev"),o.flexAnimate(n,o.vars.pauseOnAction))}),o.vars.mousewheel&&o.bind("mousewheel",function(e,t){e.preventDefault();var i=t<0?o.getTarget("next"):o.getTarget("prev");o.flexAnimate(i,o.vars.pauseOnAction)}),o.vars.pausePlay&&i.pausePlay.setup(),o.vars.slideshow&&o.vars.pauseInvisible&&i.pauseInvisible.init(),o.vars.slideshow&&(o.vars.pauseOnHover&&o.hover(function(){o.manualPlay||o.manualPause||o.pause()},function(){o.manualPause||o.manualPlay||o.stopped||o.play()}),o.vars.pauseInvisible&&i.pauseInvisible.isHidden()||(o.vars.initDelay>0?o.startTimeout=setTimeout(o.play,o.vars.initDelay):o.play())),h&&i.asNav.setup(),f&&o.vars.touch&&i.touch(),(!u||u&&o.vars.smoothHeight)&&e(window).bind("resize orientationchange focus",i.resize),o.find("img").attr("draggable","false"),setTimeout(function(){o.vars.start(o)},200)},asNav:{setup:function(){o.asNav=!0,o.animatingTo=Math.floor(o.currentSlide/o.move),o.currentItem=o.currentSlide,o.slides.removeClass(a+"active-slide").eq(o.currentItem).addClass(a+"active-slide"),p?(n._slider=o,o.slides.each(function(){this._gesture=new MSGesture,this._gesture.target=this,this.addEventListener("MSPointerDown",function(e){e.preventDefault(),e.currentTarget._gesture&&e.currentTarget._gesture.addPointer(e.pointerId)},!1),this.addEventListener("MSGestureTap",function(t){t.preventDefault();var n=e(this),s=n.index();e(o.vars.asNavFor).data("flexslider").animating||n.hasClass("active")||(o.direction=o.currentItem'),o.pagingCount>1)for(s=0;s").attr("href","#").text(d),"thumbnails"===o.vars.controlNav&&(n=e("").attr("src",t.attr("data-thumb"))),""!==t.attr("data-thumb-alt")&&n.attr("alt",t.attr("data-thumb-alt")),"thumbnails"===o.vars.controlNav&&!0===o.vars.thumbCaptions)&&(r=t.attr("data-thumbcaption"),""!==r&&0[0]!==r&&(u=e("").addClass(a+"caption").text(r),n.append(u))),l=e("
  • "),n.appendTo(l),l.append("
  • "),o.controlNavScaffold.append(l),d++;o.controlsContainer?e(o.controlsContainer).append(o.controlNavScaffold):o.append(o.controlNavScaffold),i.controlNav.set(),i.controlNav.active(),o.controlNavScaffold.delegate("a, img",m,function(t){if(t.preventDefault(),""===c||c===t.type){var n=e(this),s=o.controlNav.index(n);n.hasClass(a+"active")||(o.direction=s>o.currentSlide?"next":"prev",o.flexAnimate(s,o.vars.pauseOnAction))}""===c&&(c=t.type),i.setToClearWatchedEvent()})},setupManual:function(){o.controlNav=o.manualControls,i.controlNav.active(),o.controlNav.bind(m,function(t){if(t.preventDefault(),""===c||c===t.type){var n=e(this),s=o.controlNav.index(n);n.hasClass(a+"active")||(s>o.currentSlide?o.direction="next":o.direction="prev",o.flexAnimate(s,o.vars.pauseOnAction))}""===c&&(c=t.type),i.setToClearWatchedEvent()})},set:function(){var t="thumbnails"===o.vars.controlNav?"img":"a";o.controlNav=e("."+a+"control-nav li "+t,o.controlsContainer?o.controlsContainer:o)},active:function(){o.controlNav.removeClass(a+"active").eq(o.animatingTo).addClass(a+"active")},update:function(t,n){o.pagingCount>1&&"add"===t?o.controlNavScaffold.append(e('
  • '+o.count+"
  • ")):1===o.pagingCount?o.controlNavScaffold.find("li").remove():o.controlNav.eq(n).closest("li").remove(),i.controlNav.set(),o.pagingCount>1&&o.pagingCount!==o.controlNav.length?o.update(n,t):i.controlNav.active()}},directionNav:{setup:function(){var t=e('");o.customDirectionNav?o.directionNav=o.customDirectionNav:o.controlsContainer?(e(o.controlsContainer).append(t),o.directionNav=e("."+a+"direction-nav li a",o.controlsContainer)):(o.append(t),o.directionNav=e("."+a+"direction-nav li a",o)),i.directionNav.update(),o.directionNav.bind(m,function(t){var n;t.preventDefault(),""!==c&&c!==t.type||(n=e(this).hasClass(a+"next")?o.getTarget("next"):o.getTarget("prev"),o.flexAnimate(n,o.vars.pauseOnAction)),""===c&&(c=t.type),i.setToClearWatchedEvent()})},update:function(){var e=a+"disabled";1===o.pagingCount?o.directionNav.addClass(e).attr("tabindex","-1"):o.vars.animationLoop?o.directionNav.removeClass(e).removeAttr("tabindex"):0===o.animatingTo?o.directionNav.removeClass(e).filter("."+a+"prev").addClass(e).attr("tabindex","-1"):o.animatingTo===o.last?o.directionNav.removeClass(e).filter("."+a+"next").addClass(e).attr("tabindex","-1"):o.directionNav.removeClass(e).removeAttr("tabindex")}},pausePlay:{setup:function(){var t=e('
    ');o.controlsContainer?(o.controlsContainer.append(t),o.pausePlay=e("."+a+"pauseplay a",o.controlsContainer)):(o.append(t),o.pausePlay=e("."+a+"pauseplay a",o)),i.pausePlay.update(o.vars.slideshow?a+"pause":a+"play"),o.pausePlay.bind(m,function(t){t.preventDefault(),""!==c&&c!==t.type||(e(this).hasClass(a+"pause")?(o.manualPause=!0,o.manualPlay=!1,o.pause()):(o.manualPause=!1,o.manualPlay=!0,o.play())),""===c&&(c=t.type),i.setToClearWatchedEvent()})},update:function(e){"play"===e?o.pausePlay.removeClass(a+"pause").addClass(a+"play").html(o.vars.playText):o.pausePlay.removeClass(a+"play").addClass(a+"pause").html(o.vars.pauseText)}},touch:function(){var e,i,a,c,h,m,f,g,v,b=!1,t=0,s=0;p||(v=function(e){o.animating?e.preventDefault():(window.navigator.msPointerEnabled||1===e.touches.length)&&(o.pause(),i=d?o.h:o.w,m=Number(new Date),t=e.touches[0].pageX,s=e.touches[0].pageY,h=r&&l&&o.animatingTo===o.last?0:r&&l?o.limit-(o.itemW+o.vars.itemMargin)*o.move*o.animatingTo:r&&o.currentSlide===o.last?o.limit:r?(o.itemW+o.vars.itemMargin)*o.move*o.currentSlide:l?(o.last-o.currentSlide+o.cloneOffset)*i:(o.currentSlide+o.cloneOffset)*i,a=d?s:t,c=d?t:s,n.addEventListener("touchmove",f,!1),n.addEventListener("touchend",g,!1))},f=function(n){t=n.touches[0].pageX,s=n.touches[0].pageY,e=d?a-s:(o.vars.rtl?-1:1)*(a-t),(!(b=d?(e<0?-e:e)500)&&(n.preventDefault(),!u&&o.transitions&&(o.vars.animationLoop||(e/=0===o.currentSlide&&e<0||o.currentSlide===o.last&&e>0?(e<0?-e:e)/i+2:1),o.setProps(h+e,"setTouch")))},g=function(){if(n.removeEventListener("touchmove",f,!1),o.animatingTo===o.currentSlide&&!b&&null!==e){var s=l?-e:e,r=s>0?o.getTarget("next"):o.getTarget("prev");o.canAdvance(r)&&(Number(new Date)-m<550&&(s<0?-s:s)>50||(s<0?-s:s)>i/2)?o.flexAnimate(r,o.vars.pauseOnAction):!u&&o.canAdvance(r)&&o.flexAnimate(o.currentSlide,o.vars.pauseOnAction,!0)}n.removeEventListener("touchend",g,!1),o.vars.slideshow&&null!==e&&50>(s<0?-s:s)&&o.play(),a=null,c=null,e=null,h=null},n.addEventListener("touchstart",v,!1))},resize:function(){!o.animating&&o.is(":visible")&&(r||o.doMath(),u?i.smoothHeight():r?(o.slides.width(o.computedW),o.update(o.pagingCount),o.setProps()):d?(o.viewport.height(o.h),o.setProps(o.h,"setTotal")):(o.vars.smoothHeight&&i.smoothHeight(),o.newSlides.width(o.computedW),o.setProps(o.computedW,"setTotal")))},smoothHeight:function(e){if(!d||u){var t=u?o:o.viewport;e?t.animate({height:o.slides.eq(o.animatingTo).innerHeight()},e):t.innerHeight(o.slides.eq(o.animatingTo).innerHeight())}},sync:function(t){var n=e(o.vars.sync).data("flexslider"),s=o.animatingTo;switch(t){case"animate":n.flexAnimate(s,o.vars.pauseOnAction,!1,!0);break;case"play":n.playing||n.asNav||n.play();break;case"pause":n.pause()}},uniqueID:function(t){return t.filter("[id]").add(t.find("[id]")).each(function(){var t=e(this);t.attr("id",t.attr("id")+"_clone")}),t},pauseInvisible:{visProp:null,init:function(){var t,e=i.pauseInvisible.getHiddenProp();e&&(t=e.replace(/[H|h]idden/,"")+"visibilitychange",document.addEventListener(t,function(){i.pauseInvisible.isHidden()?o.startTimeout?clearTimeout(o.startTimeout):o.pause():o.started?o.play():o.vars.initDelay>0?setTimeout(o.play,o.vars.initDelay):o.play()}))},isHidden:function(){var e=i.pauseInvisible.getHiddenProp();return!!e&&document[e]},getHiddenProp:function(){var e,t=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(e=0;eo.currentSlide?"next":"prev"),h&&1===o.pagingCount&&(o.direction=o.currentItemo.limit&&1!==o.visible?o.limit:j):g=0===o.currentSlide&&t===o.count-1&&o.vars.animationLoop&&"next"!==o.direction?l?(o.count+o.cloneOffset)*p:0:o.currentSlide===o.last&&0===t&&o.vars.animationLoop&&"prev"!==o.direction?l?0:(o.count+1)*p:l?(o.count-1-t+o.cloneOffset)*p:(t+o.cloneOffset)*p,o.setProps(g,"",o.vars.animationSpeed),o.transitions?(o.vars.animationLoop&&o.atEnd||(o.animating=!1,o.currentSlide=o.animatingTo),o.container.unbind("webkitTransitionEnd transitionend"),o.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(o.ensureAnimationEnd),o.wrapup(p)}),clearTimeout(o.ensureAnimationEnd),o.ensureAnimationEnd=setTimeout(function(){o.wrapup(p)},o.vars.animationSpeed+100)):o.container.animate(o.args,o.vars.animationSpeed,o.vars.easing,function(){o.wrapup(p)})),o.vars.smoothHeight&&i.smoothHeight(o.vars.animationSpeed)}},o.wrapup=function(e){u||r||(0===o.currentSlide&&o.animatingTo===o.last&&o.vars.animationLoop?o.setProps(e,"jumpEnd"):o.currentSlide===o.last&&0===o.animatingTo&&o.vars.animationLoop&&o.setProps(e,"jumpStart")),o.animating=!1,o.currentSlide=o.animatingTo,o.vars.after(o)},o.animateSlides=function(){!o.animating&&t&&o.flexAnimate(o.getTarget("next"))},o.pause=function(){clearInterval(o.animatedSlides),o.animatedSlides=null,o.playing=!1,o.vars.pausePlay&&i.pausePlay.update("play"),o.syncExists&&i.sync("pause")},o.play=function(){o.playing&&clearInterval(o.animatedSlides),o.animatedSlides=o.animatedSlides||setInterval(o.animateSlides,o.vars.slideshowSpeed),o.started=o.playing=!0,o.vars.pausePlay&&i.pausePlay.update("pause"),o.syncExists&&i.sync("play")},o.stop=function(){o.pause(),o.stopped=!0},o.canAdvance=function(e,t){var n=h?o.pagingCount-1:o.last;return!!t||!(!h||o.currentItem!==o.count-1||0!==e||"prev"!==o.direction)||(!h||0!==o.currentItem||e!==o.pagingCount-1||"next"===o.direction)&&!(e===o.currentSlide&&!h)&&(!!o.vars.animationLoop||(!o.atEnd||0!==o.currentSlide||e!==n||"next"===o.direction)&&(!o.atEnd||o.currentSlide!==n||0!==e||"next"!==o.direction))},o.getTarget=function(e){return o.direction=e,"next"===e?o.currentSlide===o.last?0:o.currentSlide+1:0===o.currentSlide?o.last:o.currentSlide-1},o.setProps=function(e,t,n){var i,s=(i=e||(o.itemW+o.vars.itemMargin)*o.move*o.animatingTo,function(){if(r)return"setTouch"===t?e:l&&o.animatingTo===o.last?0:l?o.limit-(o.itemW+o.vars.itemMargin)*o.move*o.animatingTo:o.animatingTo===o.last?o.limit:i;switch(t){case"setTotal":return l?(o.count-1-o.currentSlide+o.cloneOffset)*e:(o.currentSlide+o.cloneOffset)*e;case"setTouch":return e;case"jumpEnd":return l?e:o.count*e;case"jumpStart":return l?o.count*e:e;default:return e}}()*(o.vars.rtl?1:-1)+"px");o.transitions&&(s=o.isFirefox?d?"translate3d(0,"+s+",0)":"translate3d("+parseInt(s)+"px,0,0)":d?"translate3d(0,"+s+",0)":"translate3d("+(o.vars.rtl?-1:1)*parseInt(s)+"px,0,0)",n=0[0]!==n?n/1e3+"s":"0s",o.container.css("-"+o.pfx+"-transition-duration",n),o.container.css("transition-duration",n)),o.args[o.prop]=s,(o.transitions||0[0]===n)&&o.container.css(o.args),o.container.css("transform",s)},o.setup=function(t){var n,s;u?(o.vars.rtl?o.slides.css({width:"100%",float:"right",marginLeft:"-100%",position:"relative"}):o.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===t&&(f?o.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+o.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(o.currentSlide).css({opacity:1,zIndex:2}):0==o.vars.fadeFirstSlide?o.slides.css({opacity:0,display:"block",zIndex:1}).eq(o.currentSlide).css({zIndex:2}).css({opacity:1}):o.slides.css({opacity:0,display:"block",zIndex:1}).eq(o.currentSlide).css({zIndex:2}).animate({opacity:1},o.vars.animationSpeed,o.vars.easing)),o.vars.smoothHeight&&i.smoothHeight()):("init"===t&&(o.viewport=e('
    ').css({overflow:"hidden",position:"relative"}).appendTo(o).append(o.container),o.cloneCount=0,o.cloneOffset=0,l&&(s=e.makeArray(o.slides).reverse(),o.slides=e(s),o.container.empty().append(o.slides))),o.vars.animationLoop&&!r&&(o.cloneCount=2,o.cloneOffset=1,"init"!==t&&o.container.find(".clone").remove(),i.uniqueID(o.slides.first().clone().addClass("clone").attr("aria-hidden","true")).appendTo(o.container),i.uniqueID(o.slides.last().clone().addClass("clone").attr("aria-hidden","true")).prependTo(o.container)),o.newSlides=e(o.vars.selector,o),n=l?o.count-1-o.currentSlide+o.cloneOffset:o.currentSlide+o.cloneOffset,d&&!r?(o.container.height(200*(o.count+o.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){o.newSlides.css({display:"block"}),o.doMath(),o.viewport.height(o.h),o.setProps(n*o.h,"init")},"init"===t?100:0)):(o.container.width(200*(o.count+o.cloneCount)+"%"),o.setProps(n*o.computedW,"init"),setTimeout(function(){o.is(":visible")&&o.doMath(),o.vars.rtl&&o.isFirefox?o.newSlides.css({width:o.computedW,marginRight:o.computedM,float:"right",display:"block"}):o.newSlides.css({width:o.computedW,marginRight:o.computedM,float:"left",display:"block"}),o.vars.smoothHeight&&i.smoothHeight()},"init"===t?100:0))),r||o.slides.removeClass(a+"active-slide").eq(o.currentSlide).addClass(a+"active-slide"),o.vars.init(o)},o.doMath=function(){var s=o.slides.first(),e=o.vars.itemMargin,t=o.vars.minItems,n=o.vars.maxItems;o.w=0[0]===o.viewport?o.width():o.viewport.width(),o.isFirefox&&(o.w=o.width()),o.h=s.height(),o.boxPadding=s.outerWidth()-s.width(),r?(o.itemT=o.vars.itemWidth+e,o.itemM=e,o.minW=t?t*o.itemT:o.w,o.maxW=n?n*o.itemT-e:o.w,o.itemW=o.minW>o.w?(o.w-e*(t-1))/t:o.maxWo.w?o.w:o.vars.itemWidth,o.visible=Math.floor(o.w/(o.itemW+e)),o.move=o.vars.move>0&&o.vars.moveo.w?o.itemW*(o.count-1)+e*(o.count-1):(o.itemW+e)*o.count-o.w-e):(o.itemW=o.w,o.itemM=e,o.pagingCount=o.count,o.last=o.count-1),o.computedW=o.itemW-o.boxPadding,o.computedM=o.itemM},o.update=function(e,t){o.doMath(),r||(eo.controlNav.length?i.controlNav.update("add"):("remove"===t&&!r||o.pagingCounto.last&&(o.currentSlide-=1,o.animatingTo-=1),i.controlNav.update("remove",o.last))),o.vars.directionNav&&i.directionNav.update()},o.addSlide=function(t,n){var s=e(t);o.count+=1,o.last=o.count-1,d&&l?0[0]!==n?o.slides.eq(o.count-n).after(s):o.container.prepend(s):0[0]!==n?o.slides.eq(n).before(s):o.container.append(s),o.update(n,"add"),o.slides=e(o.vars.selector+":not(.clone)",o),o.setup(),o.vars.added(o)},o.removeSlide=function(t){var n=isNaN(t)?o.slides.index(e(t)):t;o.count-=1,o.last=o.count-1,isNaN(t)?e(t,o.slides).remove():d&&l?o.slides.eq(o.last).remove():o.slides.eq(t).remove(),o.doMath(),o.update(n,"remove"),o.slides=e(o.vars.selector+":not(.clone)",o),o.setup(),o.vars.removed(o)},o.destroy=function(){var t="."+o.vars.namespace;o.vars.controlNav&&o.controlNav.closest(t+"control-nav").remove(),o.vars.directionNav&&o.directionNav.closest(t+"direction-nav").remove(),o.vars.pausePlay&&o.pausePlay.closest(t+"pauseplay").remove(),o.find(".clone").remove(),o.unbind(o.vars.eventNamespace),"fade"!=o.vars.animation&&o.container.unwrap(),o.container.removeAttr("style"),o.container.unbind(o.vars.eventNamespace),o.slides.removeAttr("style"),o.slides.filter(t+"active-slide").removeClass(o.vars.namespace+"active-slide"),o.slides.unbind(o.vars.eventNamespace),e(document).unbind(o.vars.eventNamespace+"-"+o.id),e(window).unbind(o.vars.eventNamespace+"-"+o.id),o.stop(),o.removeData("flexslider")},i.init()},e(window).blur(function(){t=!1}).focus(function(){t=!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,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"",nextText:"",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},e.fn.flexslider=function(t){if(0[0]===t&&(t={}),"object"==typeof t)return this.each(function(){var n=e(this),o=t.selector?t.selector:".slides > li",s=n.find(o);1===s.length&&!1===t.allowOneSlide||0===s.length?(s.fadeIn(400),t.start&&t.start(n)):0[0]===n.data("flexslider")&&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;case"destroy":n.destroy();break;default:"number"==typeof t&&n.flexAnimate(t,!0)}}}(jQuery)