/*!
 * Isotope PACKAGED v3.0.4
 *
 * Licensed GPLv3 for open source use
 * or Isotope Commercial License for commercial use
 *
 * http://isotope.metafizzy.co
 * Copyright 2017 Metafizzy
 */

if( typeof(jQuery.Isotope) != 'function') {

!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,s,a){function u(t,e,o){var n,s="$()."+i+'("'+e+'")';return t.each(function(t,u){var h=a.data(u,i);if(!h)return void r(i+" not initialized. Cannot call methods, i.e. "+s);var d=h[e];if(!d||"_"==e.charAt(0))return void r(s+" is not a valid method");var l=d.apply(h,o);n=void 0===n?l:n}),void 0!==n?n:t}function h(t,e){t.each(function(t,o){var n=a.data(o,i);n?(n.option(e),n._init()):(n=new s(o,e),a.data(o,i,n))})}a=a||e||t.jQuery,a&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=n.call(arguments,1);return u(this,t,e)}return h(this,t),this},o(a))}function o(t){!t||t&&t.bridget||(t.bridget=i)}var n=Array.prototype.slice,s=t.console,r="undefined"==typeof s?function(){}:function(t){s.error(t)};return o(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return o.indexOf(e)==-1&&o.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},o=i[t]=i[t]||{};return o[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return o!=-1&&i.splice(o,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=0,n=i[o];e=e||[];for(var s=this._onceEvents&&this._onceEvents[t];n;){var r=s&&s[n];r&&(this.off(t,n),delete s[n]),n.apply(this,e),o+=r?0:1,n=i[o]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<h;e++){var i=u[e];t[i]=0}return t}function o(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function n(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var n=o(e);s.isBoxSizeOuter=r=200==t(n.width),i.removeChild(e)}}function s(e){if(n(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var s=o(e);if("none"==s.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==s.boxSizing,l=0;l<h;l++){var f=u[l],c=s[f],m=parseFloat(c);a[f]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,y=a.paddingTop+a.paddingBottom,g=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,I=a.borderTopWidth+a.borderBottomWidth,z=d&&r,x=t(s.width);x!==!1&&(a.width=x+(z?0:p+_));var S=t(s.height);return S!==!1&&(a.height=S+(z?0:y+I)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(y+I),a.outerWidth=a.width+g,a.outerHeight=a.height+v,a}}var r,a="undefined"==typeof console?e:function(t){console.error(t)},u=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],h=u.length,d=!1;return s}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var o=e[i],n=o+"MatchesSelector";if(t[n])return n}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e},i.makeArray=function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"object"==typeof t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},i.removeFrom=function(t,e){var i=t.indexOf(e);i!=-1&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,o){t=i.makeArray(t);var n=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!o)return void n.push(t);e(t,o)&&n.push(t);for(var i=t.querySelectorAll(o),s=0;s<i.length;s++)n.push(i[s])}}),n},i.debounceMethod=function(t,e,i){var o=t.prototype[e],n=e+"Timeout";t.prototype[e]=function(){var t=this[n];t&&clearTimeout(t);var e=arguments,s=this;this[n]=setTimeout(function(){o.apply(s,e),delete s[n]},i||100)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var s=i.toDashed(n),r="data-"+s,a=document.querySelectorAll("["+r+"]"),u=document.querySelectorAll(".js-"+s),h=i.makeArray(a).concat(i.makeArray(u)),d=r+"-options",l=t.jQuery;h.forEach(function(t){var i,s=t.getAttribute(r)||t.getAttribute(d);try{i=s&&JSON.parse(s)}catch(a){return void(o&&o.error("Error parsing "+r+" on "+t.className+": "+a))}var u=new e(t,i);l&&l.data(t,n,u)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function o(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function n(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var s=document.documentElement.style,r="string"==typeof s.transition?"transition":"WebkitTransition",a="string"==typeof s.transform?"transform":"WebkitTransform",u={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],h={transform:a,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"},d=o.prototype=Object.create(t.prototype);d.constructor=o,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var o=h[i]||i;e[o]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),o=t[e?"left":"right"],n=t[i?"top":"bottom"],s=this.layout.size,r=o.indexOf("%")!=-1?parseFloat(o)/100*s.width:parseInt(o,10),a=n.indexOf("%")!=-1?parseFloat(n)/100*s.height:parseInt(n,10);r=isNaN(r)?0:r,a=isNaN(a)?0:a,r-=e?s.paddingLeft:s.paddingRight,a-=i?s.paddingTop:s.paddingBottom,this.position.x=r,this.position.y=a},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),o=this.layout._getOption("originTop"),n=i?"paddingLeft":"paddingRight",s=i?"left":"right",r=i?"right":"left",a=this.position.x+t[n];e[s]=this.getXValue(a),e[r]="";var u=o?"paddingTop":"paddingBottom",h=o?"top":"bottom",d=o?"bottom":"top",l=this.position.y+t[u];e[h]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,o=this.position.y,n=parseInt(t,10),s=parseInt(e,10),r=n===this.position.x&&s===this.position.y;if(this.setPosition(t,e),r&&!this.isTransitioning)return void this.layoutPosition();var a=t-i,u=e-o,h={};h.transform=this.getTranslate(a,u),this.transition({to:h,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),o=this.layout._getOption("originTop");return t=i?t:-t,e=o?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var o=this.element.offsetHeight;o=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+n(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(u,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var f={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,o=f[t.propertyName]||t.propertyName;if(delete e.ingProperties[o],i(e.ingProperties)&&this.disableTransition(),o in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[o]),o in e.onEnd){var n=e.onEnd[o];n.call(this),delete e.onEnd[o]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(u,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var c={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(c)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},o}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,o,n,s){return e(t,i,o,n,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,o,n){"use strict";function s(t,e){var i=o.getQueryElement(t);if(!i)return void(u&&u.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,h&&(this.$element=h(this.element)),this.options=o.extend({},this.constructor.defaults),this.option(e);var n=++l;this.element.outlayerGUID=n,f[n]=this,this._create();var s=this._getOption("initLayout");s&&this.layout()}function r(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],o=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var n=m[o]||1;return i*n}var u=t.console,h=t.jQuery,d=function(){},l=0,f={};s.namespace="outlayer",s.Item=n,s.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var c=s.prototype;o.extend(c,e.prototype),c.option=function(t){o.extend(this.options,t)},c._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},c._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),o.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},c.reloadItems=function(){this.items=this._itemize(this.element.children)},c._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,o=[],n=0;n<e.length;n++){var s=e[n],r=new i(s,this);o.push(r)}return o},c._filterFindItemElements=function(t){return o.filterFindElements(t,this.options.itemSelector)},c.getItemElements=function(){return this.items.map(function(t){return t.element})},c.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},c._init=c.layout,c._resetLayout=function(){this.getSize()},c.getSize=function(){this.size=i(this.element)},c._getMeasurement=function(t,e){var o,n=this.options[t];n?("string"==typeof n?o=this.element.querySelector(n):n instanceof HTMLElement&&(o=n),this[t]=o?i(o)[e]:n):this[t]=0},c.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},c._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},c._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var o=this._getItemLayoutPosition(t);o.item=t,o.isInstant=e||t.isLayoutInstant,i.push(o)},this),this._processLayoutQueue(i)}},c._getItemLayoutPosition=function(){return{x:0,y:0}},c._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},c.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},c._positionItem=function(t,e,i,o,n){o?t.goTo(e,i):(t.stagger(n*this.stagger),t.moveTo(e,i))},c._postLayout=function(){this.resizeContainer()},c.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},c._getContainerSize=d,c._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},c._emitCompleteOnItems=function(t,e){function i(){n.dispatchEvent(t+"Complete",null,[e])}function o(){r++,r==s&&i()}var n=this,s=e.length;if(!e||!s)return void i();var r=0;e.forEach(function(e){e.once(t,o)})},c.dispatchEvent=function(t,e,i){var o=e?[e].concat(i):i;if(this.emitEvent(t,o),h)if(this.$element=this.$element||h(this.element),e){var n=h.Event(e);n.type=t,this.$element.trigger(n,i)}else this.$element.trigger(t,i)},c.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},c.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},c.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},c.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){o.removeFrom(this.stamps,t),this.unignore(t)},this)},c._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=o.makeArray(t)},c._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},c._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},c._manageStamp=d,c._getElementOffset=function(t){var e=t.getBoundingClientRect(),o=this._boundingRect,n=i(t),s={left:e.left-o.left-n.marginLeft,top:e.top-o.top-n.marginTop,right:o.right-e.right-n.marginRight,bottom:o.bottom-e.bottom-n.marginBottom};return s},c.handleEvent=o.handleEvent,c.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},c.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},c.onresize=function(){this.resize()},o.debounceMethod(s,"onresize",100),c.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},c.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},c.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},c.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},c.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},c.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},c.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},c.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},c.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},c.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},c.getItems=function(t){t=o.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},c.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),o.removeFrom(this.items,t)},this)},c.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete f[e],delete this.element.outlayerGUID,h&&h.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=o.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&f[e]},s.create=function(t,e){var i=r(s);return i.defaults=o.extend({},s.defaults),o.extend(i.defaults,e),i.compatOptions=o.extend({},s.compatOptions),i.namespace=t,i.data=s.data,i.Item=r(n),o.htmlInit(i,t),h&&h.bridget&&h.bridget(t,i),i};var m={ms:1,s:1e3};return s.Item=n,s}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),o=i._create;i._create=function(){this.id=this.layout.itemGUID++,o.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var o=e[i];this.sortData[i]=o(this.element,this)}}};var n=i.destroy;return i.destroy=function(){n.apply(this,arguments),this.css({display:""})},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(t,e){"use strict";function i(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var o=i.prototype,n=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return n.forEach(function(t){o[t]=function(){return e.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),i=this.isotope.size&&e;return i&&e.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i=t+e,o="outer"+e;if(this._getMeasurement(i,o),!this[i]){var n=this.getFirstItemSize();this[i]=n&&n[o]||this.isotope.size["inner"+e]}},o.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(t,e){function n(){i.apply(this,arguments)}return n.prototype=Object.create(o),n.prototype.constructor=n,e&&(n.options=e),n.prototype.namespace=t,i.modes[t]=n,n},i}),function(t,e){"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var o=i.prototype;return o._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},o.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var o=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,s=n/o,r=o-n%o,a=r&&r<1?"round":"floor";s=Math[a](s),this.cols=Math.max(s,1)},o.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,o=e(i);this.containerWidth=o&&o.innerWidth},o._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&e<1?"round":"ceil",o=Math[i](t.size.outerWidth/this.columnWidth);o=Math.min(o,this.cols);for(var n=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",s=this[n](o,t),r={x:this.columnWidth*s.col,y:s.y},a=s.y+t.size.outerHeight,u=o+s.col,h=s.col;h<u;h++)this.colYs[h]=a;return r},o._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},o._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,o=0;o<i;o++)e[o]=this._getColGroupY(o,t);return e},o._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},o._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,o=t>1&&i+t>this.cols;i=o?0:i;var n=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=n?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},o._manageStamp=function(t){var i=e(t),o=this._getElementOffset(t),n=this._getOption("originLeft"),s=n?o.left:o.right,r=s+i.outerWidth,a=Math.floor(s/this.columnWidth);a=Math.max(0,a);var u=Math.floor(r/this.columnWidth);u-=r%this.columnWidth?0:1,u=Math.min(this.cols-1,u);for(var h=this._getOption("originTop"),d=(h?o.top:o.bottom)+i.outerHeight,l=a;l<=u;l++)this.colYs[l]=Math.max(d,this.colYs[l])},o._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},o._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},o.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),o=i.prototype,n={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var s in e.prototype)n[s]||(o[s]=e.prototype[s]);var r=o.measureColumns;o.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var a=o._getOption;return o._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var o={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,o},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),function(t,e){"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(i,o,n,s,r,a){return e(t,i,o,n,s,r,a)}):"object"==typeof module&&module.exports?module.exports=e(t,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")):t.Isotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.Isotope.Item,t.Isotope.LayoutMode)}(window,function(t,e,i,o,n,s,r){function a(t,e){return function(i,o){for(var n=0;n<t.length;n++){var s=t[n],r=i.sortData[s],a=o.sortData[s];if(r>a||r<a){var u=void 0!==e[s]?e[s]:e,h=u?1:-1;return(r>a?1:-1)*h}}return 0}}var u=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},d=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});d.Item=s,d.LayoutMode=r;var l=d.prototype;l._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var t in r.modes)this._initLayoutMode(t)},l.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},l._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;i<t.length;i++){var o=t[i];o.id=this.itemGUID++}return this._updateItemsSortData(t),t},l._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?n.extend(e.options,i):i,this.modes[t]=new e(this)},l.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},l._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},l.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},l._init=l.arrange,l._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},l._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e,e},l._bindArrangeComplete=function(){function t(){e&&i&&o&&n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}var e,i,o,n=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){o=!0,t()})},l._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],o=[],n=[],s=this._getFilterTest(e),r=0;r<t.length;r++){var a=t[r];if(!a.isIgnored){var u=s(a);u&&i.push(a),u&&a.isHidden?o.push(a):u||a.isHidden||n.push(a)}}return{matches:i,needReveal:o,needHide:n}},l._getFilterTest=function(t){return u&&this.options.isJQueryFiltering?function(e){return u(e.element).is(t)}:"function"==typeof t?function(e){return t(e.element)}:function(e){return o(e.element,t)}},l.updateSortData=function(t){
var e;t?(t=n.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},l._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=f(i)}},l._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++){var o=t[i];o.updateSortData()}};var f=function(){function t(t){if("string"!=typeof t)return t;var i=h(t).split(" "),o=i[0],n=o.match(/^\[(.+)\]$/),s=n&&n[1],r=e(s,o),a=d.sortDataParsers[i[1]];return t=a?function(t){return t&&a(r(t))}:function(t){return t&&r(t)}}function e(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}}return t}();d.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},l._sort=function(){if(this.options.sortBy){var t=n.makeArray(this.options.sortBy);this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory));var e=a(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)}},l._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},l._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},l._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},l._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},l._manageStamp=function(t){this._mode()._manageStamp(t)},l._getContainerSize=function(){return this._mode()._getContainerSize()},l.needsResizeLayout=function(){return this._mode().needsResizeLayout()},l.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},l.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},l._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},l.insert=function(t){var e=this.addItems(t);if(e.length){var i,o,n=e.length;for(i=0;i<n;i++)o=e[i],this.element.appendChild(o.element);var s=this._filter(e).matches;for(i=0;i<n;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<n;i++)delete e[i].isLayoutInstant;this.reveal(s)}};var c=l.remove;return l.remove=function(t){t=n.makeArray(t);var e=this.getItems(t);c.call(this,t);for(var i=e&&e.length,o=0;i&&o<i;o++){var s=e[o];n.removeFrom(this.filteredItems,s)}},l.shuffle=function(){for(var t=0;t<this.items.length;t++){var e=this.items[t];e.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},l._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var o=t.apply(this,e);return this.options.transitionDuration=i,o},l.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},d});
} // end isotope



/**
 * Galleria v1.5.7 2017-05-10
 * http://galleria.io
 *
 * Copyright (c) 2010 - 2016 worse is better UG
 * Licensed under the MIT license
 * https://raw.github.com/worseisbetter/galleria/master/LICENSE
 *
 */

