!function(e){var n=!1;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var o=window.Cookies,t=window.Cookies=e();t.noConflict=function(){return window.Cookies=o,t}}}(function(){function e(){for(var e=0,n={};e1){if("number"==typeof(i=e({path:"/"},t.defaults,i)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}i.expires=i.expires?i.expires.toUTCString():"";try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(m){}r=o.write?o.write(r,n):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=(n=(n=encodeURIComponent(String(n))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var f="";for(var s in i)i[s]&&(f+="; "+s,!0!==i[s]&&(f+="="+i[s]));return document.cookie=n+"="+r+f}n||(c={});for(var p=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,u=0;u=0) ? html:body; activeElement=body; initTest(); initDone=true; if(top!=self){ isFrame=true; } else if(scrollHeight > windowHeight && (body.offsetHeight <=windowHeight || html.offsetHeight <=windowHeight)){ html.style.height='auto'; if(root.offsetHeight <=windowHeight){ var underlay=document.createElement("div"); underlay.style.clear="both"; body.appendChild(underlay); }} if(!options.fixedBackground&&!isExcluded){ body.style.backgroundAttachment="scroll"; html.style.backgroundAttachment="scroll"; }} var que=[]; var pending=false; var lastScroll=+new Date; function scrollArray(elem, left, top, delay){ delay||(delay=1000); directionCheck(left, top); if(options.accelerationMax!=1){ var now=+new Date; var elapsed=now - lastScroll; if(elapsed < options.accelerationDelta){ var factor=(1 + (30 / elapsed)) / 2; if(factor > 1){ factor=Math.min(factor, options.accelerationMax); left *=factor; top *=factor; }} lastScroll=+new Date; } que.push({ x: left, y: top, lastX: (left < 0) ? 0.99:-0.99, lastY: (top < 0) ? 0.99:-0.99, start: +new Date }); if(pending){ return; } var scrollWindow=(elem===document.body); var step=function (time){ var now=+new Date; var scrollX=0; var scrollY=0; for (var i=0; i < que.length; i++){ var item=que[i]; var elapsed=now - item.start; var finished=(elapsed >=options.animationTime); var position=(finished) ? 1:elapsed / options.animationTime; if(options.pulseAlgorithm){ position=pulse(position); } var x=(item.x * position - item.lastX) >> 0; var y=(item.y * position - item.lastY) >> 0; scrollX +=x; scrollY +=y; item.lastX +=x; item.lastY +=y; if(finished){ que.splice(i, 1); i--; }} if(scrollWindow){ window.scrollBy(scrollX, scrollY); }else{ if(scrollX) elem.scrollLeft +=scrollX; if(scrollY) elem.scrollTop +=scrollY; } if(!left&&!top){ que=[]; } if(que.length){ requestFrame(step, elem, (delay / options.frameRate + 1)); }else{ pending=false; }}; requestFrame(step, elem, 0); pending=true; } function wheel(event){ if(!initDone){ init(); } var target=event.target; var overflowing=overflowingAncestor(target); if(!overflowing||event.defaultPrevented || isNodeName(activeElement, "embed") || (isNodeName(target, "embed")&&/\.pdf/i.test(target.src))){ return true; } var deltaX=event.wheelDeltaX||0; var deltaY=event.wheelDeltaY||0; if(!deltaX&&!deltaY){ deltaY=event.wheelDelta||0; } if(!options.touchpadSupport&&isTouchpad(deltaY)){ return true; } if(Math.abs(deltaX) > 1.2){ deltaX *=options.stepSize / 120; } if(Math.abs(deltaY) > 1.2){ deltaY *=options.stepSize / 120; } scrollArray(overflowing, -deltaX, -deltaY); event.preventDefault(); } function keydown(event){ var target=event.target; var modifier=event.ctrlKey||event.altKey||event.metaKey || (event.shiftKey&&event.keyCode!==key.spacebar); if(/input|textarea|select|embed/i.test(target.nodeName) || target.isContentEditable || event.defaultPrevented || modifier){ return true; } if(isNodeName(target, "button") && event.keyCode===key.spacebar){ return true; } var shift, x=0, y=0; var elem=overflowingAncestor(activeElement); var clientHeight=elem.clientHeight; if(elem==document.body){ clientHeight=window.innerHeight; } switch (event.keyCode){ case key.up: y=-options.arrowScroll; break; case key.down: y=options.arrowScroll; break; case key.spacebar: shift=event.shiftKey ? 1:-1; y=-shift * clientHeight * 0.9; break; case key.pageup: y=-clientHeight * 0.9; break; case key.pagedown: y=clientHeight * 0.9; break; case key.home: y=-elem.scrollTop; break; case key.end: var damt=elem.scrollHeight - elem.scrollTop - clientHeight; y=(damt > 0) ? damt+10:0; break; case key.left: x=-options.arrowScroll; break; case key.right: x=options.arrowScroll; break; default: return true; } scrollArray(elem, x, y); event.preventDefault(); } function mousedown(event){ activeElement=event.target; } var cache={}; setInterval(function (){ cache={};}, 10 * 1000); var uniqueID=(function (){ var i=0; return function (el){ return el.uniqueID||(el.uniqueID=i++); };})(); function setCache(elems, overflowing){ for (var i=elems.length; i--;) cache[uniqueID(elems[i])]=overflowing; return overflowing; } function overflowingAncestor(el){ var elems=[]; var rootScrollHeight=root.scrollHeight; do { var cached=cache[uniqueID(el)]; if(cached){ return setCache(elems, cached); } elems.push(el); if(rootScrollHeight===el.scrollHeight){ if(!isFrame||root.clientHeight + 10 < rootScrollHeight){ return setCache(elems, document.body); }}else if(el.clientHeight + 10 < el.scrollHeight){ overflow=getComputedStyle(el, "").getPropertyValue("overflow-y"); if(overflow==="scroll"||overflow==="auto"){ return setCache(elems, el); }} } while (el=el.parentNode); } function addEvent(type, fn, bubble){ window.addEventListener(type, fn, (bubble||false)); } function removeEvent(type, fn, bubble){ window.removeEventListener(type, fn, (bubble||false)); } function isNodeName(el, tag){ return (el.nodeName||"").toLowerCase()===tag.toLowerCase(); } function directionCheck(x, y){ x=(x > 0) ? 1:-1; y=(y > 0) ? 1:-1; if(direction.x!==x||direction.y!==y){ direction.x=x; direction.y=y; que=[]; lastScroll=0; }} var deltaBufferTimer; function isTouchpad(deltaY){ if(!deltaY) return; deltaY=Math.abs(deltaY) deltaBuffer.push(deltaY); deltaBuffer.shift(); clearTimeout(deltaBufferTimer); var allEquals=(deltaBuffer[0]==deltaBuffer[1] && deltaBuffer[1]==deltaBuffer[2]); var allDivisable=(isDivisible(deltaBuffer[0], 120) && isDivisible(deltaBuffer[1], 120) && isDivisible(deltaBuffer[2], 120)); return !(allEquals||allDivisable); } function isDivisible(n, divisor){ return (Math.floor(n / divisor)==n / divisor); } var requestFrame=(function (){ return window.requestAnimationFrame || window.webkitRequestAnimationFrame || function (callback, element, delay){ window.setTimeout(callback, delay||(1000/60)); };})(); function pulse_(x){ var val, start, expx; x=x * options.pulseScale; if(x < 1){ val=x - (1 - Math.exp(-x)); }else{ start=Math.exp(-1); x -=1; expx=1 - Math.exp(-x); val=start + (expx * (1 - start)); } return val * options.pulseNormalize; } function pulse(x){ if(x >=1) return 1; if(x <=0) return 0; if(options.pulseNormalize==1){ options.pulseNormalize /=pulse_(1); } return pulse_(x); } var isChrome=/chrome/i.test(window.navigator.userAgent); var isMouseWheelSupported='onmousewheel' in document; if(isMouseWheelSupported&&isChrome){ addEvent("mousedown", mousedown); addEvent("mousewheel", wheel); addEvent("load", init); };})(); (function($,sr){ var debounce=function (func, threshold, execAsap){ var timeout; return function debounced (){ var obj=this, args=arguments; function delayed (){ if(!execAsap) func.apply(obj, args); timeout=null; }; if(timeout) clearTimeout(timeout); else if(execAsap) func.apply(obj, args); timeout=setTimeout(delayed, threshold||100); };} jQuery.fn[sr]=function(fn){ return fn ? this.bind('resize', debounce(fn)):this.trigger(sr); };})(jQuery,'smartresize'); (function(c){"function"===typeof define&&define.amd?define(["jquery"],c):jQuery&&!jQuery.fn.hoverIntent&&c(jQuery)})(function(c){var n={interval:100,sensitivity:6,timeout:0},p=0,d,k,l=function(a){d=a.pageX;k=a.pageY},m=function(a,c,b,g){if(Math.sqrt((b.pX-d)*(b.pX-d)+(b.pY-k)*(b.pY-k))-1;n.transition=i("transition");n.transitionDelay=i("transitionDelay");n.transform=i("transform");n.transformOrigin=i("transformOrigin");n.filter=i("Filter");n.transform3d=r();var a={transition:"transitionend",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"};var o=n.transitionEnd=a[n.transition]||null;for(var u in n){if(n.hasOwnProperty(u)&&typeof t.support[u]==="undefined"){t.support[u]=n[u]}}e=null;t.cssEase={_default:"ease","in":"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeInCubic:"cubic-bezier(.550,.055,.675,.190)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};t.cssHooks["transit:transform"]={get:function(e){return t(e).data("transform")||new f},set:function(e,i){var r=i;if(!(r instanceof f)){r=new f(r)}if(n.transform==="WebkitTransform"&&!s){e.style[n.transform]=r.toString(true)}else{e.style[n.transform]=r.toString()}t(e).data("transform",r)}};t.cssHooks.transform={set:t.cssHooks["transit:transform"].set};t.cssHooks.filter={get:function(t){return t.style[n.filter]},set:function(t,e){t.style[n.filter]=e}};if(t.fn.jquery<"1.8"){t.cssHooks.transformOrigin={get:function(t){return t.style[n.transformOrigin]},set:function(t,e){t.style[n.transformOrigin]=e}};t.cssHooks.transition={get:function(t){return t.style[n.transition]},set:function(t,e){t.style[n.transition]=e}}}p("scale");p("scaleX");p("scaleY");p("translate");p("rotate");p("rotateX");p("rotateY");p("rotate3d");p("perspective");p("skewX");p("skewY");p("x",true);p("y",true);function f(t){if(typeof t==="string"){this.parse(t)}return this}f.prototype={setFromString:function(t,e){var n=typeof e==="string"?e.split(","):e.constructor===Array?e:[e];n.unshift(t);f.prototype.set.apply(this,n)},set:function(t){var e=Array.prototype.slice.apply(arguments,[1]);if(this.setter[t]){this.setter[t].apply(this,e)}else{this[t]=e.join(",")}},get:function(t){if(this.getter[t]){return this.getter[t].apply(this)}else{return this[t]||0}},setter:{rotate:function(t){this.rotate=b(t,"deg")},rotateX:function(t){this.rotateX=b(t,"deg")},rotateY:function(t){this.rotateY=b(t,"deg")},scale:function(t,e){if(e===undefined){e=t}this.scale=t+","+e},skewX:function(t){this.skewX=b(t,"deg")},skewY:function(t){this.skewY=b(t,"deg")},perspective:function(t){this.perspective=b(t,"px")},x:function(t){this.set("translate",t,null)},y:function(t){this.set("translate",null,t)},translate:function(t,e){if(this._translateX===undefined){this._translateX=0}if(this._translateY===undefined){this._translateY=0}if(t!==null&&t!==undefined){this._translateX=b(t,"px")}if(e!==null&&e!==undefined){this._translateY=b(e,"px")}this.translate=this._translateX+","+this._translateY}},getter:{x:function(){return this._translateX||0},y:function(){return this._translateY||0},scale:function(){var t=(this.scale||"1,1").split(",");if(t[0]){t[0]=parseFloat(t[0])}if(t[1]){t[1]=parseFloat(t[1])}return t[0]===t[1]?t[0]:t},rotate3d:function(){var t=(this.rotate3d||"0,0,0,0deg").split(",");for(var e=0;e<=3;++e){if(t[e]){t[e]=parseFloat(t[e])}}if(t[3]){t[3]=b(t[3],"deg")}return t}},parse:function(t){var e=this;t.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,function(t,n,i){e.setFromString(n,i)})},toString:function(t){var e=[];for(var i in this){if(this.hasOwnProperty(i)){if(!n.transform3d&&(i==="rotateX"||i==="rotateY"||i==="perspective"||i==="transformOrigin")){continue}if(i[0]!=="_"){if(t&&i==="scale"){e.push(i+"3d("+this[i]+",1)")}else if(t&&i==="translate"){e.push(i+"3d("+this[i]+",0)")}else{e.push(i+"("+this[i]+")")}}}}return e.join(" ")}};function c(t,e,n){if(e===true){t.queue(n)}else if(e){t.queue(e,n)}else{t.each(function(){n.call(this)})}}function l(e){var i=[];t.each(e,function(e){e=t.camelCase(e);e=t.transit.propertyMap[e]||t.cssProps[e]||e;e=h(e);if(n[e])e=h(n[e]);if(t.inArray(e,i)===-1){i.push(e)}});return i}function d(e,n,i,r){var s=l(e);if(t.cssEase[i]){i=t.cssEase[i]}var a=""+y(n)+" "+i;if(parseInt(r,10)>0){a+=" "+y(r)}var o=[];t.each(s,function(t,e){o.push(e+" "+a)});return o.join(", ")}t.fn.transition=t.fn.transit=function(e,i,r,s){var a=this;var u=0;var f=true;var l=t.extend(true,{},e);if(typeof i==="function"){s=i;i=undefined}if(typeof i==="object"){r=i.easing;u=i.delay||0;f=typeof i.queue==="undefined"?true:i.queue;s=i.complete;i=i.duration}if(typeof r==="function"){s=r;r=undefined}if(typeof l.easing!=="undefined"){r=l.easing;delete l.easing}if(typeof l.duration!=="undefined"){i=l.duration;delete l.duration}if(typeof l.complete!=="undefined"){s=l.complete;delete l.complete}if(typeof l.queue!=="undefined"){f=l.queue;delete l.queue}if(typeof l.delay!=="undefined"){u=l.delay;delete l.delay}if(typeof i==="undefined"){i=t.fx.speeds._default}if(typeof r==="undefined"){r=t.cssEase._default}i=y(i);var p=d(l,i,r,u);var h=t.transit.enabled&&n.transition;var b=h?parseInt(i,10)+parseInt(u,10):0;if(b===0){var g=function(t){a.css(l);if(s){s.apply(a)}if(t){t()}};c(a,f,g);return a}var m={};var v=function(e){var i=false;var r=function(){if(i){a.unbind(o,r)}if(b>0){a.each(function(){this.style[n.transition]=m[this]||null})}if(typeof s==="function"){s.apply(a)}if(typeof e==="function"){e()}};if(b>0&&o&&t.transit.useTransitionEnd){i=true;a.bind(o,r)}else{window.setTimeout(r,b)}a.each(function(){if(b>0){this.style[n.transition]=p}t(this).css(l)})};var z=function(t){this.offsetWidth;v(t)};c(a,f,z);return this};function p(e,i){if(!i){t.cssNumber[e]=true}t.transit.propertyMap[e]=n.transform;t.cssHooks[e]={get:function(n){var i=t(n).css("transit:transform");return i.get(e)},set:function(n,i){var r=t(n).css("transit:transform");r.setFromString(e,i);t(n).css({"transit:transform":r})}}}function h(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function b(t,e){if(typeof t==="string"&&!t.match(/^[\-0-9\.]+$/)){return t}else{return""+t+e}}function y(e){var n=e;if(typeof n==="string"&&!n.match(/^[\-0-9\.]+/)){n=t.fx.speeds[n]||t.fx.speeds._default}return b(n,"ms")}t.transit.getTransitionValue=d;return t}); (function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,r=this,o=r.EventEmitter;i.getListeners=function(e){var t,n,i=this._getEvents();if("object"==typeof e){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},i.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},i.addListener=function(e,n){var i,r=this.getListenersAsObject(e),o="object"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===t(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},i.removeListener=function(e,n){var i,r,o=this.getListenersAsObject(e);for(r in o)o.hasOwnProperty(r)&&(i=t(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},i.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},i.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):s.call(this,i,r));return this},i.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(e,t){var n,i,r,o,s=this.getListenersAsObject(e);for(r in s)if(s.hasOwnProperty(r))for(i=s[r].length;i--;)n=s[r][i],n.once===!0&&this.removeListener(e,n.listener),o=n.listener.apply(this,t||[]),o===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return r.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}).call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(i=function(e,n,i){e[n+i]=i.handleEvent?function(){var n=t(e);i.handleEvent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachEvent("on"+n,e[n+i])});var r=function(){};n.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(r=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var o={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,i){return t(e,n,i)}):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}function r(e){return"[object Array]"===d.call(e)}function o(e){var t=[];if(r(e))t=e;else if("number"==typeof e.length)for(var n=0,i=e.length;i>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getImages(),a&&(this.jqDeferred=new a.Deferred);var r=this;setTimeout(function(){r.check()})}function f(e){this.img=e}function c(e){this.src=e,v[e]=this}var a=e.jQuery,u=e.console,h=u!==void 0,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);var i=n.nodeType;if(i&&(1===i||9===i||11===i))for(var r=n.querySelectorAll("img"),o=0,s=r.length;s>o;o++){var f=r[o];this.addImage(f)}}},s.prototype.addImage=function(e){var t=new f(e);this.images.push(t)},s.prototype.check=function(){function e(e,r){return t.options.debug&&h&&u.log("confirm",e,r),t.progress(e),n++,n===i&&t.complete(),!0}var t=this,n=0,i=this.images.length;if(this.hasAnyBroken=!1,!i)return this.complete(),void 0;for(var r=0;i>r;r++){var o=this.images[r];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},a&&(a.fn.imagesLoaded=function(e,t){var n=new s(this,e,t);return n.jqDeferred.promise(a(this))}),f.prototype=new t,f.prototype.check=function(){var e=v[this.img.src]||new c(this.img.src);if(e.isConfirmed)return this.confirm(e.isLoaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0;var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},f.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var v={};return c.prototype=new t,c.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},c.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},c.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},c.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},c.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},c.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s}); !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(a,c){if(void 0===c||c===!1)return!0;if(e=a.split("_"),e.length>1){var d=b.find(p+"-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith(''):d.attr(e[1],c)}}else b.find(p+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("
");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery",g=Boolean(a.fn.mfpFastClick);return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s),h=g?"mfpFastClick":"click";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(x("b",e[0],!1,!0),x("a",e[0],!1,!0),x("b",f[0],!1,!0),x("a",f[0],!1,!0)),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){v.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,v.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on("touchend"+f,function(a){d(),l||n>1||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on("click"+f,function(){g||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&v.off("touchmove"+f+" touchend"+f)}}(),A()}); var retinaMode=engic_eutf_plugins_data.retina_support; if('default'==retinaMode){ !function(){function t(){}function e(t){return r.retinaImageSuffix+t}function i(t,i){if(this.path=t||"","undefined"!=typeof i&&null!==i)this.at_2x_path=i,this.perform_check=!1;else{if(void 0!==document.createElement){var n=document.createElement("a");n.href=this.path,n.pathname=n.pathname.replace(h,e),this.at_2x_path=n.href}else{var a=this.path.split("?");a[0]=a[0].replace(h,e),this.at_2x_path=a.join("?")}this.perform_check=!0}}function n(t){this.el=t,this.path=new i(this.el.getAttribute("src"),this.el.getAttribute("data-at2x"));var e=this;this.path.check_2x_variant(function(t){t&&e.swap()})}var a="undefined"==typeof exports?window:exports,r={retinaImageSuffix:"@2x",check_mime_type:!0,force_original_dimensions:!1};a.Retina=t,t.configure=function(t){null===t&&(t={});for(var e in t)t.hasOwnProperty(e)&&(r[e]=t[e])},t.init=function(t){null===t&&(t=a);var e=t.onload||function(){};t.onload=function(){var t,i,a=document.getElementsByTagName("img"),r=[];for(t=0;t1?!0:a.matchMedia&&a.matchMedia(t).matches?!0:!1};var h=/\.\w+$/;a.RetinaImagePath=i,i.confirmed_paths=[],i.prototype.is_external=function(){return!(!this.path.match(/^https?\:/i)||this.path.match("//"+document.domain))},i.prototype.check_2x_variant=function(t){var e,n=this;return this.is_external()?t(!1):this.perform_check||"undefined"==typeof this.at_2x_path||null===this.at_2x_path?this.at_2x_path in i.confirmed_paths?t(!0):(e=new XMLHttpRequest,e.open("HEAD",this.at_2x_path),e.onreadystatechange=function(){if(4!==e.readyState)return t(!1);if(e.status>=200&&e.status<=399){if(r.check_mime_type){var a=e.getResponseHeader("Content-Type");if(null===a||!a.match(/^image/i))return t(!1)}return i.confirmed_paths.push(n.at_2x_path),t(!0)}return t(!1)},e.send(),void 0):t(!0)},a.RetinaImage=n,n.prototype.swap=function(t){function e(){i.el.complete?(r.force_original_dimensions&&(i.el.setAttribute("width",i.el.offsetWidth),i.el.setAttribute("height",i.el.offsetHeight)),i.el.setAttribute("src",t)):setTimeout(e,5)}"undefined"==typeof t&&(t=this.path.at_2x_path);var i=this;e()},t.isRetina()&&t.init(a)}(); }else if('full'==retinaMode){ !function(){function a(){}function b(a){return f.retinaImageSuffix+a}function c(a,c){if(this.path=a||"","undefined"!=typeof c&&null!==c)this.at_2x_path=c,this.perform_check=!1;else{if(void 0!==document.createElement){var d=document.createElement("a");d.href=this.path,d.pathname=d.pathname.replace(g,b),this.at_2x_path=d.href}else{var e=this.path.split("?");e[0]=e[0].replace(g,b),this.at_2x_path=e.join("?")}this.perform_check=!0}}function d(a){this.el=a,this.path=new c(this.el.getAttribute("src"),this.el.getAttribute("data-at2x"));var b=this;this.path.check_2x_variant(function(a){a&&b.swap()})}var e="undefined"==typeof exports?window:exports,f={retinaImageSuffix:"@2x",check_mime_type:!0,force_original_dimensions:0};e.Retina=a,a.configure=function(a){null===a&&(a={});for(var b in a)a.hasOwnProperty(b)&&(f[b]=a[b])},a.init=function(a){null===a&&(a=e);var b=a.onload||function(){};a.onload=function(){var a,c,e=document.getElementsByTagName("img"),f=[];for(a=0;a1?!0:e.matchMedia&&e.matchMedia(a).matches?!0:!1};var g=/\.\w+$/;e.RetinaImagePath=c,c.confirmed_paths=[],c.prototype.is_external=function(){return!(!this.path.match(/^https?\:/i)||this.path.match("//"+document.domain))},c.prototype.check_2x_variant=function(a){var b,d=this;return this.is_external()?a(!1):this.perform_check||"undefined"==typeof this.at_2x_path||null===this.at_2x_path?this.at_2x_path in c.confirmed_paths?a(!0):(b=new XMLHttpRequest,b.open("HEAD",this.at_2x_path),b.onreadystatechange=function(){if(4!==b.readyState)return a(!1);if(b.status>=200&&b.status<=399){if(f.check_mime_type){var e=b.getResponseHeader("Content-Type");if(null===e||!e.match(/^image/i))return a(!1)}return c.confirmed_paths.push(d.at_2x_path),a(!0)}return a(!1)},b.send(),void 0):a(!0)},e.RetinaImage=d,d.prototype.swap=function(a){function b(){c.el.complete?(f.force_original_dimensions&&(c.el.setAttribute("width",c.el.offsetWidth),c.el.setAttribute("height",c.el.offsetHeight)),c.el.setAttribute("src",a)):setTimeout(b,5)}"undefined"==typeof a&&(a=this.path.at_2x_path);var c=this;b()},a.isRetina()&&a.init(e)}(); } function countUp(a,b,c,d,e,f){for(var g=0,h=["webkit","moz","ms","o"],i=0;ithis.endVal?!0:!1,this.startTime=null,this.timestamp=null,this.remaining=null,this.frameVal=this.startVal,this.rAF=null,this.decimals=Math.max(0,d||0),this.dec=Math.pow(10,this.decimals),this.duration=1e3*e||2e3,this.version=function(){return"1.3.0"},this.printValue=function(a){var b=a?j.formatNumber(a):"--";"INPUT"==j.d.tagName?this.d.value=b:this.d.innerHTML=b},this.easeOutExpo=function(a,b,c,d){return 1024*c*(-Math.pow(2,-10*a/d)+1)/1023+b},this.count=function(a){null===j.startTime&&(j.startTime=a),j.timestamp=a;var b=a-j.startTime;if(j.remaining=j.duration-b,j.options.useEasing)if(j.countDown){var c=j.easeOutExpo(b,0,j.startVal-j.endVal,j.duration);j.frameVal=j.startVal-c}else j.frameVal=j.easeOutExpo(b,j.startVal,j.endVal-j.startVal,j.duration);else if(j.countDown){var c=(j.startVal-j.endVal)*(b/j.duration);j.frameVal=j.startVal-c}else j.frameVal=j.startVal+(j.endVal-j.startVal)*(b/j.duration);j.frameVal=Math.round(j.frameVal*j.dec)/j.dec,j.frameVal=j.countDown?j.frameValj.endVal?j.endVal:j.frameVal,j.printValue(j.frameVal),b1?j.options.decimal+b[1]:"",e=/(\d+)(\d{3})/,j.options.useGrouping)for(;e.test(c);)c=c.replace(e,"$1"+j.options.separator+"$2");return j.options.prefix+c+d+j.options.suffix},j.printValue(j.startVal)} !function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var r=document.head||document.getElementsByTagName("head")[0],a=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",d=document.createElement("div");d.innerHTML='

x

",r.appendChild(d.childNodes[1])}return e&&t.extend(i,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&e.push(i.customSelector);var r=".fitvidsignore";i.ignore&&(r=r+", "+i.ignore);var a=t(this).find(e.join(","));a=a.not("object object"),a=a.not(r),a.each(function(){var e=t(this);if(!(e.parents(r).length>0||"embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){e.css("height")||e.css("width")||!isNaN(e.attr("height"))&&!isNaN(e.attr("width"))||(e.attr("height",9),e.attr("width",16));var i="object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height(),a=isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10),d=i/a;if(!e.attr("name")){var o="fitvid"+t.fn.fitVids._count;e.attr("name",o),t.fn.fitVids._count++}e.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*d+"%"),e.removeAttr("height").removeAttr("width")}})})},t.fn.fitVids._count=0}(window.jQuery||window.Zepto); (function($){ $.fn.appear=function(fn, options){ var settings=$.extend({ data: undefined, one: true, accX: 0, accY: 0 }, options); return this.each(function(){ var t=$(this); t.appeared=false; if(!fn){ t.trigger('appear', settings.data); return; } var w=$(window); var check=function(){ if(!t.is(':visible')){ t.appeared=false; return; } var a=w.scrollLeft(); var b=w.scrollTop(); var o=t.offset(); var x=o.left; var y=o.top; var ax=settings.accX; var ay=settings.accY; var th=t.height(); var wh=w.height(); var tw=t.width(); var ww=w.width(); if(y + th + ay >=b && y <=b + wh + ay && x + tw + ax >=a && x <=a + ww + ax){ if(!t.appeared) t.trigger('appear', settings.data); }else{ t.appeared=false; }}; var modifiedFn=function(){ t.appeared=true; if(settings.one){ w.unbind('scroll', check); var i=$.inArray(check, $.fn.appear.checks); if(i >=0) $.fn.appear.checks.splice(i, 1); } fn.apply(this, arguments); }; if(settings.one) t.one('appear', settings.data, modifiedFn); else t.bind('appear', settings.data, modifiedFn); w.scroll(check); $.fn.appear.checks.push(check); (check)(); }); }; $.extend($.fn.appear, { checks: [], timeout: null, checkAll: function(){ var length=$.fn.appear.checks.length; if(length > 0) while (length--) ($.fn.appear.checks[length])(); }, run: function(){ if($.fn.appear.timeout) clearTimeout($.fn.appear.timeout); $.fn.appear.timeout=setTimeout($.fn.appear.checkAll, 20); }}); $.each(['append', 'prepend', 'after', 'before', 'attr', 'removeAttr', 'addClass', 'removeClass', 'toggleClass', 'remove', 'css', 'show', 'hide'], function(i, n){ var old=$.fn[n]; if(old){ $.fn[n]=function(){ var r=old.apply(this, arguments); $.fn.appear.run(); return r; }} }); })(jQuery); if(!Modernizr.csstransforms3d){ "function"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),function(t,e,o){var i={init:function(e,o){var i=this;i.$elem=t(o),i.options=t.extend({},t.fn.owlCarousel.options,i.$elem.data(),e),i.userOptions=e,i.loadContent()},loadContent:function(){function e(t){var e,o="";if("function"==typeof i.options.jsonSuccess)i.options.jsonSuccess.apply(this,[t]);else{for(e in t.owl)t.owl.hasOwnProperty(e)&&(o+=t.owl[e].item);i.$elem.html(o)}i.logIn()}var o,i=this;"function"==typeof i.options.beforeInit&&i.options.beforeInit.apply(this,[i.$elem]),"string"==typeof i.options.jsonPath?(o=i.options.jsonPath,t.getJSON(o,e)):i.logIn()},logIn:function(){var t=this;t.$elem.data({"owl-originalStyles":t.$elem.attr("style"),"owl-originalClasses":t.$elem.attr("class")}),t.$elem.css({opacity:0}),t.orignalItems=t.options.items,t.checkBrowser(),t.wrapperWidth=0,t.checkVisible=null,t.setVars()},setVars:function(){var t=this;return 0===t.$elem.children().length?!1:(t.baseClass(),t.eventTypes(),t.$userItems=t.$elem.children(),t.itemsAmount=t.$userItems.length,t.wrapItems(),t.$owlItems=t.$elem.find(".owl-item"),t.$owlWrapper=t.$elem.find(".owl-wrapper"),t.playDirection="next",t.prevItem=0,t.prevArr=[0],t.currentItem=0,t.customEvents(),void t.onStartup())},onStartup:function(){var t=this;t.updateItems(),t.calculateAll(),t.buildControls(),t.updateControls(),t.response(),t.moveEvents(),t.stopOnHover(),t.owlStatus(),t.options.transitionStyle!==!1&&t.transitionTypes(t.options.transitionStyle),t.options.autoPlay===!0&&(t.options.autoPlay=5e3),t.play(),t.$elem.find(".owl-wrapper").css("display","block"),t.$elem.is(":visible")?t.$elem.css("opacity",1):t.watchVisibility(),t.onstartup=!1,t.eachMoveUpdate(),"function"==typeof t.options.afterInit&&t.options.afterInit.apply(this,[t.$elem])},eachMoveUpdate:function(){var t=this;t.options.lazyLoad===!0&&t.lazyLoad(),t.options.autoHeight===!0&&t.autoHeight(),t.onVisibleItems(),"function"==typeof t.options.afterAction&&t.options.afterAction.apply(this,[t.$elem])},updateVars:function(){var t=this;"function"==typeof t.options.beforeUpdate&&t.options.beforeUpdate.apply(this,[t.$elem]),t.watchVisibility(),t.updateItems(),t.calculateAll(),t.updatePosition(),t.updateControls(),t.eachMoveUpdate(),"function"==typeof t.options.afterUpdate&&t.options.afterUpdate.apply(this,[t.$elem])},reload:function(){var t=this;e.setTimeout(function(){t.updateVars()},0)},watchVisibility:function(){var t=this;return t.$elem.is(":visible")!==!1?!1:(t.$elem.css({opacity:0}),e.clearInterval(t.autoPlayInterval),e.clearInterval(t.checkVisible),void(t.checkVisible=e.setInterval(function(){t.$elem.is(":visible")&&(t.reload(),t.$elem.animate({opacity:1},200),e.clearInterval(t.checkVisible))},500)))},wrapItems:function(){var t=this;t.$userItems.wrapAll('
').wrap('
'),t.$elem.find(".owl-wrapper").wrap('
'),t.wrapperOuter=t.$elem.find(".owl-wrapper-outer"),t.$elem.css("display","block")},baseClass:function(){var t=this,e=t.$elem.hasClass(t.options.baseClass),o=t.$elem.hasClass(t.options.theme);e||t.$elem.addClass(t.options.baseClass),o||t.$elem.addClass(t.options.theme)},updateItems:function(){var e,o,i=this;if(i.options.responsive===!1)return!1;if(i.options.singleItem===!0)return i.options.items=i.orignalItems=1,i.options.itemsCustom=!1,i.options.itemsDesktop=!1,i.options.itemsDesktopSmall=!1,i.options.itemsTablet=!1,i.options.itemsTabletSmall=!1,i.options.itemsMobile=!1,!1;if(e=t(i.options.responsiveBaseWidth).width(),e>(i.options.itemsDesktop[0]||i.orignalItems)&&(i.options.items=i.orignalItems),i.options.itemsCustom!==!1)for(i.options.itemsCustom.sort(function(t,e){return t[0]-e[0]}),o=0;oi.itemsAmount&&i.options.itemsScaleUp===!0&&(i.options.items=i.itemsAmount)},response:function(){var o,i,n=this;return n.options.responsive!==!0?!1:(i=t(e).width(),n.resizer=function(){t(e).width()!==i&&(n.options.autoPlay!==!1&&e.clearInterval(n.autoPlayInterval),e.clearTimeout(o),o=e.setTimeout(function(){i=t(e).width(),n.updateVars()},n.options.responsiveRefreshRate))},void t(e).resize(n.resizer))},updatePosition:function(){var t=this;t.jumpTo(t.currentItem),t.options.autoPlay!==!1&&t.checkAp()},appendItemsSizes:function(){var e=this,o=0,i=e.itemsAmount-e.options.items;e.$owlItems.each(function(n){var s=t(this);s.css({width:e.itemWidth}).data("owl-item",Number(n)),(n%e.options.items===0||n===i)&&(n>i||(o+=1)),s.data("owl-roundPages",o)})},appendWrapperSizes:function(){var t=this,e=t.$owlItems.length*t.itemWidth;t.$owlWrapper.css({width:2*e,left:0}),t.appendItemsSizes()},calculateAll:function(){var t=this;t.calculateWidth(),t.appendWrapperSizes(),t.loops(),t.max()},calculateWidth:function(){var t=this;t.itemWidth=Math.round(t.$elem.width()/t.options.items)},max:function(){var t=this,e=-1*(t.itemsAmount*t.itemWidth-t.options.items*t.itemWidth);return t.options.items>t.itemsAmount?(t.maximumItem=0,e=0,t.maximumPixels=0):(t.maximumItem=t.itemsAmount-t.options.items,t.maximumPixels=e),e},min:function(){return 0},loops:function(){var e,o,i,n=this,s=0,a=0;for(n.positionsInArray=[0],n.pagesInArray=[],e=0;e').toggleClass("clickable",!e.browser.isTouch).appendTo(e.$elem)),e.options.pagination===!0&&e.buildPagination(),e.options.navigation===!0&&e.buildButtons()},buildButtons:function(){var e=this,o=t('
');e.owlControls.append(o),e.buttonPrev=t("
",{"class":"owl-prev",html:e.options.navigationText[0]||""}),e.buttonNext=t("
",{"class":"owl-next",html:e.options.navigationText[1]||""}),o.append(e.buttonPrev).append(e.buttonNext),o.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(t){t.preventDefault()}),o.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(o){o.preventDefault(),t(this).hasClass("owl-next")?e.next():e.prev()})},buildPagination:function(){var e=this;e.paginationWrapper=t('
'),e.owlControls.append(e.paginationWrapper),e.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(o){o.preventDefault(),Number(t(this).data("owl-page"))!==e.currentItem&&e.goTo(Number(t(this).data("owl-page")),!0)})},updatePagination:function(){var e,o,i,n,s,a,r=this;if(r.options.pagination===!1)return!1;for(r.paginationWrapper.html(""),e=0,o=r.itemsAmount-r.itemsAmount%r.options.items,n=0;n",{"class":"owl-page"}),a=t("",{text:r.options.paginationNumbers===!0?e:"","class":r.options.paginationNumbers===!0?"owl-numbers":""}),s.append(a),s.data("owl-page",o===n?i:n),s.data("owl-roundPages",e),r.paginationWrapper.append(s));r.checkPagination()},checkPagination:function(){var e=this;return e.options.pagination===!1?!1:void e.paginationWrapper.find(".owl-page").each(function(){t(this).data("owl-roundPages")===t(e.$owlItems[e.currentItem]).data("owl-roundPages")&&(e.paginationWrapper.find(".owl-page").removeClass("active"),t(this).addClass("active"))})},checkNavigation:function(){var t=this;return t.options.navigation===!1?!1:void(t.options.rewindNav===!1&&(0===t.currentItem&&0===t.maximumItem?(t.buttonPrev.addClass("disabled"),t.buttonNext.addClass("disabled")):0===t.currentItem&&0!==t.maximumItem?(t.buttonPrev.addClass("disabled"),t.buttonNext.removeClass("disabled")):t.currentItem===t.maximumItem?(t.buttonPrev.removeClass("disabled"),t.buttonNext.addClass("disabled")):0!==t.currentItem&&t.currentItem!==t.maximumItem&&(t.buttonPrev.removeClass("disabled"),t.buttonNext.removeClass("disabled"))))},updateControls:function(){var t=this;t.updatePagination(),t.checkNavigation(),t.owlControls&&(t.options.items>=t.itemsAmount?t.owlControls.hide():t.owlControls.show())},destroyControls:function(){var t=this;t.owlControls&&t.owlControls.remove()},next:function(t){var e=this;if(e.isTransition)return!1;if(e.currentItem+=e.options.scrollPerPage===!0?e.options.items:1,e.currentItem>e.maximumItem+(e.options.scrollPerPage===!0?e.options.items-1:0)){if(e.options.rewindNav!==!0)return e.currentItem=e.maximumItem,!1;e.currentItem=0,t="rewind"}e.goTo(e.currentItem,t)},prev:function(t){var e=this;if(e.isTransition)return!1;if(e.options.scrollPerPage===!0&&e.currentItem>0&&e.currentItem=s.maximumItem?t=s.maximumItem:0>=t&&(t=0),s.currentItem=s.owl.currentItem=t,s.options.transitionStyle!==!1&&"drag"!==i&&1===s.options.items&&s.browser.support3d===!0?(s.swapSpeed(0),s.browser.support3d===!0?s.transition3d(s.positionsInArray[t]):s.css2slide(s.positionsInArray[t],1),s.afterGo(),s.singleItemTransition(),!1):(n=s.positionsInArray[t],s.browser.support3d===!0?(s.isCss3Finish=!1,o===!0?(s.swapSpeed("paginationSpeed"),e.setTimeout(function(){s.isCss3Finish=!0},s.options.paginationSpeed)):"rewind"===o?(s.swapSpeed(s.options.rewindSpeed),e.setTimeout(function(){s.isCss3Finish=!0},s.options.rewindSpeed)):(s.swapSpeed("slideSpeed"),e.setTimeout(function(){s.isCss3Finish=!0},s.options.slideSpeed)),s.transition3d(n)):o===!0?s.css2slide(n,s.options.paginationSpeed):"rewind"===o?s.css2slide(n,s.options.rewindSpeed):s.css2slide(n,s.options.slideSpeed),void s.afterGo()))},jumpTo:function(t){var e=this;"function"==typeof e.options.beforeMove&&e.options.beforeMove.apply(this,[e.$elem]),t>=e.maximumItem||-1===t?t=e.maximumItem:0>=t&&(t=0),e.swapSpeed(0),e.browser.support3d===!0?e.transition3d(e.positionsInArray[t]):e.css2slide(e.positionsInArray[t],1),e.currentItem=e.owl.currentItem=t,e.afterGo()},afterGo:function(){var t=this;t.prevArr.push(t.currentItem),t.prevItem=t.owl.prevItem=t.prevArr[t.prevArr.length-2],t.prevArr.shift(0),t.prevItem!==t.currentItem&&(t.checkPagination(),t.checkNavigation(),t.eachMoveUpdate(),t.options.autoPlay!==!1&&t.checkAp()),"function"==typeof t.options.afterMove&&t.prevItem!==t.currentItem&&t.options.afterMove.apply(this,[t.$elem])},stop:function(){var t=this;t.apStatus="stop",e.clearInterval(t.autoPlayInterval)},checkAp:function(){var t=this;"stop"!==t.apStatus&&t.play()},play:function(){var t=this;return t.apStatus="play",t.options.autoPlay===!1?!1:(e.clearInterval(t.autoPlayInterval),void(t.autoPlayInterval=e.setInterval(function(){t.next(!0)},t.options.autoPlay)))},swapSpeed:function(t){var e=this;"slideSpeed"===t?e.$owlWrapper.css(e.addCssSpeed(e.options.slideSpeed)):"paginationSpeed"===t?e.$owlWrapper.css(e.addCssSpeed(e.options.paginationSpeed)):"string"!=typeof t&&e.$owlWrapper.css(e.addCssSpeed(t))},addCssSpeed:function(t){return{"-webkit-transition":"all "+t+"ms ease","-moz-transition":"all "+t+"ms ease","-o-transition":"all "+t+"ms ease",transition:"all "+t+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(t){return{"-webkit-transform":"translate3d("+t+"px, 0px, 0px)","-moz-transform":"translate3d("+t+"px, 0px, 0px)","-o-transform":"translate3d("+t+"px, 0px, 0px)","-ms-transform":"translate3d("+t+"px, 0px, 0px)",transform:"translate3d("+t+"px, 0px,0px)"}},transition3d:function(t){var e=this;e.$owlWrapper.css(e.doTranslate(t))},css2move:function(t){var e=this;e.$owlWrapper.css({left:t})},css2slide:function(t,e){var o=this;o.isCssFinish=!1,o.$owlWrapper.stop(!0,!0).animate({left:t},{duration:e||o.options.slideSpeed,complete:function(){o.isCssFinish=!0}})},checkBrowser:function(){var t,i,n,s,a=this,r="translate3d(0px, 0px, 0px)",l=o.createElement("div");l.style.cssText=" -moz-transform:"+r+"; -ms-transform:"+r+"; -o-transform:"+r+"; -webkit-transform:"+r+"; transform:"+r,t=/translate3d\(0px, 0px, 0px\)/g,i=l.style.cssText.match(t),n=null!==i&&1===i.length,s="ontouchstart"in e||e.navigator.msMaxTouchPoints,a.browser={support3d:n,isTouch:s}},moveEvents:function(){var t=this;(t.options.mouseDrag!==!1||t.options.touchDrag!==!1)&&(t.gestures(),t.disabledEvents())},eventTypes:function(){var t=this,e=["s","e","x"];t.ev_types={},t.options.mouseDrag===!0&&t.options.touchDrag===!0?e=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]:t.options.mouseDrag===!1&&t.options.touchDrag===!0?e=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:t.options.mouseDrag===!0&&t.options.touchDrag===!1&&(e=["mousedown.owl","mousemove.owl","mouseup.owl"]),t.ev_types.start=e[0],t.ev_types.move=e[1],t.ev_types.end=e[2]},disabledEvents:function(){var e=this;e.$elem.on("dragstart.owl",function(t){t.preventDefault()}),e.$elem.on("mousedown.disableTextSelect",function(e){return t(e.target).is("input, textarea, select, option")})},gestures:function(){function i(t){if(void 0!==t.touches)return{x:t.touches[0].pageX,y:t.touches[0].pageY};if(void 0===t.touches){if(void 0!==t.pageX)return{x:t.pageX,y:t.pageY};if(void 0===t.pageX)return{x:t.clientX,y:t.clientY}}}function n(e){"on"===e?(t(o).on(l.ev_types.move,a),t(o).on(l.ev_types.end,r)):"off"===e&&(t(o).off(l.ev_types.move),t(o).off(l.ev_types.end))}function s(o){var s,a=o.originalEvent||o||e.event;if(3===a.which)return!1;if(!(l.itemsAmount<=l.options.items)){if(l.isCssFinish===!1&&!l.options.dragBeforeAnimFinish)return!1;if(l.isCss3Finish===!1&&!l.options.dragBeforeAnimFinish)return!1;l.options.autoPlay!==!1&&e.clearInterval(l.autoPlayInterval),l.browser.isTouch===!0||l.$owlWrapper.hasClass("grabbing")||l.$owlWrapper.addClass("grabbing"),l.newPosX=0,l.newRelativeX=0,t(this).css(l.removeTransition()),s=t(this).position(),p.relativePos=s.left,p.offsetX=i(a).x-s.left,p.offsetY=i(a).y-s.top,n("on"),p.sliding=!1,p.targetElement=a.target||a.srcElement}}function a(n){var s,a,r=n.originalEvent||n||e.event;l.newPosX=i(r).x-p.offsetX,l.newPosY=i(r).y-p.offsetY,l.newRelativeX=l.newPosX-p.relativePos,"function"==typeof l.options.startDragging&&p.dragging!==!0&&0!==l.newRelativeX&&(p.dragging=!0,l.options.startDragging.apply(l,[l.$elem])),(l.newRelativeX>8||l.newRelativeX<-8)&&l.browser.isTouch===!0&&(void 0!==r.preventDefault?r.preventDefault():r.returnValue=!1,p.sliding=!0),(l.newPosY>10||l.newPosY<-10)&&p.sliding===!1&&t(o).off("touchmove.owl"),s=function(){return l.newRelativeX/5},a=function(){return l.maximumPixels+l.newRelativeX/5},l.newPosX=Math.max(Math.min(l.newPosX,s()),a()),l.browser.support3d===!0?l.transition3d(l.newPosX):l.css2move(l.newPosX)}function r(o){var i,s,a,r=o.originalEvent||o||e.event;r.target=r.target||r.srcElement,p.dragging=!1,l.browser.isTouch!==!0&&l.$owlWrapper.removeClass("grabbing"),l.dragDirection=l.owl.dragDirection=l.newRelativeX<0?"left":"right",0!==l.newRelativeX&&(i=l.getNewPosition(),l.goTo(i,!1,"drag"),p.targetElement===r.target&&l.browser.isTouch!==!0&&(t(r.target).on("click.disable",function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t(e.target).off("click.disable")}),s=t._data(r.target,"events").click,a=s.pop(),s.splice(0,0,a))),n("off")}var l=this,p={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};l.isCssFinish=!0,l.$elem.on(l.ev_types.start,".owl-wrapper",s)},getNewPosition:function(){var t=this,e=t.closestItem();return e>t.maximumItem?(t.currentItem=t.maximumItem,e=t.maximumItem):t.newPosX>=0&&(e=0,t.currentItem=0),e},closestItem:function(){var e=this,o=e.options.scrollPerPage===!0?e.pagesInArray:e.positionsInArray,i=e.newPosX,n=null;return t.each(o,function(s,a){i-e.itemWidth/20>o[s+1]&&i-e.itemWidth/20(o[s+1]||o[s]-e.itemWidth)&&"right"===e.moveDirection()&&(e.options.scrollPerPage===!0?(n=o[s+1]||o[o.length-1],e.currentItem=t.inArray(n,e.positionsInArray)):(n=o[s+1],e.currentItem=s+1))}),e.currentItem},moveDirection:function(){var t,e=this;return e.newRelativeX<0?(t="right",e.playDirection="next"):(t="left",e.playDirection="prev"),t},customEvents:function(){var t=this;t.$elem.on("owl.next",function(){t.next()}),t.$elem.on("owl.prev",function(){t.prev()}),t.$elem.on("owl.play",function(e,o){t.options.autoPlay=o,t.play(),t.hoverStatus="play"}),t.$elem.on("owl.stop",function(){t.stop(),t.hoverStatus="stop"}),t.$elem.on("owl.goTo",function(e,o){t.goTo(o)}),t.$elem.on("owl.jumpTo",function(e,o){t.jumpTo(o)})},stopOnHover:function(){var t=this;t.options.stopOnHover===!0&&t.browser.isTouch!==!0&&t.options.autoPlay!==!1&&(t.$elem.on("mouseover",function(){t.stop()}),t.$elem.on("mouseout",function(){"stop"!==t.hoverStatus&&t.play()}))},lazyLoad:function(){var e,o,i,n,s,a=this;if(a.options.lazyLoad===!1)return!1;for(e=0;e=a.currentItem:!0,s&&i=r?e.setTimeout(n,100):i()}var s,a=this,r=0;"DIV"===o.prop("tagName")?(o.css("background-image","url("+o.data("src")+")"),s=!0):o[0].src=o.data("src"),n()},autoHeight:function(){function o(){var o=t(s.$owlItems[s.currentItem]).height();s.wrapperOuter.css("height",o+"px"),s.wrapperOuter.hasClass("autoHeight")||e.setTimeout(function(){s.wrapperOuter.addClass("autoHeight")},0)}function i(){n+=1,s.completeImg(a.get(0))?o():100>=n?e.setTimeout(i,100):s.wrapperOuter.css("height","")}var n,s=this,a=t(s.$owlItems[s.currentItem]).find("img");void 0!==a.get(0)?(n=0,i()):o()},completeImg:function(t){var e;return t.complete?(e=typeof t.naturalWidth,"undefined"!==e&&0===t.naturalWidth?!1:!0):!1},onVisibleItems:function(){var e,o=this;for(o.options.addClassActive===!0&&o.$owlItems.removeClass("active"),o.visibleItems=[],e=o.currentItem;e=i.$userItems.length||-1===o?i.$userItems.eq(-1).after(t):i.$userItems.eq(o).before(t),void i.setVars()):!1},removeItem:function(t){var e,o=this;return 0===o.$elem.children().length?!1:(e=void 0===t||-1===t?-1:t,o.unWrap(),o.$userItems.eq(e).remove(),void o.setVars())}};t.fn.owlCarousel=function(e){return this.each(function(){if(t(this).data("owl-init")===!0)return!1;t(this).data("owl-init",!0);var o=Object.create(i);o.init(e,this),t.data(this,"owlCarousel",o)})},t.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:e,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}}(jQuery,window,document); }else{ "function"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),function(t,e,o){var i={init:function(e,o){var i=this;i.$elem=t(o),i.options=t.extend({},t.fn.owlCarousel.options,i.$elem.data(),e),i.userOptions=e,i.loadContent()},loadContent:function(){function e(t){var e,o="";if("function"==typeof i.options.jsonSuccess)i.options.jsonSuccess.apply(this,[t]);else{for(e in t.owl)t.owl.hasOwnProperty(e)&&(o+=t.owl[e].item);i.$elem.html(o)}i.logIn()}var o,i=this;"function"==typeof i.options.beforeInit&&i.options.beforeInit.apply(this,[i.$elem]),"string"==typeof i.options.jsonPath?(o=i.options.jsonPath,t.getJSON(o,e)):i.logIn()},logIn:function(){var t=this;t.$elem.data({"owl-originalStyles":t.$elem.attr("style"),"owl-originalClasses":t.$elem.attr("class")}),t.$elem.css({opacity:0}),t.orignalItems=t.options.items,t.checkBrowser(),t.wrapperWidth=0,t.checkVisible=null,t.setVars()},setVars:function(){var t=this;return 0===t.$elem.children().length?!1:(t.baseClass(),t.eventTypes(),t.$userItems=t.$elem.children(),t.itemsAmount=t.$userItems.length,t.wrapItems(),t.$owlItems=t.$elem.find(".owl-item"),t.$owlWrapper=t.$elem.find(".owl-wrapper"),t.playDirection="next",t.prevItem=0,t.prevArr=[0],t.currentItem=0,t.customEvents(),void t.onStartup())},onStartup:function(){var t=this;t.updateItems(),t.calculateAll(),t.buildControls(),t.updateControls(),t.response(),t.moveEvents(),t.stopOnHover(),t.owlStatus(),t.options.transitionStyle!==!1&&t.transitionTypes(t.options.transitionStyle),t.options.autoPlay===!0&&(t.options.autoPlay=5e3),t.play(),t.$elem.find(".owl-wrapper").css("display","block"),t.$elem.is(":visible")?t.$elem.css("opacity",1):t.watchVisibility(),t.onstartup=!1,t.eachMoveUpdate(),"function"==typeof t.options.afterInit&&t.options.afterInit.apply(this,[t.$elem])},eachMoveUpdate:function(){var t=this;t.options.lazyLoad===!0&&t.lazyLoad(),t.options.autoHeight===!0&&t.autoHeight(),t.onVisibleItems(),"function"==typeof t.options.afterAction&&t.options.afterAction.apply(this,[t.$elem])},updateVars:function(){var t=this;"function"==typeof t.options.beforeUpdate&&t.options.beforeUpdate.apply(this,[t.$elem]),t.watchVisibility(),t.updateItems(),t.calculateAll(),t.updatePosition(),t.updateControls(),t.eachMoveUpdate(),"function"==typeof t.options.afterUpdate&&t.options.afterUpdate.apply(this,[t.$elem])},reload:function(){var t=this;e.setTimeout(function(){t.updateVars()},0)},watchVisibility:function(){var t=this;return t.$elem.is(":visible")!==!1?!1:(t.$elem.css({opacity:0}),e.clearInterval(t.autoPlayInterval),e.clearInterval(t.checkVisible),void(t.checkVisible=e.setInterval(function(){t.$elem.is(":visible")&&(t.reload(),t.$elem.animate({opacity:1},200),e.clearInterval(t.checkVisible))},500)))},wrapItems:function(){var t=this;t.$userItems.wrapAll('
').wrap('
'),t.$elem.find(".owl-wrapper").wrap('
'),t.wrapperOuter=t.$elem.find(".owl-wrapper-outer"),t.$elem.css("display","block")},baseClass:function(){var t=this,e=t.$elem.hasClass(t.options.baseClass),o=t.$elem.hasClass(t.options.theme);e||t.$elem.addClass(t.options.baseClass),o||t.$elem.addClass(t.options.theme)},updateItems:function(){var e,o,i=this;if(i.options.responsive===!1)return!1;if(i.options.singleItem===!0)return i.options.items=i.orignalItems=1,i.options.itemsCustom=!1,i.options.itemsDesktop=!1,i.options.itemsDesktopSmall=!1,i.options.itemsTablet=!1,i.options.itemsTabletSmall=!1,i.options.itemsMobile=!1,!1;if(e=t(i.options.responsiveBaseWidth).width(),e>(i.options.itemsDesktop[0]||i.orignalItems)&&(i.options.items=i.orignalItems),i.options.itemsCustom!==!1)for(i.options.itemsCustom.sort(function(t,e){return t[0]-e[0]}),o=0;oi.itemsAmount&&i.options.itemsScaleUp===!0&&(i.options.items=i.itemsAmount)},response:function(){var o,i,n=this;return n.options.responsive!==!0?!1:(i=t(e).width(),n.resizer=function(){t(e).width()!==i&&(n.options.autoPlay!==!1&&e.clearInterval(n.autoPlayInterval),e.clearTimeout(o),o=e.setTimeout(function(){i=t(e).width(),n.updateVars()},n.options.responsiveRefreshRate))},void t(e).resize(n.resizer))},updatePosition:function(){var t=this;t.jumpTo(t.currentItem),t.options.autoPlay!==!1&&t.checkAp()},appendItemsSizes:function(){var e=this,o=0,i=e.itemsAmount-e.options.items;e.$owlItems.each(function(n){var s=t(this);s.css({width:e.itemWidth}).data("owl-item",Number(n)),(n%e.options.items===0||n===i)&&(n>i||(o+=1)),s.data("owl-roundPages",o)})},appendWrapperSizes:function(){var t=this,e=t.$owlItems.length*t.itemWidth;t.$owlWrapper.css({width:2*e,left:0}),t.appendItemsSizes()},calculateAll:function(){var t=this;t.calculateWidth(),t.appendWrapperSizes(),t.loops(),t.max()},calculateWidth:function(){var t=this;t.itemWidth=Math.round(t.$elem.width()/t.options.items)},max:function(){var t=this,e=-1*(t.itemsAmount*t.itemWidth-t.options.items*t.itemWidth);return t.options.items>t.itemsAmount?(t.maximumItem=0,e=0,t.maximumPixels=0):(t.maximumItem=t.itemsAmount-t.options.items,t.maximumPixels=e),e},min:function(){return 0},loops:function(){var e,o,i,n=this,s=0,a=0;for(n.positionsInArray=[0],n.pagesInArray=[],e=0;e').toggleClass("clickable",!e.browser.isTouch).appendTo(e.$elem)),e.options.pagination===!0&&e.buildPagination(),e.options.navigation===!0&&e.buildButtons()},buildButtons:function(){var e=this,o=t('
');e.owlControls.append(o),e.buttonPrev=t("
",{"class":"owl-prev",html:e.options.navigationText[0]||""}),e.buttonNext=t("
",{"class":"owl-next",html:e.options.navigationText[1]||""}),o.append(e.buttonPrev).append(e.buttonNext),o.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(t){t.preventDefault()}),o.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(o){o.preventDefault(),t(this).hasClass("owl-next")?e.next():e.prev()})},buildPagination:function(){var e=this;e.paginationWrapper=t('
'),e.owlControls.append(e.paginationWrapper),e.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(o){o.preventDefault(),Number(t(this).data("owl-page"))!==e.currentItem&&e.goTo(Number(t(this).data("owl-page")),!0)})},updatePagination:function(){var e,o,i,n,s,a,r=this;if(r.options.pagination===!1)return!1;for(r.paginationWrapper.html(""),e=0,o=r.itemsAmount-r.itemsAmount%r.options.items,n=0;n",{"class":"owl-page"}),a=t("",{text:r.options.paginationNumbers===!0?e:"","class":r.options.paginationNumbers===!0?"owl-numbers":""}),s.append(a),s.data("owl-page",o===n?i:n),s.data("owl-roundPages",e),r.paginationWrapper.append(s));r.checkPagination()},checkPagination:function(){var e=this;return e.options.pagination===!1?!1:void e.paginationWrapper.find(".owl-page").each(function(){t(this).data("owl-roundPages")===t(e.$owlItems[e.currentItem]).data("owl-roundPages")&&(e.paginationWrapper.find(".owl-page").removeClass("active"),t(this).addClass("active"))})},checkNavigation:function(){var t=this;return t.options.navigation===!1?!1:void(t.options.rewindNav===!1&&(0===t.currentItem&&0===t.maximumItem?(t.buttonPrev.addClass("disabled"),t.buttonNext.addClass("disabled")):0===t.currentItem&&0!==t.maximumItem?(t.buttonPrev.addClass("disabled"),t.buttonNext.removeClass("disabled")):t.currentItem===t.maximumItem?(t.buttonPrev.removeClass("disabled"),t.buttonNext.addClass("disabled")):0!==t.currentItem&&t.currentItem!==t.maximumItem&&(t.buttonPrev.removeClass("disabled"),t.buttonNext.removeClass("disabled"))))},updateControls:function(){var t=this;t.updatePagination(),t.checkNavigation(),t.owlControls&&(t.options.items>=t.itemsAmount?t.owlControls.hide():t.owlControls.show())},destroyControls:function(){var t=this;t.owlControls&&t.owlControls.remove()},next:function(t){var e=this;if(e.isTransition)return!1;if(e.currentItem+=e.options.scrollPerPage===!0?e.options.items:1,e.currentItem>e.maximumItem+(e.options.scrollPerPage===!0?e.options.items-1:0)){if(e.options.rewindNav!==!0)return e.currentItem=e.maximumItem,!1;e.currentItem=0,t="rewind"}e.goTo(e.currentItem,t)},prev:function(t){var e=this;if(e.isTransition)return!1;if(e.options.scrollPerPage===!0&&e.currentItem>0&&e.currentItem=s.maximumItem?t=s.maximumItem:0>=t&&(t=0),s.currentItem=s.owl.currentItem=t,s.options.transitionStyle!==!1&&"drag"!==i&&1===s.options.items&&s.browser.support3d===!0?(s.swapSpeed(0),s.browser.support3d===!0?s.transition3d(s.positionsInArray[t]):s.css2slide(s.positionsInArray[t],1),s.afterGo(),s.singleItemTransition(),!1):(n=s.positionsInArray[t],s.browser.support3d===!0?(s.isCss3Finish=!1,o===!0?(s.swapSpeed("paginationSpeed"),e.setTimeout(function(){s.isCss3Finish=!0},s.options.paginationSpeed)):"rewind"===o?(s.swapSpeed(s.options.rewindSpeed),e.setTimeout(function(){s.isCss3Finish=!0},s.options.rewindSpeed)):(s.swapSpeed("slideSpeed"),e.setTimeout(function(){s.isCss3Finish=!0},s.options.slideSpeed)),s.transition3d(n)):o===!0?s.css2slide(n,s.options.paginationSpeed):"rewind"===o?s.css2slide(n,s.options.rewindSpeed):s.css2slide(n,s.options.slideSpeed),void s.afterGo()))},jumpTo:function(t){var e=this;"function"==typeof e.options.beforeMove&&e.options.beforeMove.apply(this,[e.$elem]),t>=e.maximumItem||-1===t?t=e.maximumItem:0>=t&&(t=0),e.swapSpeed(0),e.browser.support3d===!0?e.transition3d(e.positionsInArray[t]):e.css2slide(e.positionsInArray[t],1),e.currentItem=e.owl.currentItem=t,e.afterGo()},afterGo:function(){var t=this;t.prevArr.push(t.currentItem),t.prevItem=t.owl.prevItem=t.prevArr[t.prevArr.length-2],t.prevArr.shift(0),t.prevItem!==t.currentItem&&(t.checkPagination(),t.checkNavigation(),t.eachMoveUpdate(),t.options.autoPlay!==!1&&t.checkAp()),"function"==typeof t.options.afterMove&&t.prevItem!==t.currentItem&&t.options.afterMove.apply(this,[t.$elem])},stop:function(){var t=this;t.apStatus="stop",e.clearInterval(t.autoPlayInterval)},checkAp:function(){var t=this;"stop"!==t.apStatus&&t.play()},play:function(){var t=this;return t.apStatus="play",t.options.autoPlay===!1?!1:(e.clearInterval(t.autoPlayInterval),void(t.autoPlayInterval=e.setInterval(function(){t.next(!0)},t.options.autoPlay)))},swapSpeed:function(t){var e=this;"slideSpeed"===t?e.$owlWrapper.css(e.addCssSpeed(e.options.slideSpeed)):"paginationSpeed"===t?e.$owlWrapper.css(e.addCssSpeed(e.options.paginationSpeed)):"string"!=typeof t&&e.$owlWrapper.css(e.addCssSpeed(t))},addCssSpeed:function(t){return{"-webkit-transition":"all "+t+"ms ease","-moz-transition":"all "+t+"ms ease","-o-transition":"all "+t+"ms ease",transition:"all "+t+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(t){return{"-webkit-transform":"translate3d("+t+"px, 0px, 0px)","-moz-transform":"translate3d("+t+"px, 0px, 0px)","-o-transform":"translate3d("+t+"px, 0px, 0px)","-ms-transform":"translate3d("+t+"px, 0px, 0px)",transform:"translate3d("+t+"px, 0px,0px)"}},transition3d:function(t){var e=this;e.$owlWrapper.css(e.doTranslate(t))},css2move:function(t){var e=this;e.$owlWrapper.css({left:t})},css2slide:function(t,e){var o=this;o.isCssFinish=!1,o.$owlWrapper.stop(!0,!0).animate({left:t},{duration:e||o.options.slideSpeed,complete:function(){o.isCssFinish=!0}})},checkBrowser:function(){var t,i,n,s,a=this,r="translate3d(0px, 0px, 0px)",l=o.createElement("div");l.style.cssText=" -moz-transform:"+r+"; -ms-transform:"+r+"; -o-transform:"+r+"; -webkit-transform:"+r+"; transform:"+r,t=/translate3d\(0px, 0px, 0px\)/g,i=l.style.cssText.match(t),n=null!==i&&i.length>=1,s="ontouchstart"in e||e.navigator.msMaxTouchPoints,a.browser={support3d:n,isTouch:s}},moveEvents:function(){var t=this;(t.options.mouseDrag!==!1||t.options.touchDrag!==!1)&&(t.gestures(),t.disabledEvents())},eventTypes:function(){var t=this,e=["s","e","x"];t.ev_types={},t.options.mouseDrag===!0&&t.options.touchDrag===!0?e=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]:t.options.mouseDrag===!1&&t.options.touchDrag===!0?e=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:t.options.mouseDrag===!0&&t.options.touchDrag===!1&&(e=["mousedown.owl","mousemove.owl","mouseup.owl"]),t.ev_types.start=e[0],t.ev_types.move=e[1],t.ev_types.end=e[2]},disabledEvents:function(){var e=this;e.$elem.on("dragstart.owl",function(t){t.preventDefault()}),e.$elem.on("mousedown.disableTextSelect",function(e){return t(e.target).is("input, textarea, select, option")})},gestures:function(){function i(t){if(void 0!==t.touches)return{x:t.touches[0].pageX,y:t.touches[0].pageY};if(void 0===t.touches){if(void 0!==t.pageX)return{x:t.pageX,y:t.pageY};if(void 0===t.pageX)return{x:t.clientX,y:t.clientY}}}function n(e){"on"===e?(t(o).on(l.ev_types.move,a),t(o).on(l.ev_types.end,r)):"off"===e&&(t(o).off(l.ev_types.move),t(o).off(l.ev_types.end))}function s(o){var s,a=o.originalEvent||o||e.event;if(3===a.which)return!1;if(!(l.itemsAmount<=l.options.items)){if(l.isCssFinish===!1&&!l.options.dragBeforeAnimFinish)return!1;if(l.isCss3Finish===!1&&!l.options.dragBeforeAnimFinish)return!1;l.options.autoPlay!==!1&&e.clearInterval(l.autoPlayInterval),l.browser.isTouch===!0||l.$owlWrapper.hasClass("grabbing")||l.$owlWrapper.addClass("grabbing"),l.newPosX=0,l.newRelativeX=0,t(this).css(l.removeTransition()),s=t(this).position(),p.relativePos=s.left,p.offsetX=i(a).x-s.left,p.offsetY=i(a).y-s.top,n("on"),p.sliding=!1,p.targetElement=a.target||a.srcElement}}function a(n){var s,a,r=n.originalEvent||n||e.event;l.newPosX=i(r).x-p.offsetX,l.newPosY=i(r).y-p.offsetY,l.newRelativeX=l.newPosX-p.relativePos,"function"==typeof l.options.startDragging&&p.dragging!==!0&&0!==l.newRelativeX&&(p.dragging=!0,l.options.startDragging.apply(l,[l.$elem])),(l.newRelativeX>8||l.newRelativeX<-8)&&l.browser.isTouch===!0&&(void 0!==r.preventDefault?r.preventDefault():r.returnValue=!1,p.sliding=!0),(l.newPosY>10||l.newPosY<-10)&&p.sliding===!1&&t(o).off("touchmove.owl"),s=function(){return l.newRelativeX/5},a=function(){return l.maximumPixels+l.newRelativeX/5},l.newPosX=Math.max(Math.min(l.newPosX,s()),a()),l.browser.support3d===!0?l.transition3d(l.newPosX):l.css2move(l.newPosX)}function r(o){var i,s,a,r=o.originalEvent||o||e.event;r.target=r.target||r.srcElement,p.dragging=!1,l.browser.isTouch!==!0&&l.$owlWrapper.removeClass("grabbing"),l.dragDirection=l.owl.dragDirection=l.newRelativeX<0?"left":"right",0!==l.newRelativeX&&(i=l.getNewPosition(),l.goTo(i,!1,"drag"),p.targetElement===r.target&&l.browser.isTouch!==!0&&(t(r.target).on("click.disable",function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t(e.target).off("click.disable")}),s=t._data(r.target,"events").click,a=s.pop(),s.splice(0,0,a))),n("off")}var l=this,p={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};l.isCssFinish=!0,l.$elem.on(l.ev_types.start,".owl-wrapper",s)},getNewPosition:function(){var t=this,e=t.closestItem();return e>t.maximumItem?(t.currentItem=t.maximumItem,e=t.maximumItem):t.newPosX>=0&&(e=0,t.currentItem=0),e},closestItem:function(){var e=this,o=e.options.scrollPerPage===!0?e.pagesInArray:e.positionsInArray,i=e.newPosX,n=null;return t.each(o,function(s,a){i-e.itemWidth/20>o[s+1]&&i-e.itemWidth/20(o[s+1]||o[s]-e.itemWidth)&&"right"===e.moveDirection()&&(e.options.scrollPerPage===!0?(n=o[s+1]||o[o.length-1],e.currentItem=t.inArray(n,e.positionsInArray)):(n=o[s+1],e.currentItem=s+1))}),e.currentItem},moveDirection:function(){var t,e=this;return e.newRelativeX<0?(t="right",e.playDirection="next"):(t="left",e.playDirection="prev"),t},customEvents:function(){var t=this;t.$elem.on("owl.next",function(){t.next()}),t.$elem.on("owl.prev",function(){t.prev()}),t.$elem.on("owl.play",function(e,o){t.options.autoPlay=o,t.play(),t.hoverStatus="play"}),t.$elem.on("owl.stop",function(){t.stop(),t.hoverStatus="stop"}),t.$elem.on("owl.goTo",function(e,o){t.goTo(o)}),t.$elem.on("owl.jumpTo",function(e,o){t.jumpTo(o)})},stopOnHover:function(){var t=this;t.options.stopOnHover===!0&&t.browser.isTouch!==!0&&t.options.autoPlay!==!1&&(t.$elem.on("mouseover",function(){t.stop()}),t.$elem.on("mouseout",function(){"stop"!==t.hoverStatus&&t.play()}))},lazyLoad:function(){var e,o,i,n,s,a=this;if(a.options.lazyLoad===!1)return!1;for(e=0;e=a.currentItem:!0,s&&i=r?e.setTimeout(n,100):i()}var s,a=this,r=0;"DIV"===o.prop("tagName")?(o.css("background-image","url("+o.data("src")+")"),s=!0):o[0].src=o.data("src"),n()},autoHeight:function(){function o(){var o=t(s.$owlItems[s.currentItem]).height();s.wrapperOuter.css("height",o+"px"),s.wrapperOuter.hasClass("autoHeight")||e.setTimeout(function(){s.wrapperOuter.addClass("autoHeight")},0)}function i(){n+=1,s.completeImg(a.get(0))?o():100>=n?e.setTimeout(i,100):s.wrapperOuter.css("height","")}var n,s=this,a=t(s.$owlItems[s.currentItem]).find("img");void 0!==a.get(0)?(n=0,i()):o()},completeImg:function(t){var e;return t.complete?(e=typeof t.naturalWidth,"undefined"!==e&&0===t.naturalWidth?!1:!0):!1},onVisibleItems:function(){var e,o=this;for(o.options.addClassActive===!0&&o.$owlItems.removeClass("active"),o.visibleItems=[],e=o.currentItem;e=i.$userItems.length||-1===o?i.$userItems.eq(-1).after(t):i.$userItems.eq(o).before(t),void i.setVars()):!1},removeItem:function(t){var e,o=this;return 0===o.$elem.children().length?!1:(e=void 0===t||-1===t?-1:t,o.unWrap(),o.$userItems.eq(e).remove(),void o.setVars())}};t.fn.owlCarousel=function(e){return this.each(function(){if(t(this).data("owl-init")===!0)return!1;t(this).data("owl-init",!0);var o=Object.create(i);o.init(e,this),t.data(this,"owlCarousel",o)})},t.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:e,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}}(jQuery,window,document); } !function(a,b){"object"==typeof exports?module.exports=b(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],b):b(a.jQuery)}(this,function(a){var b=function(a,b){var c,d=document.createElement("canvas");a.appendChild(d),"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(d);var e=d.getContext("2d");d.width=d.height=b.size;var f=1;window.devicePixelRatio>1&&(f=window.devicePixelRatio,d.style.width=d.style.height=[b.size,"px"].join(""),d.width=d.height=b.size*f,e.scale(f,f)),e.translate(b.size/2,b.size/2),e.rotate((-0.5+b.rotate/180)*Math.PI);var g=(b.size-b.lineWidth)/2;b.scaleColor&&b.scaleLength&&(g-=b.scaleLength+2),Date.now=Date.now||function(){return+new Date};var h=function(a,b,c){c=Math.min(Math.max(-1,c||0),1);var d=0>=c?!0:!1;e.beginPath(),e.arc(0,0,g,0,2*Math.PI*c,d),e.strokeStyle=a,e.lineWidth=b,e.stroke()},i=function(){var a,c;e.lineWidth=1,e.fillStyle=b.scaleColor,e.save();for(var d=24;d>0;--d)d%6===0?(c=b.scaleLength,a=0):(c=.6*b.scaleLength,a=b.scaleLength-c),e.fillRect(-b.size/2+a,0,c,1),e.rotate(Math.PI/12);e.restore()},j=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){window.setTimeout(a,1e3/60)}}(),k=function(){b.scaleColor&&i(),b.trackColor&&h(b.trackColor,b.trackWidth||b.lineWidth,1)};this.getCanvas=function(){return d},this.getCtx=function(){return e},this.clear=function(){e.clearRect(b.size/-2,b.size/-2,b.size,b.size)},this.draw=function(a){b.scaleColor||b.trackColor?e.getImageData&&e.putImageData?c?e.putImageData(c,0,0):(k(),c=e.getImageData(0,0,b.size*f,b.size*f)):(this.clear(),k()):this.clear(),e.lineCap=b.lineCap;var d;d="function"==typeof b.barColor?b.barColor(a):b.barColor,h(d,b.lineWidth,a/100)}.bind(this),this.animate=function(a,c){var d=Date.now();b.onStart(a,c);var e=function(){var f=Math.min(Date.now()-d,b.animate.duration),g=b.easing(this,f,a,c-a,b.animate.duration);this.draw(g),b.onStep(a,c,g),f>=b.animate.duration?b.onStop(a,c):j(e)}.bind(this);j(e)}.bind(this)},c=function(a,c){var d={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(a,b,c,d,e){return b/=e/2,1>b?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},onStart:function(){},onStep:function(){},onStop:function(){}};if("undefined"!=typeof b)d.renderer=b;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");d.renderer=SVGRenderer}var e={},f=0,g=function(){this.el=a,this.options=e;for(var b in d)d.hasOwnProperty(b)&&(e[b]=c&&"undefined"!=typeof c[b]?c[b]:d[b],"function"==typeof e[b]&&(e[b]=e[b].bind(this)));e.easing="string"==typeof e.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[e.easing])?jQuery.easing[e.easing]:d.easing,"number"==typeof e.animate&&(e.animate={duration:e.animate,enabled:!0}),"boolean"!=typeof e.animate||e.animate||(e.animate={duration:1e3,enabled:e.animate}),this.renderer=new e.renderer(a,e),this.renderer.draw(f),a.dataset&&a.dataset.percent?this.update(parseFloat(a.dataset.percent)):a.getAttribute&&a.getAttribute("data-percent")&&this.update(parseFloat(a.getAttribute("data-percent")))}.bind(this);this.update=function(a){return a=parseFloat(a),e.animate.enabled?this.renderer.animate(f,a):this.renderer.draw(a),f=a,this}.bind(this),this.disableAnimation=function(){return e.animate.enabled=!1,this},this.enableAnimation=function(){return e.animate.enabled=!0,this},g()};a.fn.easyPieChart=function(b){return this.each(function(){var d;a.data(this,"easyPieChart")||(d=a.extend({},b,a(this).data()),a.data(this,"easyPieChart",new c(this,d)))})}}); !function(t){"use strict";var s=function(s,e){this.el=t(s),this.options=t.extend({},t.fn.typed.defaults,e),this.isInput=this.el.is("input"),this.attr=this.options.attr,this.showCursor=this.isInput?!1:this.options.showCursor,this.elContent=this.attr?this.el.attr(this.attr):this.el.text(),this.contentType=this.options.contentType,this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.stringsElement=this.options.stringsElement,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.cursorChar=this.options.cursorChar,this.shuffle=this.options.shuffle,this.sequence=[],this.build()};s.prototype={constructor:s,init:function(){var t=this;t.timeout=setTimeout(function(){for(var s=0;s'+this.cursorChar+""),this.el.after(this.cursor)),this.stringsElement){this.strings=[],this.stringsElement.hide(),console.log(this.stringsElement.children());var e=this.stringsElement.children();t.each(e,function(e,i){s.strings.push(t(i).html())})}this.init()},typewrite:function(t,s){if(this.stop!==!0){var e=Math.round(70*Math.random())+this.typeSpeed,i=this;i.timeout=setTimeout(function(){var e=0,r=t.substr(s);if("^"===r.charAt(0)){var o=1;/^\^\d+/.test(r)&&(r=/\d+/.exec(r)[0],o+=r.length,e=parseInt(r)),t=t.substring(0,s)+t.substring(s+o)}if("html"===i.contentType){var n=t.substr(s).charAt(0);if("<"===n||"&"===n){var a="",h="";for(h="<"===n?">":";";t.substr(s+1).charAt(0)!==h&&(a+=t.substr(s).charAt(0),s++,!(s+1>t.length)););s++,a+=h}}i.timeout=setTimeout(function(){if(s===t.length){if(i.options.onStringTyped(i.arrayPos),i.arrayPos===i.strings.length-1&&(i.options.callback(),i.curLoop++,i.loop===!1||i.curLoop===i.loopCount))return;i.timeout=setTimeout(function(){i.backspace(t,s)},i.backDelay)}else{0===s&&i.options.preStringTyped(i.arrayPos);var e=t.substr(0,s+1);i.attr?i.el.attr(i.attr,e):i.isInput?i.el.val(e):"html"===i.contentType?i.el.html(e):i.el.text(e),s++,i.typewrite(t,s)}},e)},e)}},backspace:function(t,s){if(this.stop!==!0){var e=Math.round(70*Math.random())+this.backSpeed,i=this;i.timeout=setTimeout(function(){if("html"===i.contentType&&">"===t.substr(s).charAt(0)){for(var e="";"<"!==t.substr(s-1).charAt(0)&&(e-=t.substr(s).charAt(0),s--,!(0>s)););s--,e+="<"}var r=t.substr(0,s);i.attr?i.el.attr(i.attr,r):i.isInput?i.el.val(r):"html"===i.contentType?i.el.html(r):i.el.text(r),s>i.stopNum?(s--,i.backspace(t,s)):s<=i.stopNum&&(i.arrayPos++,i.arrayPos===i.strings.length?(i.arrayPos=0,i.shuffle&&(i.sequence=i.shuffleArray(i.sequence)),i.init()):i.typewrite(i.strings[i.sequence[i.arrayPos]],s))},e)}},shuffleArray:function(t){var s,e,i=t.length;if(i)for(;--i;)e=Math.floor(Math.random()*(i+1)),s=t[e],t[e]=t[i],t[i]=s;return t},reset:function(){var t=this;clearInterval(t.timeout);this.el.attr("id");this.el.empty(),"undefined"!=typeof this.cursor&&this.cursor.remove(),this.strPos=0,this.arrayPos=0,this.curLoop=0,this.options.resetCallback()}},t.fn.typed=function(e){return this.each(function(){var i=t(this),r=i.data("typed"),o="object"==typeof e&&e;r&&r.reset(),i.data("typed",r=new s(this,o)),"string"==typeof e&&r[e]()})},t.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:!1,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,contentType:"html",callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}}(window.jQuery); (function(t){function e(){}function i(t){function i(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})}function n(e,i){t.fn[e]=function(n){if("string"==typeof n){for(var s=o.call(arguments,1),a=0,u=this.length;u>a;a++){var p=this[a],h=t.data(p,e);if(h)if(t.isFunction(h[n])&&"_"!==n.charAt(0)){var f=h[n].apply(h,s);if(void 0!==f)return f}else r("no such method '"+n+"' for "+e+" instance");else r("cannot call methods on "+e+" prior to initialization; "+"attempted to call '"+n+"'")}return this}return this.each(function(){var o=t.data(this,e);o?(o.option(n),o._init()):(o=new i(this,n),t.data(this,e,o))})}}if(t){var r="undefined"==typeof console?e:function(t){console.error(t)};return t.bridget=function(t,e){i(e),n(t,e)},t.bridget}}var o=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],i):i(t.jQuery)})(window),function(t){function e(e){var i=t.event;return i.target=i.target||i.srcElement||e,i}var i=document.documentElement,o=function(){};i.addEventListener?o=function(t,e,i){t.addEventListener(e,i,!1)}:i.attachEvent&&(o=function(t,i,o){t[i+o]=o.handleEvent?function(){var i=e(t);o.handleEvent.call(o,i)}:function(){var i=e(t);o.call(t,i)},t.attachEvent("on"+i,t[i+o])});var n=function(){};i.removeEventListener?n=function(t,e,i){t.removeEventListener(e,i,!1)}:i.detachEvent&&(n=function(t,e,i){t.detachEvent("on"+e,t[e+i]);try{delete t[e+i]}catch(o){t[e+i]=void 0}});var r={bind:o,unbind:n};"function"==typeof define&&define.amd?define("eventie/eventie",r):"object"==typeof exports?module.exports=r:t.eventie=r}(this),function(t){function e(t){"function"==typeof t&&(e.isReady?t():r.push(t))}function i(t){var i="readystatechange"===t.type&&"complete"!==n.readyState;if(!e.isReady&&!i){e.isReady=!0;for(var o=0,s=r.length;s>o;o++){var a=r[o];a()}}}function o(o){return o.bind(n,"DOMContentLoaded",i),o.bind(n,"readystatechange",i),o.bind(t,"load",i),e}var n=t.document,r=[];e.isReady=!1,"function"==typeof define&&define.amd?(e.isReady="function"==typeof requirejs,define("doc-ready/doc-ready",["eventie/eventie"],o)):t.docReady=o(t.eventie)}(this),function(){function t(){}function e(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function i(t){return function(){return this[t].apply(this,arguments)}}var o=t.prototype,n=this,r=n.EventEmitter;o.getListeners=function(t){var e,i,o=this._getEvents();if(t instanceof RegExp){e={};for(i in o)o.hasOwnProperty(i)&&t.test(i)&&(e[i]=o[i])}else e=o[t]||(o[t]=[]);return e},o.flattenListeners=function(t){var e,i=[];for(e=0;t.length>e;e+=1)i.push(t[e].listener);return i},o.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&(e={},e[t]=i),e||i},o.addListener=function(t,i){var o,n=this.getListenersAsObject(t),r="object"==typeof i;for(o in n)n.hasOwnProperty(o)&&-1===e(n[o],i)&&n[o].push(r?i:{listener:i,once:!1});return this},o.on=i("addListener"),o.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},o.once=i("addOnceListener"),o.defineEvent=function(t){return this.getListeners(t),this},o.defineEvents=function(t){for(var e=0;t.length>e;e+=1)this.defineEvent(t[e]);return this},o.removeListener=function(t,i){var o,n,r=this.getListenersAsObject(t);for(n in r)r.hasOwnProperty(n)&&(o=e(r[n],i),-1!==o&&r[n].splice(o,1));return this},o.off=i("removeListener"),o.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},o.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},o.manipulateListeners=function(t,e,i){var o,n,r=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(o=i.length;o--;)r.call(this,e,i[o]);else for(o in e)e.hasOwnProperty(o)&&(n=e[o])&&("function"==typeof n?r.call(this,o,n):s.call(this,o,n));return this},o.removeEvent=function(t){var e,i=typeof t,o=this._getEvents();if("string"===i)delete o[t];else if(t instanceof RegExp)for(e in o)o.hasOwnProperty(e)&&t.test(e)&&delete o[e];else delete this._events;return this},o.removeAllListeners=i("removeEvent"),o.emitEvent=function(t,e){var i,o,n,r,s=this.getListenersAsObject(t);for(n in s)if(s.hasOwnProperty(n))for(o=s[n].length;o--;)i=s[n][o],i.once===!0&&this.removeListener(t,i.listener),r=i.listener.apply(this,e||[]),r===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},o.trigger=i("emitEvent"),o.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},o.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},o._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},o._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return n.EventEmitter=r,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(t){function e(t){if(t){if("string"==typeof o[t])return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e,n=0,r=i.length;r>n;n++)if(e=i[n]+t,"string"==typeof o[e])return e}}var i="Webkit Moz ms Ms O".split(" "),o=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return e}):"object"==typeof exports?module.exports=e:t.getStyleProperty=e}(window),function(t){function e(t){var e=parseFloat(t),i=-1===t.indexOf("%")&&!isNaN(e);return i&&e}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,i=s.length;i>e;e++){var o=s[e];t[o]=0}return t}function o(t){function o(t){if("string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var o=r(t);if("none"===o.display)return i();var n={};n.width=t.offsetWidth,n.height=t.offsetHeight;for(var h=n.isBorderBox=!(!p||!o[p]||"border-box"!==o[p]),f=0,c=s.length;c>f;f++){var d=s[f],l=o[d];l=a(t,l);var y=parseFloat(l);n[d]=isNaN(y)?0:y}var m=n.paddingLeft+n.paddingRight,g=n.paddingTop+n.paddingBottom,v=n.marginLeft+n.marginRight,_=n.marginTop+n.marginBottom,I=n.borderLeftWidth+n.borderRightWidth,L=n.borderTopWidth+n.borderBottomWidth,z=h&&u,S=e(o.width);S!==!1&&(n.width=S+(z?0:m+I));var b=e(o.height);return b!==!1&&(n.height=b+(z?0:g+L)),n.innerWidth=n.width-(m+I),n.innerHeight=n.height-(g+L),n.outerWidth=n.width+v,n.outerHeight=n.height+_,n}}function a(t,e){if(n||-1===e.indexOf("%"))return e;var i=t.style,o=i.left,r=t.runtimeStyle,s=r&&r.left;return s&&(r.left=t.currentStyle.left),i.left=e,e=i.pixelLeft,i.left=o,s&&(r.left=s),e}var u,p=t("boxSizing");return function(){if(p){var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style[p]="border-box";var i=document.body||document.documentElement;i.appendChild(t);var o=r(t);u=200===e(o.width),i.removeChild(t)}}(),o}var n=t.getComputedStyle,r=n?function(t){return n(t,null)}:function(t){return t.currentStyle},s=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],o):"object"==typeof exports?module.exports=o(require("get-style-property")):t.getSize=o(t.getStyleProperty)}(window),function(t,e){function i(t,e){return t[a](e)}function o(t){if(!t.parentNode){var e=document.createDocumentFragment();e.appendChild(t)}}function n(t,e){o(t);for(var i=t.parentNode.querySelectorAll(e),n=0,r=i.length;r>n;n++)if(i[n]===t)return!0;return!1}function r(t,e){return o(t),i(t,e)}var s,a=function(){if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],i=0,o=t.length;o>i;i++){var n=t[i],r=n+"MatchesSelector";if(e[r])return r}}();if(a){var u=document.createElement("div"),p=i(u,"div");s=p?i:r}else s=n;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return s}):window.matchesSelector=s}(this,Element.prototype),function(t){function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t){for(var e in t)return!1;return e=null,!0}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function n(t,n,r){function a(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var u=r("transition"),p=r("transform"),h=u&&p,f=!!r("perspective"),c={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[u],d=["transform","transition","transitionDuration","transitionProperty"],l=function(){for(var t={},e=0,i=d.length;i>e;e++){var o=d[e],n=r(o);n&&n!==o&&(t[o]=n)}return t}();e(a.prototype,t.prototype),a.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},a.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},a.prototype.getSize=function(){this.size=n(this.element)},a.prototype.css=function(t){var e=this.element.style;for(var i in t){var o=l[i]||i;e[o]=t[i]}},a.prototype.getPosition=function(){var t=s(this.element),e=this.layout.options,i=e.isOriginLeft,o=e.isOriginTop,n=parseInt(t[i?"left":"right"],10),r=parseInt(t[o?"top":"bottom"],10);n=isNaN(n)?0:n,r=isNaN(r)?0:r;var a=this.layout.size;n-=i?a.paddingLeft:a.paddingRight,r-=o?a.paddingTop:a.paddingBottom,this.position.x=n,this.position.y=r},a.prototype.layoutPosition=function(){var t=this.layout.size,e=this.layout.options,i={};e.isOriginLeft?(i.left=this.position.x+t.paddingLeft+"px",i.right=""):(i.right=this.position.x+t.paddingRight+"px",i.left=""),e.isOriginTop?(i.top=this.position.y+t.paddingTop+"px",i.bottom=""):(i.bottom=this.position.y+t.paddingBottom+"px",i.top=""),this.css(i),this.emitEvent("layout",[this])};var y=f?function(t,e){return"translate3d("+t+"px, "+e+"px, 0)"}:function(t,e){return"translate("+t+"px, "+e+"px)"};a.prototype._transitionTo=function(t,e){this.getPosition();var i=this.position.x,o=this.position.y,n=parseInt(t,10),r=parseInt(e,10),s=n===this.position.x&&r===this.position.y;if(this.setPosition(t,e),s&&!this.isTransitioning)return this.layoutPosition(),void 0;var a=t-i,u=e-o,p={},h=this.layout.options;a=h.isOriginLeft?a:-a,u=h.isOriginTop?u:-u,p.transform=y(a,u),this.transition({to:p,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},a.prototype.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},a.prototype.moveTo=h?a.prototype._transitionTo:a.prototype.goTo,a.prototype.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},a.prototype._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},a.prototype._transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return this._nonTransition(t),void 0;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 m=p&&o(p)+",opacity";a.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:m,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(c,this,!1))},a.prototype.transition=a.prototype[u?"_transition":"_nonTransition"],a.prototype.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},a.prototype.onotransitionend=function(t){this.ontransitionend(t)};var g={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};a.prototype.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,o=g[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])}},a.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(c,this,!1),this.isTransitioning=!1},a.prototype._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var v={transitionProperty:"",transitionDuration:""};return a.prototype.removeTransitionStyles=function(){this.css(v)},a.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.emitEvent("remove",[this])},a.prototype.remove=function(){if(!u||!parseFloat(this.layout.options.transitionDuration))return this.removeElem(),void 0;var t=this;this.on("transitionEnd",function(){return t.removeElem(),!0}),this.hide()},a.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options;this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0})},a.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options;this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:{opacity:function(){this.isHidden&&this.css({display:"none"})}}})},a.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a}var r=t.getComputedStyle,s=r?function(t){return r(t,null)}:function(t){return t.currentStyle};"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property"],n):(t.Outlayer={},t.Outlayer.Item=n(t.EventEmitter,t.getSize,t.getStyleProperty))}(window),function(t){function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t){return"[object Array]"===f.call(t)}function o(t){var e=[];if(i(t))e=t;else if(t&&"number"==typeof t.length)for(var o=0,n=t.length;n>o;o++)e.push(t[o]);else e.push(t);return e}function n(t,e){var i=d(e,t);-1!==i&&e.splice(i,1)}function r(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()}function s(i,s,f,d,l,y){function m(t,i){if("string"==typeof t&&(t=a.querySelector(t)),!t||!c(t))return u&&u.error("Bad "+this.constructor.namespace+" element: "+t),void 0;this.element=t,this.options=e({},this.constructor.defaults),this.option(i);var o=++g;this.element.outlayerGUID=o,v[o]=this,this._create(),this.options.isInitLayout&&this.layout()}var g=0,v={};return m.namespace="outlayer",m.Item=y,m.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},e(m.prototype,f.prototype),m.prototype.option=function(t){e(this.options,t)},m.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),e(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},m.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},m.prototype._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,o=[],n=0,r=e.length;r>n;n++){var s=e[n],a=new i(s,this);o.push(a)}return o},m.prototype._filterFindItemElements=function(t){t=o(t);for(var e=this.options.itemSelector,i=[],n=0,r=t.length;r>n;n++){var s=t[n];if(c(s))if(e){l(s,e)&&i.push(s);for(var a=s.querySelectorAll(e),u=0,p=a.length;p>u;u++)i.push(a[u])}else i.push(s)}return i},m.prototype.getItemElements=function(){for(var t=[],e=0,i=this.items.length;i>e;e++)t.push(this.items[e].element);return t},m.prototype.layout=function(){this._resetLayout(),this._manageStamps();var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},m.prototype._init=m.prototype.layout,m.prototype._resetLayout=function(){this.getSize()},m.prototype.getSize=function(){this.size=d(this.element)},m.prototype._getMeasurement=function(t,e){var i,o=this.options[t];o?("string"==typeof o?i=this.element.querySelector(o):c(o)&&(i=o),this[t]=i?d(i)[e]:o):this[t]=0},m.prototype.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},m.prototype._getItemsForLayout=function(t){for(var e=[],i=0,o=t.length;o>i;i++){var n=t[i];n.isIgnored||e.push(n)}return e},m.prototype._layoutItems=function(t,e){function i(){o.emitEvent("layoutComplete",[o,t])}var o=this;if(!t||!t.length)return i(),void 0;this._itemsOn(t,"layout",i);for(var n=[],r=0,s=t.length;s>r;r++){var a=t[r],u=this._getItemLayoutPosition(a);u.item=a,u.isInstant=e||a.isLayoutInstant,n.push(u)}this._processLayoutQueue(n)},m.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},m.prototype._processLayoutQueue=function(t){for(var e=0,i=t.length;i>e;e++){var o=t[e];this._positionItem(o.item,o.x,o.y,o.isInstant)}},m.prototype._positionItem=function(t,e,i,o){o?t.goTo(e,i):t.moveTo(e,i)},m.prototype._postLayout=function(){this.resizeContainer()},m.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},m.prototype._getContainerSize=h,m.prototype._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"}},m.prototype._itemsOn=function(t,e,i){function o(){return n++,n===r&&i.call(s),!0}for(var n=0,r=t.length,s=this,a=0,u=t.length;u>a;a++){var p=t[a];p.on(e,o)}},m.prototype.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},m.prototype.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},m.prototype.stamp=function(t){if(t=this._find(t)){this.stamps=this.stamps.concat(t);for(var e=0,i=t.length;i>e;e++){var o=t[e];this.ignore(o)}}},m.prototype.unstamp=function(t){if(t=this._find(t))for(var e=0,i=t.length;i>e;e++){var o=t[e];n(o,this.stamps),this.unignore(o)}},m.prototype._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=o(t)):void 0},m.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var t=0,e=this.stamps.length;e>t;t++){var i=this.stamps[t];this._manageStamp(i)}}},m.prototype._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)}},m.prototype._manageStamp=h,m.prototype._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,o=d(t),n={left:e.left-i.left-o.marginLeft,top:e.top-i.top-o.marginTop,right:i.right-e.right-o.marginRight,bottom:i.bottom-e.bottom-o.marginBottom};return n},m.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},m.prototype.bindResize=function(){this.isResizeBound||(i.bind(t,"resize",this),this.isResizeBound=!0)},m.prototype.unbindResize=function(){this.isResizeBound&&i.unbind(t,"resize",this),this.isResizeBound=!1},m.prototype.onresize=function(){function t(){e.resize(),delete e.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var e=this;this.resizeTimeout=setTimeout(t,100)},m.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},m.prototype.needsResizeLayout=function(){var t=d(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},m.prototype.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},m.prototype.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},m.prototype.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)}},m.prototype.reveal=function(t){var e=t&&t.length;if(e)for(var i=0;e>i;i++){var o=t[i];o.reveal()}},m.prototype.hide=function(t){var e=t&&t.length;if(e)for(var i=0;e>i;i++){var o=t[i];o.hide()}},m.prototype.getItem=function(t){for(var e=0,i=this.items.length;i>e;e++){var o=this.items[e];if(o.element===t)return o}},m.prototype.getItems=function(t){if(t&&t.length){for(var e=[],i=0,o=t.length;o>i;i++){var n=t[i],r=this.getItem(n);r&&e.push(r)}return e}},m.prototype.remove=function(t){t=o(t);var e=this.getItems(t);if(e&&e.length){this._itemsOn(e,"remove",function(){this.emitEvent("removeComplete",[this,e])});for(var i=0,r=e.length;r>i;i++){var s=e[i];s.remove(),n(s,this.items)}}},m.prototype.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="";for(var e=0,i=this.items.length;i>e;e++){var o=this.items[e];o.destroy()}this.unbindResize(),delete this.element.outlayerGUID,p&&p.removeData(this.element,this.constructor.namespace)},m.data=function(t){var e=t&&t.outlayerGUID;return e&&v[e]},m.create=function(t,i){function o(){m.apply(this,arguments)}return Object.create?o.prototype=Object.create(m.prototype):e(o.prototype,m.prototype),o.prototype.constructor=o,o.defaults=e({},m.defaults),e(o.defaults,i),o.prototype.settings={},o.namespace=t,o.data=m.data,o.Item=function(){y.apply(this,arguments)},o.Item.prototype=new y,s(function(){for(var e=r(t),i=a.querySelectorAll(".js-"+e),n="data-"+e+"-options",s=0,h=i.length;h>s;s++){var f,c=i[s],d=c.getAttribute(n);try{f=d&&JSON.parse(d)}catch(l){u&&u.error("Error parsing "+n+" on "+c.nodeName.toLowerCase()+(c.id?"#"+c.id:"")+": "+l);continue}var y=new o(c,f);p&&p.data(c,t,y)}}),p&&p.bridget&&p.bridget(t,o),o},m.Item=y,m}var a=t.document,u=t.console,p=t.jQuery,h=function(){},f=Object.prototype.toString,c="object"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&"object"==typeof t&&1===t.nodeType&&"string"==typeof t.nodeName},d=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,o=t.length;o>i;i++)if(t[i]===e)return i;return-1};"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","doc-ready/doc-ready","eventEmitter/EventEmitter","get-size/get-size","matches-selector/matches-selector","./item"],s):t.Outlayer=s(t.eventie,t.docReady,t.EventEmitter,t.getSize,t.matchesSelector,t.Outlayer.Item)}(window),function(t){function e(t){function e(){t.Item.apply(this,arguments)}return e.prototype=new t.Item,e.prototype._create=function(){this.id=this.layout.itemGUID++,t.Item.prototype._create.call(this),this.sortData={}},e.prototype.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)}}},e}"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],e):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window),function(t){function e(t,e){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)}return function(){function t(t){return function(){return e.prototype[t].apply(this.isotope,arguments)}}for(var o=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],n=0,r=o.length;r>n;n++){var s=o[n];i.prototype[s]=t(s)}}(),i.prototype.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),i=this.isotope.size&&e;return i&&e.innerHeight!==this.isotope.size.innerHeight},i.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},i.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},i.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},i.prototype.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]}},i.prototype.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},i.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},i.prototype.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(t,e){function o(){i.apply(this,arguments)}return o.prototype=new i,e&&(o.options=e),o.prototype.namespace=t,i.modes[t]=o,o},i}"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window),function(t){function e(t,e){var o=t.create("masonry");return o.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0);this.maxY=0},o.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}this.columnWidth+=this.gutter,this.cols=Math.floor((this.containerWidth+this.gutter)/this.columnWidth),this.cols=Math.max(this.cols,1)},o.prototype.getContainerWidth=function(){var t=this.options.isFitWidth?this.element.parentNode:this.element,i=e(t);this.containerWidth=i&&i.innerWidth},o.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,o=e&&1>e?"round":"ceil",n=Math[o](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var r=this._getColGroup(n),s=Math.min.apply(Math,r),a=i(r,s),u={x:this.columnWidth*a,y:s},p=s+t.size.outerHeight,h=this.cols+1-r.length,f=0;h>f;f++)this.colYs[a+f]=p;return u},o.prototype._getColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,o=0;i>o;o++){var n=this.colYs.slice(o,o+t);e[o]=Math.max.apply(Math,n)}return e},o.prototype._manageStamp=function(t){var i=e(t),o=this._getElementOffset(t),n=this.options.isOriginLeft?o.left:o.right,r=n+i.outerWidth,s=Math.floor(n/this.columnWidth);s=Math.max(0,s);var a=Math.floor(r/this.columnWidth);a-=r%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var u=(this.options.isOriginTop?o.top:o.bottom)+i.outerHeight,p=s;a>=p;p++)this.colYs[p]=Math.max(u,this.colYs[p])},o.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this.options.isFitWidth&&(t.width=this._getContainerFitWidth()),t},o.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},o.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!==this.containerWidth},o}var i=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,o=t.length;o>i;i++){var n=t[i];if(n===e)return i}return-1};"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],e):t.Masonry=e(t.Outlayer,t.getSize)}(window),function(t){function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t,i){var o=t.create("masonry"),n=o.prototype._getElementOffset,r=o.prototype.layout,s=o.prototype._getMeasurement;e(o.prototype,i.prototype),o.prototype._getElementOffset=n,o.prototype.layout=r,o.prototype._getMeasurement=s;var a=o.prototype.measureColumns;o.prototype.measureColumns=function(){this.items=this.isotope.filteredItems,a.call(this)};var u=o.prototype._manageStamp;return o.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft,this.options.isOriginTop=this.isotope.options.isOriginTop,u.apply(this,arguments)},o}"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],i):i(t.Isotope.LayoutMode,t.Masonry)}(window),function(t){function e(t){var e=t.create("fitRows");return e.prototype._resetLayout=function(){this.x=0,this.y=0,this.maxY=0},e.prototype._getItemLayoutPosition=function(t){t.getSize(),0!==this.x&&t.size.outerWidth+this.x>this.isotope.size.innerWidth&&(this.x=0,this.y=this.maxY);var e={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=t.size.outerWidth,e},e.prototype._getContainerSize=function(){return{height:this.maxY}},e}"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],e):e(t.Isotope.LayoutMode)}(window),function(t){function e(t){var e=t.create("vertical",{horizontalAlignment:0});return e.prototype._resetLayout=function(){this.y=0},e.prototype._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}},e.prototype._getContainerSize=function(){return{height:this.y}},e}"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],e):e(t.Isotope.LayoutMode)}(window),function(t){function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t){return"[object Array]"===h.call(t)}function o(t){var e=[];if(i(t))e=t;else if(t&&"number"==typeof t.length)for(var o=0,n=t.length;n>o;o++)e.push(t[o]);else e.push(t);return e}function n(t,e){var i=f(e,t);-1!==i&&e.splice(i,1)}function r(t,i,r,u,h){function f(t,e){return function(i,o){for(var n=0,r=t.length;r>n;n++){var s=t[n],a=i.sortData[s],u=o.sortData[s];if(a>u||u>a){var p=void 0!==e[s]?e[s]:e,h=p?1:-1;return(a>u?1:-1)*h}}return 0}}var c=t.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});c.Item=u,c.LayoutMode=h,c.prototype._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),t.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var e in h.modes)this._initLayoutMode(e)},c.prototype.reloadItems=function(){this.itemGUID=0,t.prototype.reloadItems.call(this)},c.prototype._itemize=function(){for(var e=t.prototype._itemize.apply(this,arguments),i=0,o=e.length;o>i;i++){var n=e[i];n.id=this.itemGUID++}return this._updateItemsSortData(e),e},c.prototype._initLayoutMode=function(t){var i=h.modes[t],o=this.options[t]||{};this.options[t]=i.options?e(i.options,o):o,this.modes[t]=new i(this)},c.prototype.layout=function(){return!this._isLayoutInited&&this.options.isInitLayout?(this.arrange(),void 0):(this._layout(),void 0)},c.prototype._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},c.prototype.arrange=function(t){this.option(t),this._getIsInstant(),this.filteredItems=this._filter(this.items),this._sort(),this._layout()},c.prototype._init=c.prototype.arrange,c.prototype._getIsInstant=function(){var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=t,t},c.prototype._filter=function(t){function e(){f.reveal(n),f.hide(r)}var i=this.options.filter;i=i||"*";for(var o=[],n=[],r=[],s=this._getFilterTest(i),a=0,u=t.length;u>a;a++){var p=t[a];if(!p.isIgnored){var h=s(p);h&&o.push(p),h&&p.isHidden?n.push(p):h||p.isHidden||r.push(p)}}var f=this;return this._isInstant?this._noTransition(e):e(),o},c.prototype._getFilterTest=function(t){return s&&this.options.isJQueryFiltering?function(e){return s(e.element).is(t)}:"function"==typeof t?function(e){return t(e.element)}:function(e){return r(e.element,t)}},c.prototype.updateSortData=function(t){this._getSorters(),t=o(t);var e=this.getItems(t);e=e.length?e:this.items,this._updateItemsSortData(e) },c.prototype._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=d(i)}},c.prototype._updateItemsSortData=function(t){for(var e=0,i=t.length;i>e;e++){var o=t[e];o.updateSortData()}};var d=function(){function t(t){if("string"!=typeof t)return t;var i=a(t).split(" "),o=i[0],n=o.match(/^\[(.+)\]$/),r=n&&n[1],s=e(r,o),u=c.sortDataParsers[i[1]];return t=u?function(t){return t&&u(s(t))}:function(t){return t&&s(t)}}function e(t,e){var i;return i=t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&p(i)}}return t}();c.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},c.prototype._sort=function(){var t=this.options.sortBy;if(t){var e=[].concat.apply(t,this.sortHistory),i=f(e,this.options.sortAscending);this.filteredItems.sort(i),t!==this.sortHistory[0]&&this.sortHistory.unshift(t)}},c.prototype._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw Error("No layout mode: "+t);return e.options=this.options[t],e},c.prototype._resetLayout=function(){t.prototype._resetLayout.call(this),this._mode()._resetLayout()},c.prototype._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},c.prototype._manageStamp=function(t){this._mode()._manageStamp(t)},c.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},c.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},c.prototype.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},c.prototype.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();var o=this._filterRevealAdded(e);this.layoutItems(i),this.filteredItems=o.concat(this.filteredItems)}},c.prototype._filterRevealAdded=function(t){var e=this._noTransition(function(){return this._filter(t)});return this.layoutItems(e,!0),this.reveal(e),t},c.prototype.insert=function(t){var e=this.addItems(t);if(e.length){var i,o,n=e.length;for(i=0;n>i;i++)o=e[i],this.element.appendChild(o.element);var r=this._filter(e);for(this._noTransition(function(){this.hide(r)}),i=0;n>i;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;n>i;i++)delete e[i].isLayoutInstant;this.reveal(r)}};var l=c.prototype.remove;return c.prototype.remove=function(t){t=o(t);var e=this.getItems(t);if(l.call(this,t),e&&e.length)for(var i=0,r=e.length;r>i;i++){var s=e[i];n(s,this.filteredItems)}},c.prototype._noTransition=function(t){var e=this.options.transitionDuration;this.options.transitionDuration=0;var i=t.call(this);return this.options.transitionDuration=e,i},c}var s=t.jQuery,a=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=document.documentElement,p=u.textContent?function(t){return t.textContent}:function(t){return t.innerText},h=Object.prototype.toString,f=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,o=t.length;o>i;i++)if(t[i]===e)return i;return-1};"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],r):t.Isotope=r(t.Outlayer,t.getSize,t.matchesSelector,t.Isotope.Item,t.Isotope.LayoutMode)}(window); var EUTHEM=EUTHEM||{}; var deviceParallax=true; var stickyHeaderDevice=true; var stickyOffset=500; var frameSize=0; (function($){ 'use strict'; EUTHEM.documentReady={ init: function(){ EUTHEM.frameSize.init(); EUTHEM.sectionSettings.init(); EUTHEM.parallaxSection.init(); EUTHEM.sideArea.init(); EUTHEM.hiddenMenu.init(); EUTHEM.isotope.noIsoFilters(); EUTHEM.basicElements.init(); EUTHEM.isotope.init(); EUTHEM.setColumnHeight.init(); EUTHEM.footerSettings.init(); if($('#eut-feature-section').length > 0){ EUTHEM.featureSection.init(); } if($('#eut-header').length > 0){ EUTHEM.header.init(); } if($('#eut-feature-section').length > 0&&$('#eut-feature-section').data('effect')=='parallax'){ EUTHEM.featureParallax.init('#eut-feature-section'); } EUTHEM.pageBasic.init(); }}; EUTHEM.documentResize={ init: function(){ EUTHEM.frameSize.init(); EUTHEM.sectionSettings.init(); EUTHEM.resizer.init('.eut-feature-section-inner'); EUTHEM.basicElements.iconBox(); EUTHEM.footerSettings.fixedFooter(); if($('#eut-header').data('fullscreen')==='yes'){ EUTHEM.featureSection.fullScreen('#eut-feature-section'); }} }; EUTHEM.documentScroll={ init: function(){ EUTHEM.featureSection.stopSlider(); EUTHEM.pageBasic.anchorSticky(); EUTHEM.pageBasic.onePageMenu(); EUTHEM.pageBasic.stickySidebarScroll(); }}; EUTHEM.documentLoad={ init: function(){ EUTHEM.basicElements.iconBox(); EUTHEM.footerSettings.fixedFooter(); }}; EUTHEM.frameSize={ init: function(){ if(!$('#eut-body').hasClass('eut-framed')) return; if($(window).width() + scrollBarWidth > tabletLandscape){ frameSize=70; }else{ frameSize=20; }} } EUTHEM.header={ init: function(){ this.mainMenu(); this.sticky(); this.menuSlide('#eut-hidden-menu .eut-menu'); }, mainMenu: function(){ var $menu=$('#eut-main-menu'), $item=$menu.find('li.menu-item'), $menuItem=$menu.find('li.menu-item-has-children'), target='.menu-item-has-children', subMenu='.sub-menu', mTimer; $menu .on('mouseenter', target, over) .on('mouseleave', target, out); function over(){ var $this=$(this); if($this.prop('hoverTimeout')){ $this.prop('hoverTimeout', clearTimeout($this.prop('hoverTimeout'))); } $this.prop('hoverIntent', setTimeout(function(){ $this.addClass('mHover'); menuPosition($this); }, 100)); } function out(){ var $this=$(this); if($this.prop('hoverIntent')){ $this.prop('hoverIntent', clearTimeout($this.prop('hoverIntent'))); } $this.prop('hoverTimeout', setTimeout(function(){ $this.removeClass('mHover'); }, 100)); } if(isMobile.any()&&$(window).width() > tabletPortrait){ $menuItem.find(' > a').bind('touchstart touchend', function(e){ var $this=$(this); $this.parent().siblings().removeClass('mHover'); if($this.attr('href')!='#'||$this.attr('href')==='#'){ if(!$this.parent().hasClass('mHover')){ e.preventDefault(); $this.parent().addClass('mHover'); }} }); $(document).bind('touchstart touchend', function(e){ if(!$menuItem.is(e.target)&&$menuItem.has(e.target).length===0){ $menuItem.removeClass('mHover').find('li').removeClass('mHover'); }}); } function menuPosition(item){ var $item=item, $subMenu=$item.find(' > ul '), subMenuW=$subMenu.width(), subMenuP=$subMenu.offset().left, windowWidth=$(window).width(); if(!$item.hasClass('megamenu')&&(subMenuW + subMenuP) > windowWidth){ $subMenu.addClass('eut-position-right'); }} }, menuPosition: function(item){ var containerWidth=$(this.menu).parent().outerWidth(), subMenu=item.find(' > ul '), subMenuWidth=subMenu.width(), windowWidth=$(window).width(), menuPositionX=item.offset().left; if(!item.hasClass('megamenu')&&(menuPositionX + subMenuWidth) >(windowWidth - containerWidth)/2 + containerWidth){ subMenu.addClass('eut-position-right'); }}, menuToggle: function(element){ var $menu=$(element), $menuItem=$menu.find('li.menu-item-has-children > a'); $menuItem.on('tap click',function(e){ var $this=$(this), link=$this.attr('href'), open=false; if(link!='#'||link==='#'){ if(!$this.parent().hasClass('open')&&!open){ e.preventDefault(); $this.parent().addClass('open'); toggle($this, open); }else{ open=true; toggle($this, open); $this.parent().removeClass('open'); }} }); function toggle($this, open){ var $subMenu=$this.parent().find('>ul'); if(open){ $subMenu.slideUp(200); }else{ $subMenu.slideDown(200); }} }, menuSlide: function(element){ var $menu=$(element), $menuItem=$menu.find('li.menu-item-has-children > a'), $arrow=$(''), $arrowBack=$('
  • '); $arrow.appendTo($menuItem.parent()); $arrowBack.prependTo($menuItem.parent().find('>ul')); $('#eut-hidden-menu .sub-menu').each(function(){ var $this=$(this), posTop=$this.offset().top, contentTop=$('#eut-hidden-menu .eut-menu').offset().top, topPos=-parseInt(posTop) + contentTop; $this.css({ 'top':topPos }); }); $menuItem.on('click', function(e){ var $this=$(this), link=$this.attr('href'); if(link==='#'){ e.preventDefault(); var listLevel=$(this).parents('ul').length, $this=$(this).parent().find('ul').first(), el=$this.height(), title=$(this).children('span').text(); appendTitle(title, $this); $this.addClass('show'); animLeftMenu(el, listLevel); }}); var $arrowBtn=$menuItem.parent().find('.eut-arrow'); $arrowBtn.on('click', function(){ var listLevel=$(this).parents('ul').length, $this=$(this).parent().find('ul').first(), el=$this.height(), title=$this.parent().find('a').first().html(); appendTitle(title, $this); $this.addClass('show'); animLeftMenu(el, listLevel); }); $('li.eut-goback a').on('click', function(e){ var listLevel=$(this).parents('ul ul').length - 1; var $this=$(this).closest('.sub-menu'); var el=$this.closest('.menu-item-has-children').closest('ul').height(); $this.removeClass('show'); animLeftMenu(el, listLevel); }); function animLeftMenu(el, listLevel){ $('#eut-hidden-menu .eut-main-menu-wrapper').height(el); $('#eut-hidden-menu ul.eut-menu').css('transform', 'translate3d(' + - listLevel * 100 + '%,0,0)'); } function appendTitle(title, list){ if(list.find('.eut-goback .eut-item').length) return; $('' + title + '').appendTo(list.find('> .eut-goback a')); }}, sticky: function(){ var $header=$('#eut-header'), $stickyHeader=$('#eut-inner-header'), $featureSection=$('#eut-feature-section'), featureType=$header.data('header-position'), headerHeight=$stickyHeader.outerHeight(), wrapperHeight=$('#eut-header-wrapper').height(), stickyType=$header.data('sticky-header'), topBarHeight=$('#eut-top-bar').length > 0&&$('#eut-top-bar').is(":visible")&&featureType!='below-feature' ? $('#eut-top-bar').height():0, headerTop=featureType!='below-feature' ? $header.offset().top:$stickyHeader.offset().top, offset=topBarHeight + headerTop - frameSize; stickyInit(); $(window).smartresize(function(){ stickyInit(); }); function stickyInit(){ if(stickyType!='none'){ if($(window).width() + scrollBarWidth < tabletPortrait&&stickyHeaderDevice===false){ return; }else{ $(window).on('scroll', function(){ if(stickyType==='advanced'){ advancedSticky(); } if(stickyType==='simply'){ simplySticky(); } if(stickyType==='shrink'){ shrink(); }}); }} } function advancedSticky(){ var scroll=$(window).scrollTop(); if(scroll > offset + headerHeight){ $stickyHeader.css({ 'position':'fixed', 'top':wpBarHeight + frameSize - headerHeight }); $header.addClass('eut-header-fixed'); if(scroll >=offset + stickyOffset){ $header.addClass('eut-header-sticky'); $stickyHeader.css({ 'position':'fixed', '-webkit-transform':'translateY(' + headerHeight + 'px)', '-moz-transform':'translateY(' + headerHeight + 'px)', '-ms-transform':'translateY(' + headerHeight + 'px)', '-o-transform':'translateY(' + headerHeight + 'px)', 'transform':'translateY(' + headerHeight + 'px)' }); }else{ $header.removeClass('eut-header-sticky'); $stickyHeader.css({ '-webkit-transform':'translateY(0px)', '-moz-transform':'translateY(0px)', '-ms-transform':'translateY(0px)', '-o-transform':'translateY(0px)', 'transform':'translateY(0px)' }); }}else{ $header.removeClass('eut-header-fixed'); $stickyHeader.css({ 'position':'', 'top':'','left': '','right':'', 'width':'' }); }} function simplySticky(){ var scroll=$(window).scrollTop(); if(scroll > wpBarHeight + offset){ $header.addClass('eut-header-sticky'); $stickyHeader.css({ 'position':'fixed', 'top':wpBarHeight + frameSize }); }else{ $header.removeClass('eut-header-sticky'); $stickyHeader.css({ 'position':'', 'top':'' }); }} function shrink(){ var scroll=$(window).scrollTop(), shrinkSize=wrapperHeight * 0.65; if(shrinkSize < 40){ shrinkSize=50; } if(scroll > wpBarHeight + offset){ $header.addClass('eut-header-sticky'); $stickyHeader.css({ 'position':'fixed', 'top':wpBarHeight + frameSize }); }else{ $header.removeClass('eut-header-sticky'); $stickyHeader.css({ 'position':'', 'top':'' }); } if(scroll > wpBarHeight + offset + headerHeight){ $stickyHeader.css({'height': shrinkSize, 'line-height': shrinkSize + 'px' }); $stickyHeader.find('.eut-logo').css({ 'height': shrinkSize }); $stickyHeader.find('.eut-menu-elements-wrapper, .eut-responsive-menu-button').css({ 'height': shrinkSize, 'line-height': shrinkSize + 'px' }); }else{ $stickyHeader.css({'height': wrapperHeight, 'line-height': wrapperHeight + 'px' }); $stickyHeader.find('.eut-logo').css({ 'height': wrapperHeight }); $stickyHeader.find('.eut-menu-elements-wrapper, .eut-responsive-menu-button').css({ 'height': wrapperHeight, 'line-height': wrapperHeight + 'px' }); }} }}; EUTHEM.featureParallax={ init: function(section){ var $section=$(section), $parallaxEl=$section.find('.eut-bg-image'), $content=$section.find('.eut-feature-content'), sectionHeight=$section.height(), headerHeight=$('#eut-inner-header').height(), topBarHeight=$('#eut-top-bar').length > 0&&$('#eut-top-bar').is(":visible") ? $('#eut-top-bar').height():0, scaleValue=1, offset=headerHeight + topBarHeight, speed=0.25; $(window).on('scroll', function(){ if(( $(window).width() + scrollBarWidth < tabletPortrait||isMobile.any())&&deviceParallax===false){ return; }else{ window.requestAnimationFrame(parallax); }}); function parallax(){ var scoll=$(window).scrollTop(), scrollPercentage=(scoll / sectionHeight).toFixed(3), positionY=((scoll - offset) * speed).toFixed(0), scaleValue=1 + scrollPercentage * speed; if(scoll > offset){ var translate='translate3d(0, ' + positionY + 'px' + ', 0) translateZ(0)', scrollPercentageOpacity=(( scoll - offset) /(sectionHeight / 2)).toFixed(3); }else{ translate='translate3d(0, 0, 0) translateZ(0)'; scrollPercentageOpacity=0; } $parallaxEl.css({ '-webkit-transform':translate, '-moz-transform':translate, '-ms-transform':translate, '-o-transform':translate, 'transform':translate }); $content.css({ 'opacity': 1 - scrollPercentageOpacity }); }} }; EUTHEM.parallaxSection={ init: function(){ var $section=$('.eut-section[data-image-type="parallax"]'), windowHeight=$(window).height(), speed=0.25; $(window).on('scroll', function(){ if(( $(window).width() + scrollBarWidth < tabletPortrait||isMobile.any())&&deviceParallax===false){ return; }else{ window.requestAnimationFrame(parallax); }}); function parallax(){ var scroll=$(window).scrollTop(); $section.each(function (){ var $this=$(this), $bgImage=$this.find('.eut-bg-image'), sectionH=$this.outerHeight(), sectionTopP=$this.offset().top, offset=windowHeight + scroll - sectionTopP, positionY=((offset - windowHeight) * speed).toFixed(0), translate='translate3d(0, ' + positionY + 'px' + ', 0) translateZ(0)'; $bgImage.css({ 'height':sectionH +(windowHeight * speed), '-webkit-transform':translate, '-moz-transform':translate, '-ms-transform':translate, '-o-transform':translate, 'transform':translate }); }); }} }; EUTHEM.featureSection={ init: function(){ EUTHEM.featureAnim.initPos('#eut-feature-title'); EUTHEM.featureSection.featureImageLoad('#eut-feature-section'); if($('#eut-header').data('fullscreen')==='yes'){ EUTHEM.featureSection.fullScreen('#eut-feature-section'); }else{ EUTHEM.resizer.init('.eut-feature-section-inner'); }}, fullScreen: function(section){ var $featureSection=$(section), windowHeight=$(window).height(), headerHeight=$('#eut-header').data('overlap')=='no' ? $('#eut-header-wrapper').height():0, sectionItem=$featureSection.find('.eut-feature-section-inner').data('item'), topBarHeight=0; if($('#eut-top-bar').length&&$('#eut-header').data('overlap')=='no'&&$(window).width() + scrollBarWidth > tabletPortrait){ topBarHeight=$('#eut-top-bar').outerHeight(); } var sectionHeight=windowHeight - headerHeight - topBarHeight -(frameSize * 2); $featureSection.css('height', sectionHeight); $featureSection.find('.eut-feature-section-inner').css('height', sectionHeight); $featureSection.find('.eut-slider-item').css('height', sectionHeight); if(sectionItem==='map'){ $featureSection.find('.eut-map').css('height', sectionHeight); }}, featureImageLoad: function(section){ var $featureSection=$(section), $bgImage=$featureSection.find('.eut-bg-image'), sectionItem=$featureSection.find('.eut-feature-section-inner').data('item'), totalBgImage=$bgImage.length; if(sectionItem==='video'){ EUTHEM.featureAnim.startAnim('#eut-feature-title'); } if(sectionItem==='title'){ EUTHEM.featureAnim.startAnim('#eut-feature-title'); } var waitImgDone=function(){ totalBgImage--; if(!totalBgImage){ if(sectionItem==='image'){ $bgImage.animate({ 'opacity':1 },900,function(){ EUTHEM.featureAnim.startAnim('#eut-feature-title'); }); } if(sectionItem==='slider'){ EUTHEM.featureSection.featureSlider(); }} }; $bgImage.each(function (){ function imageUrl(input){ return input.replace(/"/g,"").replace(/url\(|\)$/ig, ""); } var image=new Image(), $that=$(this); image.src=imageUrl($that.css('background-image')); $(image).load(waitImgDone).error(waitImgDone); }); }, featureSlider: function(){ var $slider=$('#eut-feature-slider'), $bgImage=$slider.find('.eut-bg-image'), pauseHover=$slider.attr('data-slider-pause')=='yes' ? true:'', sliderSpeed=parseInt($slider.attr('data-slider-speed')) ? parseInt($slider.attr('data-slider-speed')):6000, transition=$slider.attr('data-slider-transition')!='slide' ? $slider.attr('data-slider-transition'):false; $slider.owlCarousel({ navigation:false, pagination:false, autoHeight:false, slideSpeed:800, paginationSpeed:800, afterAction:EUTHEM.featureSection.sliderAction, singleItem:true, autoPlay:true, stopOnHover:pauseHover, baseClass:'owl-carousel', theme:'eut-theme', transitionStyle:transition }); $bgImage.animate({ 'opacity':1 },900,function(){ $slider.trigger('owl.play',sliderSpeed); }); $slider.parent().find('.eut-carousel-next').click(function(){ $slider.trigger('owl.next'); }); $slider.parent().find('.eut-carousel-prev').click(function(){ $slider.trigger('owl.prev'); }); }, stopSlider: function(){ var $scroll=$(window).scrollTop(), $slider=$('#eut-feature-slider'), sliderSpeed=parseInt($slider.attr('data-slider-speed')) ? parseInt($slider.attr('data-slider-speed')):6000; if($scroll > 10){ $slider.trigger('owl.stop'); }else{ $slider.trigger('owl.play',sliderSpeed); }}, sliderAction: function(){ var $currentSlide=this.$owlItems.eq(this.currentItem), $prevSlide=this.$owlItems.eq(this.prevItem), $currentSliderItem=$currentSlide.find('.eut-feature-content'), $prevSliderItem=$prevSlide.find('.eut-feature-content'), sliderColor=$currentSlide.find('.eut-slider-item ').attr('data-style'), color='eut-' + sliderColor, sliderArrowColor=$currentSlide.find('.eut-slider-item').attr('data-arrow-color'), sliderArrowAlign=$currentSlide.find('.eut-slider-item').attr('data-arrow-align'), arrowColor='eut-' + sliderArrowColor, arrowAlign='eut-align-' + sliderArrowAlign; EUTHEM.featureAnim.initPos($currentSliderItem); EUTHEM.featureAnim.startAnim($currentSliderItem); $('#eut-header').removeClass('eut-default eut-light eut-dark').addClass(color); $('#eut-feature-section .eut-carousel-navigation').removeClass('eut-default eut-light eut-dark').addClass(color); $('#eut-goto-section-wrapper').removeClass().addClass(arrowAlign); $('.eut-goto-section').removeClass().addClass('eut-goto-section eut-icon-nav-down').addClass(arrowColor); }, resizeVideo: function(selector){ var $parent=selector, $video=$parent.find('video'), videoWidth=$video.width(), videoHeight=$video.height(), containerWidth=$parent.outerWidth(), containerHeight=$parent.outerHeight(), newSize=EUTHEM.featureSection.videoSettings(containerWidth, containerHeight, videoWidth, videoHeight); $video.width(newSize.newWidth).height(newSize.newHeight); EUTHEM.featureSection.removeSpinner($('#eut-feature-section')); }, videoSettings: function(containerWidth, containerHeight, videoWidth, videoHeight){ var initW=videoWidth, initH=videoHeight, ratio=initH / initW; videoWidth=containerWidth; videoHeight=containerWidth * ratio; if(videoHeight < containerHeight){ videoHeight=containerHeight; videoWidth=videoHeight / ratio; } return { newWidth:parseInt(videoWidth), newHeight:parseInt(videoHeight) };}}; EUTHEM.resizer={ init: function(section){ var $selector=$(section), initWidth=tabletLandscape, initHeight=$selector.data('height'), minHeight=320, newSize=this.calSize(initWidth, initHeight); if($selector.data('item')==='revslider'){ return; } if($(window).width() + scrollBarWidth >=initWidth){ $selector.css({ 'height': initHeight, 'min-height': minHeight }); $selector.parent().css({ 'height': initHeight, 'min-height': minHeight }); $('#eut-feature-slider').find('.eut-slider-item ').css({ 'height': initHeight, 'min-height': minHeight }); }else{ $selector.css({ 'height': newSize.newHeight, 'min-height': minHeight }); $selector.parent().css({ 'height': newSize.newHeight, 'min-height': minHeight }); $('#eut-feature-slider').find('.eut-slider-item ').css({ 'height': newSize.newHeight, 'min-height': minHeight }); }}, calSize: function(initWidth, initHeight){ var ratio=initHeight / initWidth, height=$(window).width() * ratio; return { newHeight:parseInt(height) };}}; EUTHEM.featureAnim={ settings: function(section){ var animDelay=300, contentItems={ title:$(section).find(' .eut-title '), description:$(section).find(' .eut-description '), button1:$(section).find(' .eut-btn:first-child '), button2:$(section).find(' .eut-btn:last-child ') }; return { items: contentItems, delay: animDelay };}, initPos: function(section){ var $section=$(section), settings=EUTHEM.featureAnim.settings(section), items=settings.items; $.each(items, function(key, item){ if($section.hasClass('eut-fade-in-up')){ $(item).stop(true,true).transition({ y: 200, opacity: 0 },0); }else if($section.hasClass('eut-fade-in-down')){ $(item).stop(true,true).transition({ y: -200, opacity: 0 },0); }else if($section.hasClass('eut-fade-in-left')){ $(item).stop(true,true).transition({ x: -200, opacity: 0 },0); }else if($section.hasClass('eut-fade-in-right')){ $(item).stop(true,true).transition({ x: 200, opacity: 0 },0); }else{ $(item).stop(true,true).transition({ x: 0, opacity: 0 },0); }}); }, startAnim: function(section){ var $section=$(section), settings=EUTHEM.featureAnim.settings(section), items=settings.items, delay=settings.delay, cnt=1; $.each(items, function(key, item){ cnt++; if($section.hasClass('eut-fade-in-up')||$section.hasClass('eut-fade-in-down')){ $(item).transition({ y: 0, opacity: 1, delay: cnt * delay },1200,'cubic-bezier(0,0.9,0.3,1)', {queue: false}); }else if($section.hasClass('eut-fade-in-left')||$section.hasClass('eut-fade-in-right')){ $(item).transition({ x: 0, opacity: 1, delay: cnt * delay },1200,'cubic-bezier(0,0.9,0.3,1)', {queue: false}); }else{ $(item).transition({ x: 0, opacity: 1, delay: cnt * delay },1200,'cubic-bezier(0,0.9,0.3,1)', {queue: false}); }}); }}; EUTHEM.sideArea={ init: function(){ var $btn=$('.eut-toggle-sidearea'), $themeWrapper=$('#eut-theme-wrapper'), $closeBtn=$(''), areaWidth=0, content, $overlay; $btn.on('click',function(e){ content=$(this).attr('href'); if(content.indexOf("#")===0&&$(content).length > 0){ e.preventDefault(); var overlayId=content.replace('#',''); $overlay=$('
    '); $overlay.appendTo($themeWrapper).fadeIn(600,function(){ areaWidth=EUTHEM.sideArea.sideAreaWidth(content); openArea(content); }); }}); function openArea(area){ var $area=$(area); var $areaContent=$area.find('.eut-area-content'); $closeBtn.appendTo($areaContent); $area.stop(true, false).transition({ x: - areaWidth + 20 },900,'cubic-bezier(0,0.9,0.3,1)',function(){ $closeBtn.stop(true, false).transition({ y: 50, delay: 200 },900,'cubic-bezier(0,0.9,0.3,1)'); onePageMenu(area); }); $overlay.on('click',function(){ closeArea(area); }); $closeBtn.on('click',function(e){ e.preventDefault(); closeArea(area); }); } function closeArea(area){ var $area=$(area); $closeBtn.stop(true, false).transition({ y: -100 },900,'cubic-bezier(0,0.9,0.3,1)',function(){ $area.stop(true, false).transition({ x: 0 },900,'cubic-bezier(0,0.9,0.3,1)'); $overlay.fadeOut(600,function(){ $overlay.remove(); $closeBtn.remove(); }); }); } function onePageMenu(area){ var $area=$(area), link=$area.find('a[href*="#"]:not([href="#"])'); link.click(function(){ var target=$(this.hash); if(target.length&&(target.hasClass('eut-section')||target.hasClass('eut-bookmark'))){ setTimeout(function(){ closeArea(content); },1200); }}); }}, sideAreaWidth: function(area){ var windowWidth=$(window).width(), areaWidth=windowWidth / 4, minWidth=500; if($(window).width() + scrollBarWidth <=mobileScreen){ areaWidth=windowWidth; }else if(areaWidth < minWidth){ areaWidth=minWidth; } $(area).css({ 'width':areaWidth }); return areaWidth; }}; EUTHEM.hiddenMenu={ init: function(){ var $btn=$('.eut-toggle-hidden-menu'), $themeWrapper=$('#eut-theme-wrapper'), $closeBtn=$(''), open=false, content; $btn.on('click',function(e){ content=$(this).attr('href'); if(content.indexOf("#")===0&&$(content).length > 0){ e.preventDefault(); if(open){ closeArea(content); }else{ openArea(content); }} }); function openArea(area){ var $area=$(area); $area.addClass('open'); setTimeout(function(){ open=true; },500); } function closeArea(area){ var $area=$(area); $area.removeClass('open').addClass('close'); setTimeout(function(){ $area.removeClass('close'); open=false; },500); }} }; EUTHEM.setColumnHeight={ init:function(){ var section=$('.eut-section.eut-custom-height'); section.each(function(){ var $section=$(this); $section.imagesLoaded('always',function(){ var columns=$section.hasClass('eut-column-has-gap') ? $section.find('.eut-column-wrapper'):$section.find('.eut-column'), middle=$section.hasClass('eut-middle-content') ? true:false, resizeTimeout; if(EUTHEM.setColumnHeight.limit($section)){ EUTHEM.setColumnHeight.updateParams(columns, middle, EUTHEM.setColumnHeight.onEnd); }else{ EUTHEM.setColumnHeight.resetCol(columns); EUTHEM.setColumnHeight.onEnd(columns); } $(window).on('resize', function(){ window.clearTimeout(resizeTimeout); resizeTimeout=window.setTimeout(function (){ EUTHEM.setColumnHeight.resetCol(columns); if(EUTHEM.setColumnHeight.limit($section)){ EUTHEM.setColumnHeight.updateParams(columns, middle, EUTHEM.setColumnHeight.onEnd); }}, 200); }); }); }); }, updateParams:function(columns, middle, callback){ var columnMaxH=0; columns.each(function(){ ($(this).outerHeight(true) > columnMaxH) ? columnMaxH=$(this).outerHeight(true):columnMaxH=columnMaxH; }); for (var i=0; i < columns.length; i++){ var $col=$(columns[i]); if(middle){ EUTHEM.setColumnHeight.middleCol($col, columnMaxH); }else{ EUTHEM.setColumnHeight.equalCol(columns, columnMaxH); } if(i===columns.length - 1&&callback&&typeof callback==='function'){ callback(columns); }} }, getHeight:function(el){ var elHeight=el.outerHeight(); return elHeight; }, getMaxHeight:function(el){ var maxHeight=el.parents('.eut-section').height(); return maxHeight; }, equalCol:function(el, height){ el.css({ 'height':height }); }, middleCol:function(el, height){ el.addClass('eut-reset-padding'); if(!el.find('.eut-middle-wrapper').length){ el.wrapInner('
    '); } var $content=el.find('.eut-middle-wrapper'), contentH=$content.outerHeight(true), space=(height - contentH)/2; $content.css({ 'padding-top':space, 'padding-bottom':space }); }, resetCol:function(el){ el.css({ 'height':'' }); el.removeClass('eut-reset-padding'); el.find('.eut-middle-wrapper').css({ 'padding-top':'', 'padding-bottom':'' }); }, limit:function(section){ var screenSize=section.data('tablet-portrait-equal-columns')!=undefined ? mobileScreen:tabletPortrait, windowWidth=$(window).width() + scrollBarWidth, limit=true; if(( windowWidth <=tabletLandscape&§ion.find('.eut-tablet-column-1').length)||windowWidth <=screenSize){ limit=false; } return limit; }, onEnd:function(el){ el.css({ 'visibility':'visible' }); }}; EUTHEM.videoResize={ init: function($selector){ EUTHEM.videoResize.videoSettings($selector); $(window).smartresize(function(){ EUTHEM.videoResize.videoSettings($selector); }); }, videoSettings: function($selector){ var $video=$selector.find('video'), containerWidth=$selector.parent().outerWidth(), containerHeight=$selector.parent().outerHeight(), ratio=16 / 9, videoHeight=containerHeight, videoWidth=videoHeight * ratio; if(videoWidth < containerWidth){ videoWidth=containerWidth, videoHeight=containerWidth * ratio; } $video.width(videoWidth).height(videoHeight); }}; EUTHEM.sectionSettings={ init: function(){ var section='#eut-main-content .eut-section', parentSection='#eut-content-area, #eut-post-area, #eut-portfolio-area', windowWidth=$(window).width(), windowHeight=$(window).height(), themeWidth=$('#eut-theme-wrapper').width(), contentWidth=$(parentSection).width(), sidebarWidth=$('#eut-sidebar').length&&(windowWidth + scrollBarWidth > tabletPortrait) ? $('#eut-sidebar').outerWidth():0, headerHeight=$('#eut-header').attr('data-sticky-header')!='none' ? $('#eut-inner-header').outerHeight():0, fieldBarHeight=$('.eut-fields-bar').length ? $('.eut-fields-bar').outerHeight():0, conteinerWidth=$('#eut-main-content').find('.eut-container').width(), space=(themeWidth - conteinerWidth)/2, sidebarSpace=themeWidth - contentWidth; $(section).each(function(){ var $section=$(this), heightMode=$section.attr('data-full-height'), sectionType=$section.attr('data-section-type'), bgImageType=$section.attr('data-image-type'); if($section.parent().parent().is('.eut-blog-item')){ $section.css({ 'visibility': 'visible' }); return; } if(sectionType=='fullwidth-background'){ fullBg($section); } if(sectionType=='fullwidth-element'){ fullElement($section); } if(bgImageType=='animated'){ animatedBg($section); } if(heightMode=='yes'){ fullHeight($section); }}); function fullBg(section){ if($('.eut-right-sidebar').length&&(windowWidth + scrollBarWidth >=tabletPortrait)){ section.css({ 'visibility': 'visible', 'padding-left':space, 'padding-right': sidebarSpace, 'margin-left': -space, 'margin-right': -sidebarSpace}); } else if($('.eut-left-sidebar').length&&(windowWidth + scrollBarWidth >=tabletPortrait)){ section.css({ 'visibility': 'visible', 'padding-left':sidebarSpace, 'padding-right': space, 'margin-left': -sidebarSpace, 'margin-right': -space}); }else{ section.css({ 'visibility': 'visible', 'padding-left':space, 'padding-right': space, 'margin-left': -space, 'margin-right': -space}); }} function fullElement(section){ if($('.eut-right-sidebar').length&&(windowWidth + scrollBarWidth >=tabletPortrait)){ section.css({ 'visibility': 'visible', 'padding-left':0, 'padding-right': sidebarSpace, 'margin-left': -space, 'margin-right': -sidebarSpace}); } else if($('.eut-left-sidebar').length&&(windowWidth + scrollBarWidth >=tabletPortrait)){ section.css({ 'visibility': 'visible', 'padding-left':sidebarSpace, 'padding-right': 0, 'margin-left': -sidebarSpace, 'margin-right': -space}); }else{ section.css({ 'visibility': 'visible', 'padding-left':0, 'padding-right': 0, 'margin-left': -space, 'margin-right': -space}); }} function fullHeight(section){ var sectionHeight=$(section).find('.eut-row').outerHeight(), space=(windowHeight - headerHeight - fieldBarHeight - sectionHeight)/2; section.css({ 'visibility': 'visible', 'padding-top':0, 'padding-bottom':0}); if(sectionHeight > (windowHeight - headerHeight)){ section.css({ 'visibility': 'visible', 'padding-top':40, 'padding-bottom': 40}); }else{ section.css({ 'visibility': 'visible', 'padding-top':space, 'padding-bottom': space}); }} function animatedBg(section){ section.mouseenter(function(){ section.addClass('zoom'); }); section.mouseleave(function(){ section.removeClass('zoom'); }); }} }; EUTHEM.isotope={ init: function(){ var $selector=$('.eut-isotope'); $selector.each(function(){ var $this=$(this), $container=$this.find('.eut-isotope-container'), $curCategory=$this.find('.eut-current-category'), dataSpinner=$this.data('spinner'); itemSize($this, $container, initIsotope); filter($this, $container); if(dataSpinner=='yes'){ addSpinner($this); }}); function filter($this, $container){ $this.find('.eut-filter li').click(function(){ var $filter=$(this), selector=$filter.attr('data-filter'), title=$filter.html(), $curCategory=$this.find('.eut-current-category'); if($curCategory.length > 0){ $curCategory.find('span').html(title); } $container.isotope({ filter: selector }); $(this).addClass('selected').siblings().removeClass('selected'); }); } function column(el){ var windowWidth=$(window).width() + scrollBarWidth, $element=el, columns={ desktop:$element.data('columns'), tabletL:$element.data('columns-tablet-landscape'), tabletP:$element.data('columns-tablet-portrait'), mobille:$element.data('columns-mobile') }; if(windowWidth > tabletLandscape){ columns=columns.desktop; }else if(windowWidth > tabletPortrait&&windowWidth < tabletLandscape){ columns=columns.tabletL; }else if(windowWidth > mobileScreen&&windowWidth < tabletPortrait){ columns=columns.tabletP; }else{ columns=columns.mobille; } return columns; } function itemSize(el, $container, callback){ var wrapperW=el.innerWidth(), gutter = !isNaN(el.data('gutter-size')) ? Math.abs(el.data('gutter-size'))/2:20, gap=el.hasClass('eut-with-gap') ? gutter:0, columns=column(el), offset=el.parents('.eut-section').data('section-type')!='fullwidth-element' ? gap * 2:-(gap * 2), columnW=(wrapperW + offset) / columns, columnW=(columnW % 1!==0) ? Math.ceil(columnW):columnW, containerW=columnW * columns, $isotopItem=$container.find('.eut-isotope-item'), $slider=$isotopItem.find('.eut-slider'); $container.find('.eut-image-square').css({ 'width': columnW }).find('.eut-media').css({ 'height': columnW -(gap * 2) }); if(columns!=1){ $container.css({ 'width':containerW, 'margin-right':- gap, 'margin-left':- gap }); $isotopItem.css({ 'padding-left':gap, 'padding-right':gap, 'margin-bottom':gap*2, 'width':columnW }); } if(el.hasClass('eut-with-gap')&&$container.parents('.eut-section').data('section-type')=='fullwidth-element'){ el.css({'padding-left':gap*2, 'padding-right':gap*2 }); } if(columns!=1){ $container.find('.eut-image-large-square').css({ 'width': columnW * 2 }); $container.find('.eut-image-landscape').css({ 'width': columnW * 2 }).find('.eut-media').css({ 'height': columnW -(gap * 2) }); $container.find('.eut-image-portrait').css({ 'width': columnW }).find('.eut-media').css({ 'height':(columnW * 2) -(gap * 2) }); } if(columns==2){ $container.find('.eut-image-large-square').css({ 'width': columnW * 2 }); $container.find('.eut-image-landscape').css({ 'width': columnW }).find('.eut-media').css({ 'height':(columnW / 2) -(gap * 2) }); $container.find('.eut-image-portrait').css({ 'width': columnW }).find('.eut-media').css({ 'height':(columnW * 2) -(gap * 2) }); } if(columns==1){ $container.css({ 'width':'', 'margin-right':0, 'margin-left':0 }); $isotopItem.css({ 'padding-left':'', 'padding-right':'', 'width':columnW }); $container.find('.eut-image-square, .eut-image-large-square, .eut-image-portrait').css({ 'width': columnW -(gap * 2) }).find('.eut-media').css({ 'height': columnW }); $container.find('.eut-image-landscape').css({ 'width': columnW -(gap * 2) }).find('.eut-media').css({ 'height': columnW }); } $slider.each(function(){ var $that=$(this), owlSlider=$that.data('owlCarousel'); owlSlider.reinit(); }); if(callback) callback(el, $container); } function initIsotope(el, $container){ var layout=el.data('layout')!=='' ? el.data('layout'):'fitRows', columnWidth=$container.find('.eut-image-square').length > 0 ? '.eut-image-square':''; $container.imagesLoaded(function(){ $container.isotope({ resizable: true, itemSelector: '.eut-isotope-item', layoutMode: layout, animationEngine:'jquery', masonry: { columnWidth: columnWidth }}); var dataSpinner=$container.parent().data('spinner'); if(dataSpinner=='yes'){ setTimeout(function(){ removeSpinner($container); },2000); }else{ $container.css({'opacity': 1}); if(!isMobile.any()){ animation($container); }else{ $container.find('.eut-isotope-item-inner').addClass('eut-animated'); }} setTimeout(function(){ relayout($container); }, 1000); $(window).smartresize(function(){ itemSize(el, $container); relayout($container); }); }); } function relayout($container){ $container.isotope('layout'); } function animation($container){ var cnt=1, itemAppeared=1; $container.find('.eut-isotope-item').appear(function(){ var $this=$(this), delay=200 * cnt++; setTimeout(function (){ itemAppeared++; if(itemAppeared==cnt){ cnt=1; } $this.find('.eut-isotope-item-inner').addClass('eut-animated'); }, delay); }); } function addSpinner(el){ var $spinner=$('
    '); $spinner.appendTo(el); } function removeSpinner($container){ $container.parent().find('.eut-loader').fadeOut(600,function(){ $container.css({'opacity': 1}); animation($container); }); }}, noIsoFilters: function(){ var $selector=$('.eut-non-isotope'); $selector.each(function(){ var $that=$(this); $that.find('.eut-filter li').click(function(){ var selector=$(this).attr('data-filter'); if('*'==selector){ $that.find('.eut-non-isotope-item').fadeIn('1000'); }else{ $that.find('.eut-non-isotope-item').hide(); $that.find(selector).fadeIn('1000'); } $(this).addClass('selected').siblings().removeClass('selected'); }); }); }}; EUTHEM.footerSettings={ init: function(){ this.footerSize('#eut-footer .eut-section'); }, footerSize: function(section){ $(section).each(function(){ var $that=$(this), sectionType=$that.attr('data-section-type'); if(sectionType=='fullwidth-background'){ footerFullBg($that); } if(sectionType=='fullwidth-element'){ footerFullElement($that); }}); function footerFullBg(element){ var themeWidth=$('#eut-theme-wrapper').width(), contentWidth=element.parent().width(), space=(themeWidth - contentWidth)/2; element.css({ 'visibility': 'visible', 'padding-left':space, 'padding-right': space, 'margin-left': -space, 'margin-right': -space}); } function footerFullElement(element){ var themeWidth=$('#eut-theme-wrapper').width(), contentWidth=element.parent().width(), space=(themeWidth - contentWidth)/2; element.css({ 'visibility': 'visible', 'padding-left':0, 'padding-right': 0, 'margin-left': -space, 'margin-right': -space}); }}, fixedFooter: function(){ var $footer=$('#eut-footer'), sticky=$footer.data('sticky-footer'), windowHeight=$(window).height(), footerHeight=$footer.outerHeight(); if(sticky!='yes'||isMobile.any()) return; if(footerHeight > windowHeight){ $('#eut-footer').removeClass('eut-sticky-footer').prev().css('margin-bottom',0); }else{ $('#eut-footer').addClass('eut-sticky-footer').css('bottom', frameSize).prev().css('margin-bottom',footerHeight); }} }; EUTHEM.pageBasic={ init: function(){ this.bodyLoader(); this.gotoFirstSection(); this.removeVideoBg(); this.bgLoader(); this.imageLoader(); this.fitVid(); this.anchorBar(); this.searchModal(); this.onePageSettings(); this.hovers(); this.stickySidebar(); this.backtoTop(); this.lightBox(); this.socialShareLinks(); }, bodyLoader: function(){ var $body=$('body'), $overflow=$('#eut-loader-overflow'), $loader=$('#eut-loader'); $body.imagesLoaded(function(){ $loader.fadeOut(); $overflow.delay(200).fadeOut(700,function(){ EUTHEM.basicElements.animAppear(); }); }); }, gotoFirstSection: function(){ var $selector=$('#eut-feature-section .eut-goto-section'), $nextSection=$('#eut-main-content .eut-section').first().length ? $('#eut-main-content .eut-section').first():$('#eut-main-content'), headerHeight=0, fieldBarHeight=$('.eut-fields-bar').length ? $('.eut-fields-bar').outerHeight():0; if($('#eut-header').data('sticky-header')=='simply'||$('#eut-header').data('sticky-header')=='advanced'){ headerHeight=$('#eut-header-wrapper').height() -1; }else if($('#eut-header').data('sticky-header')=='shrink'){ headerHeight=$('#eut-header-wrapper').height() / 2; }else{ headerHeight=0; } $selector.on('click',function(){ $('html,body').animate({ scrollTop: $nextSection.offset().top - headerHeight - fieldBarHeight }, 1000); return false; }); }, bgLoader: function(){ $('#eut-main-content .eut-bg-image, #eut-footer .eut-bg-image').each(function (){ function imageUrl(input){ return input.replace(/"/g,"").replace(/url\(|\)$/ig, ""); } var image=new Image(), $that=$(this); image.src=imageUrl($that.css('background-image')); image.onload=function (){ $that.addClass('show'); };}); }, imageLoader: function(){ var selectors={ singleImage:'.eut-image', media:'.eut-media' }; $.each(selectors, function(key, value){ if($(this).length){ var item=$(this), imgLoad=imagesLoaded(item); imgLoad.on('always', function(){ if($(value).parent().is('#eut-single-media')){ $(value).find('img').animate({ 'opacity': 1 },1000); }else{ $(value).find('img').css('opacity', 1); }}); }}); }, removeVideoBg: function(){ var videoBg=$('.eut-bg-video'); if(isMobile.any()){ videoBg.parent().find('.eut-bg-image').css('opacity',1); videoBg.remove(); }else{ $('.eut-bg-wrapper').each(function (){ var bgImage=$(this).find('.eut-bg-image'); var bgVideo=$(this).find('.eut-bg-video'); if(bgVideo.length){ var videoElement=$(this).find('.eut-bg-video video'); var canPlayVideo=false; $(this).find('.eut-bg-video source').each(function(){ if(videoElement.get(0).canPlayType($(this).attr('type'))){ canPlayVideo=true; }}); if(canPlayVideo){ bgImage.remove(); EUTHEM.videoResize.init($(this)); }else{ bgVideo.remove(); bgImage.css('opacity',1); }} }); }}, fitVid: function(){ $('.eut-video, .eut-media').fitVids(); $('iframe[src*="youtube"]').parent().fitVids(); $('iframe[src*="vimeo"]').parent().fitVids(); }, anchorBar: function(){ var $anchor=$('#eut-anchor-menu'); if(!$anchor.length > 0) return; var $btn=$anchor.find('.eut-menu-button'), $menu=$anchor.find(' > ul'); $btn.on('click',function(){ $menu.slideToggle(300); }); }, anchorSticky: function(){ var $anchor=$('#eut-anchor-menu'); if(!$anchor.length > 0) return; var $anchorWrapper=$('#eut-anchor-menu-wrapper'), headerHeight=$('#eut-header').data('sticky-header')!='none' ? $('#eut-inner-header').height():0, anchorTop=$anchorWrapper.offset().top, offset=anchorTop - headerHeight - frameSize, scroll=$(window).scrollTop(); if(!$anchor.length > 0) return; if(scroll >=offset){ $anchor.addClass('eut-sticky').css({ 'top':headerHeight + frameSize }); }else{ $anchor.removeClass('eut-sticky').css({ 'top':'' }); }}, searchModal: function(){ var $btn=$('.eut-toggle-search-modal'), $bodyOverlay=$('
    '), $searchContent=$('#eut-search-modal'); $bodyOverlay.appendTo('#eut-theme-wrapper'); $btn.on('click',function(e){ e.preventDefault(); openSearchModal(); }); $('.eut-search-placeholder').on('click',function(){ $searchContent.find('.eut-search-placeholder').addClass('hide'); $searchContent.find('.eut-search-textfield').show().focus(); }); $('.eut-close-search').on('click',function(){ closeSearchModal(); }); function openSearchModal(){ $bodyOverlay.fadeIn(function(){ $searchContent.fadeIn(); }); } function closeSearchModal(){ $searchContent.fadeOut(function(){ $bodyOverlay.fadeOut(); $searchContent.find('.eut-search-placeholder').removeClass('hide'); $searchContent.find('.eut-search-textfield').hide(); }); }}, shrinkHeaderHeight:function(){ var headerHeight=0, stickyType=$('#eut-header').data('sticky-header'), deviceSticky=$('#eut-header').data('device-sticky-header'); if(stickyType!='none'&&$(window).width() + scrollBarWidth > tabletPortrait&&$('#eut-header').length > 0){ if(stickyType=='simply'||stickyType=='advanced'){ headerHeight=$('#eut-inner-header').outerHeight(); } if(stickyType=='shrink'){ headerHeight=$('#eut-header-wrapper').outerHeight() * 0.65; if(headerHeight < 40){ headerHeight=50; }} }else if(stickyType!='none'&&$(window).width() + scrollBarWidth < tabletPortrait&&$('#eut-header').length > 0){ headerHeight=$('#eut-inner-header').outerHeight(); } return headerHeight; }, onePageSettings: function(){ var headerHeight=EUTHEM.pageBasic.shrinkHeaderHeight(), fieldBarHeight=$('.eut-fields-bar').length ? $('.eut-fields-bar').outerHeight():0; $('a[href*="#"]:not([href="#"])').click(function(e){ var target=$(this.hash); if(target.length&&(target.hasClass('eut-section')||target.hasClass('eut-bookmark'))){ $('html,body').animate({ scrollTop: target.offset().top - headerHeight - fieldBarHeight + 1 }, 1000); return false; }}); }, onePageMenu: function(){ var $section=$('#eut-main-content .eut-section[id]'); if(!$section.length > 0) return; var headerHeight=EUTHEM.pageBasic.shrinkHeaderHeight(), fieldBarHeight=$('.eut-fields-bar').length ? $('.eut-fields-bar').outerHeight():0, offsetTop=headerHeight + fieldBarHeight + wpBarHeight, scroll=$(window).scrollTop(); $section.each(function(){ var $that=$(this), currentId=$that.attr('id'), sectionOffset=$that.offset().top - offsetTop; if(sectionOffset <=scroll&§ionOffset + $that.outerHeight() > scroll){ $('a[href*="#' + currentId + '"]').parent().addClass('active'); }else{ $('a[href*="#' + currentId + '"]').parent().removeClass("active"); }}); }, hovers: function(){ var $hoverItem=$('.eut-image-hover'); if(!isMobile.any()){ $hoverItem.unbind('click'); $hoverItem.unbind('mouseenter mouseleave').bind('mouseenter mouseleave', function(){ $(this).toggleClass('hover'); }); }else{ $hoverItem.on('touchend', function(e){ var $item=$(this); if($item.hasClass('hover')){ return true; }else{ $item.addClass('hover'); $hoverItem.not(this).removeClass('hover'); e.preventDefault(); return false; }}); $(document).on('touchstart touchend', function(e){ if(!$hoverItem.is(e.target)&&$hoverItem.has(e.target).length===0){ $hoverItem.removeClass('hover'); }}); }}, stickySidebar: function(){ var $item=$('#eut-sidebar.eut-fixed-sidebar'); if(!$item.length){ return; } var itemId=$item.attr('id'), itemWidth=$item.outerWidth() - 1, itemFloat='left'; if($('#eut-main-content .eut-right-sidebar').length){ itemFloat='right'; } if(!$item.length > 0||isMobile.any()){ return false; } $item.wrap('
    '); $item.parent().css({ 'width':itemWidth, 'float':itemFloat, 'position':'relative' }); $item.css({ 'width':itemWidth, 'position':'static' }); }, stickySidebarScroll: function(){ var $content=$('#eut-content-area'), $item=$('#eut-sidebar.eut-fixed-sidebar'); if(!$item.length){ return; } var itemHeight=$item.outerHeight(), headerHeight=$('#eut-header').data('sticky-header')!='none' ? $('#eut-inner-header').outerHeight():0, fieldBarHeight=$('.eut-fields-bar').length ? $('.eut-fields-bar').outerHeight():0, offset=headerHeight + fieldBarHeight + frameSize +30, windowHeight=$(window).height(), contentHeight=$content.outerHeight(), contentTop=$content.offset().top, contentBottom=contentTop + contentHeight; if(!$item.length > 0||itemHeight > windowHeight||isMobile.any()){ return false; } if(( $(window).scrollTop() > contentTop - offset)&&($(window).scrollTop() < contentBottom -(offset + itemHeight))){ $item.css({'position':'fixed', 'top': offset }); } else if($(window).scrollTop() > contentTop){ $item.css({'position':'absolute', 'top': contentHeight - itemHeight }); } else if($(window).scrollTop() < contentTop){ $item.css({'position':'static', 'top':'auto' }); }}, backtoTop: function(){ var selectors={ topBtn:'.eut-top-btn', dividerBtn:'.eut-divider-backtotop', topLink:'a[href="#eut-goto-header"]' }; if($('#eut-header').attr('data-backtotop')!='no'){ var btnUp=$('
    ', {'class':'eut-top-btn fa fa-angle-up'}); btnUp.appendTo('#eut-theme-wrapper'); $(window).on('scroll', function(){ if($(this).scrollTop() > 600){ $('.eut-top-btn').addClass('show'); $('.eut-side-area-button').addClass('push'); }else{ $('.eut-top-btn').removeClass('show'); $('.eut-side-area-button').removeClass('push'); }}); } $.each(selectors, function(key, value){ $(value).on('click', function(){ $('html, body').animate({scrollTop: 0}, 900); }); }); }, lightBox: function(){ $('.eut-image-popup').each(function(){ $(this).magnificPopup({ type: 'image', preloader: false, fixedBgPos: true, fixedContentPos: true, removalDelay: 200, callbacks: { beforeOpen: function(){ var mfpWrap=this.wrap; this.bgOverlay.fadeIn(200); addSpinner(mfpWrap); }, imageLoadComplete: function(){ var $spinner=this.wrap.find('.eut-loader'), $content=this.container; removeSpinner($spinner, $content); }, beforeClose: function(){ this.wrap.fadeOut(100); this.bgOverlay.fadeOut(100); }, }, image: { verticalFit: true, titleSrc: function(item){ var title=item.el.data('title') ? item.el.data('title'):'', caption=item.el.data('desc') ? '
    ' + item.el.data('desc') + '':''; if(''===title){ title=item.el.find('.eut-title').html() ? item.el.find('.eut-title').html():''; } if(''===caption){ caption=item.el.find('.eut-caption').html() ? '
    ' + item.el.find('.eut-caption').html() + '':''; } return title + caption; }} }); }); $('.eut-gallery-popup, .eut-post-gallery-popup').each(function(){ $(this).magnificPopup({ delegate: 'a', type: 'image', preloader: false, fixedBgPos: true, fixedContentPos: true, removalDelay: 200, callbacks: { beforeOpen: function(){ var mfpWrap=this.wrap; this.bgOverlay.fadeIn(200); addSpinner(mfpWrap); }, imageLoadComplete: function(){ var $spinner=this.wrap.find('.eut-loader'), $content=this.container; removeSpinner($spinner, $content); }, beforeClose: function(){ this.wrap.fadeOut(100); this.bgOverlay.fadeOut(100); }, }, gallery: { enabled:true }, image: { tError: 'The image #%curr% could not be loaded.', titleSrc: function(item){ var title=item.el.data('title') ? item.el.data('title'):'', caption=item.el.data('desc') ? '
    ' + item.el.data('desc') + '':''; if(''===title){ title=item.el.find('.eut-title').html() ? item.el.find('.eut-title').html():''; } if(''===caption){ caption=item.el.find('.eut-caption').html() ? '
    ' + item.el.find('.eut-caption').html() + '':''; } return title + caption; }} }); }); if(1==engic_eutf_main_data.wp_gallery_popup){ $('.gallery').each(function(){ $(this).magnificPopup({ delegate: 'a', type: 'image', preloader: false, fixedBgPos: true, fixedContentPos: true, removalDelay: 200, callbacks: { beforeOpen: function(){ var mfpWrap=this.wrap; this.bgOverlay.fadeIn(200); addSpinner(mfpWrap); }, imageLoadComplete: function(){ var $spinner=this.wrap.find('.eut-loader'), $content=this.container; removeSpinner($spinner, $content); }, beforeClose: function(){ this.wrap.fadeOut(100); this.bgOverlay.fadeOut(100); }, }, gallery: { enabled:true }, image: { tError: 'The image #%curr% could not be loaded.', titleSrc: function(item){ var title=item.el.closest('.gallery-item').find('.gallery-caption').html() ? item.el.closest('.gallery-item').find('.gallery-caption').html():''; return title; }} }); }); } if($('#eut-body').hasClass('eut-privacy-video-embeds-disabled')){ $('.eut-youtube-popup, .eut-vimeo-popup, .eut-video-popup').each(function(){ $(this).attr({"target":"_blank"}); }); }else{ $('.eut-youtube-popup, .eut-vimeo-popup, .eut-video-popup').each(function(){ $(this).magnificPopup({ disableOn: 0, type: 'iframe', preloader: false, fixedBgPos: true, fixedContentPos: true, removalDelay: 200, callbacks: { beforeOpen: function(){ var mfpWrap=this.wrap; this.bgOverlay.fadeIn(200); addSpinner(mfpWrap); }, open: function(){ var $spinner=this.wrap.find('.eut-loader'), $content=this.container; removeSpinner($spinner, $content); }, beforeClose: function(){ this.wrap.fadeOut(100); this.bgOverlay.fadeOut(100); }, }}); }); } $('.eut-page-popup').each(function(){ $(this).magnificPopup({ disableOn: 0, type: 'iframe', preloader: false, fixedBgPos: true, fixedContentPos: true, removalDelay: 200, callbacks: { beforeOpen: function(){ var mfpWrap=this.wrap; this.bgOverlay.fadeIn(200); addSpinner(mfpWrap); }, open: function(){ var $spinner=this.wrap.find('.eut-loader'), $content=this.container; removeSpinner($spinner, $content); }, beforeClose: function(){ this.wrap.fadeOut(100); this.bgOverlay.fadeOut(100); }, }}); }); function addSpinner(mfpWrap){ var spinner='
    '; $(spinner).appendTo(mfpWrap); } function removeSpinner(spinner, content){ setTimeout(function(){ spinner.fadeOut(1000, function(){ content.animate({'opacity':1},600); }); }, 700); }}, socialShareLinks: function(){ $('.eut-social-share-facebook').click(function (e){ e.preventDefault(); window.open('https://www.facebook.com/sharer/sharer.php?u=' + $(this).attr('href'), "facebookWindow", "height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0"); return false; }); $('.eut-social-share-twitter').click(function (e){ e.preventDefault(); window.open('http://twitter.com/intent/tweet?text=' + encodeURIComponent($(this).attr('title')) + ' ' + $(this).attr('href'), "twitterWindow", "height=450,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0"); return false; }); $('.eut-social-share-linkedin').click(function (e){ e.preventDefault(); window.open('http://www.linkedin.com/shareArticle?mini=true&url=' + $(this).attr('href') + '&title=' + encodeURIComponent($(this).attr('title')), "linkedinWindow", "height=500,width=820,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0"); return false; }); $('.eut-social-share-googleplus').click(function (e){ e.preventDefault(); window.open('https://plus.google.com/share?url=' + $(this).attr('href'), "googleplusWindow", "height=600,width=600,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0"); return false; }); $('.eut-social-share-pinterest').click(function (e){ e.preventDefault(); window.open('http://pinterest.com/pin/create/button/?url=' + $(this).attr('href') + '&media=' + $(this).data('pin-img') + '&description=' + encodeURIComponent($(this).attr('title')), "pinterestWindow", "height=600,width=600,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0"); return false; }); $('.eut-social-share-reddit').click(function (e){ e.preventDefault(); window.open('//www.reddit.com/submit?url=' + $(this).attr('href'), "redditWindow", "height=600,width=820,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0"); return false; }); $('.eut-like-counter-link').click(function (e){ e.preventDefault(); var link=$(this); var id=link.data('post-id'), counter=link.parent().find('.eut-like-counter'); var ajaxurl=engic_eutf_main_data.ajaxurl; $.ajax({type: 'POST', url: ajaxurl, data: 'action=engic_eutf_likes_callback&likes_id=' + id, success: function(result){ counter.html(result); }}); return false; }); }}; EUTHEM.basicElements={ init: function(){ this.blogLarge(); this.pieChart(); this.progressBars(); this.counter(); this.slider(); this.carousel(); this.testimonial(); this.accordionToggle(); this.tabs(); this.vcAccordion(); this.vcTab(); this.infoBox(); this.expandableInfo(); if(!$('#eut-loader-overflow').length > 0){ this.animAppear(); }}, blogLarge: function(){ var $element=$('.eut-blog.eut-large-media'); if(!$element.length > 0) return; var $item=$element.find('.eut-blog-item'); $item.each(function(){ var $that=$(this); if(isMobile.any()){ $that.addClass('eut-animated'); }else{ $that.appear(function(){ setTimeout(function (){ $that.addClass('eut-animated'); }, 600); },{accX: 0, accY: -150}); }}); }, pieChart: function(){ $('.eut-chart-number').each(function(){ var $element=$(this), delay=$element.parent().attr('data-delay')!=='' ? parseInt($element.parent().attr('data-delay')):0, chartSize='170'; $element.css({ 'width':chartSize, 'height':chartSize, 'line-height':chartSize + 'px' }); $element.appear(function(){ setTimeout(function (){ EUTHEM.basicElements.pieChartInit($element); }, delay); }); }); }, pieChartInit: function($element){ var activeColor=$element.data('pie-active-color')!=='' ? $element.data('pie-active-color'):'rgba(0,0,0,1)', pieColor=$element.data('pie-color')!=='' ? $element.data('pie-color'):'rgba(0,0,0,0.1)', pieLineCap=$element.data('pie-line-cap')!=='' ? $element.data('pie-line-cap'):'round', lineSize=$element.data('pie-line-size')!=='' ? $element.data('pie-line-size'):'6', chartSize='170'; $element.easyPieChart({ barColor: activeColor, trackColor: pieColor, scaleColor: false, lineCap: pieLineCap, lineWidth: lineSize, animate: 1500, size: chartSize }); }, progressBars: function(){ var selector='.eut-progress-bar'; $(selector).each(function(){ $(this).appear(function(){ var val=$(this).attr('data-value'), percentage=$(''+ val + '%'+''); $(this).find('.eut-bar-line').animate({ width: val + '%' }, 1600); if($(this).parent().hasClass('eut-style-1')){ percentage.appendTo($(this).find('.eut-bar')).animate({ left: val + '%' }, 1600); }else{ percentage.appendTo($(this).find('.eut-bar-title')); }}); }); }, counter: function(){ var selector='.eut-counter-item span'; $(selector).each(function(i){ var elements=$(selector)[i], thousandsSeparator=$(this).attr('data-thousands-separator')!=='' ? $(this).attr('data-thousands-separator'):','; $(elements).attr('id','eut-counter-' + i); var delay=$(this).parents('.eut-counter').attr('data-delay')!=='' ? parseInt($(this).parents('.eut-counter').attr('data-delay')):200, options={ useEasing:true, useGrouping:true, separator:$(this).attr('data-thousands-separator-vis')!=='yes' ? thousandsSeparator:'', decimal:$(this).attr('data-decimal-separator')!=='' ? $(this).attr('data-decimal-separator'):'.', prefix:$(this).attr('data-prefix')!=='' ? $(this).attr('data-prefix'):'', suffix:$(this).attr('data-suffix')!=='' ? $(this).attr('data-suffix'):'' }, counter=new countUp($(this).attr('id') , $(this).attr('data-start-val'), $(this).attr('data-end-val'), $(this).attr('data-decimal-points'), 2.5, options); $(this).appear(function(){ setTimeout(function (){ counter.start(); }, delay); }); }); }, slider: function(settings){ var $element=$('.eut-slider:not(#eut-feature-slider)'); $element.each(function(){ var $that=$(this), carouselSettings={ sliderSpeed:(parseInt($that.attr('data-slider-speed'))) ? parseInt($that.attr('data-slider-speed')):3000, paginationSpeed:(parseInt($that.attr('data-pagination-speed'))) ? parseInt($that.attr('data-pagination-speed')):400, autoHeight:$that.attr('data-slider-autoheight')=='yes' ? true:false, sliderPause:$that.attr('data-slider-pause')=='yes' ? true:false, autoPlay:$that.attr('data-slider-autoplay')!='no' ? true:false, baseClass:'eut-carousel', pagination:$that.parents('.eut-element').hasClass('eut-isotope') ? true:false, }; carouselInit($that, carouselSettings); customNav($that); }); function carouselInit($element, settings){ $element.owlCarousel({ navigation:false, pagination:settings.pagination, autoHeight:settings.autoHeight, slideSpeed:settings.paginationSpeed, paginationSpeed:settings.paginationSpeed, singleItem:true, autoPlay:settings.autoPlay, stopOnHover:settings.sliderPause, baseClass:'owl-carousel', theme:'eut-theme' }); if(settings.autoPlay===true){ $element.trigger('owl.play', settings.sliderSpeed); }} function customNav($element){ $element.parent().find('.eut-carousel-next').click(function(){ $element.trigger('owl.next'); }); $element.parent().find('.eut-carousel-prev').click(function(){ $element.trigger('owl.prev'); }); }}, carousel: function(){ var $carousel=$('.eut-carousel'); $carousel.each(function(){ var $that=$(this), carouselSettings={ sliderSpeed:(parseInt($that.attr('data-slider-speed'))) ? parseInt($that.attr('data-slider-speed')):3000, paginationSpeed:(parseInt($that.attr('data-pagination-speed'))) ? parseInt($that.attr('data-pagination-speed')):400, autoHeight:$that.attr('data-slider-autoheight')=='yes' ? true:'', sliderPause:$that.attr('data-slider-pause')=='yes' ? true:false, autoPlay:$that.attr('data-slider-autoplay')!='no' ? true:false, itemNum:parseInt($that.attr('data-items')), itemsTablet:[768,2], baseClass:'eut-carousel' }; carouselInit($that, carouselSettings); customNav($that); }); function carouselInit($element, settings){ $element.owlCarousel({ navigation:false, pagination:false, autoHeight:settings.autoHeight, slideSpeed:400, paginationSpeed:settings.paginationSpeed, singleItem:false, items:settings.itemNum, autoPlay:settings.autoPlay, stopOnHover:settings.sliderPause, baseClass:'eut-carousel-element', theme:'', itemsDesktop:false, itemsDesktopSmall:false, itemsTablet:settings.itemsTablet }); if(settings.autoPlay===true){ $element.trigger('owl.play',settings.sliderSpeed); } $element.css('visibility','visible'); } function customNav($element){ $element.parent().find('.eut-carousel-next').click(function(){ $element.trigger('owl.next'); }); $element.parent().find('.eut-carousel-prev').click(function(){ $element.trigger('owl.prev'); }); }}, testimonial: function(){ var $testimonial=$('.eut-testimonial'); $testimonial.each(function(){ var $that=$(this), carouselSettings={ sliderSpeed:(parseInt($that.attr('data-slider-speed'))) ? parseInt($that.attr('data-slider-speed')):3000, paginationSpeed:(parseInt($that.attr('data-pagination-speed'))) ? parseInt($that.attr('data-pagination-speed')):400, autoHeight:$that.attr('data-slider-autoheight')=='yes' ? true:'', sliderPause:$that.attr('data-slider-pause')=='yes' ? true:false, autoPlay:$that.attr('data-slider-autoplay')!='no' ? true:false, itemNum:parseInt($that.attr('data-items')), baseClass:'eut-testimonial' }; carouselInit($that, carouselSettings); }); function carouselInit($element, settings){ $element.owlCarousel({ navigation:false, pagination:true, autoHeight:settings.autoHeight, slideSpeed:400, paginationSpeed:settings.paginationSpeed, singleItem:true, autoPlay:settings.autoPlay, stopOnHover:settings.sliderPause, baseClass:'eut-testimonial-element', theme:'', }); if(settings.autoPlay===true){ $element.trigger('owl.play',settings.sliderSpeed); }} }, iconBox: function(){ var $parent=$('.eut-row'), arrHeight=[]; $parent.each(function(){ var $iconBox=$(this).find('.eut-box-icon.eut-advanced-hover'); if(!$iconBox.length) return; if(isMobile.any()){ $iconBox.removeClass('eut-advanced-hover'); return; } $iconBox.css({ 'height':'', 'padding-top':'' }); $iconBox.each(function(){ var $that=$(this), $iconBoxHeigth=$that.height(); arrHeight.push($iconBoxHeigth); }); var maxHeight=Math.max.apply(Math,arrHeight) + 20, iconHeight=$iconBox.find('.eut-wrapper-icon').height(), paddingTop=(maxHeight - iconHeight)/2; $iconBox.css({ 'height':maxHeight, 'padding-top':paddingTop }); setTimeout(function(){ $iconBox.addClass('active'); }, 300); $iconBox.unbind('mouseenter mouseleave').bind('mouseenter mouseleave', function(){ $(this).toggleClass('hover'); }); }); }, accordionToggle: function(){ $('.eut-toggle-wrapper.eut-first-open').each(function(){ $(this).find('li').first().addClass('active'); }); $('.eut-toggle-wrapper li.active').find('.eut-title').addClass('active'); $('.eut-toggle-wrapper li .eut-title').click(function (){ $(this) .toggleClass('active') .next().slideToggle(350); }); $('.eut-accordion-wrapper.eut-first-open').each(function(){ $(this).find('li').first().addClass('active'); }); $('.eut-accordion-wrapper li.active').find('.eut-title').addClass('active'); $('.eut-accordion-wrapper li .eut-title').click(function (){ $(this) .toggleClass('active').next().slideToggle(350) .parent().siblings().find('.eut-title').removeClass('active') .next().slideUp(350); }); }, tabs: function(){ $('.eut-tabs-title li').click(function (){ $(this).addClass('active').siblings().removeClass('active'); $(this).parent().parent().find('.eut-tabs-wrapper').find('.eut-tab-content').eq($(this).index()).addClass('active').siblings().removeClass('active'); }); $('.eut-tabs-title').each(function(){ $(this).find('li').first().click(); }); }, vcAccordion: function(){ var $target=$('.vc_tta-accordion').find('a[data-vc-accordion]'), $panel=$('.vc_tta-panel'); if($panel.find('.eut-isotope').length){ setTimeout(function(){ EUTHEM.isotope.init(); },100); } $target.on('click',function(){ if($panel.find('.eut-isotope').length){ setTimeout(function(){ EUTHEM.isotope.init(); },100); }}); }, vcTab: function(){ var $target=$('.vc_tta-tabs').find('a[data-vc-tabs]'), $panel=$('.vc_tta-panel'); if($panel.find('.eut-isotope').length){ setTimeout(function(){ EUTHEM.isotope.init(); },100); } $target.on('click',function(){ if($panel.find('.eut-isotope').length){ setTimeout(function(){ EUTHEM.isotope.init(); },100); }}); }, infoBox: function(){ var infoMessage=$('.eut-message'), closeBtn=infoMessage.find($('.eut-close')); closeBtn.click(function (){ $(this).parent().slideUp(150); }); }, animAppear: function(){ if(isMobile.any()){ $('.eut-animated-item').css('opacity',1); }else{ $('.eut-animated-item').each(function(){ var timeDelay=$(this).attr('data-delay'); $(this).appear(function(){ var $that=$(this); setTimeout(function (){ $that.addClass('eut-animated'); }, timeDelay); },{accX: 0, accY: -150}); }); }}, expandableInfo: function(){ var $item=$('.eut-expandable-info'); $item.each(function(){ var $that=$(this), $wrapper=$that.parents('.eut-section'), $content=$that.find('.eut-expandable-info-content'), paddingTop=parseInt($wrapper.css('padding-top')), paddingBottom=parseInt($wrapper.css('padding-bottom')); $wrapper.addClass('eut-pointer-cursor'); $wrapper.on('click',function(){ var headerHeight=$('#eut-header').data('sticky-header')!='none' ? $('#eut-inner-header').outerHeight():0, fieldBarHeight=$('.eut-fields-bar').length ? $('.eut-fields-bar').outerHeight():0, offset=$(this).offset().top, distance=offset -(headerHeight + fieldBarHeight); if($content.is(":visible")){ $content.slideUp(600, function(){ $content.removeClass('show'); }); }else{ $('html,body').animate({ scrollTop: distance }, 600,function(){ $content.slideDown(function(){ $content.addClass('show'); return; }); }); }}); $wrapper.mouseenter(function(){ $(this).css({ 'padding-top':paddingTop + 40, 'padding-bottom':paddingBottom + 40 }); }); $wrapper.mouseleave(function(){ $(this).css({ 'padding-top':paddingTop, 'padding-bottom':paddingBottom }); }); }); }}; var largeScreen=2048; var tabletLandscape=1200; var tabletPortrait=1023; var mobileScreen=767; var wpBarHeight=$('#eut-body').hasClass('admin-bar') ? 32:0; var isMobile={ Android: function(){ return navigator.userAgent.match(/Android/i); }, BlackBerry: function(){ return navigator.userAgent.match(/BlackBerry/i); }, iOS: function(){ return navigator.userAgent.match(/iPhone|iPad|iPod/i); }, Opera: function(){ return navigator.userAgent.match(/Opera Mini/i); }, Windows: function(){ return navigator.userAgent.match(/IEMobile/i); }, any: function(){ return (isMobile.Android()||isMobile.BlackBerry()||isMobile.iOS()||isMobile.Opera()||isMobile.Windows()); }}; var parent, child, scrollBarWidth; if(scrollBarWidth===undefined){ parent=$('
    ').appendTo('body'); child=parent.children(); scrollBarWidth=child.innerWidth()-child.height(99).innerWidth(); parent.remove(); } $(document).ready(function(){ EUTHEM.documentReady.init(); }); $(window).smartresize(function(){ EUTHEM.documentResize.init(); }); $(window).load(function(){ EUTHEM.documentLoad.init(); }); $(window).on('scroll', function(){ EUTHEM.documentScroll.init(); }); })(jQuery);