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;n1&&n+e>this.cols?0:n,s=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=s?n+e:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,e)}},n._manageStamp=function(e){var n,l,a=t(e),s=this._getElementOffset(e),r=this._getOption("originLeft")?s.left:s.right,c=r+a.outerWidth,i=Math.floor(r/this.columnWidth),i=Math.max(0,i),o=Math.floor(c/this.columnWidth);o-=c%this.columnWidth?0:1;for(o=Math.min(this.cols-1,o),l=(this._getOption("originTop")?s.top:s.bottom)+a.outerHeight,n=i;n<=o;n++)this.colYs[n]=Math.max(l,this.colYs[n])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},n._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},s}),function(e,t){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],t):"object"==typeof module&&module.exports?module.exports=t(require("../layout-mode"),require("masonry-layout")):t(e.Isotope.LayoutMode,e.Masonry)}(window,function(e,t){"use strict";var s,i,a,o=e.create("masonry"),n=o.prototype,r={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(s in t.prototype)r[s]||(n[s]=t.prototype[s]);return i=n.measureColumns,n.measureColumns=function(){this.items=this.isotope.filteredItems,i.call(this)},a=n._getOption,n._getOption=function(e){return"fitWidth"==e?0[0]!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},o}),function(e,t){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],t):"object"==typeof exports?module.exports=t(require("../layout-mode")):t(e.Isotope.LayoutMode)}(window,function(e){"use strict";var n=e.create("fitRows"),t=n.prototype;return t._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},t._getItemLayoutPosition=function(e){e.getSize();var n,t=e.size.outerWidth+this.gutter-.01,s=this.isotope.size.innerWidth+this.gutter;return 0!==this.x&&t+this.x>s&&(this.x=0,this.y=this.maxY),n={x:this.x,y:this.y},this.maxY=Math.max(this.maxY,this.y+e.size.outerHeight),this.x+=t,n},t._getContainerSize=function(){return{height:this.maxY}},n}),function(e,t){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],t):"object"==typeof module&&module.exports?module.exports=t(require("../layout-mode")):t(e.Isotope.LayoutMode)}(window,function(e){"use strict";var n=e.create("vertical",{horizontalAlignment:0}),t=n.prototype;return t._resetLayout=function(){this.y=0},t._getItemLayoutPosition=function(e){e.getSize();var t=(this.isotope.size.innerWidth-e.size.outerWidth)*this.options.horizontalAlignment,n=this.y;return this.y+=e.size.outerHeight,{x:t,y:n}},t._getContainerSize=function(){return{height:this.y}},n}),function(e,t){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(n,s,o,i,a,r){return t(e,n,s,o,i,a,r)}):"object"==typeof module&&module.exports?module.exports=t(e,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope/js/item"),require("isotope/js/layout-mode"),require("isotope/js/layout-modes/masonry"),require("isotope/js/layout-modes/fit-rows"),require("isotope/js/layout-modes/vertical")):e.Isotope=t(e,e.Outlayer,e.getSize,e.matchesSelector,e.fizzyUIUtils,e.Isotope.Item,e.Isotope.LayoutMode)}(window,function(e,t,n,s,o,i,a){var r,d,u,l=e.jQuery,h=String.prototype.trim?function(e){return e.trim()}:function(e){return e.replace(/^\s+|\s+$/g,"")},c=t.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});return c.Item=i,c.LayoutMode=a,r=c.prototype,r._create=function(){for(var e in this.itemGUID=0,this._sorters={},this._getSorters(),t.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],a.modes)this._initLayoutMode(e)},r.reloadItems=function(){this.itemGUID=0,t.prototype.reloadItems.call(this)},r._itemize=function(){for(var e=t.prototype._itemize.apply(this,arguments),n=0;nr||ar?1:-1)*l}return 0}}(this.sortHistory,this.options.sortAscending),this.filteredItems.sort(t)}},r._getIsSameSortBy=function(e){for(var t=0;t=e.x+t&&this.y+this.height>=e.y+n},t.overlaps=function(e){var t=this.x+this.width,n=this.y+this.height,s=e.x+e.width,o=e.y+e.height;return this.xe.x&&this.ye.y},t.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var n,i=[],s=Math.round(this.x),o=Math.round(this.y),a=Math.round(this.width),r=Math.round(this.height),c=Math.round(t.x),l=Math.round(t.y),h=s+a,m=o+r,d=c+Math.round(t.width),u=l+Math.round(t.height);return od&&(n=new e({x:d,y:o,width:h-d,height:r}),i.push(n)),m>u&&(n=new e({x:s,y:u,width:a,height:m-u}),i.push(n)),s=e.width&&this.height>=e.height},e}),function(e,t){if("function"==typeof define&&define.amd)define("packery/js/packer",["./rect"],t);else if("object"==typeof module&&module.exports)module.exports=t(require("./rect"));else{var n=e.Packery=e.Packery||{};n.Packer=t(n.Rect)}}(window,function(e){function n(e,t,n){this.width=e||0,this.height=t||0,this.sortDirection=n||"downwardLeftToRight",this.reset()}var s,t=n.prototype;return t.reset=function(){this.spaces=[];var t=new e({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t),this.sorter=s[this.sortDirection]||s.downwardLeftToRight},t.pack=function(e){for(var n,t=0;t=e.x+e.width&&t.height>=e.height-.01){e.y=t.y,this.placed(e);break}},t.rowPack=function(e){for(var t,n=0;n=e.y+e.height&&t.width>=e.width-.01){e.x=t.x,this.placed(e);break}},t.placeInSpace=function(e,t){e.x=t.x,e.y=t.y,this.placed(e)},t.placed=function(e){for(var n,o,i,a,t=[],s=0;s=e.width-2&&this.height>=e.height-2};var i,r,a=t.create("packery");a.Item=o,i=a.prototype;function c(e,t){return e.position.y-t.position.y||e.position.x-t.position.x}function l(e,t){return e.position.x-t.position.x||e.position.y-t.position.y}return i._create=function(){t.prototype._create.call(this),this.packer=new s,this.shiftPacker=new s,this.isEnabled=!0,this.dragItemCount=0;var e=this;this.handleDraggabilly={dragStart:function(){e.itemDragStart(this.element)},dragMove:function(){e.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){e.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(t,n){n&&e.itemDragStart(t.currentTarget)},drag:function(t,n){n&&e.itemDragMove(t.currentTarget,n.position.left,n.position.top)},stop:function(t,n){n&&e.itemDragEnd(t.currentTarget)}}},i._resetLayout=function(){var e,t,n;this.getSize(),this._getMeasurements(),this._getOption("horizontal")?(e=1/0,t=this.size.innerHeight+this.gutter,n="rightwardTopToBottom"):(e=this.size.innerWidth+this.gutter,t=1/0,n="downwardLeftToRight"),this.packer.width=this.shiftPacker.width=e,this.packer.height=this.shiftPacker.height=t,this.packer.sortDirection=this.shiftPacker.sortDirection=n,this.packer.reset(),this.maxY=0,this.maxX=0},i._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},i._getItemLayoutPosition=function(e){if(this._setRectSize(e.element,e.rect),this.isShifting||this.dragItemCount>0){var t=this._getPackMethod();this.packer[t](e.rect)}else this.packer.pack(e.rect);return this._setMaxXY(e.rect),e.rect},i.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},i._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},i._setMaxXY=function(e){this.maxX=Math.max(e.x+e.width,this.maxX),this.maxY=Math.max(e.y+e.height,this.maxY)},i._setRectSize=function(t,n){window.currentPackeryElement=t;var i=e(t),s=i.outerWidth,o=i.outerHeight;(s||o)&&(s=this._applyGridGutter(s,this.columnWidth),o=this._applyGridGutter(o,this.rowHeight)),n.width=Math.min(s,this.packer.width),n.height=Math.min(o,this.packer.height)},i._applyGridGutter=function(e,t){if(!t)return e+this.gutter;var n=e%(t+=this.gutter);return e=Math[n&&n<1?"round":"ceil"](e/t)*t},i._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},i._manageStamp=function(e){var t,s,o=this.getItem(e);o&&o.isPlacing?t=o.rect:(s=this._getElementOffset(e),t=new n({x:this._getOption("originLeft")?s.left:s.right,y:this._getOption("originTop")?s.top:s.bottom})),this._setRectSize(e,t),this.packer.placed(t),this._setMaxXY(t)},i.sortItemsByPosition=function(){var e=this._getOption("horizontal")?l:c;this.items.sort(e)},i.fit=function(e,t,n){var s=this.getItem(e);s&&(this.stamp(s.element),s.enablePlacing(),this.updateShiftTargets(s),t=0[0]===t?s.rect.x:t,n=0[0]===n?s.rect.y:n,this.shift(s,t,n),this._bindFitEvents(s),s.moveTo(s.rect.x,s.rect.y),this.shiftLayout(),this.unstamp(s.element),this.sortItemsByPosition(),s.disablePlacing())},i._bindFitEvents=function(e){var n=this,s=0;function t(){2==++s&&n.dispatchEvent("fitComplete",null,[e])}e.once("layout",t),this.once("layoutComplete",t)},i.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},i.needsResizeLayout=function(){var n=e(this.element),t=this._getOption("horizontal")?"innerHeight":"innerWidth";return n[t]!=this.size[t]},i.resizeShiftPercentLayout=function(){var a,r,c,o=this._getItemsForLayout(this.items),t=this._getOption("horizontal"),n=t?"y":"x",l=t?"height":"width",i=t?"rowHeight":"columnWidth",d=t?"innerHeight":"innerWidth",s=this[i];(s=s&&s+this.gutter)?(this._getMeasurements(),a=this[i]+this.gutter,o.forEach(function(e){var t=Math.round(e.rect[n]/s);e.rect[n]=t*a})):(r=e(this.element)[d]+this.gutter,c=this.packer[l],o.forEach(function(e){e.rect[n]=e.rect[n]/c*r})),this.shiftLayout()},i.itemDragStart=function(e){if(this.isEnabled){this.stamp(e);var t=this.getItem(e);t&&(t.enablePlacing(),t.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(t))}},i.updateShiftTargets=function(e){this.shiftPacker.reset(),this._getBoundingRect(),c=this._getOption("originLeft"),l=this._getOption("originTop"),this.stamps.forEach(function(e){if(s=this.getItem(e),!s||!s.isPlacing){var s,t=this._getElementOffset(e),o=new n({x:c?t.left:t.right,y:l?t.top:t.bottom});this._setRectSize(e,o),this.shiftPacker.placed(o)}},this);var t,s,a,r,c,l,d,u,h,o=this._getOption("horizontal"),m=o?"rowHeight":"columnWidth",i=o?"height":"width";if(this.shiftTargetKeys=[],this.shiftTargets=[],t=this[m],t=t&&t+this.gutter){d=Math.ceil(e.rect[i]/t),r=Math.floor((this.shiftPacker[i]+this.gutter)/t),s=(r-d)*t;for(a=0;an||(s=e+","+t,-1!=this.shiftTargetKeys.indexOf(s)||(this.shiftTargetKeys.push(s),this.shiftTargets.push({x:e,y:t})))},i.shift=function(e,t,n){var s,o=1/0,i={x:t,y:n};this.shiftTargets.forEach(function(e){var t,n,a,r,c=(t=(r=i).x-(a=e).x,n=r.y-a.y,(t*t+n*n)**.5);c',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(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)
;!function(e){e.fn.hoverFlow=function(t,n,s,o,i){if(-1==e.inArray(t,["mouseover","mouseenter","mouseout","mouseleave"]))return this;var r,a="object"==typeof s?s:{complete:i||!i&&o||e.isFunction(s)&&s,duration:s,easing:i&&o||o&&!e.isFunction(o)&&o};return a.queue=!1,r=a.complete,a.complete=function(){e(this).dequeue(),e.isFunction(r)&&r.call(this)},this.each(function(){var s=e(this);"mouseover"==t||"mouseenter"==t?s.data("jQuery.hoverFlow",!0):s.removeData("jQuery.hoverFlow"),s.queue(function(){("mouseover"==t||"mouseenter"==t?0[0]!==s.data("jQuery.hoverFlow"):0[0]===s.data("jQuery.hoverFlow"))?s.animate(n,a):s.queue([])})})}}(jQuery)
;!function(e){e.fn.hoverIntent=function(t,n,s){var a,r,c,l,o={interval:100,sensitivity:7,timeout:0},o="object"==typeof t?e.extend(o,t):e.isFunction(n)?e.extend(o,{over:t,out:n,selector:s}):e.extend(o,{over:t,out:t,selector:n}),i=function(e){a=e.pageX,r=e.pageY},d=function(t,n){if(n.hoverIntent_t=clearTimeout(n.hoverIntent_t),Math.abs(c-a)+Math.abs(l-r)