if( typeof(Galleria) != 'function' ) {

(function(e,m,f,t){var n=m.document,M=e(n),y=e(m),N=Array.prototype,W=!0,R=!1,H=navigator.userAgent.toLowerCase(),X=m.location.hash.replace(/#\//,""),O="file:"==m.location.protocol?"http:":m.location.protocol,p=Math,z=function(){},ea=function(){return!1},fa=!(1279<m.screen.width&&1==m.devicePixelRatio||1E3<m.screen.width&&m.innerWidth<.9*m.screen.width),v=function(){var a=3,b=n.createElement("div"),d=b.getElementsByTagName("i");do b.innerHTML="\x3c!--[if gt IE "+ ++a+"]><i></i><![endif]--\x3e";while(d[0]);
return 4<a?a:n.documentMode||t}(),w=function(){return{html:n.documentElement,body:n.body,head:n.getElementsByTagName("head")[0],title:n.title}},Q=m.parent!==m.self,Y=function(){var a=[];e.each("data ready thumbnail loadstart loadfinish image play pause progress fullscreen_enter fullscreen_exit idle_enter idle_exit rescale lightbox_open lightbox_close lightbox_image".split(" "),function(b,d){a.push(d);/_/.test(d)&&a.push(d.replace(/_/g,""))});return a}(),Z=function(a){var b;if("object"!==typeof a)return a;
e.each(a,function(d,c){/^[a-z]+_/.test(d)&&(b="",e.each(d.split("_"),function(a,c){b+=0<a?c.substr(0,1).toUpperCase()+c.substr(1):c}),a[b]=c,delete a[d])});return a},S=function(a){return-1<e.inArray(a,Y)?f[a.toUpperCase()]:a},G={youtube:{reg:/https?:\/\/(?:[a-zA_Z]{2,3}.)?(?:youtube\.com\/watch\?)((?:[\w\d\-\_\=]+&amp;(?:amp;)?)*v(?:&lt;[A-Z]+&gt;)?=([0-9a-zA-Z\-\_]+))/i,embed:function(){return O+"//www.youtube.com/embed/"+this.id},get_thumb:function(a){return O+"//img.youtube.com/vi/"+this.id+"/default.jpg"},
get_image:function(a){return O+"//img.youtube.com/vi/"+this.id+"/hqdefault.jpg"}},vimeo:{reg:/https?:\/\/(?:www\.)?(vimeo\.com)\/(?:hd#)?([0-9]+)/i,embed:function(){return O+"//player.vimeo.com/video/"+this.id},getUrl:function(){return O+"//vimeo.com/api/v2/video/"+this.id+".json?callback=?"},get_thumb:function(a){return a[0].thumbnail_medium},get_image:function(a){return a[0].thumbnail_large}},dailymotion:{reg:/https?:\/\/(?:www\.)?(dailymotion\.com)\/video\/([^_]+)/,embed:function(){return O+"//www.dailymotion.com/embed/video/"+
this.id},getUrl:function(){return"https://api.dailymotion.com/video/"+this.id+"?fields=thumbnail_240_url,thumbnail_720_url&callback=?"},get_thumb:function(a){return a.thumbnail_240_url},get_image:function(a){return a.thumbnail_720_url}},_inst:[]},aa=function(a,b){for(var d=0;d<G._inst.length;d++)if(G._inst[d].id===b&&G._inst[d].type==a)return G._inst[d];this.type=a;this.id=b;this.readys=[];G._inst.push(this);var c=this;e.extend(this,G[a]);_videoThumbs=function(a){c.data=a;e.each(c.readys,function(a,
b){b(c.data)});c.readys=[]};this.hasOwnProperty("getUrl")?e.getJSON(this.getUrl(),_videoThumbs):m.setTimeout(_videoThumbs,400);this.getMedia=function(a,b,c){c=c||z;var d=this,e=function(c){b(d["get_"+a](c))};try{d.data?e(d.data):d.readys.push(e)}catch(r){c()}}},ba=function(a){var b,d;for(d in G)if((b=a&&G[d].reg&&a.match(G[d].reg))&&b.length)return{id:b[2],provider:d};return!1},A={support:function(){var a=w().html;return!Q&&(a.requestFullscreen||a.msRequestFullscreen||a.mozRequestFullScreen||a.webkitRequestFullScreen)}(),
callback:z,enter:function(a,b,d){this.instance=a;this.callback=b||z;d=d||w().html;d.requestFullscreen?d.requestFullscreen():d.msRequestFullscreen?d.msRequestFullscreen():d.mozRequestFullScreen?d.mozRequestFullScreen():d.webkitRequestFullScreen&&d.webkitRequestFullScreen()},exit:function(a){this.callback=a||z;n.exitFullscreen?n.exitFullscreen():n.msExitFullscreen?n.msExitFullscreen():n.mozCancelFullScreen?n.mozCancelFullScreen():n.webkitCancelFullScreen&&n.webkitCancelFullScreen()},instance:null,listen:function(){if(this.support){var a=
function(){if(A.instance){var a=A.instance._fullscreen;n.fullscreen||n.mozFullScreen||n.webkitIsFullScreen||n.msFullscreenElement&&null!==n.msFullscreenElement?a._enter(A.callback):a._exit(A.callback)}};n.addEventListener("fullscreenchange",a,!1);n.addEventListener("MSFullscreenChange",a,!1);n.addEventListener("mozfullscreenchange",a,!1);n.addEventListener("webkitfullscreenchange",a,!1)}}},T=[],K=[],ca=!1,B=!1,da=[],L=[],U=function(a){L.push(a);e.each(da,function(b,d){if(d._options.theme==a.name||
!d._initialized&&!d._options.theme)d.theme=a,d._init.call(d)})},h=function(){return{clearTimer:function(a){e.each(f.get(),function(){this.clearTimer(a)})},addTimer:function(a){e.each(f.get(),function(){this.addTimer(a)})},array:function(a){return N.slice.call(a,0)},create:function(a,b){var d=n.createElement(b||"div");d.className=a;return d},removeFromArray:function(a,b){e.each(a,function(d,c){if(c==b)return a.splice(d,1),!1});return a},getScriptPath:function(a){a=a||e("script:last").attr("src");a=
a.split("/");if(1==a.length)return"";a.pop();return a.join("/")+"/"},animate:function(){var a=function(a){var b=["transition","WebkitTransition","MozTransition","OTransition"],c;if(m.opera)return!1;for(c=0;b[c];c++)if("undefined"!==typeof a[b[c]])return b[c];return!1}((n.body||n.documentElement).style),b={MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[a],d={_default:[.25,.1,.25,1],galleria:[.645,.045,.355,1],galleriaIn:[.55,
.085,.68,.53],galleriaOut:[.25,.46,.45,.94],ease:[.25,0,.25,1],linear:[.25,.25,.75,.75],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},c=function(a,b,c){var d={};c=c||"transition";e.each(["webkit","moz","ms","o"],function(){d["-"+this+"-"+c]=b});a.css(d)},g=function(a){c(a,"none","transition");f.WEBKIT&&f.TOUCH&&(c(a,"translate3d(0,0,0)","transform"),a.data("revert")&&(a.css(a.data("revert")),a.data("revert",null)))},k,q,l,P,r,E,I;return function(C,F,x){x=e.extend({duration:400,
complete:z,stop:!1},x);C=e(C);x.duration?a?(x.stop&&(C.off(b),g(C)),k=!1,e.each(F,function(a,b){I=C.css(a);h.parseValue(I)!=h.parseValue(b)&&(k=!0);C.css(a,I)}),k?(q=[],l=x.easing in d?d[x.easing]:d._default,P=" "+x.duration+"ms cubic-bezier("+l.join(",")+")",m.setTimeout(function(a,b,d,k){return function(){a.one(b,function(a){return function(){g(a);x.complete.call(a[0])}}(a));f.WEBKIT&&f.TOUCH&&(r={},E=[0,0,0],e.each(["left","top"],function(b,c){c in d&&(E[b]=h.parseValue(d[c])-h.parseValue(a.css(c))+
"px",r[c]=d[c],delete d[c])}),E[0]||E[1])&&(a.data("revert",r),q.push("-webkit-transform"+k),c(a,"translate3d("+E.join(",")+")","transform"));e.each(d,function(a,b){q.push(a+k)});c(a,q.join(","));a.css(d)}}(C,b,F,P),2)):m.setTimeout(function(){x.complete.call(C[0])},x.duration)):C.animate(F,x):(C.css(F),x.complete.call(C[0]))}}(),removeAlpha:function(a){a instanceof jQuery&&(a=a[0]);if(9>v&&a){var b=a.style;a=(a=a.currentStyle)&&a.filter||b.filter||"";/alpha/.test(a)&&(b.filter=a.replace(/alpha\([^)]*\)/i,
""))}},forceStyles:function(a,b){a=e(a);a.attr("style")&&a.data("styles",a.attr("style")).removeAttr("style");a.css(b)},revertStyles:function(){e.each(h.array(arguments),function(a,b){b=e(b);b.removeAttr("style");b.attr("style","");b.data("styles")&&b.attr("style",b.data("styles")).data("styles",null)})},moveOut:function(a){h.forceStyles(a,{position:"absolute",left:-1E4})},moveIn:function(){h.revertStyles.apply(h,h.array(arguments))},hide:function(a,b,d){d=d||z;var c=e(a);a=c[0];c.data("opacity")||
c.data("opacity",c.css("opacity"));var g={opacity:0};b?h.animate(a,g,{duration:b,complete:9>v&&a?function(){h.removeAlpha(a);a.style.visibility="hidden";d.call(a)}:d,stop:!0}):9>v&&a?(h.removeAlpha(a),a.style.visibility="hidden"):c.css(g)},show:function(a,b,d){d=d||z;var c=e(a);a=c[0];var g={opacity:parseFloat(c.data("opacity"))||1};b?(9>v&&(c.css("opacity",0),a.style.visibility="visible"),h.animate(a,g,{duration:b,complete:9>v&&a?function(){1==g.opacity&&h.removeAlpha(a);d.call(a)}:d,stop:!0})):
9>v&&1==g.opacity&&a?(h.removeAlpha(a),a.style.visibility="visible"):c.css(g)},wait:function(a){f._waiters=f._waiters||[];a=e.extend({until:ea,success:z,error:function(){f.raise("Could not complete wait function.")},timeout:3E3},a);var b=h.timestamp(),d,c,g,k=function(){c=h.timestamp();d=c-b;h.removeFromArray(f._waiters,g);if(a.until(d))return a.success(),!1;if("number"==typeof a.timeout&&c>=b+a.timeout)return a.error(),!1;f._waiters.push(g=m.setTimeout(k,10))};f._waiters.push(g=m.setTimeout(k,10))},
toggleQuality:function(a,b){7!==v&&8!==v||!a||"IMG"!=a.nodeName.toUpperCase()||("undefined"===typeof b&&(b="nearest-neighbor"===a.style.msInterpolationMode),a.style.msInterpolationMode=b?"bicubic":"nearest-neighbor")},insertStyleTag:function(a,b){if(!b||!e("#"+b).length){var d=n.createElement("style");b&&(d.id=b);w().head.appendChild(d);if(d.styleSheet)d.styleSheet.cssText=a;else{var c=n.createTextNode(a);d.appendChild(c)}}},loadScript:function(a,b){var d=!1,c=e("<script>").attr({src:a,async:!0}).get(0);
c.onload=c.onreadystatechange=function(){d||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(d=!0,c.onload=c.onreadystatechange=null,"function"===typeof b&&b.call(this,this))};w().head.appendChild(c)},parseValue:function(a){return"number"===typeof a?a:"string"===typeof a?(a=a.match(/\-?\d|\./g))&&a.constructor===Array?1*a.join(""):0:0},timestamp:function(){return(new Date).getTime()},loadCSS:function(a,b,d){e("link[rel=stylesheet]").each(function(){if((new RegExp(a)).test(this.href))return g=
this,!1});"function"===typeof b&&(d=b,b=t);d=d||z;if(g)return d.call(g,g),g;var c=n.styleSheets.length;if(e("#"+b).length)e("#"+b).attr("href",a),c--;else{var g=e("<link>").attr({rel:"stylesheet",href:a,id:b}).get(0);b=e('link[rel="stylesheet"], style');b.length?b.get(0).parentNode.insertBefore(g,b[0]):w().head.appendChild(g);if(v&&31<=c){f.raise("You have reached the browser stylesheet limit (31)",!0);return}}if("function"===typeof d){var k=e("<s>").attr("id","galleria-loader").hide().appendTo(w().body);
h.wait({until:function(){return 0<k.height()},success:function(){k.remove();d.call(g,g)},error:function(){k.remove();f.raise("Theme CSS could not load after 20 sec. "+(f.QUIRK?"Your browser is in Quirks Mode, please add a correct doctype.":"Please download the latest theme at http://galleria.io/customer/."),!0)},timeout:5E3})}return g}}}(),V=function(a){h.insertStyleTag(".galleria-videoicon{width:60px;height:60px;position:absolute;top:50%;left:50%;z-index:1;margin:-30px 0 0 -30px;cursor:pointer;background:#000;background:rgba(0,0,0,.8);border-radius:3px;-webkit-transition:all 150ms}.galleria-videoicon i{width:0px;height:0px;border-style:solid;border-width:10px 0 10px 16px;display:block;border-color:transparent transparent transparent #ffffff;margin:20px 0 0 22px}.galleria-image:hover .galleria-videoicon{background:#000}",
"galleria-videoicon");return e(h.create("galleria-videoicon")).html("<i></i>").appendTo(a).click(function(){e(this).siblings("img").mouseup()})},J=function(){var a=function(a,d,c,g){var b=this.getOptions("easing"),f=this.getStageWidth(),l={left:f*(a.rewind?-1:1)},m={left:0};c?(l.opacity=0,m.opacity=1):l.opacity=1;e(a.next).css(l);h.animate(a.next,m,{duration:a.speed,complete:function(a){return function(){d();a.css({left:0})}}(e(a.next).add(a.prev)),queue:!1,easing:b});g&&(a.rewind=!a.rewind);a.prev&&
(l={left:0},m={left:f*(a.rewind?1:-1)},c&&(l.opacity=1,m.opacity=0),e(a.prev).css(l),h.animate(a.prev,m,{duration:a.speed,queue:!1,easing:b,complete:function(){e(this).css("opacity",0)}}))};return{active:!1,init:function(a,d,c){J.effects.hasOwnProperty(a)&&J.effects[a].call(this,d,c)},effects:{fade:function(a,d){e(a.next).css({opacity:0,left:0});h.animate(a.next,{opacity:1},{duration:a.speed,complete:d});a.prev&&(e(a.prev).css("opacity",1).show(),h.animate(a.prev,{opacity:0},{duration:a.speed}))},
flash:function(a,d){e(a.next).css({opacity:0,left:0});a.prev?h.animate(a.prev,{opacity:0},{duration:a.speed/2,complete:function(){h.animate(a.next,{opacity:1},{duration:a.speed,complete:d})}}):h.animate(a.next,{opacity:1},{duration:a.speed,complete:d})},pulse:function(a,d){a.prev&&e(a.prev).hide();e(a.next).css({opacity:0,left:0}).show();h.animate(a.next,{opacity:1},{duration:a.speed,complete:d})},slide:function(b,d){a.apply(this,h.array(arguments))},fadeslide:function(b,d){a.apply(this,h.array(arguments).concat([!0]))},
doorslide:function(b,d){a.apply(this,h.array(arguments).concat([!1,!0]))}}}}();A.listen();e.event.special["click:fast"]={propagate:!0,add:function(a){var b=function(a){if(a.touches&&a.touches.length)return a=a.touches[0],{x:a.pageX,y:a.pageY}},d={touched:!1,touchdown:!1,coords:{x:0,y:0},evObj:{}};e(this).data({clickstate:d,timer:0}).on("touchstart.fast",function(a){m.clearTimeout(e(this).data("timer"));e(this).data("clickstate",{touched:!0,touchdown:!0,coords:b(a.originalEvent),evObj:a})}).on("touchmove.fast",
function(a){a=b(a.originalEvent);var c=e(this).data("clickstate");6<Math.max(Math.abs(c.coords.x-a.x),Math.abs(c.coords.y-a.y))&&e(this).data("clickstate",e.extend(c,{touchdown:!1}))}).on("touchend.fast",function(b){var c=e(this);c.data("clickstate").touchdown&&a.handler.call(this,b);c.data("timer",m.setTimeout(function(){c.data("clickstate",d)},400))}).on("click.fast",function(b){if(e(this).data("clickstate").touched)return!1;e(this).data("clickstate",d);a.handler.call(this,b)})},remove:function(){e(this).off("touchstart.fast touchmove.fast touchend.fast click.fast")}};
y.on("orientationchange",function(){e(this).resize()});f=function(){var a=this;this._options={};this._playing=!1;this._playtime=5E3;this._active=null;this._queue={length:0};this._data=[];this._dom={};this._thumbnails=[];this._layers=[];this._firstrun=this._initialized=!1;this._stageHeight=this._stageWidth=0;this._target=t;this._binds=[];this._id=parseInt(1E4*p.random(),10);e.each("container stage images image-nav image-nav-left image-nav-right info info-text info-title info-description thumbnails thumbnails-list thumbnails-container thumb-nav-left thumb-nav-right loader counter tooltip".split(" "),
function(b,c){a._dom[c]=h.create("galleria-"+c)});e.each(["current","total"],function(b,c){a._dom[c]=h.create("galleria-"+c,"span")});var b=this._keyboard={keys:{UP:38,DOWN:40,LEFT:37,RIGHT:39,RETURN:13,ESCAPE:27,BACKSPACE:8,SPACE:32},map:{},bound:!1,press:function(c){var d=c.keyCode||c.which;d in b.map&&"function"===typeof b.map[d]&&b.map[d].call(a,c)},attach:function(a){var c;for(c in a)if(a.hasOwnProperty(c)){var d=c.toUpperCase();d in b.keys?b.map[b.keys[d]]=a[c]:b.map[d]=a[c]}b.bound||(b.bound=
!0,M.on("keydown",b.press))},detach:function(){b.bound=!1;b.map={};M.off("keydown",b.press)}},d=this._controls={0:t,1:t,active:0,swap:function(){d.active=d.active?0:1},getActive:function(){return a._options.swipe?d.slides[a._active]:d[d.active]},getNext:function(){return a._options.swipe?d.slides[a.getNext(a._active)]:d[1-d.active]},slides:[],frames:[],layers:[]},c=this._carousel={next:a.$("thumb-nav-right"),prev:a.$("thumb-nav-left"),width:0,current:0,max:0,hooks:[],update:function(){var b=0,d=0,
g=[0];e.each(a._thumbnails,function(a,c){if(c.ready){b+=c.outerWidth||e(c.container).outerWidth(!0);var r=e(c.container).width();b+=r-p.floor(r);g[a+1]=b;d=p.max(d,c.outerHeight||e(c.container).outerHeight(!0))}});a.$("thumbnails").css({width:b,height:d});c.max=b;c.hooks=g;c.width=a.$("thumbnails-list").width();c.setClasses();a.$("thumbnails-container").toggleClass("galleria-carousel",b>c.width);c.width=a.$("thumbnails-list").width()},bindControls:function(){var b;c.next.on("click:fast",function(d){d.preventDefault();
if("auto"===a._options.carouselSteps)for(b=c.current;b<c.hooks.length;b++){if(c.hooks[b]-c.hooks[c.current]>c.width){c.set(b-2);break}}else c.set(c.current+a._options.carouselSteps)});c.prev.on("click:fast",function(d){d.preventDefault();if("auto"===a._options.carouselSteps)for(b=c.current;0<=b;b--)if(c.hooks[c.current]-c.hooks[b]>c.width){c.set(b+2);break}else{if(0===b){c.set(0);break}}else c.set(c.current-a._options.carouselSteps)})},set:function(a){for(a=p.max(a,0);c.hooks[a-1]+c.width>=c.max&&
0<=a;)a--;c.current=a;c.animate()},getLast:function(a){return(a||c.current)-1},follow:function(a){if(0===a||a===c.hooks.length-2)c.set(a);else{for(var b=c.current;c.hooks[b]-c.hooks[c.current]<c.width&&b<=c.hooks.length;)b++;a-1<c.current?c.set(a-1):a+2>b&&c.set(a-b+c.current+2)}},setClasses:function(){c.prev.toggleClass("disabled",!c.current);c.next.toggleClass("disabled",c.hooks[c.current]+c.width>=c.max)},animate:function(b){c.setClasses();b=-1*c.hooks[c.current];isNaN(b)||(a.$("thumbnails").css("left",
function(){return e(this).css("left")}),h.animate(a.get("thumbnails"),{left:b},{duration:a._options.carouselSpeed,easing:a._options.easing,queue:!1}))}},g=this._tooltip={initialized:!1,open:!1,timer:"tooltip"+a._id,swapTimer:"swap"+a._id,init:function(){g.initialized=!0;h.insertStyleTag(".galleria-tooltip{padding:3px 8px;max-width:50%;background:#ffe;color:#000;z-index:3;position:absolute;font-size:11px;line-height:1.3;opacity:0;box-shadow:0 0 2px rgba(0,0,0,.4);-moz-box-shadow:0 0 2px rgba(0,0,0,.4);-webkit-box-shadow:0 0 2px rgba(0,0,0,.4);}",
"galleria-tooltip");a.$("tooltip").css({opacity:.8,visibility:"visible",display:"none"})},move:function(b){var c=a.getMousePosition(b).x;b=a.getMousePosition(b).y;var d=a.$("tooltip"),e=b,g=d.outerHeight(!0)+1,k=d.outerWidth(!0),r=g+15;k=a.$("container").width()-k-2;var l=a.$("container").height()-g-2;isNaN(c)||isNaN(e)||(e-=g+8,c=p.max(0,p.min(k,c+10)),e=p.max(0,p.min(l,e)),b<r&&(e=r),d.css({left:c,top:e}))},bind:function(b,c){if(!f.TOUCH){g.initialized||g.init();var d=function(){a.$("container").off("mousemove",
g.move);a.clearTimer(g.timer);a.$("tooltip").stop().animate({opacity:0},200,function(){a.$("tooltip").hide();a.addTimer(g.swapTimer,function(){g.open=!1},1E3)})},k=function(b,c){g.define(b,c);e(b).hover(function(){a.clearTimer(g.swapTimer);a.$("container").off("mousemove",g.move).on("mousemove",g.move).trigger("mousemove");g.show(b);a.addTimer(g.timer,function(){a.$("tooltip").stop().show().animate({opacity:1});g.open=!0},g.open?0:500)},d).click(d)};"string"===typeof c?k(b in a._dom?a.get(b):b,c):
e.each(b,function(b,c){k(a.get(b),c)})}},show:function(b){b=e(b in a._dom?a.get(b):b);var c=b.data("tt"),d=function(a){m.setTimeout(function(a){return function(){g.move(a)}}(a),10);b.off("mouseup",d)};if(c="function"===typeof c?c():c)a.$("tooltip").html(c.replace(/\s/,"&#160;")),b.on("mouseup",d)},define:function(b,c){if("function"!==typeof c){var d=c;c=function(){return d}}b=e(b in a._dom?a.get(b):b).data("tt",c);g.show(b)}},k=this._fullscreen={scrolled:0,crop:t,active:!1,prev:e(),beforeEnter:function(a){a()},
beforeExit:function(a){a()},keymap:a._keyboard.map,parseCallback:function(b,c){return J.active?function(){"function"==typeof b&&b.call(a);var d=a._controls.getActive(),g=a._controls.getNext();a._scaleImage(g);a._scaleImage(d);c&&a._options.trueFullscreen&&e(d.container).add(g.container).trigger("transitionend")}:b},enter:function(b){k.beforeEnter(function(){b=k.parseCallback(b,!0);a._options.trueFullscreen&&A.support?(k.active=!0,h.forceStyles(a.get("container"),{width:"100%",height:"100%"}),a.rescale(),
f.MAC?f.SAFARI&&/version\/[1-5]/.test(H)?(a.$("stage").css("opacity",0),m.setTimeout(function(){k.scale();a.$("stage").css("opacity",1)},4)):(a.$("container").css("opacity",0).addClass("fullscreen"),m.setTimeout(function(){k.scale();a.$("container").css("opacity",1)},50)):a.$("container").addClass("fullscreen"),y.resize(k.scale),A.enter(a,b,a.get("container"))):(k.scrolled=y.scrollTop(),f.TOUCH||m.scrollTo(0,0),k._enter(b))})},_enter:function(b){k.active=!0;Q&&(k.iframe=function(){var a,b=n.referrer,
c=n.createElement("a"),d=m.location;c.href=b;if(c.protocol!=d.protocol||c.hostname!=d.hostname||c.port!=d.port)return f.raise("Parent fullscreen not available. Iframe protocol, domains and ports must match."),!1;k.pd=m.parent.document;e(k.pd).find("iframe").each(function(){if((this.contentDocument||this.contentWindow.document)===n)return a=this,!1});return a}());h.hide(a.getActiveImage());Q&&k.iframe&&(k.iframe.scrolled=e(m.parent).scrollTop(),m.parent.scrollTo(0,0));var c=a.getData(),d=a._options,
g=!a._options.trueFullscreen||!A.support,l={height:"100%",overflow:"hidden",margin:0,padding:0};g&&(a.$("container").addClass("fullscreen"),k.prev=a.$("container").prev(),k.prev.length||(k.parent=a.$("container").parent()),a.$("container").appendTo("body"),h.forceStyles(a.get("container"),{position:f.TOUCH?"absolute":"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1E4}),h.forceStyles(w().html,l),h.forceStyles(w().body,l));Q&&k.iframe&&(h.forceStyles(k.pd.documentElement,l),h.forceStyles(k.pd.body,
l),h.forceStyles(k.iframe,e.extend(l,{width:"100%",height:"100%",top:0,left:0,position:"fixed",zIndex:1E4,border:"none"})));k.keymap=e.extend({},a._keyboard.map);a.attachKeyboard({escape:a.exitFullscreen,right:a.next,left:a.prev});k.crop=d.imageCrop;d.fullscreenCrop!=t&&(d.imageCrop=d.fullscreenCrop);if(c&&c.big&&c.image!==c.big){d=new f.Picture;var r=d.isCached(c.big),q=a.getIndex(),u=a._thumbnails[q];a.trigger({type:f.LOADSTART,cached:r,rewind:!1,index:q,imageTarget:a.getActiveImage(),thumbTarget:u,
galleriaData:c});d.load(c.big,function(b){a._scaleImage(b,{complete:function(b){a.trigger({type:f.LOADFINISH,cached:r,index:q,rewind:!1,imageTarget:b.image,thumbTarget:u});var c=a._controls.getActive().image;c&&e(c).width(b.image.width).height(b.image.height).attr("style",e(b.image).attr("style")).attr("src",b.image.src)}})});d=a.getNext(q);c=new f.Picture;d=a.getData(d);c.preload(a.isFullscreen()&&d.big?d.big:d.image)}a.rescale(function(){a.addTimer(!1,function(){g&&h.show(a.getActiveImage());"function"===
typeof b&&b.call(a);a.rescale()},100);a.trigger(f.FULLSCREEN_ENTER)});g?y.resize(k.scale):h.show(a.getActiveImage())},scale:function(){a.rescale()},exit:function(b){k.beforeExit(function(){b=k.parseCallback(b);a._options.trueFullscreen&&A.support?A.exit(b):k._exit(b)})},_exit:function(b){k.active=!1;var c=!a._options.trueFullscreen||!A.support,d=a.$("container").removeClass("fullscreen");k.parent?k.parent.prepend(d):d.insertAfter(k.prev);c&&(h.hide(a.getActiveImage()),h.revertStyles(a.get("container"),
w().html,w().body),f.TOUCH||m.scrollTo(0,k.scrolled),(d=a._controls.frames[a._controls.active])&&d.image&&(d.image.src=d.image.src));Q&&k.iframe&&(h.revertStyles(k.pd.documentElement,k.pd.body,k.iframe),k.iframe.scrolled&&m.parent.scrollTo(0,k.iframe.scrolled));a.detachKeyboard();a.attachKeyboard(k.keymap);a._options.imageCrop=k.crop;d=a.getData().big;var e=a._controls.getActive().image;!a.getData().iframe&&e&&d&&d==e.src&&m.setTimeout(function(a){return function(){e.src=a}}(a.getData().image),1);
a.rescale(function(){a.addTimer(!1,function(){c&&h.show(a.getActiveImage());"function"===typeof b&&b.call(a);y.trigger("resize")},50);a.trigger(f.FULLSCREEN_EXIT)});y.off("resize",k.scale)}},q=this._idle={trunk:[],bound:!1,active:!1,add:function(a,b,c,d){if(a&&!f.TOUCH){q.bound||q.addEvent();a=e(a);"boolean"==typeof c&&(d=c,c={});c=c||{};var g={},k;for(k in b)b.hasOwnProperty(k)&&(g[k]=a.css(k));a.data("idle",{from:e.extend(g,c),to:b,complete:!0,busy:!1});d?a.css(b):q.addTimer();q.trunk.push(a)}},
remove:function(b){b=e(b);e.each(q.trunk,function(a,c){c&&c.length&&!c.not(b).length&&(b.css(b.data("idle").from),q.trunk.splice(a,1))});q.trunk.length||(q.removeEvent(),a.clearTimer(q.timer))},addEvent:function(){q.bound=!0;a.$("container").on("mousemove click",q.showAll);if("hover"==a._options.idleMode)a.$("container").on("mouseleave",q.hide)},removeEvent:function(){q.bound=!1;a.$("container").on("mousemove click",q.showAll);"hover"==a._options.idleMode&&a.$("container").off("mouseleave",q.hide)},
addTimer:function(){"hover"!=a._options.idleMode&&a.addTimer("idle",function(){q.hide()},a._options.idleTime)},hide:function(){if(a._options.idleMode&&!1!==a.getIndex()){a.trigger(f.IDLE_ENTER);var b=q.trunk.length;e.each(q.trunk,function(c,d){var e=d.data("idle");e&&(d.data("idle").complete=!1,h.animate(d,e.to,{duration:a._options.idleSpeed,complete:function(){c==b-1&&(q.active=!1)}}))})}},showAll:function(){a.clearTimer("idle");e.each(q.trunk,function(a,b){q.show(b)})},show:function(b){var c=b.data("idle");
q.active&&(c.busy||c.complete)||(c.busy=!0,a.trigger(f.IDLE_EXIT),a.clearTimer("idle"),h.animate(b,c.from,{duration:a._options.idleSpeed/2,complete:function(){q.active=!0;e(b).data("idle").busy=!1;e(b).data("idle").complete=!0}}));q.addTimer()}},l=this._lightbox={width:0,height:0,initialized:!1,active:null,image:null,elems:{},keymap:!1,init:function(){if(!l.initialized){l.initialized=!0;var b={},c=a._options,d="";c={overlay:"position:fixed;display:none;opacity:"+c.overlayOpacity+";filter:alpha(opacity="+
100*c.overlayOpacity+");top:0;left:0;width:100%;height:100%;background:"+c.overlayBackground+";z-index:99990",box:"position:fixed;display:none;width:400px;height:400px;top:50%;left:50%;margin-top:-200px;margin-left:-200px;z-index:99991",shadow:"position:absolute;background:#000;width:100%;height:100%;",content:"position:absolute;background-color:#fff;top:10px;left:10px;right:10px;bottom:10px;overflow:hidden",info:"position:absolute;bottom:10px;left:10px;right:10px;color:#444;font:11px/13px arial,sans-serif;height:13px",
close:"position:absolute;top:10px;right:10px;height:20px;width:20px;background:#fff;text-align:center;cursor:pointer;color:#444;font:16px/22px arial,sans-serif;z-index:99999",image:"position:absolute;top:10px;left:10px;right:10px;bottom:30px;overflow:hidden;display:block;",prevholder:"position:absolute;width:50%;top:0;bottom:40px;cursor:pointer;",nextholder:"position:absolute;width:50%;top:0;bottom:40px;right:-1px;cursor:pointer;",prev:"position:absolute;top:50%;margin-top:-20px;height:40px;width:30px;background:#fff;left:20px;display:none;text-align:center;color:#000;font:bold 16px/36px arial,sans-serif",
next:"position:absolute;top:50%;margin-top:-20px;height:40px;width:30px;background:#fff;right:20px;left:auto;display:none;font:bold 16px/36px arial,sans-serif;text-align:center;color:#000",title:"float:left",counter:"float:right;margin-left:8px;"};var g={},k="";k=7<v?9>v?"background:#000;filter:alpha(opacity=0);":"background:rgba(0,0,0,0);":"z-index:99999";c.nextholder+=k;c.prevholder+=k;e.each(c,function(a,b){d+=".galleria-lightbox-"+a+"{"+b+"}"});d+=".galleria-lightbox-box.iframe .galleria-lightbox-prevholder,.galleria-lightbox-box.iframe .galleria-lightbox-nextholder{width:100px;height:100px;top:50%;margin-top:-70px}";
h.insertStyleTag(d,"galleria-lightbox");e.each("overlay box content shadow title info close prevholder prev nextholder next counter image".split(" "),function(c,d){a.addElement("lightbox-"+d);b[d]=l.elems[d]=a.get("lightbox-"+d)});l.image=new f.Picture;e.each({box:"shadow content close prevholder nextholder",info:"title counter",content:"info image",prevholder:"prev",nextholder:"next"},function(a,b){var c=[];e.each(b.split(" "),function(a,b){c.push("lightbox-"+b)});g["lightbox-"+a]=c});a.append(g);
e(b.image).append(l.image.container);e(w().body).append(b.overlay,b.box);(function(a){return a.hover(function(){e(this).css("color","#bbb")},function(){e(this).css("color","#444")})})(e(b.close).on("click:fast",l.hide).html("&#215;"));e.each(["Prev","Next"],function(a,c){var d=e(b[c.toLowerCase()]).html(/v/.test(c)?"&#8249;&#160;":"&#160;&#8250;"),g=e(b[c.toLowerCase()+"holder"]);g.on("click:fast",function(){l["show"+c]()});8>v||f.TOUCH?d.show():g.hover(function(){d.show()},function(a){d.stop().fadeOut(200)})});
e(b.overlay).on("click:fast",l.hide);f.IPAD&&(a._options.lightboxTransitionSpeed=0)}},rescale:function(b){var c=p.min(y.width()-40,l.width),d=p.min(y.height()-60,l.height);d=p.min(c/l.width,d/l.height);c=p.round(l.width*d)+40;d=p.round(l.height*d)+60;c={width:c,height:d,"margin-top":-1*p.ceil(d/2),"margin-left":-1*p.ceil(c/2)};b?e(l.elems.box).css(c):e(l.elems.box).animate(c,{duration:a._options.lightboxTransitionSpeed,easing:a._options.easing,complete:function(){var b=l.image,c=a._options.lightboxFadeSpeed;
a.trigger({type:f.LIGHTBOX_IMAGE,imageTarget:b.image});e(b.container).show();e(b.image).animate({opacity:1},c);h.show(l.elems.info,c)}})},hide:function(){l.image.image=null;y.off("resize",l.rescale);e(l.elems.box).hide().find("iframe").remove();h.hide(l.elems.info);a.detachKeyboard();a.attachKeyboard(l.keymap);l.keymap=!1;h.hide(l.elems.overlay,200,function(){e(this).hide().css("opacity",a._options.overlayOpacity);a.trigger(f.LIGHTBOX_CLOSE)})},showNext:function(){l.show(a.getNext(l.active))},showPrev:function(){l.show(a.getPrev(l.active))},
show:function(b){l.active=b="number"===typeof b?b:a.getIndex()||0;l.initialized||l.init();a.trigger(f.LIGHTBOX_OPEN);l.keymap||(l.keymap=e.extend({},a._keyboard.map),a.attachKeyboard({escape:l.hide,right:l.showNext,left:l.showPrev}));y.off("resize",l.rescale);var c=a.getData(b),d=a.getDataLength(),g=a.getNext(b),k;h.hide(l.elems.info);try{for(k=a._options.preload;0<k;k--){var q=new f.Picture;var r=a.getData(g);q.preload(r.big?r.big:r.image);g=a.getNext(g)}}catch(u){}l.image.isIframe=c.iframe&&!c.image;
e(l.elems.box).toggleClass("iframe",l.image.isIframe);e(l.image.container).find(".galleria-videoicon").remove();l.image.load(c.big||c.image||c.iframe,function(g){if(g.isIframe){var k=e(m).width(),f=e(m).height();if(g.video&&a._options.maxVideoSize){var q=p.min(a._options.maxVideoSize/k,a._options.maxVideoSize/f);1>q&&(k*=q,f*=q)}l.width=k;l.height=f}else l.width=g.original.width,l.height=g.original.height;e(g.image).css({width:g.isIframe?"100%":"100.1%",height:g.isIframe?"100%":"100.1%",top:0,bottom:0,
zIndex:99998,opacity:0,visibility:"visible"}).parent().height("100%");l.elems.title.innerHTML=c.title||"";l.elems.counter.innerHTML=b+1+" / "+d;y.resize(l.rescale);l.rescale();if(c.image&&c.iframe){e(l.elems.box).addClass("iframe");if(c.video){var h=V(g.container).hide();m.setTimeout(function(){h.fadeIn(200)},200)}e(g.image).css("cursor","pointer").mouseup(function(a,b){return function(c){e(l.image.container).find(".galleria-videoicon").remove();c.preventDefault();b.isIframe=!0;b.load(a.iframe+(a.video?
"&autoplay=1":""),{width:"100%",height:8>v?e(l.image.container).height():"100%"})}}(c,g))}});e(l.elems.overlay).show().css("visibility","visible");e(l.elems.box).show()}},P=this._timer={trunk:{},add:function(a,b,c,d){a=a||(new Date).getTime();d=d||!1;this.clear(a);if(d){var e=b;b=function(){e();P.add(a,b,c)}}this.trunk[a]=m.setTimeout(b,c)},clear:function(a){var b;if(a&&a in this.trunk)m.clearTimeout(this.trunk[a]),delete this.trunk[a];else if("undefined"===typeof a)for(b in this.trunk)this.trunk.hasOwnProperty(b)&&
(a=b,m.clearTimeout(this.trunk[a]),delete this.trunk[a])}};return this};f.prototype={constructor:f,init:function(a,b){b=Z(b);this._original={target:a,options:b,data:null};this._target=this._dom.target=a.nodeName?a:e(a).get(0);this._original.html=this._target.innerHTML;K.push(this);if(this._target){this._options={autoplay:!1,carousel:!0,carouselFollow:!0,carouselSpeed:400,carouselSteps:"auto",clicknext:!1,dailymotion:{foreground:"%23EEEEEE",highlight:"%235BCEC5",background:"%23222222",logo:0,hideInfos:1},
dataConfig:function(a){return{}},dataSelector:"img",dataSort:!1,dataSource:this._target,debug:t,dummy:t,easing:"galleria",extend:function(a){},fullscreenCrop:t,fullscreenDoubleTap:!0,fullscreenTransition:t,height:0,idleMode:!0,idleTime:3E3,idleSpeed:200,imageCrop:!1,imageMargin:0,imagePan:!1,imagePanSmoothness:12,imagePosition:"50%",imageTimeout:t,initialTransition:t,keepSource:!1,layerFollow:!0,lightbox:!1,lightboxFadeSpeed:200,lightboxTransitionSpeed:200,linkSourceImages:!0,maxScaleRatio:t,maxVideoSize:t,
minScaleRatio:t,overlayOpacity:.85,overlayBackground:"#0b0b0b",pauseOnInteraction:!0,popupLinks:!1,preload:2,queue:!0,responsive:!0,show:0,showInfo:!0,showCounter:!0,showImagenav:!0,swipe:"auto",theme:null,thumbCrop:!0,thumbEventType:"click:fast",thumbMargin:0,thumbQuality:"auto",thumbDisplayOrder:!0,thumbPosition:"50%",thumbnails:!0,touchTransition:t,transition:"fade",transitionInitial:t,transitionSpeed:400,trueFullscreen:!0,useCanvas:!1,variation:"",videoPoster:!0,vimeo:{title:0,byline:0,portrait:0,
color:"aaaaaa"},wait:5E3,width:"auto",youtube:{modestbranding:1,autohide:1,color:"white",hd:1,rel:0,showinfo:0}};this._options.initialTransition=this._options.initialTransition||this._options.transitionInitial;b&&(!1===b.debug&&(W=!1),"string"===typeof b.dummy&&(R=b.dummy),"string"==typeof b.theme&&(this._options.theme=b.theme));e(this._target).children().hide();f.QUIRK&&f.raise("Your page is in Quirks mode, Galleria may not render correctly. Please validate your HTML and add a correct doctype.");
if(L.length)if(this._options.theme)for(var d=0;d<L.length;d++){if(this._options.theme===L[d].name){this.theme=L[d];break}}else this.theme=L[0];"object"==typeof this.theme?this._init():da.push(this);return this}f.raise("Target not found",!0)},_init:function(){var a=this,b=this._options;if(this._initialized)return f.raise("Init failed: Gallery instance already initialized."),this;this._initialized=!0;if(!this.theme)return f.raise("Init failed: No theme found.",!0),this;e.extend(!0,b,this.theme.defaults,
this._original.options,f.configure.options);b.swipe=function(a){return"enforced"==a?!0:!1===a||"disabled"==a?!1:!!f.TOUCH}(b.swipe);b.swipe&&(b.clicknext=!1,b.imagePan=!1);(function(a){"getContext"in a&&(B=B||{elem:a,context:a.getContext("2d"),cache:{},length:0})})(n.createElement("canvas"));this.bind(f.DATA,function(){m.screen&&m.screen.width&&Array.prototype.forEach&&this._data.forEach(function(a){var b="devicePixelRatio"in m?m.devicePixelRatio:1;1024>p.max(m.screen.width,m.screen.height)*b&&(a.big=
a.image)});this._original.data=this._data;this.get("total").innerHTML=this.getDataLength();var b=this.$("container");2>a._options.height&&(a._userRatio=a._ratio=a._options.height);var c={width:0,height:0},d=function(){return a.$("stage").height()};h.wait({until:function(){c=a._getWH();b.width(c.width).height(c.height);return d()&&c.width&&50<c.height},success:function(){a._width=c.width;a._height=c.height;a._ratio=a._ratio||c.height/c.width;f.WEBKIT?m.setTimeout(function(){a._run()},1):a._run()},
error:function(){d()?f.raise("Could not extract sufficient width/height of the gallery container. Traced measures: width:"+c.width+"px, height: "+c.height+"px.",!0):f.raise("Could not extract a stage height from the CSS. Traced height: "+d()+"px.",!0)},timeout:"number"==typeof this._options.wait?this._options.wait:!1})});this.append({"info-text":["info-title","info-description"],info:["info-text"],"image-nav":["image-nav-right","image-nav-left"],stage:["images","loader","counter","image-nav"],"thumbnails-list":["thumbnails"],
"thumbnails-container":["thumb-nav-left","thumbnails-list","thumb-nav-right"],container:["stage","thumbnails-container","info","tooltip"]});h.hide(this.$("counter").append(this.get("current"),n.createTextNode(" / "),this.get("total")));this.setCounter("&#8211;");h.hide(a.get("tooltip"));this.$("container").addClass([f.TOUCH?"touch":"notouch",this._options.variation,"galleria-theme-"+this.theme.name].join(" "));this._options.swipe||e.each(Array(2),function(b){var c=new f.Picture;e(c.container).css({position:"absolute",
top:0,left:0}).prepend(a._layers[b]=e(h.create("galleria-layer")).css({position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:2})[0]);a.$("images").append(c.container);a._controls[b]=c;var d=new f.Picture;d.isIframe=!0;e(d.container).attr("class","galleria-frame").css({position:"absolute",top:0,left:0,zIndex:4,background:"#000",display:"none"}).appendTo(c.container);a._controls.frames[b]=d});this.$("images").css({position:"relative",top:0,left:0,width:"100%",height:"100%"});b.swipe&&(this.$("images").css({position:"absolute",
top:0,left:0,width:0,height:"100%"}),this.finger=new f.Finger(this.get("stage"),{onchange:function(b){a.pause().show(b)},oncomplete:function(b){b=p.max(0,p.min(parseInt(b,10),a.getDataLength()-1));var c=a.getData(b);e(a._thumbnails[b].container).addClass("active").siblings(".active").removeClass("active");c&&(a.$("images").find(".galleria-frame").css("opacity",0).hide().find("iframe").remove(),a._options.carousel&&a._options.carouselFollow&&a._carousel.follow(b))}}),this.bind(f.RESCALE,function(){this.finger.setup()}),
this.$("stage").on("click",function(b){var c=a.getData();if(c)if(c.iframe){a.isPlaying()&&a.pause();var d=a._controls.frames[a._active],g=a._stageWidth,f=a._stageHeight;e(d.container).find("iframe").length||(e(d.container).css({width:g,height:f,opacity:0}).show().animate({opacity:1},200),m.setTimeout(function(){d.load(c.iframe+(c.video?"&autoplay=1":""),{width:g,height:f},function(b){a.$("container").addClass("videoplay");b.scale({width:a._stageWidth,height:a._stageHeight,iframelimit:c.video?a._options.maxVideoSize:
t})})},100))}else c.link&&(a._options.popupLinks?m.open(c.link,"_blank"):m.location.href=c.link)}),this.bind(f.IMAGE,function(b){a.setCounter(b.index);a.setInfo(b.index);b=this.getNext();var c=this.getPrev(),d=[c,b];d.push(this.getNext(b),this.getPrev(c),a._controls.slides.length-1);var g=[];e.each(d,function(a,b){-1==e.inArray(b,g)&&g.push(b)});e.each(g,function(b,c){var d=a.getData(c),g=a._controls.slides[c],k=a.isFullscreen()&&d.big?d.big:d.image||d.iframe;d.iframe&&!d.image&&(g.isIframe=!0);g.ready||
a._controls.slides[c].load(k,function(b){b.isIframe||e(b.image).css("visibility","hidden");a._scaleImage(b,{complete:function(a){a.isIframe||e(a.image).css({opacity:0,visibility:"visible"}).animate({opacity:1},200)}})})})}));this.$("thumbnails, thumbnails-list").css({overflow:"hidden",position:"relative"});this.$("image-nav-right, image-nav-left").on("click:fast",function(c){b.pauseOnInteraction&&a.pause();c=/right/.test(this.className)?"next":"prev";a[c]()}).on("click",function(a){a.preventDefault();
(b.clicknext||b.swipe)&&a.stopPropagation()});e.each(["info","counter","image-nav"],function(c,d){!1===b["show"+d.substr(0,1).toUpperCase()+d.substr(1).replace(/-/,"")]&&h.moveOut(a.get(d.toLowerCase()))});this.load();b.keepSource||v||(this._target.innerHTML="");this.get("errors")&&this.appendChild("target","errors");this.appendChild("target","container");if(b.carousel){var d=0,c=b.show;this.bind(f.THUMBNAIL,function(){this.updateCarousel();++d==this.getDataLength()&&"number"==typeof c&&0<c&&this._carousel.follow(c)})}if(b.responsive)y.on("resize",
function(){a.isFullscreen()||a.resize()});if(b.fullscreenDoubleTap)this.$("stage").on("touchstart",function(){var b,c,d,e,f,m;a.$("stage").on("touchmove",function(){b=0});return function(g){/(-left|-right)/.test(g.target.className)||(m=h.timestamp(),c=(g.originalEvent.touches?g.originalEvent.touches[0]:g).pageX,d=(g.originalEvent.touches?g.originalEvent.touches[0]:g).pageY,2>g.originalEvent.touches.length&&300>m-b&&20>c-e&&20>d-f?(a.toggleFullscreen(),g.preventDefault()):(b=m,e=c,f=d))}}());e.each(f.on.binds,
function(b,c){-1==e.inArray(c.hash,a._binds)&&a.bind(c.type,c.callback)});return this},addTimer:function(){this._timer.add.apply(this._timer,h.array(arguments));return this},clearTimer:function(){this._timer.clear.apply(this._timer,h.array(arguments));return this},_getWH:function(){var a=this.$("container"),b=this.$("target"),d=this,c={},g;e.each(["width","height"],function(e,f){d._options[f]&&"number"===typeof d._options[f]?c[f]=d._options[f]:(g=[h.parseValue(a.css(f)),h.parseValue(b.css(f)),a[f](),
b[f]()],d["_"+f]||g.splice(g.length,h.parseValue(a.css("min-"+f)),h.parseValue(b.css("min-"+f))),c[f]=p.max.apply(p,g))});d._userRatio&&(c.height=c.width*d._userRatio);return c},_createThumbnails:function(a){this.get("total").innerHTML=this.getDataLength();var b=this,d=this._options,c=a?this._data.length-a.length:0,g=c,k=[],q=0,l=8>v?"http://upload.wikimedia.org/wikipedia/commons/c/c0/Blank.gif":"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw%3D%3D",P=function(){var a=
b.$("thumbnails").find(".active");return a.length?a.find("img").attr("src"):!1}(),r="string"===typeof d.thumbnails?d.thumbnails.toLowerCase():null,E=function(a){return n.defaultView&&n.defaultView.getComputedStyle?n.defaultView.getComputedStyle(u.container,null)[a]:w.css(a)},I=function(a,c,d){return function(){e(d).append(a);b.trigger({type:f.THUMBNAIL,thumbTarget:a,index:c,galleriaData:b.getData(c)})}},p=function(a){d.pauseOnInteraction&&b.pause();var c=e(a.currentTarget).data("index");b.getIndex()!==
c&&b.show(c);a.preventDefault()},t=function(a,c){e(a.container).css("visibility","visible");b.trigger({type:f.THUMBNAIL,thumbTarget:a.image,index:a.data.order,galleriaData:b.getData(a.data.order)});"function"==typeof c&&c.call(b,a)},x=function(a,c){a.scale({width:a.data.width,height:a.data.height,crop:d.thumbCrop,margin:d.thumbMargin,canvas:d.useCanvas,position:d.thumbPosition,complete:function(a){var g=["left","top"],f,l;b.getData(a.index);e.each(["Width","Height"],function(b,c){f=c.toLowerCase();
if(!0!==d.thumbCrop||d.thumbCrop===f)l={},l[f]=a[f],e(a.container).css(l),l={},l[g[b]]=0,e(a.image).css(l);a["outer"+c]=e(a.container)["outer"+c](!0)});h.toggleQuality(a.image,!0===d.thumbQuality||"auto"===d.thumbQuality&&a.original.width<3*a.width);d.thumbDisplayOrder&&!a.lazy?e.each(k,function(a,b){a===q&&b.ready&&!b.displayed&&(q++,b.displayed=!0,t(b,c))}):t(a,c)}})};a||(this._thumbnails=[],this.$("thumbnails").empty());for(;this._data[c];c++){var D=this._data[c];a=D.thumb||D.image;if(!0!==d.thumbnails&&
"lazy"!=r||!D.thumb&&!D.image)if(D.iframe&&null!==r||"empty"===r||"numbers"===r){var u={container:h.create("galleria-image"),image:h.create("img","span"),ready:!0,data:{order:c}};"numbers"===r&&e(u.image).text(c+1);D.iframe&&e(u.image).addClass("iframe");this.$("thumbnails").append(u.container);m.setTimeout(I(u.image,c,u.container),50+20*c)}else u={container:null,image:null};else{u=new f.Picture(c);u.index=c;u.displayed=!1;u.lazy=!1;u.video=!1;this.$("thumbnails").append(u.container);var w=e(u.container);
w.css("visibility","hidden");u.data={width:h.parseValue(E("width")),height:h.parseValue(E("height")),order:c,src:a};!0!==d.thumbCrop?w.css({width:"auto",height:"auto"}):w.css({width:u.data.width,height:u.data.height});"lazy"==r?(w.addClass("lazy"),u.lazy=!0,u.load(l,{height:u.data.height,width:u.data.width})):u.load(a,x);"all"===d.preload&&u.preload(D.image)}e(u.container).add(d.keepSource&&d.linkSourceImages?D.original:null).data("index",c).on(d.thumbEventType,p).data("thumbload",x);P===a&&e(u.container).addClass("active");
this._thumbnails.push(u)}k=this._thumbnails.slice(g);return this},lazyLoad:function(a,b){var d=a.constructor==Array?a:[a],c=this,g=0;e.each(d,function(a,f){if(!(f>c._thumbnails.length-1)){var l=c._thumbnails[f],k=l.data,h=function(){++g==d.length&&"function"==typeof b&&b.call(c)},q=e(l.container).data("thumbload");q&&(l.video?q.call(c,l,h):l.load(k.src,function(a){q.call(c,a,h)}))}});return this},lazyLoadChunks:function(a,b){var d=this.getDataLength(),c=0,e=0,f=[],h=[],l=this;for(b=b||0;c<d;c++)if(h.push(c),
++e==a||c==d-1)f.push(h),e=0,h=[];var p=function(a){var c=f.shift();c&&m.setTimeout(function(){l.lazyLoad(c,function(){p(!0)})},b&&a?b:0)};p(!1);return this},_run:function(){var a=this;a._createThumbnails();h.wait({timeout:1E4,until:function(){f.OPERA&&a.$("stage").css("display","inline-block");a._stageWidth=a.$("stage").width();a._stageHeight=a.$("stage").height();return a._stageWidth&&50<a._stageHeight},success:function(){T.push(a);if(a._options.swipe){var b=a.$("images").width(a.getDataLength()*
a._stageWidth);e.each(Array(a.getDataLength()),function(d){var c=new f.Picture,g=a.getData(d);e(c.container).css({position:"absolute",top:0,left:a._stageWidth*d}).prepend(a._layers[d]=e(h.create("galleria-layer")).css({position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:2})[0]).appendTo(b);g.video&&V(c.container);a._controls.slides.push(c);d=new f.Picture;d.isIframe=!0;e(d.container).attr("class","galleria-frame").css({position:"absolute",top:0,left:0,zIndex:4,background:"#000",display:"none"}).appendTo(c.container);
a._controls.frames.push(d)});a.finger.setup()}h.show(a.get("counter"));a._options.carousel&&a._carousel.bindControls();a._options.autoplay&&(a.pause(),"number"===typeof a._options.autoplay&&(a._playtime=a._options.autoplay),a._playing=!0);a._firstrun?(a._options.autoplay&&a.trigger(f.PLAY),"number"===typeof a._options.show&&a.show(a._options.show)):(a._firstrun=!0,f.History&&f.History.change(function(b){isNaN(b)?m.history.go(-1):a.show(b,t,!0)}),a.trigger(f.READY),a.theme.init.call(a,a._options),
e.each(f.ready.callbacks,function(b,c){"function"==typeof c&&c.call(a,a._options)}),a._options.extend.call(a,a._options),/^[0-9]{1,4}$/.test(X)&&f.History?a.show(X,t,!0):a._data[a._options.show]&&a.show(a._options.show),a._options.autoplay&&a.trigger(f.PLAY))},error:function(){f.raise("Stage width or height is too small to show the gallery. Traced measures: width:"+a._stageWidth+"px, height: "+a._stageHeight+"px.",!0)}})},load:function(a,b,d){var c=this,g=this._options;this._data=[];this._thumbnails=
[];this.$("thumbnails").empty();"function"===typeof b&&(d=b,b=null);a=a||g.dataSource;b=b||g.dataSelector;d=d||g.dataConfig;e.isPlainObject(a)&&(a=[a]);e.isArray(a)?this.validate(a)?this._data=a:f.raise("Load failed: JSON Array not valid."):(b+=",.video,.iframe",e(a).find(b).each(function(a,b){b=e(b);var g={},f=b.parent(),k=f.attr("href");f=f.attr("rel");k&&("IMG"==b[0].nodeName||b.hasClass("video"))&&ba(k)?g.video=k:k&&b.hasClass("iframe")?g.iframe=k:g.image=g.big=k;f&&(g.big=f);e.each("big title description link layer image".split(" "),
function(a,c){b.data(c)&&(g[c]=b.data(c).toString())});g.big||(g.big=g.image);c._data.push(e.extend({title:b.attr("title")||"",thumb:b.attr("src"),image:b.attr("src"),big:b.attr("src"),description:b.attr("alt")||"",link:b.attr("longdesc"),original:b.get(0)},g,d(b)))}));"function"==typeof g.dataSort?N.sort.call(this._data,g.dataSort):"random"==g.dataSort&&this._data.sort(function(){return p.round(p.random())-.5});this.getDataLength()&&this._parseData(function(){this.trigger(f.DATA)});return this},
_parseData:function(a){var b=this,d,c=!1,g=function(){var d=!0;e.each(b._data,function(a,b){if(b.loading)return d=!1});d&&!c&&(c=!0,a.call(b))};e.each(this._data,function(a,c){d=b._data[a];!1==="thumb"in c&&(d.thumb=c.image);c.big||(d.big=c.image);if("video"in c){var f=ba(c.video);f&&(d.iframe=(new aa(f.provider,f.id)).embed()+function(){if("object"==typeof b._options[f.provider]){var a=[];e.each(b._options[f.provider],function(b,c){a.push(b+"="+c)});"youtube"==f.provider&&(a=["wmode=opaque"].concat(a));
return"?"+a.join("&")}return""}(),d.thumb&&d.image||e.each(["thumb","image"],function(a,c){if("image"!=c||b._options.videoPoster){var e=new aa(f.provider,f.id);d[c]||(d.loading=!0,e.getMedia(c,function(a,b){return function(c){a[b]=c;"image"!=b||a.big||(a.big=a.image);delete a.loading;g()}}(d,c)))}else d.image=t}))}});g();return this},destroy:function(){this.$("target").data("galleria",null);this.$("container").off("galleria");this.get("target").innerHTML=this._original.html;this.clearTimer();h.removeFromArray(K,
this);h.removeFromArray(T,this);void 0!==f._waiters&&f._waiters.length&&e.each(f._waiters,function(a,b){b&&m.clearTimeout(b)});return this},splice:function(){var a=this,b=h.array(arguments);m.setTimeout(function(){N.splice.apply(a._data,b);a._parseData(function(){a._createThumbnails()})},2);return a},push:function(){var a=this,b=h.array(arguments);1==b.length&&b[0].constructor==Array&&(b=b[0]);m.setTimeout(function(){N.push.apply(a._data,b);a._parseData(function(){a._createThumbnails(b)})},2);return a},
_getActive:function(){return this._controls.getActive()},validate:function(a){return!0},bind:function(a,b){a=S(a);this.$("container").on(a,this.proxy(b));return this},unbind:function(a){a=S(a);this.$("container").off(a);return this},trigger:function(a){a="object"===typeof a?e.extend(a,{scope:this}):{type:S(a),scope:this};this.$("container").trigger(a);return this},addIdleState:function(a,b,d,c){this._idle.add.apply(this._idle,h.array(arguments));return this},removeIdleState:function(a){this._idle.remove.apply(this._idle,
h.array(arguments));return this},enterIdleMode:function(){this._idle.hide();return this},exitIdleMode:function(){this._idle.showAll();return this},enterFullscreen:function(a){this._fullscreen.enter.apply(this,h.array(arguments));return this},exitFullscreen:function(a){this._fullscreen.exit.apply(this,h.array(arguments));return this},toggleFullscreen:function(a){this._fullscreen[this.isFullscreen()?"exit":"enter"].apply(this,h.array(arguments));return this},bindTooltip:function(a,b){this._tooltip.bind.apply(this._tooltip,
h.array(arguments));return this},defineTooltip:function(a,b){this._tooltip.define.apply(this._tooltip,h.array(arguments));return this},refreshTooltip:function(a){this._tooltip.show.apply(this._tooltip,h.array(arguments));return this},openLightbox:function(){this._lightbox.show.apply(this._lightbox,h.array(arguments));return this},closeLightbox:function(){this._lightbox.hide.apply(this._lightbox,h.array(arguments));return this},hasVariation:function(a){return-1<e.inArray(a,this._options.variation.split(/\s+/))},
getActiveImage:function(){var a=this._getActive();return a?a.image:t},getActiveThumb:function(){return this._thumbnails[this._active].image||t},getMousePosition:function(a){return{x:a.pageX-this.$("container").offset().left,y:a.pageY-this.$("container").offset().top}},addPan:function(a){if(!1!==this._options.imageCrop){a=e(a||this.getActiveImage());var b=this,d=a.width()/2,c=a.height()/2,g=parseInt(a.css("left"),10),f=parseInt(a.css("top"),10),m=g||0,l=f||0,n=0,r=0,E=!1,I=h.timestamp(),t=0,F=0,x=
function(b,c,d){if(0<b&&(F=p.round(p.max(-1*b,p.min(0,c))),t!==F))if(t=F,8===v)a.parent()["scroll"+d](-1*F);else b={},b[d.toLowerCase()]=F,a.css(b)},D=function(a){50>h.timestamp()-I||(E=!0,d=b.getMousePosition(a).x,c=b.getMousePosition(a).y)};8===v&&(a.parent().scrollTop(-1*l).scrollLeft(-1*m),a.css({top:0,left:0}));this.$("stage").off("mousemove",D).on("mousemove",D);this.addTimer("pan"+b._id,function(e){E&&(n=a.width()-b._stageWidth,r=a.height()-b._stageHeight,g=d/b._stageWidth*n*-1,f=c/b._stageHeight*
r*-1,m+=(g-m)/b._options.imagePanSmoothness,l+=(f-l)/b._options.imagePanSmoothness,x(r,l,"Top"),x(n,m,"Left"))},50,!0);return this}},proxy:function(a,b){if("function"!==typeof a)return z;b=b||this;return function(){return a.apply(b,h.array(arguments))}},getThemeName:function(){return this.theme.name},removePan:function(){this.$("stage").off("mousemove");this.clearTimer("pan"+this._id);return this},addElement:function(a){var b=this._dom;e.each(h.array(arguments),function(a,c){b[c]=h.create("galleria-"+
c)});return this},attachKeyboard:function(a){this._keyboard.attach.apply(this._keyboard,h.array(arguments));return this},detachKeyboard:function(){this._keyboard.detach.apply(this._keyboard,h.array(arguments));return this},appendChild:function(a,b){this.$(a).append(this.get(b)||b);return this},prependChild:function(a,b){this.$(a).prepend(this.get(b)||b);return this},remove:function(a){this.$(h.array(arguments).join(",")).remove();return this},append:function(a){var b,d;for(b in a)if(a.hasOwnProperty(b))if(a[b].constructor===
Array)for(d=0;a[b][d];d++)this.appendChild(b,a[b][d]);else this.appendChild(b,a[b]);return this},_scaleImage:function(a,b){if(a=a||this._controls.getActive()){var d=function(a){e(a.container).children(":first").css({top:p.max(0,h.parseValue(a.image.style.top)),left:p.max(0,h.parseValue(a.image.style.left)),width:h.parseValue(a.image.width),height:h.parseValue(a.image.height)})};b=e.extend({width:this._stageWidth,height:this._stageHeight,crop:this._options.imageCrop,max:this._options.maxScaleRatio,
min:this._options.minScaleRatio,margin:this._options.imageMargin,position:this._options.imagePosition,iframelimit:this._options.maxVideoSize},b);if(this._options.layerFollow&&!0!==this._options.imageCrop)if("function"==typeof b.complete){var c=b.complete;b.complete=function(){c.call(a,a);d(a)}}else b.complete=d;else e(a.container).children(":first").css({top:0,left:0});a.scale(b);return this}},updateCarousel:function(){this._carousel.update();return this},resize:function(a,b){"function"==typeof a&&
(b=a,a=t);a=e.extend({width:0,height:0},a);var d=this,c=this.$("container");e.each(a,function(b,e){e||(c[b]("auto"),a[b]=d._getWH()[b])});e.each(a,function(a,b){c[a](b)});return this.rescale(b)},rescale:function(a,b,d){var c=this;"function"===typeof a&&(d=a,a=t);(function(){c._stageWidth=a||c.$("stage").width();c._stageHeight=b||c.$("stage").height();c._options.swipe?(e.each(c._controls.slides,function(a,b){c._scaleImage(b);e(b.container).css("left",c._stageWidth*a)}),c.$("images").css("width",c._stageWidth*
c.getDataLength())):c._scaleImage();c._options.carousel&&c.updateCarousel();c._controls.frames[c._controls.active]&&c._controls.frames[c._controls.active].scale({width:c._stageWidth,height:c._stageHeight,iframelimit:c._options.maxVideoSize});c.trigger(f.RESCALE);"function"===typeof d&&d.call(c)}).call(c);return this},refreshImage:function(){this._scaleImage();this._options.imagePan&&this.addPan();return this},_preload:function(){if(this._options.preload){var a,b=this.getNext();try{for(a=this._options.preload;0<
a;a--){var d=new f.Picture;var c=this.getData(b);d.preload(this.isFullscreen()&&c.big?c.big:c.image);b=this.getNext(b)}}catch(g){}}},show:function(a,b,d){var c=this._options.swipe;if(c||!(3<this._queue.length||!1===a||!this._options.queue&&this._queue.stalled))if(a=p.max(0,p.min(parseInt(a,10),this.getDataLength()-1)),b="undefined"!==typeof b?!!b:a<this.getIndex(),!d&&f.History)f.History.set(a.toString());else{this.finger&&a!==this._active&&(this.finger.to=-(a*this.finger.width),this.finger.index=
a);this._active=a;if(c){var g=this.getData(a),k=this;if(!g)return;var h=this.isFullscreen()&&g.big?g.big:g.image||g.iframe,l=this._controls.slides[a],n={cached:l.isCached(h),index:a,rewind:b,imageTarget:l.image,thumbTarget:this._thumbnails[a].image,galleriaData:g};this.trigger(e.extend(n,{type:f.LOADSTART}));k.$("container").removeClass("videoplay");var r=function(){k._layers[a].innerHTML=k.getData().layer||"";k.trigger(e.extend(n,{type:f.LOADFINISH}));k._playCheck()};k._preload();m.setTimeout(function(){l.ready&&
e(l.image).attr("src")==h?(k.trigger(e.extend(n,{type:f.IMAGE})),r()):(g.iframe&&!g.image&&(l.isIframe=!0),l.load(h,function(a){n.imageTarget=a.image;k._scaleImage(a,r).trigger(e.extend(n,{type:f.IMAGE}));r()}))},100)}else N.push.call(this._queue,{index:a,rewind:b}),this._queue.stalled||this._show();return this}},_show:function(){var a=this,b=this._queue[0],d=this.getData(b.index);if(d){var c=this.isFullscreen()&&d.big?d.big:d.image||d.iframe,g=this._controls.getActive(),k=this._controls.getNext(),
q=k.isCached(c),l=this._thumbnails[b.index],p=function(){e(k.image).trigger("mouseup")};a.$("container").toggleClass("iframe",!!d.isIframe).removeClass("videoplay");var n=function(b,c,d,g,k){return function(){J.active=!1;h.toggleQuality(c.image,a._options.imageQuality);a._layers[a._controls.active].innerHTML="";e(d.container).css({zIndex:0,opacity:0}).show();e(d.container).find("iframe, .galleria-videoicon").remove();e(a._controls.frames[a._controls.active].container).hide();e(c.container).css({zIndex:1,
left:0,top:0}).show();a._controls.swap();a._options.imagePan&&a.addPan(c.image);if(b.iframe&&b.image||b.link||a._options.lightbox||a._options.clicknext)e(c.image).css({cursor:"pointer"}).on("mouseup",function(c){if(!("number"==typeof c.which&&1<c.which))if(b.iframe){a.isPlaying()&&a.pause();var d=a._controls.frames[a._controls.active],g=a._stageWidth,k=a._stageHeight;e(d.container).css({width:g,height:k,opacity:0}).show().animate({opacity:1},200);m.setTimeout(function(){d.load(b.iframe+(b.video?"&autoplay=1":
""),{width:g,height:k},function(c){a.$("container").addClass("videoplay");c.scale({width:a._stageWidth,height:a._stageHeight,iframelimit:b.video?a._options.maxVideoSize:t})})},100)}else a._options.clicknext&&!f.TOUCH?(a._options.pauseOnInteraction&&a.pause(),a.next()):b.link?a._options.popupLinks?m.open(b.link,"_blank"):m.location.href=b.link:a._options.lightbox&&a.openLightbox()});a._playCheck();a.trigger({type:f.IMAGE,index:g.index,imageTarget:c.image,thumbTarget:k.image,galleriaData:b});N.shift.call(a._queue);
a._queue.stalled=!1;a._queue.length&&a._show()}}(d,k,g,b,l);this._options.carousel&&this._options.carouselFollow&&this._carousel.follow(b.index);a._preload();h.show(k.container);k.isIframe=d.iframe&&!d.image;e(a._thumbnails[b.index].container).addClass("active").siblings(".active").removeClass("active");a.trigger({type:f.LOADSTART,cached:q,index:b.index,rewind:b.rewind,imageTarget:k.image,thumbTarget:l.image,galleriaData:d});a._queue.stalled=!0;k.load(c,function(c){var k=e(a._layers[1-a._controls.active]).html(d.layer||
"").hide();a._scaleImage(c,{complete:function(c){"image"in g&&h.toggleQuality(g.image,!1);h.toggleQuality(c.image,!1);a.removePan();a.setInfo(b.index);a.setCounter(b.index);d.layer&&(k.show(),(d.iframe&&d.image||d.link||a._options.lightbox||a._options.clicknext)&&k.css("cursor","pointer").off("mouseup").mouseup(p));d.video&&d.image&&V(c.container);var l=a._options.transition;e.each({initial:null===g.image,touch:f.TOUCH,fullscreen:a.isFullscreen()},function(b,c){if(c&&a._options[b+"Transition"]!==
t)return l=a._options[b+"Transition"],!1});if(!1===l in J.effects)n();else{var m={prev:g.container,next:c.container,rewind:b.rewind,speed:a._options.transitionSpeed||400};J.active=!0;J.init.call(a,l,m,n)}a.trigger({type:f.LOADFINISH,cached:q,index:b.index,rewind:b.rewind,imageTarget:c.image,thumbTarget:a._thumbnails[b.index].image,galleriaData:a.getData(b.index)})}})})}},getNext:function(a){a="number"===typeof a?a:this.getIndex();return a===this.getDataLength()-1?0:a+1},getPrev:function(a){a="number"===
typeof a?a:this.getIndex();return 0===a?this.getDataLength()-1:a-1},next:function(){1<this.getDataLength()&&this.show(this.getNext(),!1);return this},prev:function(){1<this.getDataLength()&&this.show(this.getPrev(),!0);return this},get:function(a){return a in this._dom?this._dom[a]:null},getData:function(a){return a in this._data?this._data[a]:this._data[this._active]},getDataLength:function(){return this._data.length},getIndex:function(){return"number"===typeof this._active?this._active:!1},getStageHeight:function(){return this._stageHeight},
getStageWidth:function(){return this._stageWidth},getOptions:function(a){return"undefined"===typeof a?this._options:this._options[a]},setOptions:function(a,b){"object"===typeof a?e.extend(this._options,a):this._options[a]=b;return this},play:function(a){this._playing=!0;this._playtime=a||this._playtime;this._playCheck();this.trigger(f.PLAY);return this},pause:function(){this._playing=!1;this.trigger(f.PAUSE);return this},playToggle:function(a){return this._playing?this.pause():this.play(a)},isPlaying:function(){return this._playing},
isFullscreen:function(){return this._fullscreen.active},_playCheck:function(){var a=this,b=0,d=h.timestamp(),c="play"+this._id;if(this._playing){this.clearTimer(c);var e=function(){b=h.timestamp()-d;b>=a._playtime&&a._playing?(a.clearTimer(c),a.next()):a._playing&&(a.trigger({type:f.PROGRESS,percent:p.ceil(b/a._playtime*100),seconds:p.floor(b/1E3),milliseconds:b}),a.addTimer(c,e,20))};a.addTimer(c,e,20)}},setPlaytime:function(a){this._playtime=a;return this},setIndex:function(a){this._active=a;return this},
setCounter:function(a){"number"===typeof a?a++:"undefined"===typeof a&&(a=this.getIndex()+1);this.get("current").innerHTML=a;if(v){a=this.$("counter");var b=a.css("opacity");1===parseInt(b,10)?h.removeAlpha(a[0]):this.$("counter").css("opacity",b)}return this},setInfo:function(a){var b=this,d=this.getData(a);e.each(["title","description"],function(a,e){var c=b.$("info-"+e);d[e]?c[d[e].length?"show":"hide"]().html(d[e]):c.empty().hide()});return this},hasInfo:function(a){var b=["title","description"],
d;for(d=0;b[d];d++)if(this.getData(a)[b[d]])return!0;return!1},jQuery:function(a){var b=this,d=[];e.each(a.split(","),function(a,c){c=e.trim(c);b.get(c)&&d.push(c)});var c=e(b.get(d.shift()));e.each(d,function(a,d){c=c.add(b.get(d))});return c},$:function(a){return this.jQuery.apply(this,h.array(arguments))}};e.each(Y,function(a,b){var d=/_/.test(b)?b.replace(/_/g,""):b;f[b.toUpperCase()]="galleria."+d});e.extend(f,{IE9:9===v,IE8:8===v,IE7:7===v,IE6:6===v,IE:v,WEBKIT:/webkit/.test(H),CHROME:/chrome/.test(H),
SAFARI:/safari/.test(H)&&!/chrome/.test(H),QUIRK:v&&n.compatMode&&"BackCompat"===n.compatMode,MAC:/mac/.test(navigator.platform.toLowerCase()),OPERA:!!m.opera,IPHONE:/iphone/.test(H),IPAD:/ipad/.test(H),ANDROID:/android/.test(H),TOUCH:"ontouchstart"in n&&fa});f.addTheme=function(a){a.name||f.raise("No theme name specified");(!a.version||parseInt(10*f.version)>parseInt(10*a.version))&&f.raise("This version of Galleria requires "+a.name+" theme version "+parseInt(10*f.version)/10+" or later",!0);a.defaults=
"object"!==typeof a.defaults?{}:Z(a.defaults);var b=!1,d,c;"string"===typeof a.css?(e("link").each(function(c,e){d=new RegExp(a.css);if(d.test(e.href))return b=!0,U(a),!1}),b||e(function(){var g=0,k=function(){e("script").each(function(e,f){d=new RegExp("galleria\\."+a.name.toLowerCase()+"\\.");c=new RegExp("galleria\\.io\\/theme\\/"+a.name.toLowerCase()+"\\/(\\d*\\.*)?(\\d*\\.*)?(\\d*\\/)?js");if(d.test(f.src)||c.test(f.src))b=f.src.replace(/[^\/]*$/,"")+a.css,m.setTimeout(function(){h.loadCSS(b,
"galleria-theme-"+a.name,function(){U(a)})},1)});b||(5<g++?f.raise("No theme CSS loaded"):m.setTimeout(k,500))};k()})):U(a);return a};f.loadTheme=function(a,b){if(!e("script").filter(function(){return e(this).attr("src")==a}).length){var d=!1,c;e(m).on("load",function(){d||(c=m.setTimeout(function(){d||f.raise("Galleria had problems loading theme at "+a+". Please check theme path or load manually.",!0)},2E4))});h.loadScript(a,function(){d=!0;m.clearTimeout(c)});return f}};f.get=function(a){if(K[a])return K[a];
if("number"!==typeof a)return K;f.raise("Gallery index "+a+" not found")};f.configure=function(a,b){var d={};"string"==typeof a&&b?(d[a]=b,a=d):e.extend(d,a);f.configure.options=d;e.each(f.get(),function(a,b){b.setOptions(d)});return f};f.configure.options={};f.on=function(a,b){if(a){b=b||z;var d=a+b.toString().replace(/\s/g,"")+h.timestamp();e.each(f.get(),function(c,e){e._binds.push(d);e.bind(a,b)});f.on.binds.push({type:a,callback:b,hash:d});return f}};f.on.binds=[];f.run=function(a,b){e.isFunction(b)&&
(b={extend:b});e(a||"#galleria").galleria(b);return f};f.addTransition=function(a,b){J.effects[a]=b;return f};f.utils=h;f.log=function(){var a=h.array(arguments);if("console"in m&&"log"in m.console)try{return m.console.log.apply(m.console,a)}catch(b){e.each(a,function(){m.console.log(this)})}else return m.alert(a.join("<br>"))};f.ready=function(a){if("function"!=typeof a)return f;e.each(T,function(b,d){a.call(d,d._options)});f.ready.callbacks.push(a);return f};f.ready.callbacks=[];f.raise=function(a,
b){var d=b?"Fatal error":"Error",c={color:"#fff",position:"absolute",top:0,left:0,zIndex:1E5},f=function(a){var f='<div style="padding:4px;margin:0 0 2px;background:#'+(b?"811":"222")+';">'+(b?"<strong>"+d+": </strong>":"")+a+"</div>";e.each(K,function(){var a=this.$("errors"),b=this.$("target");a.length||(b.css("position","relative"),a=this.addElement("errors").appendChild("target","errors").$("errors").css(c));a.append(f)});K.length||e("<div>").css(e.extend(c,{position:"fixed"})).append(f).appendTo(w().body)};
if(W){if(f(a),b)throw Error(d+": "+a);}else b&&!ca&&(ca=!0,b=!1,f("Gallery could not load."))};f.version=1.57;f.getLoadedThemes=function(){return e.map(L,function(a){return a.name})};f.requires=function(a,b){f.version<a&&f.raise(b||"You need to upgrade Galleria to version "+a+" to use one or more components.",!0);return f};f.Picture=function(a){this.id=a||null;this.image=null;this.container=h.create("galleria-image");e(this.container).css({overflow:"hidden",position:"relative"});this.original={width:0,
height:0};this.isIframe=this.ready=!1};f.Picture.prototype={cache:{},show:function(){h.show(this.image)},hide:function(){h.moveOut(this.image)},clear:function(){this.image=null},isCached:function(a){return!!this.cache[a]},preload:function(a){e(new Image).on("load",function(a,d){return function(){d[a]=a}}(a,this.cache)).attr("src",a)},load:function(a,b,d){"function"==typeof b&&(d=b,b=null);if(this.isIframe){var c="if"+(new Date).getTime(),g=this.image=e("<iframe>",{src:a,frameborder:0,id:c,allowfullscreen:!0,
css:{visibility:"hidden"}})[0];b&&e(g).css(b);e(this.container).find("iframe,img").remove();this.container.appendChild(this.image);e("#"+c).on("load",function(a,b){return function(){m.setTimeout(function(){e(a.image).css("visibility","visible");"function"==typeof b&&b.call(a,a)},10)}}(this,d));return this.container}this.image=new Image;f.IE8&&e(this.image).css("filter","inherit");f.IE||f.CHROME||f.SAFARI||e(this.image).css("image-rendering","optimizequality");var k=!1,q=!1,l=e(this.container),p=e(this.image),
n=function(a,c,d){return function(){var g=function(){e(this).off("load");a.original=b||{height:this.height,width:this.width};f.HAS3D&&(this.style.MozTransform=this.style.webkitTransform="translate3d(0,0,0)");l.append(this);a.cache[d]=d;"function"==typeof c&&m.setTimeout(function(){c.call(a,a)},1)};this.width&&this.height?g.call(this):function(a){h.wait({until:function(){return a.width&&a.height},success:function(){g.call(a)},error:function(){q?f.raise("Could not extract width/height from image: "+
a.src+". Traced measures: width:"+a.width+"px, height: "+a.height+"px."):(e(new Image).on("load",n).attr("src",a.src),q=!0)},timeout:100})}(this)}}(this,d,a);l.find("iframe,img").remove();p.css("display","block");h.hide(this.image);e.each(["minWidth","minHeight","maxWidth","maxHeight"],function(a,b){p.css(b,/min/.test(b)?"0":"none")});p.on("load",n).on("error",function(){k?R?e(this).attr("src",R):f.raise("Image not found: "+a):(k=!0,m.setTimeout(function(a,b){return function(){a.attr("src",b+(-1<
b.indexOf("?")?"&":"?")+h.timestamp())}}(e(this),a),50))}).attr("src",a);return this.container},scale:function(a){var b=this;a=e.extend({width:0,height:0,min:t,max:t,margin:0,complete:z,position:"center",crop:!1,canvas:!1,iframelimit:t},a);if(this.isIframe){var d=a.width,c=a.height;if(a.iframelimit){var g=p.min(a.iframelimit/d,a.iframelimit/c);if(1>g){var k=d*g;var m=c*g;e(this.image).css({top:c/2-m/2,left:d/2-k/2,position:"absolute"})}else e(this.image).css({top:0,left:0})}e(this.image).width(k||
d).height(m||c).removeAttr("width").removeAttr("height");e(this.container).width(d).height(c);a.complete.call(b,b);try{this.image.contentWindow&&e(this.image.contentWindow).trigger("resize")}catch(I){}return this.container}if(!this.image)return this.container;var l,n,r=e(b.container),v;h.wait({until:function(){l=a.width||r.width()||h.parseValue(r.css("width"));n=a.height||r.height()||h.parseValue(r.css("height"));return l&&n},success:function(){var c=(l-2*a.margin)/b.original.width,d=(n-2*a.margin)/
b.original.height,f=p.min(c,d),g=p.max(c,d),k={"true":g,width:c,height:d,"false":f,landscape:b.original.width>b.original.height?g:f,portrait:b.original.width<b.original.height?g:f}[a.crop.toString()];c="";a.max&&(k=p.min(a.max,k));a.min&&(k=p.max(a.min,k));e.each(["width","height"],function(a,c){e(b.image)[c](b[c]=b.image[c]=p.round(b.original[c]*k))});e(b.container).width(l).height(n);a.canvas&&B&&(B.elem.width=b.width,B.elem.height=b.height,c=b.image.src+":"+b.width+"x"+b.height,b.image.src=B.cache[c]||
function(a){B.context.drawImage(b.image,0,0,b.original.width*k,b.original.height*k);try{return v=B.elem.toDataURL(),B.length+=v.length,B.cache[a]=v}catch(ha){return b.image.src}}(c));var m={},q={};c=function(a,c,d){/\%/.test(a)?(a=parseInt(a,10)/100,c=b.image[c]||e(b.image)[c](),d=p.ceil(-1*c*a+d*a)):d=h.parseValue(a);return d};var r={top:{top:0},left:{left:0},right:{left:"100%"},bottom:{top:"100%"}};e.each(a.position.toLowerCase().split(" "),function(a,b){"center"===b&&(b="50%");m[a?"top":"left"]=
b});e.each(m,function(a,b){r.hasOwnProperty(b)&&e.extend(q,r[b])});m=m.top?e.extend(m,q):q;m=e.extend({top:"50%",left:"50%"},m);e(b.image).css({position:"absolute",top:c(m.top,"height",n),left:c(m.left,"width",l)});b.show();b.ready=!0;a.complete.call(b,b)},error:function(){f.raise("Could not scale image: "+b.image.src)},timeout:1E3});return this}};e.extend(e.easing,{galleria:function(a,b,d,c,e){return 1>(b/=e/2)?c/2*b*b*b+d:c/2*((b-=2)*b*b+2)+d},galleriaIn:function(a,b,d,c,e){return c*(b/=e)*b+d},
galleriaOut:function(a,b,d,c,e){return-c*(b/=e)*(b-2)+d}});f.Finger=function(){var a=f.HAS3D=function(){var a=n.createElement("p"),b=["webkit","O","ms","Moz",""],d=0;for(w().html.insertBefore(a,null);b[d];d++){var f=b[d]?b[d]+"Transform":"transform";if(void 0!==a.style[f]){a.style[f]="translate3d(1px,1px,1px)";var l=e(a).css(b[d]?"-"+b[d].toLowerCase()+"-transform":"transform")}}w().html.removeChild(a);return void 0!==l&&0<l.length&&"none"!==l}(),b=function(){return m.requestAnimationFrame||m.webkitRequestAnimationFrame||
m.mozRequestAnimationFrame||m.oRequestAnimationFrame||m.msRequestAnimationFrame||function(a){m.setTimeout(a,1E3/60)}}(),d=function(c,d){this.config={start:0,duration:500,onchange:function(){},oncomplete:function(){},easing:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c}};this.easeout=function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c};if(c.children.length){var f=this;e.extend(this.config,d);this.elem=c;this.child=c.children[0];this.to=this.pos=0;this.touching=!1;this.start={};this.index=this.config.start;
this.anim=0;this.easing=this.config.easing;a||(this.child.style.position="absolute",this.elem.style.position="relative");e.each(["ontouchstart","ontouchmove","ontouchend","setup"],function(a,b){f[b]=function(a){return function(){a.apply(f,arguments)}}(f[b])});this.setX=function(){var b=f.child.style;a?b.MozTransform=b.webkitTransform=b.transform="translate3d("+f.pos+"px,0,0)":b.left=f.pos+"px"};e(c).on("touchstart",this.ontouchstart);e(m).on("resize",this.setup);e(m).on("orientationchange",this.setup);
this.setup();(function l(){b(l);f.loop.call(f)})()}};d.prototype={constructor:d,setup:function(){this.width=e(this.elem).width();this.length=p.ceil(e(this.child).width()/this.width);0!==this.index&&(this.index=p.max(0,p.min(this.index,this.length-1)),this.pos=this.to=-this.width*this.index)},setPosition:function(a){this.to=this.pos=a},ontouchstart:function(a){a=a.originalEvent.touches;this.start={pageX:a[0].pageX,pageY:a[0].pageY,time:+new Date};this.isScrolling=null;this.touching=!0;this.deltaX=
0;M.on("touchmove",this.ontouchmove);M.on("touchend",this.ontouchend)},ontouchmove:function(a){var b=a.originalEvent.touches;b&&1<b.length||a.scale&&1!==a.scale||(this.deltaX=b[0].pageX-this.start.pageX,null===this.isScrolling&&(this.isScrolling=!!(this.isScrolling||p.abs(this.deltaX)<p.abs(b[0].pageY-this.start.pageY))),this.isScrolling||(a.preventDefault(),this.deltaX/=!this.index&&0<this.deltaX||this.index==this.length-1&&0>this.deltaX?p.abs(this.deltaX)/this.width+1.8:1,this.to=this.deltaX-this.index*
this.width),a.stopPropagation())},ontouchend:function(a){this.touching=!1;a=250>+new Date-this.start.time&&40<p.abs(this.deltaX)||p.abs(this.deltaX)>this.width/2;var b=!this.index&&0<this.deltaX||this.index==this.length-1&&0>this.deltaX;this.isScrolling||this.show(this.index+(a&&!b?0>this.deltaX?1:-1:0));M.off("touchmove",this.ontouchmove);M.off("touchend",this.ontouchend)},show:function(a){a!=this.index?this.config.onchange.call(this,a):this.to=-(a*this.width)},moveTo:function(a){a!=this.index&&
(this.pos=this.to=-(a*this.width),this.index=a)},loop:function(){var a=this.to-this.pos,b=1;this.width&&a&&(b=p.max(.5,p.min(1.5,p.abs(a/this.width))));if(this.touching||1>=p.abs(a)){this.pos=this.to;if(this.anim&&!this.touching)this.config.oncomplete(this.index);this.anim=0;this.easing=this.config.easing}else{this.anim||(this.anim={start:this.pos,time:+new Date,distance:a,factor:b,destination:this.to});a=+new Date-this.anim.time;b=this.config.duration*this.anim.factor;if(a>b||this.anim.destination!=
this.to){this.anim=0;this.easing=this.easeout;return}this.pos=this.easing(null,a,this.anim.start,this.anim.distance,b)}this.setX()}};return d}();e.fn.galleria=function(a){var b=this.selector;return e(this).length?this.each(function(){e.data(this,"galleria")&&(e.data(this,"galleria").destroy(),e(this).find("*").hide());e.data(this,"galleria",(new f).init(this,a))}):(e(function(){e(b).length?e(b).galleria(a):f.utils.wait({until:function(){return e(b).length},success:function(){e(b).galleria(a)},error:function(){f.raise('Init failed: Galleria could not find the element "'+
b+'".')},timeout:5E3})}),this)};"object"===typeof module&&module&&"object"===typeof module.exports?module.exports=f:(m.Galleria=f,"function"===typeof define&&define.amd&&define("galleria",["jquery"],function(){return f}))})(jQuery,this);


} // end Galleria


