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;st?(s(o,"Not enough items ("+t+" total, "+c+" needed): Hiding navigation."),i="hide"):i="show";var i,c,a="show"==i?"removeClass":"addClass",r=h("hidden",o);e.auto.button&&e.auto.button[i]()[a](r),e.prev.button&&e.prev.button[i]()[a](r),e.next.button&&e.next.button[i]()[a](r),e.pagination.container&&e.pagination.container[i]()[a](r)}function j(e,t,n){if(!e.circular&&!e.infinite){var o,s=("removeClass"==t||"addClass"==t)&&t,i=h("disabled",n);(e.auto.button&&s&&e.auto.button[s](i),e.prev.button)&&(o=s||0==t?"addClass":"removeClass",e.prev.button[o](i)),e.next.button&&(o=s||t==e.items.visible?"addClass":"removeClass",e.next.button[o](i))}}function S(e,t){return i(t)?t=t.call(e):r(t)&&(t={}),t}function ke(e,t){return n(t=S(e,t))?t={visible:t}:"variable"==t?t={visible:t,width:t,height:t}:c(t)||(t={}),t}function Be(e,t){return n(t=S(e,t))?t=t<=50?{items:t}:{duration:t}:a(t)?t={easing:t}:c(t)||(t={}),t}function N(t,n){if(a(n=S(t,n))){var s=oe(n);n=-1==s?e(n):s}return n}function Ie(e,t){return d(t=N(e,t))?t={button:t}:o(t)?t={play:t}:n(t)&&(t={timeoutDuration:t}),t.progress&&(a(t.progress)||d(t.progress))&&(t.progress={bar:t.progress}),t}function He(t,s){return i(s.button)&&(s.button=s.button.call(t)),a(s.button)&&(s.button=e(s.button)),o(s.play)||(s.play=!0),n(s.delay)||(s.delay=0),r(s.pauseOnEvent)&&(s.pauseOnEvent=!0),o(s.pauseOnResize)||(s.pauseOnResize=!0),n(s.timeoutDuration)||(s.timeoutDuration=s.duration<10?2500:5*s.duration),s.progress&&(i(s.progress.bar)&&(s.progress.bar=s.progress.bar.call(t)),a(s.progress.bar)&&(s.progress.bar=e(s.progress.bar)),s.progress.bar?(i(s.progress.updater)||(s.progress.updater=e.fn.carouFredSel.progressbarUpdater),n(s.progress.interval)||(s.progress.interval=50)):s.progress=!1),s}function he(e,t){return d(t=N(e,t))?t={button:t}:n(t)&&(t={key:t}),t}function me(t,n){return i(n.button)&&(n.button=n.button.call(t)),a(n.button)&&(n.button=e(n.button)),a(n.key)&&(n.key=oe(n.key)),n}function Pe(e,t){return d(t=N(e,t))?t={container:t}:o(t)&&(t={keys:t}),t}function Re(t,s){return i(s.container)&&(s.container=s.container.call(t)),a(s.container)&&(s.container=e(s.container)),n(s.items)||(s.items=!1),o(s.keys)||(s.keys=!1),i(s.anchorBuilder)||$(s.anchorBuilder)||(s.anchorBuilder=e.fn.carouFredSel.pageAnchorBuilder),n(s.deviation)||(s.deviation=0),s}function Le(e,t){return i(t)&&(t=t.call(e)),r(t)&&(t={onTouch:!1}),O(t)?t={onTouch:t}:n(t)&&(t={items:t}),t}function ge(e,t){return o(t.onTouch)||(t.onTouch=!0),o(t.onMouse)||(t.onMouse=!1),c(t.options)||(t.options={}),o(t.options.triggerOnTouchEnd)||(t.options.triggerOnTouchEnd=!1),t}function Ne(e,t){return i(t)&&(t=t.call(e)),O(t)?t={}:n(t)?t={items:t}:r(t)&&(t=!1),t}function De(e,t){return t}function w(t,s,i,r,l){if(a(t)&&(t=e(t,l)),c(t)&&(t=e(t,l)),d(t)?(t=l.children().index(t),o(i)||(i=!1)):o(i)||(i=!0),n(t)||(t=0),n(s)||(s=0),i&&(t+=r.first),t+=s,r.total>0){for(;t>=r.total;)t-=r.total;for(;t<0;)t+=r.total}return t}function H(e,t,n){for(var o,a=0,i=0,s=n;s>=0;s--){if(o=e.eq(s),(a+=o.is(":visible")?o[t.d.outerWidth](!0):0)>t.maxDimension)return i;0==s&&(s=e.length),i++}}function ze(e,t,n){return de(e,t.items.filter,t.items.visibleConf.org,n)}function Te(e,t,n,s){return de(e,t.items.filter,s,n)}function de(e,t,n,s){for(var r=0,i=0,o=s,a=e.length;o>=0;o--){if(++i==a)return i;if(e.eq(o).is(t)&&++r==n)return i;0==o&&(o=a)}}function re(e,t){return t.items.visibleConf.org||e.children().slice(0,t.items.visible).filter(t.items.filter).length}function g(e,t,n){for(var a,r=0,o=0,s=n,i=e.length-1;s<=i;s++){if(a=e.eq(s),(r+=a.is(":visible")?a[t.d.outerWidth](!0):0)>t.maxDimension)return o;if(++o==i+1)return o;s==i&&(s=-1)}}function ae(e,t,n,s){var o=g(e,t,n);return t.circular||n+o>s&&(o=s-n),o}function C(e,t,n){return Z(e,t.items.filter,t.items.visibleConf.org,n,t.circular)}function Fe(e,t,n,s){return Z(e,t.items.filter,s+1,n,t.circular)-1}function Z(e,t,n,s){for(var c=0,a=0,i=s,r=e.length-1;i<=r;i++){if(++a>=r)return a;if(e.eq(i).is(t)&&++c==n)return a;i==r&&(i=-1)}}function b(e,t){return e.slice(0,t.items.visible)}function Me(e,t,n){return e.slice(n,t.items.visibleConf.old+n)}function ve(e,t){return e.slice(0,t.items.visible)}function Ae(e,t){return e.slice(0,t.items.visibleConf.old)}function Ee(e,t,n){return e.slice(n,t.items.visible+n)}function W(t,s,o){s.usePadding&&(a(o)||(o="_cfs_origCssMargin"),t.each(function(){var i=e(this),t=parseInt(i.css(s.d.marginRight),10);n(t)||(t=0),i.data(o,t)}))}function l(t,s,i){if(s.usePadding){var a=!!o(i)&&i;n(i)||(i=0),W(t,s,"_cfs_tempCssMargin"),t.each(function(){var t=e(this);t.css(s.d.marginRight,a?t.data("_cfs_tempCssMargin"):i+t.data("_cfs_origCssMargin"))})}}function z(t){t.each(function(){var t=e(this);t.data("_cfs_origCss",t.attr("style")||"")})}function U(t){t.each(function(){var t=e(this);t.attr("style",t.data("_cfs_origCss")||"")})}function K(t,n){t.items.visible;var o=t.items[t.d.width],s=t[t.d.height],i=F(s);n.each(function(){var n=e(this),a=o-Ce(n,t,"Width");n[t.d.width](a),i&&n[t.d.height](D(a,s))})}function V(e,t){var s,o,a,c=e.parent(),i=e.children(),r=b(i,t),n=L(B(r,t,!0),t,!1);return(c.css(n),t.usePadding)&&(s=t.padding,o=s[t.d[1]],t.align&&o<0&&(o=0),a=r.last(),a.css(t.d.marginRight,a.data("_cfs_origCssMargin")+o),e.css(t.d.top,s[t.d[0]]),e.css(t.d.left,s[t.d[3]])),e.css(t.d.width,n[t.d.width]+2*m(i,t,"width")),e.css(t.d.height,Q(i,t,"height")),t.centerVertically&&e.css("line-height",n.height+"px"),n}function B(e,t,n){return[m(e,t,"width",n),Q(e,t,"height",n)]}function Q(e,t,s,i){return o(i)||(i=!1),n(t[t.d[s]])&&i?t[t.d[s]]:n(t.items[t.d[s]])?t.items[t.d[s]]:M(e,t,s=s.toLowerCase().indexOf("width")>-1?"outerWidth":"outerHeight")}function M(e,t,n){for(var i,a,s=0,o=0,r=e.length;o-1?"outerWidth":"outerHeight",c=0,a=0,d=e.length;a-1&&r(o[n])){o[n]=e[s];break}return o}function xe(e){if(r(e))return[0,0,0,0];if(n(e))return[e,e,e,e];if(a(e)&&(e=e.split("px").join("").split("em").join("").split(" ")),!f(e))return[0,0,0,0];for(var t=0;t<4;t++)e[t]=parseInt(e[t],10);switch(e.length){case 0:return[0,0,0,0];case 1:return[e[0],e[0],e[0],e[0]];case 2:return[e[0],e[1],e[0],e[1]];case 3:return[e[0],e[1],e[2],e[1]];default:return[e[0],e[1],e[2],e[3]]}}function R(e,t){var s=n(t[t.d.width])?Math.ceil(t[t.d.width]-m(e,t,"width")):0;switch(t.align){case"left":return[0,s];case"right":return[s,0];case"center":default:return[Math.ceil(s/2),Math.floor(s/2)]}}function Se(e){for(var n=[["width","innerWidth","outerWidth","height","innerHeight","outerHeight","left","top","marginRight",0,1,2,3],["height","innerHeight","outerHeight","width","innerWidth","outerWidth","top","left","marginBottom",3,2,1,0]],o=n[0].length,i="right"==e.direction||"left"==e.direction?0:1,s={},t=0;tl.length)var r,l,d,u=!0,h=d[0],c=d[1];else u=!1,h=l[0],c=l[1];switch(h){case"even":r=e%2==1?e-1:e;break;case"odd":r=e%2==0?e-1:e;break;default:r=e}n(c=parseInt(c,10))&&(u&&(c=-c),r+=c)}return(!n(r)||r<1)&&(r=1),r}function u(e,t,n,s){return fe(P(e,t,n,s),t.items.visibleConf)}function fe(e,t){return n(t.min)&&et.max&&(e=t.max),e<1&&(e=1),e}function pe(t){f(t)||(t=[[t]]),f(t[0])||(t=[t]);for(var s=0,i=t.length;s0?":visible":"*"),e[t.d.width]||(t.responsive?(s(!0,"Set a "+t.d.width+" for the items!"),e[t.d.width]=M(o,t,"outerWidth")):e[t.d.width]=ne(o,t,"outerWidth")?"variable":o[t.d.outerWidth](!0)),e[t.d.height]||(e[t.d.height]=ne(o,t,"outerHeight")?"variable":o[t.d.outerHeight](!0)),e.sizesConf.width=e.width,e.sizesConf.height=e.height,e}function _e(e,t){return"variable"==e.items[e.d.width]&&(e.items.visibleConf.variable=!0),e.items.visibleConf.variable||(n(e[e.d.width])?e.items.visible=Math.floor(e[e.d.width]/e.items[e.d.width]):(e.items.visible=Math.floor(t/e.items[e.d.width]),e[e.d.width]=e.items.visible*e.items[e.d.width],e.items.visibleConf.adjust||(e.align=!1)),("Infinity"==e.items.visible||e.items.visible<1)&&(s(!0,'Not a valid number of visible items: Set to "variable".'),e.items.visibleConf.variable=!0)),e}function we(e,t,n){return"auto"==e&&(e=M(n,t,"outerWidth")),e}function Oe(e,t,n){return"auto"==e&&(e=M(n,t,"outerHeight")),e||(e=t.items[t.d.height]),e}function le(e,t){var n=R(b(t,e),e);return e.padding[e.d[1]]=n[1],e.padding[e.d[3]]=n[0],e}function q(e,t){var o,s=fe(Math.ceil(e[e.d.width]/e.items[e.d.width]),e.items.visibleConf);return s>t.length&&(s=t.length),o=Math.floor(e[e.d.width]/s),e.items.visible=s,e.items[e.d.width]=o,e[e.d.width]=s*o,e}function y(e){if(a(e))var t=e.indexOf("immediate")>-1,n=e.indexOf("resume")>-1;else t=n=!1;return[t,n]}function Ve(e){return n(e)?e:null}function G(e){return null===e}function r(e){return G(e)||0[0]===e||""===e||"undefined"===e}function f(e){return e instanceof Array}function d(e){return e instanceof jQuery}function c(e){return(e instanceof Object||"object"==typeof e)&&!G(e)&&!d(e)&&!f(e)&&!i(e)}function n(e){return(e instanceof Number||"number"==typeof e)&&!isNaN(e)}function a(e){return(e instanceof String||"string"==typeof e)&&!r(e)&&!O(e)&&!$(e)}function i(e){return e instanceof Function||"function"==typeof e}function o(e){return e instanceof Boolean||"boolean"==typeof e||O(e)||$(e)}function O(e){return!0===e||"true"===e}function $(e){return!1===e||"false"===e}function F(e){return a(e)&&"%"==e.slice(-1)}function p(){return(new Date).getTime()}function T(e,t){s(!0,e+" is DEPRECATED, support for it will be removed. Use "+t+" instead.")}function s(e,t){if(!r(window.console)&&!r(window.console.log)){if(c(e)){var n=" ("+e.selector+")";e=e.debug}else n="";if(!e)return!1;t=a(t)?"carouFredSel"+n+": "+t:["carouFredSel"+n+":",t],window.console.log(t)}return!1}e.fn.carouFredSel||(e.fn.caroufredsel=e.fn.carouFredSel=function(M,N){if(0==this.length)return s(!0,'No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){e(this).carouFredSel(M,N)});var G=this,oe=this[0],Qe=!1;G.data("_cfs_isCarousel")&&(Qe=G.triggerHandler("_cfs_triggerEvent","currentPosition"),G.trigger("_cfs_triggerEvent",["destroy",!0])),Ve={_init:function(t,s,o){(t=S(oe,t)).items=ke(oe,t.items),t.scroll=Be(oe,t.scroll),t.auto=Ie(oe,t.auto),t.prev=he(oe,t.prev),t.next=he(oe,t.next),t.pagination=Pe(oe,t.pagination),t.swipe=Le(oe,t.swipe),t.mousewheel=Ne(oe,t.mousewheel),s&&(qe=e.extend(!0,{},e.fn.carouFredSel.defaults,t)),($=e.extend(!0,{},e.fn.carouFredSel.defaults,t)).d=Se($),de.direction="up"==$.direction||"left"==$.direction?"next":"prev";var i=G.children(),a=ee(fe,$,"width");if(O($.cookie)&&($.cookie="caroufredsel_cookie_"+Q.serialNumber),$.maxDimension=te($,a),$.items=ye($.items,$,i,o),$[$.d.width]=we($[$.d.width],$,i),$[$.d.height]=Oe($[$.d.height],$,i),$.responsive&&(F($[$.d.width])||($[$.d.width]="100%")),F($[$.d.width])&&(de.upDateOnWindowResize=!0,de.primarySizePercentage=$[$.d.width],$[$.d.width]=D(a,de.primarySizePercentage),$.items.visible||($.items.visibleConf.variable=!0)),$.responsive?($.usePadding=!1,$.padding=[0,0,0,0],$.align=!1,$.items.visibleConf.variable=!1):($.items.visible||($=_e($,a)),$[$.d.width]||(!$.items.visibleConf.variable&&n($.items[$.d.width])&&"*"==$.items.filter?($[$.d.width]=$.items.visible*$.items[$.d.width],$.align=!1):$[$.d.width]="variable"),r($.align)&&($.align=!!n($[$.d.width])&&"center"),$.items.visibleConf.variable&&($.items.visible=g(i,$,0))),"*"==$.items.filter||$.items.visibleConf.variable||($.items.visibleConf.org=$.items.visible,$.items.visible=C(i,$,0)),$.items.visible=u($.items.visible,$,$.items.visibleConf.adjust,oe),$.items.visibleConf.old=$.items.visible,$.responsive)$.items.visibleConf.min||($.items.visibleConf.min=$.items.visible),$.items.visibleConf.max||($.items.visibleConf.max=$.items.visible),$=q($,i,a);else switch($.padding=xe($.padding),"top"==$.align?$.align="left":"bottom"==$.align&&($.align="right"),$.align){case"center":case"left":case"right":"variable"!=$[$.d.width]&&(($=le($,i)).usePadding=!0);break;default:$.align=!1,$.usePadding=0!=$.padding[0]||0!=$.padding[1]||0!=$.padding[2]||0!=$.padding[3]}n($.scroll.duration)||($.scroll.duration=500),r($.scroll.items)&&($.scroll.items=$.responsive||$.items.visibleConf.variable||"*"!=$.items.filter?"visible":$.items.visible),$.auto=e.extend(!0,{},$.scroll,$.auto),$.prev=e.extend(!0,{},$.scroll,$.prev),$.next=e.extend(!0,{},$.scroll,$.next),$.pagination=e.extend(!0,{},$.scroll,$.pagination),$.auto=He(oe,$.auto),$.prev=me(oe,$.prev),$.next=me(oe,$.next),$.pagination=Re(oe,$.pagination),$.swipe=ge(oe,$.swipe),$.mousewheel=De(oe,$.mousewheel),$.synchronise&&($.synchronise=pe($.synchronise)),$.auto.onPauseStart&&($.auto.onTimeoutStart=$.auto.onPauseStart,T("auto.onPauseStart","auto.onTimeoutStart")),$.auto.onPausePause&&($.auto.onTimeoutPause=$.auto.onPausePause,T("auto.onPausePause","auto.onTimeoutPause")),$.auto.onPauseEnd&&($.auto.onTimeoutEnd=$.auto.onPauseEnd,T("auto.onPauseEnd","auto.onTimeoutEnd")),$.auto.pauseDuration&&($.auto.timeoutDuration=$.auto.pauseDuration,T("auto.pauseDuration","auto.timeoutDuration"))},_build:function(){G.data("_cfs_isCarousel",!0);var t=G.children(),e=je(G,["textAlign","float","position","top","right","bottom","left","zIndex","width","height","marginTop","marginRight","marginBottom","marginLeft"]),n="relative";switch(e.position){case"absolute":case"fixed":n=e.position}"parent"==Q.wrapper?z(fe):fe.css(e),fe.css({overflow:"hidden",position:n}),z(G),G.data("_cfs_origCssZindex",e.zIndex),G.css({textAlign:"left",float:"none",position:"absolute",top:0,right:"auto",bottom:"auto",left:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}),W(t,$),z(t),$.responsive&&K($,t)},_bind_events:function(){Ve._unbind_events(),G.bind(t("stop",Q),function(e,n){return e.stopPropagation(),de.isStopped||$.auto.button&&$.auto.button.addClass(h("stopped",Q)),de.isStopped=!0,$.auto.play&&($.auto.play=!1,G.trigger(t("pause",Q),n)),!0}),G.bind(t("finish",Q),function(e){return e.stopPropagation(),de.isScrolling&&A(ne),!0}),G.bind(t("pause",Q),function(e,t,n){if((e.stopPropagation(),Ce=_(Ce),t&&de.isScrolling)&&(ne.isStopped=!0,s=p()-ne.startTime,ne.duration-=s,ne.pre&&(ne.pre.duration-=s),ne.post&&(ne.post.duration-=s),A(ne,!1)),de.isPaused||de.isScrolling||n&&(Ce.timePassed+=p()-Ce.startTime),de.isPaused||$.auto.button&&$.auto.button.addClass(h("paused",Q)),de.isPaused=!0,$.auto.onTimeoutPause){var s,o=$.auto.timeoutDuration-Ce.timePassed,i=100-Math.ceil(100*o/$.auto.timeoutDuration);$.auto.onTimeoutPause.call(oe,i,o)}return!0}),G.bind(t("play",Q),function(e,i,a,r){e.stopPropagation(),Ce=_(Ce);var c,l=v([i,a,r],["string","number","boolean"]);return i=l[0],a=l[1],r=l[2],"prev"!=i&&"next"!=i&&(i=de.direction),n(a)||(a=0),o(r)||(r=!1),r&&(de.isStopped=!1,$.auto.play=!0),$.auto.play?(de.isPaused&&$.auto.button&&($.auto.button.removeClass(h("stopped",Q)),$.auto.button.removeClass(h("paused",Q))),de.isPaused=!1,Ce.startTime=p(),c=$.auto.timeoutDuration+a,dur2=c-Ce.timePassed,perc=100-Math.ceil(100*dur2/c),$.auto.progress&&(Ce.progress=setInterval(function(){var e=p()-Ce.startTime+Ce.timePassed,t=Math.ceil(100*e/c);$.auto.progress.updater.call($.auto.progress.bar[0],t)},$.auto.progress.interval)),Ce.auto=setTimeout(function(){$.auto.progress&&$.auto.progress.updater.call($.auto.progress.bar[0],100),$.auto.onTimeoutEnd&&$.auto.onTimeoutEnd.call(oe,perc,dur2),de.isScrolling?G.trigger(t("play",Q),i):G.trigger(t(i,Q),$.auto)},dur2),$.auto.onTimeoutStart&&$.auto.onTimeoutStart.call(oe,perc,dur2),!0):(e.stopImmediatePropagation(),s(Q,"Carousel stopped: Not scrolling."))}),G.bind(t("resume",Q),function(e){return e.stopPropagation(),ne.isStopped?(ne.isStopped=!1,de.isPaused=!1,de.isScrolling=!0,ne.startTime=p(),x(ne,Q)):G.trigger(t("play",Q)),!0}),G.bind(t("prev",Q)+" "+t("next",Q),function(a,r,l,d,u){if(a.stopPropagation(),de.isStopped||G.is(":hidden"))return a.stopImmediatePropagation(),s(Q,"Carousel stopped or hidden: Not scrolling.");if(j=n($.items.minimum)?$.items.minimum:$.items.visible+1,j>Z.total)return a.stopImmediatePropagation(),s(Q,"Not enough items ("+Z.total+" total, "+j+" needed): Not scrolling.");if(r=(h=v([r,l,d,u],["object","number/string","function","boolean"]))[0],l=h[1],d=h[2],u=h[3],m=a.type.slice(Q.events.prefix.length),c(r)||(r={}),i(d)&&(r.onAfter=d),o(u)&&(r.queue=u),(r=e.extend(!0,{},$[m],r)).conditions&&!r.conditions.call(oe,m))return a.stopImmediatePropagation(),s(Q,'Callback "conditions" returned false.');if(!n(l)){if("*"!=$.items.filter)l="visible";else for(var m,b,j,g=[l,r.items,$[m].items],h=0,y=g.length;h0&&de.isScrolling)return r.queue&&("last"==r.queue&&(We=[]),"first"==r.queue&&0!=We.length||G.trigger(t("queue",Q),[m,[r,l,d]])),a.stopImmediatePropagation(),s(Q,"Carousel currently scrolling.");if(Ce.timePassed=0,G.trigger(t("slide_"+m,Q),[r,l]),$.synchronise){var p=$.synchronise,_=[r,l],f=0;for(y=p.length;f=Z.total;)Z.first-=Z.total;$.circular||(0==Z.first&&i.onEnd&&i.onEnd.call(oe,"prev"),$.infinite||j($,Z.first,Q)),G.children().slice(Z.total-a,Z.total).prependTo(G),Z.total<$.items.visible+a&&G.children().slice(0,$.items.visible+a-Z.total).clone(!0).appendTo(G);var ee=Me(r=G.children(),$,a),N=ve(r,$),w=r.eq(a-1),z=ee.last(),S=N.last();l(r,$),A=0,T=0,$.align&&(ae=R(N,$),A=ae[0],T=ae[1]);var ge=A<0?$.padding[$.d[3]]:0,le=!1,he=e();$.items.visible=0&&l(z,$,$.padding[$.d[1]]),A>=0&&l(w,$,$.padding[$.d[3]]),$.align&&($.padding[$.d[1]]=T,$.padding[$.d[3]]=A),xe[$.d.left]=-(je-ge),me[$.d.left]=-(_e-ge),V[$.d.left]=F[$.d.width];var d,h,v,W=function(){},y=function(){},b=function(){},be=function(){},f=function(){},ye=function(){},p=function(){},we=function(){};switch(i.fx){case"crossfade":case"cover":case"cover-fade":case"uncover":case"uncover-fade":c=G.clone(!0).appendTo(fe)}switch(i.fx){case"crossfade":case"uncover":case"uncover-fade":c.children().slice(0,a).remove(),c.children().slice($.items.visibleConf.old).remove();break;case"cover":case"cover-fade":c.children().slice($.items.visible).remove(),c.css(me)}if(G.css(xe),ne=k(te,i.easing,Q),O[$.d.left]=$.usePadding?$.padding[$.d[3]]:0,$.centerVertically&&(O["line-height"]=F.height+"px"),"variable"!=$[$.d.width]&&"variable"!=$[$.d.height]||(W=function(){fe.css(F)},y=function(){ne.anims.push([fe,F])}),$.usePadding){switch(S.not(w).length&&(D[$.d.marginRight]=w.data("_cfs_origCssMargin"),A<0?w.css(D):(p=function(){w.css(D)},we=function(){ne.anims.push([w,D])})),i.fx){case"cover":case"cover-fade":c.children().eq(a-1).css(D)}S.not(z).length&&(U[$.d.marginRight]=z.data("_cfs_origCssMargin"),b=function(){z.css(U)},be=function(){ne.anims.push([z,U])}),T>=0&&(K[$.d.marginRight]=S.data("_cfs_origCssMargin")+$.padding[$.d[1]],f=function(){S.css(K)},ye=function(){ne.anims.push([S,K])})}switch(v=function(){G.css(O)},I=$.items.visible+a-Z.total,h=function(){if(I>0&&(G.children().slice(Z.total).remove(),ee=e(G.children().slice(Z.total-($.items.visible-I)).get().concat(G.children().slice(0,I).get()))),se(le),$.usePadding){var t=G.children().eq($.items.visible+a-1);t.css($.d.marginRight,t.data("_cfs_origCssMargin"))}},q=Y(ee,he,N,a,"prev",te,F),d=function(){ce(G,c,i),de.isScrolling=!1,$e.onAfter=E(oe,i,"onAfter",q,$e),We=ie(G,We,Q),de.isPaused||G.trigger(t("play",Q))},de.isScrolling=!0,Ce=_(Ce),$e.onBefore=E(oe,i,"onBefore",q,$e),i.fx){case"none":G.css(O),W(),b(),f(),p(),v(),h(),d();break;case"fade":ne.anims.push([G,{opacity:0},function(){W(),b(),f(),p(),v(),h(),(ne=k(te,i.easing,Q)).anims.push([G,{opacity:1},d]),x(ne,Q)}]);break;case"crossfade":G.css({opacity:0}),ne.anims.push([c,{opacity:0}]),ne.anims.push([G,{opacity:1},d]),y(),b(),f(),p(),v(),h();break;case"cover":ne.anims.push([c,O,function(){b(),f(),p(),v(),h(),d()}]),y();break;case"cover-fade":ne.anims.push([G,{opacity:0}]),ne.anims.push([c,O,function(){b(),f(),p(),v(),h(),d()}]),y();break;case"uncover":ne.anims.push([c,V,d]),y(),b(),f(),p(),v(),h();break;case"uncover-fade":G.css({opacity:0}),ne.anims.push([G,{opacity:1}]),ne.anims.push([c,V,d]),y(),b(),f(),p(),v(),h();break;default:ne.anims.push([G,O,function(){h(),d()}]),y(),be(),ye(),we()}return x(ne,Q),ue($.cookie,G,Q),G.trigger(t("updatePageStatus",Q),[!1,F]),!0}),G.bind(t("slide_next",Q),function(o,i,a){if(o.stopPropagation(),r=G.children(),!$.circular&&Z.first==$.items.visible)return $.infinite&&G.trigger(t("prev",Q),Z.total-1),o.stopImmediatePropagation();if((l(r,$),!n(a))&&("*"!=$.items.filter?(M=n(i.items)?i.items:re(G,$),a=Fe(r,$,0,M)):a=$.items.visible,a=P(a,$,i.items,oe)),A=0==Z.first?Z.total:Z.first,$.circular||($.items.visibleConf.variable?(c=g(r,$,a),M=H(r,$,A-1)):(c=$.items.visible,M=$.items.visible),a+c>A&&(a=A-M)),$.items.visibleConf.old=$.items.visible,$.items.visibleConf.variable){for(c=u(ae(r,$,a,A),$,$.items.visibleConf.adjust,oe);$.items.visible-a>=c&&a=0&&(ge+=$.padding[$.d[1]]),we.css($.d.marginRight,ge),T.not(S).length&&(le[$.d.marginRight]=S.data("_cfs_origCssMargin")),p=function(){S.css(le)},be=function(){ne.anims.push([S,le])},pe=T.data("_cfs_origCssMargin"),O>0&&(pe+=$.padding[$.d[3]]),q[$.d.marginRight]=pe,f=function(){T.css(q)},je=function(){ne.anims.push([T,q])}),y=function(){G.css(N)},he=$.items.visible+a-Z.total,d=function(){he>0&&G.children().slice(Z.total).remove();var e,t=G.children().slice(0,a).appendTo(G).last();he>0&&(F=b(r,$)),se(I),$.usePadding&&(Z.total<$.items.visible+a&&(e=G.children().eq($.items.visible-1),e.css($.d.marginRight,e.data("_cfs_origCssMargin")+$.padding[$.d[1]])),t.css($.d.marginRight,t.data("_cfs_origCssMargin")))},te=Y(_e,V,F,a,"next",U,z),h=function(){G.css("zIndex",G.data("_cfs_origCssZindex")),ce(G,w,i),de.isScrolling=!1,$e.onAfter=E(oe,i,"onAfter",te,$e),We=ie(G,We,Q),de.isPaused||G.trigger(t("play",Q))},de.isScrolling=!0,Ce=_(Ce),$e.onBefore=E(oe,i,"onBefore",te,$e),i.fx){case"none":G.css(D),me(),p(),f(),y(),d(),h();break;case"fade":ne.anims.push([G,{opacity:0},function(){me(),p(),f(),y(),d(),(ne=k(U,i.easing,Q)).anims.push([G,{opacity:1},h]),x(ne,Q)}]);break;case"crossfade":G.css({opacity:0}),ne.anims.push([w,{opacity:0}]),ne.anims.push([G,{opacity:1},h]),v(),p(),f(),y(),d();break;case"cover":G.css($.d.left,fe[$.d.width]()),ne.anims.push([G,N,h]),v(),p(),f(),d();break;case"cover-fade":G.css($.d.left,fe[$.d.width]()),ne.anims.push([w,{opacity:0}]),ne.anims.push([G,N,h]),v(),p(),f(),d();break;case"uncover":ne.anims.push([w,ee,h]),v(),p(),f(),y(),d();break;case"uncover-fade":G.css({opacity:0}),ne.anims.push([G,{opacity:1}]),ne.anims.push([w,ee,h]),v(),p(),f(),y(),d();break;default:ne.anims.push([G,D,function(){y(),d(),h()}]),v(),be(),je()}return x(ne,Q),ue($.cookie,G,Q),G.trigger(t("updatePageStatus",Q),[!1,z]),!0}),G.bind(t("slideTo",Q),function(e,n,s,o,i,a,r){e.stopPropagation();var l=v([n,s,o,i,a,r],["string/number/object","number","boolean","object","string","function"]);return i=l[3],a=l[4],r=l[5],0!=(n=w(l[0],l[1],l[2],Z,G))&&(c(i)||(i=!1),"prev"!=a&&"next"!=a&&(a=$.circular?n<=Z.total/2?"next":"prev":0==Z.first||Z.first>n?"next":"prev"),"prev"==a&&(n=Z.total-n),G.trigger(t(a,Q),[i,n,r]),!0)}),G.bind(t("prevPage",Q),function(e,n,s){e.stopPropagation();var o=G.triggerHandler(t("currentPage",Q));return G.triggerHandler(t("slideToPage",Q),[o-1,n,"prev",s])}),G.bind(t("nextPage",Q),function(e,n,s){e.stopPropagation();var o=G.triggerHandler(t("currentPage",Q));return G.triggerHandler(t("slideToPage",Q),[o+1,n,"next",s])}),G.bind(t("slideToPage",Q),function(e,s,o,i,a){e.stopPropagation(),n(s)||(s=G.triggerHandler(t("currentPage",Q)));var r=$.pagination.items||$.items.visible,c=Math.ceil(Z.total/r)-1;return s<0&&(s=c),s>c&&(s=0),G.triggerHandler(t("slideTo",Q),[s*r,0,!0,o,i,a])}),G.bind(t("jumpToStart",Q),function(e,t){if(e.stopPropagation(),t=t?w(t,0,!0,Z,G):0,0!=(t+=Z.first)){if(Z.total>0)for(;t>Z.total;)t-=Z.total;G.prepend(G.children().slice(t,Z.total))}return!0}),G.bind(t("synchronise",Q),function(e,n){if(e.stopPropagation(),n)n=pe(n);else{if(!$.synchronise)return s(Q,"No carousel to synchronise.");n=$.synchronise}for(var a=G.triggerHandler(t("currentPosition",Q)),i=!0,o=0,r=n.length;o=Z.total&&(Z.first-=Z.total),G.trigger(t("updateSizes",Q)),G.trigger(t("linkAnchors",Q)),!0}),G.bind(t("removeItem",Q),function(n,s,o,i){n.stopPropagation();var a,c=v([s,o,i],["string/number/object","boolean","number"]);return s=c[0],o=c[1],i=c[2],s instanceof e&&s.length>1?(a=e(),s.each(function(){var r=G.trigger(t("removeItem",Q),[e(this),o,i]);r&&(a=a.add(r))}),a):(r(s)||"end"==s?a=G.children().last():(s=w(s,i,o,Z,G),a=G.children().eq(s),a.length&&so&&(n=o),i(t)&&t.call(oe,n),n}),G.bind(t("currentVisible",Q),function(e,t){e.stopPropagation();var n=b(G.children(),$);return i(t)&&t.call(oe,n),n}),G.bind(t("slice",Q),function(t,s,o,a){if(t.stopPropagation(),0==Z.total)return!1;var c,l,r=v([s,o,a],["number","number","function"]);if(s=n(r[0])?r[0]:0,o=n(r[1])?r[1]:Z.total,a=r[2],s+=Z.first,o+=Z.first,items.total>0){for(;s>Z.total;)s-=Z.total;for(;o>Z.total;)o-=Z.total;for(;s<0;)s+=Z.total;for(;o<0;)o+=Z.total}return c=G.children(),l=o>s?c.slice(s,o):e(c.slice(s,Z.total).get().concat(c.slice(0,o).get())),i(a)&&a.call(oe,l),l}),G.bind(t("isPaused",Q)+" "+t("isStopped",Q)+" "+t("isScrolling",Q),function(e,t){e.stopPropagation();var s=e.type.slice(Q.events.prefix.length),n=de[s];return i(t)&&t.call(oe,n),n}),G.bind(t("configuration",Q),function(n,s,o,a){n.stopPropagation();var d,h,u=!1;if(i(s))s.call(oe,$);else if(c(s))qe=e.extend(!0,{},qe,s),!1!==o?u=!0:$=e.extend(!0,{},$,s);else if(!r(s))if(i(o))d=eval("opts."+s),r(d)&&(d=""),o.call(oe,d);else{if(r(o))return eval("opts."+s);"boolean"!=typeof a&&(a=!0),eval("opts_orig."+s+" = b"),!1!==a?u=!0:eval("opts."+s+" = b")}return u&&(l(G.children(),$),Ve._init(qe),Ve._bind_buttons(),h=V(G,$),G.trigger(t("updatePageStatus",Q),[!0,h])),$}),G.bind(t("linkAnchors",Q),function(n,o,i){return n.stopPropagation(),r(o)?o=e("body"):a(o)&&(o=e(o)),d(o)&&0!=o.length?(a(i)||(i="a.caroufredsel"),o.find(i).each(function(){var n=this.hash||"";n.length>0&&-1!=G.children().index(e(n))&&e(this).unbind("click").click(function(e){e.preventDefault(),G.trigger(t("slideTo",Q),n)})}),!0):s(Q,"Not a valid object.")}),G.bind(t("updatePageStatus",Q),function(n,s){if(n.stopPropagation(),$.pagination.container){var i,a=$.pagination.items||$.items.visible,r=Math.ceil(Z.total/a);return s&&($.pagination.anchorBuilder&&($.pagination.container.children().remove(),$.pagination.container.each(function(){for(var n,t=0;t=r&&(i=0),i<0&&(i=r-1),$.pagination.container.each(function(){e(this).children().removeClass(h("selected",Q)).eq(i).addClass(h("selected",Q))}),!0}}),G.bind(t("updateSizes",Q),function(){var i,r,o=$.items.visible,n=G.children(),a=ee(fe,$,"width");return(Z.total=n.length,de.primarySizePercentage?($.maxDimension=a,$[$.d.width]=D(a,de.primarySizePercentage)):$.maxDimension=te($,a),$.responsive?($.items.width=$.items.sizesConf.width,$.items.height=$.items.sizesConf.height,o=($=q($,n,a)).items.visible,K($,n)):$.items.visibleConf.variable?o=g(n,$,0):"*"!=$.items.filter&&(o=C(n,$,0)),!$.circular&&0!=Z.first&&o>Z.first)&&($.items.visibleConf.variable?(i=H(n,$,Z.first)-Z.first):"*"!=$.items.filter?i=ze(n,$,Z.first)-Z.first:i=$.items.visible-Z.first,s(Q,"Preventing non-circular: sliding "+i+" items backward."),G.trigger(t("prev",Q),i)),$.items.visible=u(o,$,$.items.visibleConf.adjust,oe),$.items.visibleConf.old=$.items.visible,$=le($,n),r=V(G,$),G.trigger(t("updatePageStatus",Q),[!0,r]),I($,Z.total,Q),j($,Z.first,Q),r}),G.bind(t("destroy",Q),function(e,n){return e.stopPropagation(),Ce=_(Ce),G.data("_cfs_isCarousel",!1),G.trigger(t("finish",Q)),n&&G.trigger(t("jumpToStart",Q)),U(G.children()),U(G),Ve._unbind_events(),Ve._unbind_buttons(),"parent"==Q.wrapper?U(fe):fe.replaceWith(G),!0}),G.bind(t("debug",Q),function(){return s(Q,"Carousel width: "+$.width),s(Q,"Carousel height: "+$.height),s(Q,"Item widths: "+$.items.width),s(Q,"Item heights: "+$.items.height),s(Q,"Number of items visible: "+$.items.visible),$.auto.play&&s(Q,"Number of items scrolled automatically: "+$.auto.items),$.prev.button&&s(Q,"Number of items scrolled backward: "+$.prev.items),$.next.button&&s(Q,"Number of items scrolled forward: "+$.next.items),Q.debug}),G.bind("_cfs_triggerEvent",function(e,n,s){return e.stopPropagation(),G.triggerHandler(t(n,Q),s)})},_unbind_events:function(){G.unbind(t("",Q)),G.unbind(t("",Q,!1)),G.unbind("_cfs_triggerEvent")},_bind_buttons:function(){if((Ve._unbind_buttons(),I($,Z.total,Q),j($,Z.first,Q),$.auto.pauseOnHover)&&(n=y($.auto.pauseOnHover),fe.bind(t("mouseenter",Q,!1),function(){G.trigger(t("pause",Q),n)}).bind(t("mouseleave",Q,!1),function(){G.trigger(t("resume",Q))})),($.auto.button&&$.auto.button.bind(t($.auto.event,Q,!1),function(e){e.preventDefault();var n=!1,s=null;de.isPaused?n="play":$.auto.pauseOnEvent&&(n="pause",s=y($.auto.pauseOnEvent)),n&&G.trigger(t(n,Q),s)}),$.prev.button&&($.prev.button.bind(t($.prev.event,Q,!1),function(e){e.preventDefault(),G.trigger(t("prev",Q))}),$.prev.pauseOnHover))&&(n=y($.prev.pauseOnHover),$.prev.button.bind(t("mouseenter",Q,!1),function(){G.trigger(t("pause",Q),n)}).bind(t("mouseleave",Q,!1),function(){G.trigger(t("resume",Q))})),$.next.button&&($.next.button.bind(t($.next.event,Q,!1),function(e){e.preventDefault(),G.trigger(t("next",Q))}),$.next.pauseOnHover)&&(n=y($.next.pauseOnHover),$.next.button.bind(t("mouseenter",Q,!1),function(){G.trigger(t("pause",Q),n)}).bind(t("mouseleave",Q,!1),function(){G.trigger(t("resume",Q))})),$.pagination.container&&$.pagination.pauseOnHover&&(n=y($.pagination.pauseOnHover),$.pagination.container.bind(t("mouseenter",Q,!1),function(){G.trigger(t("pause",Q),n)}).bind(t("mouseleave",Q,!1),function(){G.trigger(t("resume",Q))})),(($.prev.key||$.next.key)&&e(document).bind(t("keyup",Q,!1,!0,!0),function(e){var n=e.keyCode;n==$.next.key&&(e.preventDefault(),G.trigger(t("next",Q))),n==$.prev.key&&(e.preventDefault(),G.trigger(t("prev",Q)))}),$.pagination.keys&&e(document).bind(t("keyup",Q,!1,!0,!0),function(e){var n=e.keyCode;n>=49&&n<58&&(n=(n-49)*$.items.visible)<=Z.total&&(e.preventDefault(),G.trigger(t("slideTo",Q),[n,0,!0,$.pagination]))}),e.fn.swipe)&&(i="ontouchstart"in window,i&&$.swipe.onTouch||!i&&$.swipe.onMouse)){var n,i,a,r,d,u,p=e.extend(!0,{},$.prev,$.swipe),f=e.extend(!0,{},$.next,$.swipe),m=function(){G.trigger(t("prev",Q),[p])},h=function(){G.trigger(t("next",Q),[f])};switch($.direction){case"up":case"down":$.swipe.options.swipeUp=h,$.swipe.options.swipeDown=m;break;default:$.swipe.options.swipeLeft=h,$.swipe.options.swipeRight=m}de.swipe&&G.swipe("destroy"),fe.swipe($.swipe.options),de.swipe=!0}if(e.fn.mousewheel&&$.mousewheel&&(d=e.extend(!0,{},$.prev,$.mousewheel),u=e.extend(!0,{},$.next,$.mousewheel),de.mousewheel&&fe.unbind(t("mousewheel",Q,!1)),fe.bind(t("mousewheel",Q,!1),function(e,n){e.preventDefault(),n>0?G.trigger(t("prev",Q),[d]):G.trigger(t("next",Q),[u])}),de.mousewheel=!0),$.auto.play&&G.trigger(t("play",Q),$.auto.delay),de.upDateOnWindowResize){var o=function(){G.trigger(t("finish",Q)),$.auto.pauseOnResize&&!de.isPaused&&G.trigger(t("play",Q)),l(G.children(),$),G.trigger(t("updateSizes",Q))},c=e(window),s=null;e.debounce&&"debounce"==Q.onWindowResize?s=e.debounce(200,o):e.throttle&&"throttle"==Q.onWindowResize?s=e.throttle(300,o):(r=0,a=0,s=function(){var e=c.width(),t=c.height();e==r&&t==a||(o(),r=e,a=t)}),c.bind(t("resize",Q,!1,!0,!0),s)}},_unbind_buttons:function(){t("",Q);var n=t("",Q,!1);ns3=t("",Q,!1,!0,!0),e(document).unbind(ns3),e(window).unbind(ns3),fe.unbind(n),$.auto.button&&$.auto.button.unbind(n),$.prev.button&&$.prev.button.unbind(n),$.next.button&&$.next.button.unbind(n),$.pagination.container&&($.pagination.container.unbind(n),$.pagination.anchorBuilder&&$.pagination.container.children().remove()),de.swipe&&(G.swipe("destroy"),fe.css("cursor","default"),de.swipe=!1),de.mousewheel&&(de.mousewheel=!1),I($,"hide",Q),j($,"removeClass",Q)}},o(N)&&(N={debug:N});var Ve,Ke,Ye,Xe,Ue,Ge,Ze,de={direction:"next",isPaused:!0,isScrolling:!1,isStopped:!1,mousewheel:!1,swipe:!1},Z={total:G.children().length,first:0},Ce={auto:null,progress:null,startTime:p(),timePassed:0},ne={isStopped:!1,duration:0,startTime:0,easing:"",anims:[]},$e={onBefore:[],onAfter:[]},We=[],Q=e.extend(!0,{},e.fn.carouFredSel.configs,N),$={},qe=e.extend(!0,{},M),fe="parent"==Q.wrapper?G.parent():G.wrap("<"+Q.wrapper.element+' class="'+Q.wrapper.classname+'" />').parent();if(Q.selector=G.selector,Q.serialNumber=e.fn.carouFredSel.serialNumber++,Q.transition=Q.transition&&e.fn.transition?"transition":"animate",Ve._init(qe,!0,Qe),Ve._build(),Ve._bind_events(),Ve._bind_buttons(),f($.items.start)?(Ke=$.items.start):(Ke=[],0!=$.items.start&&Ke.push($.items.start)),$.cookie&&Ke.unshift(parseInt(be($.cookie),10)),Ke.length>0)for(Ye=0,Xe=Ke.length;Ye'+e+""},e.fn.carouFredSel.progressbarUpdater=function(t){e(this).css("width",t+"%")},e.fn.carouFredSel.cookie={get:function(e){e+="=";for(var t,s=document.cookie.split(";"),n=0,o=s.length;nx
',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)