/**
 * Galleria LCweb Theme - for global gallery
 * (c) LCweb - Montanari Luca aka LCweb
 */
(function(b){Galleria.addTheme({name:"ggallery",author:"Montanari Luca",version:"1.5.7",defaults:{transition:gg_galleria_fx,transitionSpeed:gg_galleria_fx_time,imageCrop:gg_galleria_img_crop,thumbCrop:!0,queue:!1,showCounter:!1,pauseOnInteraction:!0,_toggleInfo:gg_galleria_toggle_info},init:function(g){Galleria.requires(1.5,"LCweb theme requires Galleria 1.5 or later");this.addElement("gg-play","gg-toggle-thumb","gg-lightbox","gg-info-link");this.append({info:["gg-play","gg-toggle-thumb","gg-lightbox",
"gg-info-link","info-text"]});var e=this,h=this.$("gg-info-link"),c=this.$("info-text"),f=this.$("gg-play"),k=this.$("gg-lightbox"),d=Galleria.TOUCH,l=d?"touchstart":"click";d||(this.addIdleState(this.get("image-nav-left"),{left:-50}),this.addIdleState(this.get("image-nav-right"),{right:-50}));h.bind(l,function(){c.stop().fadeToggle(150)});setTimeout(function(){k.bind("click tap",function(a){"undefined"!=typeof gg_active_index?gg_slider_lightbox(e._data,gg_active_index):gg_slider_lightbox(e._data,
0)})},50);this.bind("thumbnail",function(a){d?b(a.thumbTarget).css("opacity",this.getIndex()?1:.6):(b(a.thumbTarget).css("opacity",.6).parent().hover(function(){b(this).not(".active").children().stop().fadeTo(100,1)},function(){b(this).not(".active").children().stop().fadeTo(400,.6)}),a.index===this.getIndex()&&b(a.thumbTarget).css("opacity",1))});this.bind("loadstart",function(a){a.cached||this.$("loader").show().fadeTo(200,1);this.hasInfo()?this.$("info").removeClass("has_no_data"):this.$("info").addClass("has_no_data");
b(a.thumbTarget).css("opacity",1).parent().siblings().children().css("opacity",.6)});this.bind("loadfinish",function(a){this.$("loader").fadeOut(200);!this._playing&&f.hasClass("galleria-gg-pause")&&f.removeClass("galleria-gg-pause");"&nbsp;"==b.trim(this.$("info").find(".galleria-info-description").html())?this.$("info").find(".galleria-info-description").css("height",0).css("margin",0):this.$("info").find(".galleria-info-description").removeAttr("style");!1===g._toggleInfo&&c.is(":hidden")&&!c.hasClass("already_shown")&&
c.fadeIn(300).addClass("already_shown")})}})})(jQuery);


	
	
/*
 SLICK.JS
 Version: 1.8
  Author: Ken Wheeler
  Docs: http://kenwheeler.github.io/slick
  Repo: http://github.com/kenwheeler/slick
*/

if(typeof(slick) != 'function' ) {

!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>1){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t;if(e=this.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>1&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){return this.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o=this;return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1}),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s&&i(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+s})}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.$slides.eq(s).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||n.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0},100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},r.src=t})}var t,o,s,n=this;if(!0===n.options.centerMode?!0===n.options.infinite?s=(o=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(o=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),s=n.options.slidesToShow/2+1+2+n.currentSlide):(o=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,s=Math.ceil(o+n.options.slidesToShow),!0===n.options.fade&&(o>0&&o--,s<=n.slideCount&&s++)),t=n.$slider.find(".slick-slide").slice(o,s),"anticipated"===n.options.lazyLoad)for(var r=o-1,l=s,d=n.$slider.find(".slick-slide"),a=0;a<n.options.slidesToScroll;a++)r<0&&(r=n.slideCount-1),t=(t=t.add(d.eq(r))).add(d.eq(l)),r--,l++;e(t),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.setCSS=function(i){var e,t,o=this,s={};!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=(l=a.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==t?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)}},e.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),void 0!==t)return t;return o}});


} // slick end



/*
 * Pixastic - desaturate and fast blur only
 * Copyright (c) 2008 Jacob Seidelin - MIT License [http://www.pixastic.com/lib/license.txt]
 */

if(typeof(Pixastic) != 'function') {
	
var Pixastic=function(){function b(a,g,f){a.addEventListener?a.addEventListener(g,f,!1):a.attachEvent&&a.attachEvent("on"+g,f)}function m(a){var g=!1,f=function(){g||(g=!0,a())};document.write('<script defer src="//:" id="__onload_ie_pixastic__">\x3c/script>');var c=document.getElementById("__onload_ie_pixastic__");c.onreadystatechange=function(){"complete"==c.readyState&&(c.parentNode.removeChild(c),f())};document.addEventListener&&document.addEventListener("DOMContentLoaded",f,!1);b(window,"load",
f)}function d(){for(var a=e("pixastic",null,"img"),g=e("pixastic",null,"canvas"),f=a.concat(g),c=0;c<f.length;c++)(function(){for(var a=f[c],g=[],b=a.className.split(" "),d=0;d<b.length;d++){var e=b[d];"pixastic-"==e.substring(0,9)&&(e=e.substring(9),""!=e&&g.push(e))}if(g.length)if("img"==a.tagName.toLowerCase())if(b=new Image,b.src=a.src,b.complete)for(b=0;b<g.length;b++)(d=Pixastic.applyAction(a,a,g[b],null))&&(a=d);else b.onload=function(){for(var c=0;c<g.length;c++){var b=Pixastic.applyAction(a,
a,g[c],null);b&&(a=b)}};else setTimeout(function(){for(var c=0;c<g.length;c++){var b=Pixastic.applyAction(a,a,g[c],null);b&&(a=b)}},1)})()}function e(a,g,b){var c=[];null==g&&(g=document);null==b&&(b="*");g=g.getElementsByTagName(b);b=g.length;a=RegExp("(^|\\s)"+a+"(\\s|$)");for(j=i=0;i<b;i++)a.test(g[i].className)&&(c[j]=g[i],j++);return c}function l(a,b){if(Pixastic.debug)try{switch(b){case "warn":console.warn("Pixastic:",a);break;case "error":console.error("Pixastic:",a);break;default:console.log("Pixastic:",
a)}}catch(f){}}"undefined"!=typeof pixastic_parseonload&&pixastic_parseonload&&m(d);var k=function(){var a=document.createElement("canvas"),b=!1;try{b=!("function"!=typeof a.getContext||!a.getContext("2d"))}catch(f){}return function(){return b}}(),p=function(){var a=document.createElement("canvas"),b=!1,f;try{"function"==typeof a.getContext&&(f=a.getContext("2d"))&&(b="function"==typeof f.getImageData)}catch(c){}return function(){return b}}(),q=function(){var a=!1,b=document.createElement("canvas");
if(k()&&p()){b.width=b.height=1;b=b.getContext("2d");b.fillStyle="rgb(255,0,0)";b.fillRect(0,0,1,1);var f=document.createElement("canvas");f.width=f.height=1;var c=f.getContext("2d");c.fillStyle="rgb(0,0,255)";c.fillRect(0,0,1,1);b.globalAlpha=0.5;b.drawImage(f,0,0);a=255!=b.getImageData(0,0,1,1).data[2]}return function(){return a}}();return{parseOnLoad:!1,debug:!1,applyAction:function(a,b,f,c){c=c||{};var d="canvas"==a.tagName.toLowerCase();if(d&&Pixastic.Client.isIE())return Pixastic.debug&&l("Tried to process a canvas element but browser is IE."),
!1;var h,e,m=!1;Pixastic.Client.hasCanvas()&&(m=!!c.resultCanvas,h=c.resultCanvas||document.createElement("canvas"),e=h.getContext("2d"));var k=a.offsetWidth,r=a.offsetHeight;d&&(k=a.width,r=a.height);if(0==k||0==r)if(null==a.parentNode){var n=a.style.position,p=a.style.left;a.style.position="absolute";a.style.left="-9999px";document.body.appendChild(a);k=a.offsetWidth;r=a.offsetHeight;document.body.removeChild(a);a.style.position=n;a.style.left=p}else{Pixastic.debug&&l("Image has 0 width and/or height.");
return}if(-1<f.indexOf("(")&&(n=f,f=n.substr(0,n.indexOf("(")),n=n.match(/\((.*?)\)/),n[1]))for(n=n[1].split(";"),p=0;p<n.length;p++)if(thisArg=n[p].split("="),2==thisArg.length)if("rect"==thisArg[0]){var q=thisArg[1].split(",");c[thisArg[0]]={left:parseInt(q[0],10)||0,top:parseInt(q[1],10)||0,width:parseInt(q[2],10)||0,height:parseInt(q[3],10)||0}}else c[thisArg[0]]=thisArg[1];c.rect?(c.rect.left=Math.round(c.rect.left),c.rect.top=Math.round(c.rect.top),c.rect.width=Math.round(c.rect.width),c.rect.height=
Math.round(c.rect.height)):c.rect={left:0,top:0,width:k,height:r};n=!1;Pixastic.Actions[f]&&"function"==typeof Pixastic.Actions[f].process&&(n=!0);if(!n)return Pixastic.debug&&l('Invalid action "'+f+'". Maybe file not included?'),!1;if(!Pixastic.Actions[f].checkSupport())return Pixastic.debug&&l('Action "'+f+'" not supported by this browser.'),!1;Pixastic.Client.hasCanvas()?(h!==a&&(h.width=k,h.height=r),m||(h.style.width=k+"px",h.style.height=r+"px"),e.drawImage(b,0,0,k,r),a.__pixastic_org_image?
(h.__pixastic_org_image=a.__pixastic_org_image,h.__pixastic_org_width=a.__pixastic_org_width,h.__pixastic_org_height=a.__pixastic_org_height):(h.__pixastic_org_image=a,h.__pixastic_org_width=k,h.__pixastic_org_height=r)):Pixastic.Client.isIE()&&"undefined"==typeof a.__pixastic_org_style&&(a.__pixastic_org_style=a.style.cssText);b={image:a,canvas:h,width:k,height:r,useData:!0,options:c};return Pixastic.Actions[f].process(b)?Pixastic.Client.hasCanvas()?(b.useData&&Pixastic.Client.hasCanvasImageData()&&
(h.getContext("2d").putImageData(b.canvasData,c.rect.left,c.rect.top),h.getContext("2d").fillRect(0,0,0,0)),c.leaveDOM||(h.title=a.title,h.imgsrc=a.imgsrc,d||(h.alt=a.alt),d||(h.imgsrc=a.src),h.className=a.className,h.style.cssText=a.style.cssText,h.name=a.name,h.tabIndex=a.tabIndex,h.id=a.id,a.parentNode&&a.parentNode.replaceChild&&a.parentNode.replaceChild(h,a)),c.resultCanvas=h):a:!1},prepareData:function(a,b){var f=a.canvas.getContext("2d"),c=a.options.rect,f=f.getImageData(c.left,c.top,c.width,
c.height),c=f.data;b||(a.canvasData=f);return c},process:function(a,b,f,c){if("img"==a.tagName.toLowerCase()){var d=new Image;d.src=a.src;if(d.complete){var e=Pixastic.applyAction(a,d,b,f);c&&c(e);return e}d.onload=function(){var e=Pixastic.applyAction(a,d,b,f);c&&c(e)}}if("canvas"==a.tagName.toLowerCase())return e=Pixastic.applyAction(a,a,b,f),c&&c(e),e},revert:function(a){if(Pixastic.Client.hasCanvas()){if("canvas"==a.tagName.toLowerCase()&&a.__pixastic_org_image)return a.width=a.__pixastic_org_width,
a.height=a.__pixastic_org_height,a.getContext("2d").drawImage(a.__pixastic_org_image,0,0),a.parentNode&&a.parentNode.replaceChild&&a.parentNode.replaceChild(a.__pixastic_org_image,a),a}else Pixastic.Client.isIE()&&"undefined"!=typeof a.__pixastic_org_style&&(a.style.cssText=a.__pixastic_org_style)},Client:{hasCanvas:k,hasCanvasImageData:p,hasGlobalAlpha:q,isIE:function(){return!!document.all&&!!window.attachEvent&&!window.opera}},Actions:{}}}();
"undefined"!=typeof jQuery&&jQuery&&jQuery.fn&&(jQuery.fn.pixastic=function(b,m){var d=[];this.each(function(){if("img"!=this.tagName.toLowerCase()||this.complete){var e=Pixastic.process(this,b,m);e&&d.push(e)}});return 0<d.length?jQuery(d):this});
Pixastic.Actions.blurfast={process:function(b){var m=parseFloat(b.options.amount)||0,d=!(!b.options.clear||"false"==b.options.clear),m=Math.max(0,Math.min(5,m));if(Pixastic.Client.hasCanvas()){var e=b.options.rect,l=b.canvas.getContext("2d");l.save();l.beginPath();l.rect(e.left,e.top,e.width,e.height);l.clip();var k=Math.round(b.width/2),p=Math.round(b.height/2),q=document.createElement("canvas");q.width=k;q.height=p;for(var d=!1,m=Math.round(20*m),a=q.getContext("2d"),g=0;g<m;g++){var f=Math.max(1,
Math.round(k-g)),c=Math.max(1,Math.round(p-g));a.clearRect(0,0,k,p);a.drawImage(b.canvas,0,0,b.width,b.height,0,0,f,c);d&&l.clearRect(e.left,e.top,e.width,e.height);l.drawImage(q,0,0,f,c,0,0,b.width,b.height)}l.restore();b.useData=!1;return!0}if(Pixastic.Client.isIE())return d=10*m,b.image.style.filter+=" progid:DXImageTransform.Microsoft.Blur(pixelradius="+d+")",b.image.style.marginLeft=(parseInt(b.image.style.marginLeft,10)||0)-Math.round(d)+"px",b.image.style.marginTop=(parseInt(b.image.style.marginTop,
10)||0)-Math.round(d)+"px",!0},checkSupport:function(){return Pixastic.Client.hasCanvas()||Pixastic.Client.isIE()}};
Pixastic.Actions.desaturate={process:function(b){var m=!(!b.options.average||"false"==b.options.average);if(Pixastic.Client.hasCanvasImageData()){var d=Pixastic.prepareData(b);b=b.options.rect;b=b.width*b.height;var e=4*b,l,k;if(m)for(;b--;)d[e-=4]=d[l=e+1]=d[k=e+2]=(d[e]+d[l]+d[k])/3;else for(;b--;)d[e-=4]=d[l=e+1]=d[k=e+2]=0.3*d[e]+0.59*d[l]+0.11*d[k];return!0}if(Pixastic.Client.isIE())return b.image.style.filter+=" gray",!0},checkSupport:function(){return Pixastic.Client.hasCanvasImageData()||
Pixastic.Client.isIE()}};

} // Pixastic end


/* LCweb's image preloader v1.1.2 - 07-09-2017 */
(function(a){if("function"==typeof a.fn.lcweb_lazyload)return!0;lc_lzl_cache={};a.fn.lcweb_lazyload=function(c){c=a.extend({allLoaded:function(){}},c);var e=a(this),g=[],d=[],f=[],h=function(){e.length==d.length&&c.allLoaded.call(this,g,d,f)};return function(){e.each(function(c,e){var b=a.trim(a(this).prop("src"));b?(g.push(b),lc_lzl_cache.hasOwnProperty(b)?(d.push(lc_lzl_cache[b].w),f.push(lc_lzl_cache[b].h),h()):a("<img />").bind("load.lcweb_lazyload",function(){lc_lzl_cache[b]={w:this.width,h:this.height};
d.push(this.width);f.push(this.height);h()}).attr("src",b)):console.log("Empty img url - "+(c+1))})}()}})(jQuery);



/* Global Gallery functions (v6.202) */  
(function(c){function W(b){b=location.hash;if(""==b||"#gg"==b)return!1;b=b.split("/")[0];if(-1!==b.indexOf("#gg_cg")){var d=b.substring(7);c(".gg_coll_img[rel="+d+"]").length&&(b=c(".gg_coll_img[rel="+d+"]").first().parents(".gg_gallery_wrap").attr("id"),d=c(".gg_coll_img[rel="+d+"]").first().data("gall-data"),gg_load_coll_gallery(b,d))}else-1!==b.indexOf("#gg_cf")&&(gg_coll_dl_filter=b.substring(7),setTimeout(function(){c(".ggf_id_"+gg_coll_dl_filter).trigger("click")},300))}function L(b,d){if(gg_use_deeplink){H();
var e="cat"==b?c(".ggf_id_"+d).text():c(".gg_coll_img[rel="+d+"]").parents(".gg_coll_img_wrap").find(".gg_img_title_under").length?c(".gg_coll_img[rel="+d+"]").parents(".gg_coll_img_wrap").find(".gg_img_title_under").text():c(".gg_coll_img[rel="+d+"]").find(".gg_img_title").text();e=e&&"undefined"!=typeof e?"/"+encodeURIComponent(e):"";location.hash=("cat"==b?"gg_cf":"gg_cg")+"_"+d+e}}function H(){if(gg_use_deeplink){var b=location.hash;if(!1!==b.indexOf("#gg_cg")||!1!==b.indexOf("#gg_cf"))location.hash=
"gg"}}function E(b,d,e){var f=c("#"+b);if(f.hasClass("gg_filtering_imgs")&&"undefined"==typeof e&&t[b])return console.error("GG - wait till previous tag filter or pagination to end"),!1;if("*"==d)v[b]="",f.find(".gg_paginate").css("visibility","visible"),f.hasClass("gg_ajax_filtered")?(f.removeClass("gg_ajax_filtered"),"undefined"==typeof k[b]&&(k[b]=1),d=f.find(".gg_infinite_scroll").length?[1,k[b]]:k[b],gg_standard_pagination(b,d,"*")):M(f,"*");else{v[b]=d;var g=!0;c.each(d,function(d,e){if(!c("#"+
b+' .gg_img[data-img-id="'+e+'"]').length)return g=!1});g||gg_monopage_filter?M(f,d,e):(f.addClass("gg_ajax_filtered"),gg_standard_pagination(b,"*",d));f.find(".gg_paginate").css("visibility","hidden")}return!0}function x(){return-1!=navigator.appVersion.indexOf("MSIE 7.")||-1!=navigator.appVersion.indexOf("MSIE 8.")?!0:!1}var u=[],m=[],B=[],k=[],C=[],v=[],q=[],t=[],y=[],I=[],J=[],w=[],D=[],F=[],z=[],r=[],p=[];gg_loader='<div class="gg_loader"><div class="ggl_1"></div><div class="ggl_2"></div><div class="ggl_3"></div><div class="ggl_4"></div></div>';
c(document).ready(function(){W();x()&&c(".gg_sec_overlay").hide()});gg_galleries_init=function(b,d){if("undefined"!=typeof b&&b){if(!c("#"+b).length)return!1;"undefined"==typeof d&&(q[b]=1,t[b]=0);N(b);gg_gallery_process(b,d)}else c(".gg_gallery_wrap").not(":empty").each(function(){var b=c(this).attr("id");gg_galleries_init(b,d)})};gg_gallery_info=function(b,d){var e=c("#"+b).hasClass("gg_collection_wrap")?".gg_coll_container":"";u[b]=e?c("#"+b+" .gg_coll_container").width():c("#"+b).width();if("undefined"!=
typeof d)return!0;B[b]=parseInt(c("#"+b+" "+e+" .gg_img").first().css("border-right-width"));m[b]=parseInt(c("#"+b+" "+e+" .gg_img").first().css("margin-right"));c("#"+b).hasClass("gg_masonry_gallery")?m[b]=parseInt(c("#"+b+" "+e+" .gg_img").first().css("padding-right")):c("#"+b).hasClass("gg_collection_wrap")&&(m[b]=parseInt(c("#"+b+" "+e+" .gg_coll_img_wrap").first().css("padding-right")))};gg_gallery_process=function(b,d){if("undefined"==typeof b)return!1;gg_gallery_info(b,d);c("#"+b).hasClass("gg_standard_gallery")?
gg_man_standard_gallery(b):c("#"+b).hasClass("gg_columnized_gallery")?gg_man_colnzd_gallery(b):c("#"+b).hasClass("gg_masonry_gallery")?gg_man_masonry_gallery(b):c("#"+b).hasClass("gg_string_gallery")?gg_man_string_gallery(b):c("#"+b).hasClass("gg_collection_wrap")&&gg_man_collection(b);"function"==typeof ggom_hub&&ggom_hub(b)};var A=function(b,d){$subj="undefined"==typeof d?c("#"+b+" .gg_main_thumb"):c("#"+b+" .gg_coll_outer_container .gg_main_thumb");$subj.each(function(){"undefined"!=c(this).data("gg-lazy-src")&&
(c(this).attr("src",c(this).data("gg-lazy-src")),c(this).removeAttr("gg-lazy-src"))})};gg_man_standard_gallery=function(b){if(!c("#"+b+" .gg_img").length)return!1;A(b);q[b]&&c("#"+b+" .gg_img .gg_main_thumb").lcweb_lazyload({allLoaded:function(d,e,f){c("#"+b+" .gg_loader").fadeOut("fast");gg_img_fx_setup(b,e,f);c("#"+b+" .gg_img").each(function(d){c(this).addClass(b+"-"+d).css("width",e[0]+2*B[b]);var f=c("#"+b+" .gg_img").not(".gg_shown");0==d&&gg_gallery_slideDown(b,f.not(".gg_excluded_img").length);
d==c("#"+b+" .gg_img").length-1&&f.gg_display_images(b)});q[b]=0;c(window).trigger("gg_loaded_gallery",[b])}});gg_check_primary_ol(b)};gg_man_colnzd_gallery=function(b){if(!c("#"+b+" .gg_img").length)return!1;A(b);var d=X(b);c("#"+b+" .gg_container").css("width","calc(100% + "+m[b]+"px + "+d+"px)");c("#"+b+" .gg_img").css("width","calc("+100/d+"% - "+m[b]+"px - 1px)");gg_check_primary_ol(b);q[b]&&c("#"+b+" .gg_img .gg_main_thumb").lcweb_lazyload({allLoaded:function(d,f,g){c("#"+b+" .gg_loader").fadeOut("fast");
gg_img_fx_setup(b,f,g);c("#"+b+" .gg_img").each(function(d){c(this).addClass(b+"-"+d);var e=c("#"+b+" .gg_img").not(".gg_shown");0==d&&gg_gallery_slideDown(b,e.not(".gg_excluded_img").length);d==c("#"+b+" .gg_img").length-1&&e.gg_display_images(b)});q[b]=0;c(window).trigger("gg_loaded_gallery",[b])}});gg_check_primary_ol(b)};var X=function(b){for(var d=u[b]-m[b],e=1,f=d,g=parseInt(c("#"+b).data("col-maxw"));f>=g;)e++,f=Math.round(d/e)-m[b];return e};gg_man_masonry_gallery=function(b){A(b);for(var d=
parseInt(c("#"+b).data("col-num")),e=m[b],f=Math.floor((u[b]+e)/d),g="undefined"!=typeof c("#"+b).data("minw")?parseInt(c("#"+b).data("minw")):gg_masonry_min_w;f<g;){if(1>=d)return d=1,!1;d--;f=Math.floor((u[b]+e)/d)}c("#"+b+" .gg_img").each(function(d){d=b+"-"+d;c(this).css("width",f).addClass(d)});d=u[b]+e-d*f;0<d&&c("#"+b+" .gg_container").css("left",Math.floor(d/2));gg_check_primary_ol(b);q[b]?c("#"+b+" .gg_img:not(.gg_excluded_img) .gg_main_thumb").lcweb_lazyload({allLoaded:function(d,e,f){c("#"+
b+" .gg_loader").fadeOut("fast");gg_img_fx_setup(b,e,f);c("#"+b+" .gg_container").isotope({percentPosition:!0,isResizeBound:!1,resize:!1,originLeft:!gg_rtl,masonry:{columnWidth:1},containerClass:"gg_isotope",itemClass:"gg_isotope-item",itemSelector:".gg_img",transitionDuration:0});setTimeout(function(){var d=c("#"+b+" .gg_img").not(".gg_shown");gg_gallery_slideDown(b,d.not(".gg_excluded_img").length);d.gg_display_images(b);q[b]=0;c(window).trigger("gg_loaded_gallery",[b])},300)}}):setTimeout(function(){"undefined"!=
typeof c.Isotope&&"undefined"!=typeof c.Isotope.prototype.reLayout?c("#"+b+" .gg_container").isotope("reLayout"):c("#"+b+" .gg_container").isotope("layout")},100)};gg_man_string_gallery=function(b,d){A(b);q[b]?c("#"+b+" .gg_img .gg_main_thumb").lcweb_lazyload({allLoaded:function(e,f,g){gg_img_fx_setup(b,f,g);G(b,d);c("#"+b+" .gg_loader").fadeOut("fast");e=c("#"+b+" .gg_img").not(".gg_shown");gg_gallery_slideDown(b,e.not(".gg_excluded_img").length);e.gg_display_images(b);q[b]=0;c(window).trigger("gg_loaded_gallery",
[b])}}):G(b,d);gg_check_primary_ol(b)};var G=function(b,d){if("undefined"!=typeof d){var e=d+" .gg_img .gg_main_thumb";b=d.replace("#gg_fakebox_","")}else e="#"+b+" .gg_img:not(.gg_excluded_img) .gg_main_thumb";z[b]=0;r[b]=[];p[b]=[];var f=u[b]+m[b];c(e).each(function(d,e){var g=c(this).parents(".gg_img"),h=b+"-"+g.data("img-id");g.css("width",c(this).width()-2).css("maxWidth",c(this).width()+B[b]);g.addClass(h);g=c(this).width()-2+B[b]+m[b];r[b].push("."+h);p[b].push(g);z[b]+=g;h=z[b];f==h?(r[b]=
[],p[b]=[],z[b]=0):f<h&&(Y(b,h-f,f),r[b]=[],p[b]=[],z[b]=0)})},Y=function(b,d,e){var f=d,g="undefined"!=typeof c("#"+b).data("minw")?parseInt(c("#"+b).data("minw")):gg_phosostr_min_w;if(1==r[b].length)return c(r[b][0]).css("width","calc(100% - "+(m[b]+1)+"px)"),!0;d=p[b];var h=[],l=!1;for(a=0;K(d)>e&&!l&&100>a;){a++;var n=Math.ceil(f/(r[b].length-h.length)),O=!1;c.each(p[b],function(d,e){if(-1!==c.inArray(d,h))return!0;var l=e-n;if(l<g){l=g;var P=c(r[b][d]).find(".gg_main_thumb").width()-2+B[b];l>
P&&(l=P);h.push(d);O=!0;f-=p[b][d]-l}});O||(c.each(p[b],function(d,e){if(-1!==c.inArray(d,h))return!0;p[b][d]=e-n}),d=p[b],f=K(d)-e,h.length>=r[b].length&&(n=Math.ceil(f/r[b].length),c.each(p[b],function(c,d){p[b][c]=d-n}),l=!0),d=p[b])}c.each(r[b],function(d,e){c(e).css("width",p[b][d]-m[b])});var k=e-K(p[b]);0<k&&c.each(r[b],function(d,e){if(-1===c.inArray(d,h)||d==r[b].length-1)return c(e).css("width",p[b][d]-m[b]+k),!1})},K=function(b){var d=0;c.each(b,function(b,c){d+=parseFloat(c)});return d};
gg_man_collection=function(b){A(b,!0);var d=Z(b);c("#"+b+" .gg_coll_container").css("width","calc(100% + "+m[b]+"px + "+d+"px)");c("#"+b+" .gg_coll_img_wrap").css("width","calc("+100/d+"% - 1px)");gg_rtl&&c("#"+b+" .gg_coll_container").css("left",-1*d);gg_check_primary_ol(b);I[b]?setTimeout(function(){"undefined"!=typeof c.Isotope&&"undefined"!=typeof c.Isotope.prototype.reLayout?c("#"+b+" .gg_container").isotope("reLayout"):c("#"+b+" .gg_container").isotope("layout")},300):c("#"+b+" .gg_coll_img .gg_main_thumb").lcweb_lazyload({allLoaded:function(d,
f,g){c("#"+b+" .gg_loader").fadeOut("fast");gg_img_fx_setup(b,f,g);c("#"+b+" .gg_coll_img").each(function(d){d=b+"-"+d;c(this).addClass(d)});c("#"+b+" .gg_coll_container").isotope({layoutMode:"fitRows",percentPosition:!0,isResizeBound:!1,resize:!1,originLeft:!gg_rtl,containerClass:"gg_isotope",itemClass:"gg_isotope-item",itemSelector:".gg_coll_img_wrap",transitionDuration:"0.6s",filter:"undefined"!=typeof gg_coll_dl_filter?".ggc_"+gg_coll_dl_filter:""});setTimeout(function(){var d=c("#"+b+" .gg_coll_img_wrap").not(".gg_shown");
gg_gallery_slideDown(b,d.length);d.gg_display_images();q[b]=0;c(window).trigger("gg_loaded_collection",[b])},300)}})};var Z=function(b){for(var c=u[b]-m[b],e=1,f=c;f>=gg_coll_max_w;)e++,f=Math.round(c/e)-m[b];return e};c(document).ready(function(){c("body").delegate(".gg_coll_img:not(.gg_linked_img)","click",function(){var b=c(this).parents(".gg_collection_wrap").attr("id"),d=c(this).data("gall-data"),e=c(this).attr("rel");"undefined"!=typeof w[b]&&w[b]||(L("coll-gall",e),gg_load_coll_gallery(b,d))})});
gg_load_coll_gallery=function(b,d){var e=c(location).attr("href");"undefined"==typeof D[b]&&(D[b]=[]);F[b]=c("#"+b+' .gg_coll_img[data-gall-data="'+d+'"]');c("#"+b+" .gg_coll_gallery_container .gg_gallery_wrap").length&&(c("#"+b+" .gg_coll_gallery_container .gg_gallery_wrap").remove(),c("#"+b+" .gg_coll_gallery_container").append('<div class="gg_gallery_wrap">'+gg_loader+"</div>"));c("#"+b+" .gg_coll_gallery_container .gg_gallery_wrap").addClass("gg_coll_ajax_wait");c("#"+b+" > table").animate({left:"-100%"},
700,function(){c("#"+b+" .gg_coll_table_first_cell").css("opacity",0)});setTimeout(function(){c("#"+b+" .gg_coll_table_first_cell").css("position","absolute")},710);var f=c("#"+b).offset().top;c(window).scrollTop()>f&&c("html, body").animate({scrollTop:f-15},600);"undefined"!=typeof D[b][d]?Q(b,D[b][d]):w[b]=c.post(e,{gg_type:"gg_load_coll_gallery",cid:b,gdata:d},function(c){D[b][d]=c;Q(b,c);"undefined"!=typeof gg_lcl_allow_deeplink&&gg_lcl_allow_deeplink()})};var Q=function(b,d){c("#"+b+" .gg_coll_gallery_container .gg_gallery_wrap").remove();
c("#"+b+" .gg_coll_gallery_container").removeClass("gg_main_loader").append(d);1<c("#"+b+" .gg_coll_gall_title").length&&c("#"+b+" .gg_coll_gall_title").first().remove();gg_coll_gall_title_layout(b);w[b]=null;var e=c("#"+b+" .gg_coll_gallery_container").find(".gg_gallery_wrap").attr("id");gg_galleries_init(e)};gg_coll_gall_title_layout=function(b){c("#"+b+" .gg_coll_gall_title").each(function(){var b=c(this).parents(".gg_coll_table_cell").width();c(this).parent().find(".gg_coll_go_back").outerWidth(!0)+
c(this).outerWidth()>b?c(this).addClass("gg_narrow_coll"):c(this).removeClass("gg_narrow_coll")})};c(document).ready(function(){c("body").delegate(".gg_coll_go_back","click",function(){var b=c(this).parents(".gg_collection_wrap").attr("id");"undefined"!=typeof w[b]&&w[b]&&(w[b].abort(),w[b]=null);var d=c(window).scrollTop(),e=d+c(window).height(),f=F[b].offset().top;if(f+F[b].height()>e||f<d)d=F[b].offset().top-60,c("html, body").animate({scrollTop:d},600);c("#"+b+" .gg_coll_table_first_cell").css("opacity",
1).css("position","static");c("#"+b+" > table").animate({left:0},700);setTimeout(function(){c("#"+b+" .gg_coll_gallery_container > *").not(".gg_coll_go_back").remove()},700);H()})});c(document).ready(function(){c("body").delegate(".gg_filter a","click",function(b){b.preventDefault();b=c(this).parents(".gg_filter").attr("id").substr(4);var d=c(this).attr("rel"),e="#"+c(this).parents(".gg_collection_wrap").attr("id");c("#ggf_"+b+" a").removeClass("gg_cats_selected");c(this).addClass("gg_cats_selected");
R(b,d,e);c("#ggmf_"+b).length&&(c("#ggmf_"+b+" option").removeAttr("selected"),"*"!==c(this).attr("rel")&&c("#ggmf_"+b+" option[value="+c(this).attr("rel")+"]").attr("selected","selected"))});c("body").delegate(".gg_coll_table_cell .gg_mobile_filter_dd","change",function(b){b=c(this).parents(".gg_mobile_filter").attr("id").substr(5);var d=c(this).val(),e="#"+c(this).parents(".gg_collection_wrap").attr("id");R(b,d,e);d="*"==c(this).val()?".ggf_all":".ggf_id_"+d;c("#ggf_"+b+" a").removeClass("gg_cats_selected");
c("#ggf_"+b+" "+d).addClass("gg_cats_selected")})});var R=function(b,d,e){"*"!==d?L("cat",d):H();"*"!==d&&(d=".ggc_"+d);c(e+" .gg_coll_container").isotope({filter:d})};c.fn.gg_display_images=function(b,d){if("undefined"!=typeof b&&"undefined"!=typeof v[b]&&v[b]&&"undefined"==typeof d)return this.gg_display_images(b,":not(.gg_excluded_img)"),this.gg_display_images(b,".gg_excluded_img"),!0;("undefined"==typeof d?this:c(this).filter(d)).each(function(b,d){var e=c(this);setTimeout(function(){-1==navigator.appVersion.indexOf("MSIE 8.")&&
-1==navigator.appVersion.indexOf("MSIE 9.")||e.fadeTo(450,1);e.addClass("gg_shown")},("undefined"!=typeof gg_delayed_fx&&gg_delayed_fx?170:0)*b)})};gg_gallery_slideDown=function(b,d,e){if("undefined"!=typeof y[b]&&y[b])return!1;d*=200;var f="undefined"==typeof e?c("#"+b+" .gg_container"):c("#"+b+" .gg_coll_container");f.animate({"min-height":80},300,"linear").animate({"max-height":9999},6500,"linear");y[b]=setTimeout(function(){(-1==navigator.appVersion.indexOf("Safari")||-1!=navigator.appVersion.indexOf("Safari")&&
-1==navigator.appVersion.indexOf("Version/5.")&&-1==navigator.appVersion.indexOf("Version/4."))&&f.css("min-height","none");f.stop().css("max-height","none");y[b]=!1},d);q[b]&&setTimeout(function(){q[b]=0;c("#"+b+" .gg_paginate > div").fadeTo(150,1)},500);I[b]=!0};c(document).ready(function(){c("body").delegate(".gg_next_page","click",function(){var b=c(this).parents(".gg_gallery_wrap").attr("id");if(!c(this).hasClass("gg_pag_disabled")&&0==t[b]){var d="undefined"==typeof k[b]?1:k[b];gg_standard_pagination(b,
d+1);k[b]=d+1}});c("body").delegate(".gg_prev_page","click",function(){var b=c(this).parents(".gg_gallery_wrap").attr("id");if(!c(this).hasClass("gg_pag_disabled")&&0==t[b]){var d="undefined"==typeof k[b]?1:k[b];d=1>d-1?1:d-1;gg_standard_pagination(b,d);k[b]=d}});c(document).ready(function(){c("body").delegate(".gg_num_btns_wrap > div","click",function(){var b=c(this).parents(".gg_gallery_wrap").attr("id");c(this).hasClass("gg_pag_disabled")||0!=t[b]||(k[b]=c(this).attr("rel"),gg_standard_pagination(b,
k[b]))})});c(document).ready(function(){c("body").delegate(".gg_dots_pag_wrap > div","click",function(){var b=c(this).parents(".gg_gallery_wrap").attr("id");c(this).hasClass("gg_pag_disabled")||0!=t[b]||(k[b]=c(this).attr("rel"),gg_standard_pagination(b,k[b]))})})});gg_standard_pagination=function(b,d,e){e="undefined"==typeof e?!1:e;if(c("#"+b).hasClass("gg_filtering_imgs")||t[b])return console.error("GG - wait till previous tag filter or pagination to end"),!1;t[b]=1;c("#"+b).removeClass("gg_noresult");
"undefined"==typeof C[b]&&(C[b]=[]);e||N(b);var f=c("#"+b+" .gg_container").height(),g=Math.round(f/30*25);220>g&&(g=220);"undefined"!=typeof y[b]&&(clearTimeout(y[b]),y[b]=!1);c("#"+b+" .gg_container").css("max-height",f).stop().animate({"max-height":150},g);setTimeout(function(){},g);c("#"+b+" .gg_img").addClass("gg_old_page");-1==navigator.appVersion.indexOf("MSIE 8.")&&-1==navigator.appVersion.indexOf("MSIE 9.")||c("#"+b+" .gg_img").fadeTo(200,0);setTimeout(function(){c("#"+b+" .gg_loader").fadeIn("fast")},
200);setTimeout(function(){c("#"+b).hasClass("gg_masonry_gallery")&&c("#"+b+" .gg_container").isotope("destroy")},g-10);c(window).scrollTop()>c("#"+b).offset().top-20&&c("html,body").animate({scrollTop:c("#"+b).offset().top-20},g);e||(c("#"+b+" .gg_standard_pag").length?(d>=parseInt(c("#"+b+" .gg_paginate").data("gg-totpages"))?c("#"+b+" .gg_paginate").find(".gg_next_page").addClass("gg_pag_disabled"):c("#"+b+" .gg_paginate").find(".gg_next_page").removeClass("gg_pag_disabled"),1==d?c("#"+b+" .gg_paginate").find(".gg_prev_page").addClass("gg_pag_disabled"):
c("#"+b+" .gg_paginate").find(".gg_prev_page").removeClass("gg_pag_disabled")):(c("#"+b+" .gg_num_btns_wrap > div, #"+b+" .gg_dots_pag_wrap > div").removeClass("gg_pag_disabled"),c("#"+b+" .gg_num_btns_wrap > div[rel="+d+"], #"+b+" .gg_dots_pag_wrap > div[rel="+d+"]").addClass("gg_pag_disabled")));e||c("#"+b+" .gg_nav_mid span").text(d);var h=!e||"*"==e&&"number"==typeof d?d:e;"undefined"!=typeof C[b][h]&&"number"==typeof d?S(b,C[b][h],d,g,e):(f={gid:c("#"+b).attr("rel"),gg_type:"gg_pagination",gg_page:d,
gg_ol:c("#"+b).data("gg_ol"),gg_pag_vars:gg_pag_vars[b]},e&&"*"!=e&&(f.gg_filtered_imgs=e),c.post(window.location.href,f,function(c){C[b][h]=c;S(b,c,d,g,e)}))};var S=function(b,d,e,f,g){setTimeout(function(){c("#"+b+" .gg_paginate .gg_loader").remove();resp=c.parseJSON(d);c("#"+b+" .gg_container").html(resp.html);x()&&c(".gg_sec_overlay").hide();!g&&"undefined"!=typeof v[b]&&v[b]&&(E(b,v[b],!0),c("#"+b).hasClass("gg_noresult")&&c("#"+b+" .gg_loader").fadeOut("fast"));q[b]=1;gg_gallery_process(b);
t[b]=0},f)},N=function(b){if(!c("#"+b).find(".gg_num_btns_wrap, .gg_dots_pag_wrap").length)return!1;var d=c("#"+b).find(".gg_paginate"),e=c("#"+b).find(".gg_num_btns_wrap, .gg_dots_pag_wrap"),f=e.find("> div");e.removeClass("gg_hpb_after gg_hpb_before");f.removeClass("gg_hidden_pb");if(5>=f.length)return!1;var g=0;f.each(function(){g+=c(this).outerWidth(!0)+1});if(g>d.outerWidth()){b=c("#"+b+" .gg_pag_disabled");b=parseInt(b.attr("rel"));var h=parseInt(f.last().attr("rel"));d=g+(2>=b||b>=h-1?26:52)-
d.outerWidth();var l=f.last().outerWidth(!0);l=Math.ceil(d/l);if(2>=b||b>=h-1){d=[];if(2>=b)for(e.addClass("gg_hpb_after"),a=0;a<l;a++)d.push("[rel="+(h-a)+"]");else if(b>=h-1)for(e.addClass("gg_hpb_before"),a=0;a<l;a++)d.push("[rel="+(1+a)+"]");f.filter(d.join(",")).addClass("gg_hidden_pb")}else{e.addClass("gg_hpb_before gg_hpb_after");d=["[rel="+b+"]"];var n=h-l;l=Math.floor(n/2);n=Math.ceil(n/2);var k=b-l,m=b+n;1>=k?(e.removeClass("gg_hpb_before"),n+=-1*k+1):m>=h&&(e.removeClass("gg_hpb_after"),
l+=m-h);for(a=1;a<=l;a++)d.push("[rel="+(b-a)+"]");for(a=1;a<=n;a++)d.push("[rel="+(b+a)+"]");f.not(d.join(",")).addClass("gg_hidden_pb")}}};c(document).ready(function(){c("body").delegate(".gg_infinite_scroll","click",function(){var b=c(this).parents(".gg_gallery_wrap").attr("id");if(c("#"+b).hasClass("gg_filtering_imgs")||t[b])return console.error("GG - wait till previous tag filter or pagination to end"),!1;t[b]=1;c("#"+b+" .gg_container").css("max-height",c("#"+b+" .gg_container").height());c("#"+
b+" .gg_paginate .gg_loader").length&&c("#"+b+" .gg_paginate .gg_loader").remove();c("#"+b+" .gg_infinite_scroll").fadeTo(200,0);setTimeout(function(){c("#"+b+" .gg_paginate").prepend(gg_loader)},200);var d="undefined"==typeof k[b]?2:k[b]+1;k[b]=d;d={gid:c("#"+b).attr("rel"),gg_type:"gg_pagination",gg_page:d,gg_ol:c("#"+b).data("gg_ol"),gg_pag_vars:gg_pag_vars[b]};c.post(window.location.href,d,function(d){resp=c.parseJSON(d);c("#"+b).hasClass("gg_string_gallery")?(c("#"+b+" .gg_container .gg_string_clear_both").remove(),
c("#"+b+" .gg_container").append(resp.html),c("#"+b+" .gg_container").append('<div class="gg_string_clear_both" style="clear: both;"></div>')):c("#"+b+" .gg_container").append(resp.html);c("#"+b).hasClass("gg_masonry_gallery")&&c("#"+b+" .gg_container").isotope("reloadItems");x()&&c(".gg_sec_overlay").hide();"undefined"!=typeof v[b]&&v[b]&&(E(b,v[b],!0),c("#"+b).hasClass("gg_noresult")&&c("#"+b+" .gg_loader").fadeOut("fast"));t[b]=0;q[b]=1;gg_gallery_process(b);"1"!=resp.more?c("#"+b+" .gg_paginate").hide():
(c("#"+b+" .gg_paginate .gg_loader").remove(),c("#"+b+" .gg_infinite_scroll").fadeTo(200,1))})})});c(document).ready(function(){c("body").delegate(".gg_tag:not(.gg_tag_sel)","click",function(b){b=c(this).parents(".gg_tags_wrap").data("gid");var d=c(this).data("tag"),e="*"==d?"*":c(this).data("images").toString().split(",");E(b,e)&&(c(this).parents(".gg_tags_wrap").find(".gg_tag_sel").removeClass("gg_tag_sel"),c(this).addClass("gg_tag_sel"));c(this).parents(".gg_tags_wrap").find(".gg_tags_dd").length&&
(c(this).parents(".gg_tags_wrap").find(".gg_tags_dd option").removeAttr("selected"),"*"!==d&&c(this).parents(".gg_tags_wrap").find('.gg_tags_dd option[value="'+d+'"]').attr("selected","selected"))});c("body").delegate(".gg_tags_dd","change",function(b){b=c(this).parents(".gg_tags_wrap");var d=b.data("gid"),e=b.find('.gg_tag[data-tag="'+c(this).val()+'"]').data("images"),f="*"==e?e:e.split(",");if(E(d,f))b.find(".gg_tag_sel").removeClass("gg_tag_sel"),b.find('.gg_tag[data-images="'+e+'"]').addClass("gg_tag_sel");
else return!1})});var M=function(b,d,e){var f=b.attr("id"),g=b.find(".gg_container"),h="gg_fakebox_"+f,l=b.hasClass("gg_string_gallery"),n=0;if(b.hasClass("gg_masonry_gallery"))b.addClass("gg_filtering_imgs"),b.find(".gg_img").each(function(){var b=c(this).data("img-id");"*"==d||-1!==c.inArray(b.toString(),d)?(c(this).removeClass("gg_excluded_img"),n++):c(this).addClass("gg_excluded_img")}),g.isotope({filter:":not(.gg_excluded_img)"});else{g.css("height",g.outerHeight());var k=b.hasClass("gg_standard_gallery")?
"text-align: center;":"",m=l?b.outerWidth(!0):g.outerWidth(!0);c("body").append('<div id="'+h+'" class="gg_filter_fakebox" style="width: '+m+"px; "+k+'"></div>');l&&(c("#"+h).html(b.clone()),c("#"+h+" .gg_string_gallery").removeAttr("id"),c("#"+h+" .gg_img").removeClass("gg_excluded_img").removeAttr("style"));b.find(".gg_img").each(function(){var b=c(this),e=b.data("img-id");"*"==d||-1!==c.inArray(e.toString(),d)?(n++,l||c("#"+h).append('<div style="display: inline-block; width: '+b.outerWidth(!0)+
"px; height: "+b.outerHeight(!0)+'px;" data-img-id="'+e+'"></div>')):c("#"+h).find('[data-img-id="'+e+'"]').remove();e=b.position();b.css({left:e.left+"px",top:e.top+"px"})});b.find(".gg_img").css("position","absolute");setTimeout(function(){b.addClass("gg_filtering_imgs");n&&l&&"undefined"==typeof e&&G(!1,"#"+h);b.find(".gg_img").each(function(){var b=c(this).data("img-id");"*"==d||-1!==c.inArray(b.toString(),d)?(b=c("#"+h+' [data-img-id="'+b+'"]').position(),c(this).css({left:b.left+"px",top:b.top+
"px"}),c(this).removeClass("gg_excluded_img")):(c(this).css({left:"auto",top:"auto"}),c(this).addClass("gg_excluded_img"))});var k=c("#"+h+" div").length?c("#"+h+" div").last().position().top+c("#"+h+" div").last().height():100;g.css("height",k);n&&l&&"undefined"==typeof e&&G(f)},50)}n?b.removeClass("gg_noresult"):b.addClass("gg_noresult");setTimeout(function(){b.removeClass("gg_filtering_imgs");b.hasClass("gg_masonry_gallery")||(g.css("height","auto"),b.find(".gg_img").not(".gg_excluded_img").css("position",
"static"),c("#"+h).remove())},500)};gg_check_primary_ol=function(b,d){c("#"+b+" .gg_img").each(function(b,d){var e=c(this);c.trim(e.find(".gg_img_title").html())?e.find(".gg_main_overlay").show():e.find(".gg_main_overlay").hide()})};gg_img_fx_setup=function(b,d,e){var f=c("#"+b).data("ggom_timing");"undefined"!=typeof c("#"+b).data("ggom_fx")&&-1!=c("#"+b).data("ggom_fx").indexOf("grayscale")&&(c("#"+b+" .gg_main_thumb").each(function(b,f){if(0==c(this).parents(".gg_img").find(".gg_fx_canvas.gg_grayscale_fx ").length){var g=
new Image;g.onload=function(b){Pixastic.process(g,"desaturate",{average:!1})};c(g).addClass("gg_photo gg_grayscale_fx gg_fx_canvas");c(this).before(g);if(-1!=navigator.appVersion.indexOf("MSIE 9.")||-1!=navigator.appVersion.indexOf("MSIE 10."))c(this).parents(".gg_img").hasClass("gg_car_item")?c(this).parents(".gg_img").find(".gg_fx_canvas").css("width",d[b]):(c(this).parents(".gg_img").find(".gg_fx_canvas").css("max-width",d[b]).css("max-height",e[b]),c(this).parents(".gg_gallery_wrap").hasClass("gg_collection_wrap")&&
c(this).parents(".gg_img").find(".gg_fx_canvas").css("min-width",d[b]).css("min-height",e[b]));g.src=c(this).attr("src")}}),c("#"+b).delegate(".gg_img","mouseenter touchstart",function(b){x()?c(this).find(".gg_grayscale_fx").stop().fadeOut(f):c(this).find(".gg_grayscale_fx").stop().animate({opacity:0},f)}).delegate(".gg_img","mouseleave touchend",function(b){x()?c(this).find(".gg_grayscale_fx").stop().fadeIn(f):c(this).find(".gg_grayscale_fx").stop().animate({opacity:1},f)}));"undefined"!=typeof c("#"+
b).data("ggom_fx")&&-1!=c("#"+b).data("ggom_fx").indexOf("blur")&&(c("#"+b+" .gg_main_thumb").each(function(b,f){if(0==c(this).parents(".gg_img").find(".gg_fx_canvas.gg_blur_fx ").length){var g=new Image;g.onload=function(){Pixastic.process(g,"blurfast",{amount:.15})};c(g).addClass("gg_photo gg_blur_fx gg_fx_canvas").attr("style","opacity: 0; filter: alpha(opacity=0);");c(this).before(g);if(-1!=navigator.appVersion.indexOf("MSIE 9.")||-1!=navigator.appVersion.indexOf("MSIE 10."))c(this).parents(".gg_img").hasClass("gg_car_item")?
c(this).parents(".gg_img").find(".gg_fx_canvas").css("width",d[b]):(c(this).parents(".gg_img").find(".gg_fx_canvas").css("max-width",d[b]).css("max-height",e[b]),c(this).parents(".gg_gallery_wrap").hasClass("gg_collection_wrap")&&c(this).parents(".gg_img").find(".gg_fx_canvas").css("min-width",d[b]).css("min-height",e[b]));g.src=c(this).attr("src")}}),c("#"+b).delegate(".gg_img","mouseenter touchstart",function(b){x()?c(this).find(".gg_blur_fx").stop().fadeIn(f):c(this).find(".gg_blur_fx").stop().animate({opacity:1},
f)}).delegate(".gg_img","mouseleave touchend",function(b){x()?c(this).find(".gg_blur_fx").stop().fadeOut(f):c(this).find(".gg_blur_fx").stop().animate({opacity:0},f)}))};"ontouchstart"in window&&(c(".gg_img").bind("touchstart",function(){c(this).addClass("gg_touch_on")}),c(".gg_img").bind("touchend",function(){c(this).removeClass("gg_touch_on")}));gg_itg_init=function(b){A(b);c("#"+b+" .gg_img .gg_main_thumb").lcweb_lazyload({allLoaded:function(d,e,f){c("#"+b+" .gg_itg_container").addClass("gg_itg_shown")}})};
c(document).delegate(".gg_itg_wrap","click",function(b){var d=c(this).attr("id");b=c(b.terget).hasClass("gg_itg_img")?c(b.target).data("index"):c(b.target).parents(".gg_itg_img").length?c(b.target).parents(".gg_itg_img").data("index"):0;gg_throw_lb(gg_itg_obj[d],d,b,!0)});gg_galleria_show=function(b){setTimeout(function(){c(b+" .galleria-stage").length?(c(b).removeClass("gg_show_loader"),c(b+" .galleria-container").fadeTo(200,1)):gg_galleria_show(b)},50)};gg_galleria_height=function(b){return c(b).hasClass("gg_galleria_responsive")?
parseFloat(c(b).data("asp-ratio")):c(b).height()};gg_galleria_init=function(b){var d=c(b).data("gg-autoplay"),e=gg_galleria_autoplay&&"0"!=d||"1"==d?!0:!1;Galleria.run(b,{theme:"ggallery",height:gg_galleria_height(b),fullscreenDoubleTap:!1,wait:!0,debug:!1,dataConfig:function(b){return{title:c(b).attr("alt"),description:c(b).data("description")}},extend:function(){var d=this;c(b+" .galleria-loader").append(gg_loader);e&&setTimeout(function(){c(b+" .galleria-gg-play").addClass("galleria-gg-pause");
d.play(gg_galleria_interval)},50);c(b+" .galleria-gg-play").click(function(){c(this).toggleClass("galleria-gg-pause");d.playToggle(gg_galleria_interval)});c(b+" .galleria-gg-lightbox").click(function(){c(b+" .galleria-thumbnails > div").each(function(b,d){c(this).hasClass("active")&&(gg_active_index=b)});c(b+" .galleria-gg-play").removeClass("galleria-gg-pause");d.pause()});c(b+" .galleria-gg-toggle-thumb").click(function(){var b=c(this).parents(".gg_galleria_slider_wrap"),d=c(this).parents(".gg_galleria_slider_wrap").find(".galleria-thumbnails-container").height();
b.hasClass("galleria-gg-show-thumbs")||b.hasClass("gg_galleria_slider_show_thumbs")?(b.stop().animate({"padding-bottom":"15px"},400),b.find(".galleria-thumbnails-container").stop().animate({bottom:"20px",opacity:0},400),b.removeClass("galleria-gg-show-thumbs"),b.hasClass("gg_galleria_slider_show_thumbs")&&b.removeClass("gg_galleria_slider_show_thumbs")):(b.stop().animate({"padding-bottom":d+2+12},400),b.find(".galleria-thumbnails-container").stop().animate({bottom:"-"+(d+2+10)+"px",opacity:1},400),
b.addClass("galleria-gg-show-thumbs"))});"undefined"!=typeof gg_lcl_allow_deeplink&&gg_lcl_allow_deeplink()}})};gg_car_calc_breakpoints=function(b,d,e,f){var g=[];if(f){d=c("#gg_car_"+b).width()+50;var h=Math.round(d/f);b={breakpoint:d,settings:{slidesToShow:f,slidesToScroll:e?f:1}};g.push(b);for(a=f;1<=a;a--)b={breakpoint:d-h*(f-a),settings:{slidesToShow:a,slidesToScroll:e?a:1}},g.push(b)}else for(a=1;100>a;a++){f=a*d;if(2E3<f)break;b={breakpoint:f,settings:{slidesToShow:a,slidesToScroll:e?a:1}};
g.push(b)}return g};gg_carousel_preload=function(b,d){c("#gg_car_"+b).prepend(gg_loader);if(c("#gg_car_"+b+" .gg_grayscale_fx").length||c("#gg_car_"+b+" .gg_blur_fx").length)e=!1;else{c("#gg_car_"+b+" img").lcweb_lazyload({allLoaded:function(d,e,h){var f=c("#gg_car_"+b+" .gg_img_inner").height();-1==navigator.appVersion.indexOf("MSIE 9.")&&-1==navigator.appVersion.indexOf("MSIE 8.")||c.each(e,function(b,c){e[b]=e[b]*f/h[b];h[b]=f});gg_img_fx_setup("gg_car_"+b,e,h)}});var e=!0}c("#gg_car_"+b+" "+(e?
"":".slick-active")+" img").lcweb_lazyload({allLoaded:function(f,g,h){c("#gg_car_"+b+" .gg_loader").fadeOut(200,function(){c(this).remove()});c("#gg_car_"+b).removeClass("gg_car_preload");d&&c("#gg_car_"+b).slick("slickPlay");setTimeout(function(){T(b);c(window).trigger("gg_loaded_carousel",[b])},e?1200:320)}});"function"==typeof ggom_hub&&ggom_hub(b)};var T=function(b){c(("undefined"==typeof b?"":"#gg_car_"+b)+" .gg_img.gg_car_item").each(function(b,e){var d=c(this),g=d.find(".gg_main_img_wrap > *"),
h=c(this).width(),l=c(this).height();c("<img />").bind("load",function(){var b=Math.max(h/this.width,l/this.height),c=this.height*b;g.css("width",this.width*b).css("height",c);d.addClass("gg_car_img_ready")}).attr("src",d.find(".gg_main_thumb").attr("src"))})};c(document).ready(function(b){c(document).delegate(".gg_car_pause_on_h","mouseenter touchstart",function(b){c(this).slick("slickPause")}).delegate(".gg_car_pause_on_h","mouseleave touchend",function(b){c(this).hasClass("gg_car_autoplay")&&c(this).slick("slickPlay")});
c(document).delegate(".gg_carousel_wrap .gg_img:not(.gg_linked_img)","click tap",function(b){var d=c(this);setTimeout(function(){d.parents(".gg_carousel_wrap").slick("slickPause")},150)});c(document).delegate(".gg_carousel_wrap .slick-arrow, .gg_carousel_wrap .slick-dots li:not(.slick-active)","click tap",function(b){c(this).parents(".gg_carousel_wrap").removeClass("gg_car_autoplay")});c(document).delegate(".gg_carousel_wrap","swipe",function(b){c(this).removeClass("gg_car_autoplay")})});gg_debouncer=
function(b,c,e,f){var d=function(b,c,d){var e;return function(){var g=this,h=arguments;e?clearTimeout(e):d&&b.apply(g,h);e=setTimeout(function(){d||b.apply(g,h);e=null},c||f)}};b.fn[c]=function(b){return b?this.bind(e,d(b)):this.trigger(c)}};gg_debouncer(c,"gg_smartresize","resize",49);c(window).gg_smartresize(function(){c(".gg_galleria_responsive").each(function(){var b=c(this).width(),d=parseFloat(c(this).data("asp-ratio"));b=Math.ceil(b*d);c(this).css("height",b)})});gg_debouncer(c,"gg_smartscroll",
"scroll",50);c(window).gg_smartscroll(function(){aa()});var aa=function(){c(".gg_coll_back_to_new_style").length&&"undefined"!=typeof gg_back_to_gall_scroll&&gg_back_to_gall_scroll&&c(".gg_coll_gallery_container .gg_gallery_wrap").each(function(b,d){var e=c(this).height(),f=c(this).parents(".gg_coll_gallery_container").find(".gg_coll_go_back");if(e>c(window).height()){var g=c(this).offset();c(window).scrollTop()>g.top&&c(window).scrollTop()<g.top+e-60?(e=Math.round(c(window).scrollTop()-g.top)+55,
0>e&&(e=0),f.addClass("gg_cgb_sticky").css("top",e)):f.removeClass("gg_cgb_sticky").css("top",0)}else f.removeClass("gg_cgb_sticky").css("top",0)})};c(document).ready(function(){setInterval(function(){c(".gg_gallery_wrap").each(function(){var b=c(this).attr("id");if("undefined"==typeof I[b])return!0;var d=c(this).hasClass("gg_collection_wrap")?c("#"+b+" .gg_coll_container").width():c("#"+b).width();if("undefined"==typeof u[b])return u[b]=d,!0;u[b]!=d&&(ba(b),u[b]=d)})},200)});var ba=function(b){"undefined"!=
typeof J[b]&&clearTimeout(J[b]);J[b]=setTimeout(function(){c("#"+b).trigger("gg_resize_gallery",[b])},50)};c(document).delegate(".gg_gallery_wrap","gg_resize_gallery",function(b,d){c(this).hasClass("gg_collection_wrap")&&c(this).find(".gg_coll_gallery_container .gg_container").length&&gg_coll_gall_title_layout(d);c(this).hasClass("gg_carousel_wrap")?T(d):gg_galleries_init(d,!0)});if("undefined"!=typeof gg_preload_hires_img&&gg_preload_hires_img){var U=c(".gg_gallery_wrap, .gg_carousel_wrap").length,
V=0;if(U)c(window).on("gg_loaded_gallery gg_loaded_collection gg_loaded_carousel",function(){V++;V==U&&setTimeout(function(){c(".gg_img").not(".gg_coll_img, .gg_linked_img").each(function(){c("<img />")[0].src=c(this).data("gg-url")})},300)})}gg_lb_html_fix=function(b){b="string"==typeof b?b.replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):"";return c.trim(b)};c(document).ready(function(){c(document).delegate(".gg_gallery_wrap:not(.gg_static_car) div.gg_img:not(.gg_coll_img, .gg_linked_img, .gg_excluded_img)",
"click",function(b){b.preventDefault();if(c(b.target).hasClass(".ggom_socials")||c(b.target).parents(".ggom_socials").length)return!1;var d=[];b=c(this);var e=b.attr("rel"),f=b.parents(".gg_gallery_wrap").attr("id"),g=b.data("gg-url"),h=0;c("#"+f+" .gg_img:not(.gg_coll_img, .gg_linked_img, .gg_excluded_img)").each(function(b,e){var f=c(this).data("gg-url");"undefined"==typeof d[f]&&(d[f]={img:f,title:gg_lb_html_fix(c(this).data("gg-title")),descr:gg_lb_html_fix(c(this).data("gg-descr")),author:gg_lb_html_fix(c(this).data("gg-author"))},
f==g&&(h=b))});gg_throw_lb(d,e,h)})});gg_slider_lightbox=function(b,d){var e=c.now(),f={};c.each(b,function(b,c){f[c.big]={img:c.big,title:gg_lb_html_fix(c.title),descr:gg_lb_html_fix(c.description),author:""}});gg_throw_lb(f,e,d)}})(jQuery);