");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()});
!function(a,b,c){var d=window.matchMedia;"undefined"!=typeof module&&module.exports?module.exports=c(d):"function"==typeof define&&define.amd?define(function(){return b[a]=c(d)}):b[a]=c(d)}("enquire",this,function(a){"use strict";function b(a,b){var c,d=0,e=a.length;for(d;e>d&&(c=b(a[d],d),c!==!1);d++);}function c(a){return"[object Array]"===Object.prototype.toString.apply(a)}function d(a){return"function"==typeof a}function e(a){this.options=a,!a.deferSetup&&this.setup()}function f(b,c){this.query=b,this.isUnconditional=c,this.handlers=[],this.mql=a(b);var d=this;this.listener=function(a){d.mql=a,d.assess()},this.mql.addListener(this.listener)}function g(){if(!a)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!a("only all").matches}return e.prototype={setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(a){return this.options===a||this.options.match===a}},f.prototype={addHandler:function(a){var b=new e(a);this.handlers.push(b),this.matches()&&b.on()},removeHandler:function(a){var c=this.handlers;b(c,function(b,d){return b.equals(a)?(b.destroy(),!c.splice(d,1)):void 0})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){b(this.handlers,function(a){a.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var a=this.matches()?"on":"off";b(this.handlers,function(b){b[a]()})}},g.prototype={register:function(a,e,g){var h=this.queries,i=g&&this.browserIsIncapable;return h[a]||(h[a]=new f(a,i)),d(e)&&(e={match:e}),c(e)||(e=[e]),b(e,function(b){d(b)&&(b={match:b}),h[a].addHandler(b)}),this},unregister:function(a,b){var c=this.queries[a];return c&&(b?c.removeHandler(b):(c.clear(),delete this.queries[a])),this}},new g});
(function(window){
'use strict';
function classReg(className){
return new RegExp("(^|\\s+)" + className + "(\\s+|$)");
}
var hasClass, addClass, removeClass;
if('classList' in document.documentElement){
hasClass=function(elem, c){
return elem.classList.contains(c);
};
addClass=function(elem, c){
elem.classList.add(c);
};
removeClass=function(elem, c){
elem.classList.remove(c);
};}else{
hasClass=function(elem, c){
return classReg(c).test(elem.className);
};
addClass=function(elem, c){
if(!hasClass(elem, c)){
elem.className=elem.className + ' ' + c;
}};
removeClass=function(elem, c){
elem.className=elem.className.replace(classReg(c), ' ');
};}
function toggleClass(elem, c){
var fn=hasClass(elem, c) ? removeClass:addClass;
fn(elem, c);
}
var classie={
hasClass: hasClass,
addClass: addClass,
removeClass: removeClass,
toggleClass: toggleClass,
has: hasClass,
add: addClass,
remove: removeClass,
toggle: toggleClass
};
if(typeof define==='function'&&define.amd){
define(classie);
}else{
window.classie=classie;
}})(window);
(function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),this.animationNameCache=new c}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],e=0,f=b.length;f>e;e++)d=b[e],g.push(function(){var a,b,e,f;for(e=d.addedNodes||[],f=[],a=0,b=e.length;b>a;a++)c=e[a],f.push(this.doSync(c));return f}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=""+a.className+" "+this.config.animateClass,null!=this.config.callback?this.config.callback(a):void 0},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},e.prototype.vendors=["moz","webkit"],e.prototype.vendorSet=function(a,b){var c,d,e,f;f=[];for(c in b)d=b[c],a[""+c]=d,f.push(function(){var b,f,g,h;for(g=this.vendors,h=[],b=0,f=g.length;f>b;b++)e=g[b],h.push(a[""+e+c.charAt(0).toUpperCase()+c.substr(1)]=d);return h}.call(this));return f},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(e=d(a),c=e.getPropertyCSSValue(b),i=this.vendors,g=0,h=i.length;h>g;g++)f=i[g],c=c||e.getPropertyCSSValue("-"+f+"-"+b);return c},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=d(a).getPropertyValue("animation-name")}return"none"===b?"":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}).call(this);
jQuery(document).ready(function(){
if($('#subheader').hasClass('servicos')){
var telBarra=$(".servicos-phone p.telefone span:first-child").html().replace(/([ -.*+?^=!:${}()|\[\]\/\\])/g,'');
var whatsBarra=$(".servicos-phone p.telefone span:last-child").html().replace('
','');
var whatsBar=whatsBarra.replace(/([ -.*+?^=!:${}()|\[\]\/\\])/g,'');
$('.contatos-mobile .telefone-botao a').attr('href','tel:+55'+telBarra);
$('.contatos-mobile .whatsapp-botao a').attr('href','https://api.whatsapp.com/send?text=Olá, gostaria de saber mais informações sobre a Objeto Interiores!&phone=+55'+whatsBarra);
console.log($('#text-2 > div > ul:nth-child(2) > li:nth-child(1),#content > div > div > div:nth-child(1) > section:nth-child(4) > div > div > div.wpb_column.vc_column_container.vc_col-sm-4 > div > div > div > div > address > div:nth-child(5)').html('
Telefones: '+$(".servicos-phone p.telefone span:first-child").html()+' / '+whatsBarra));
}
$("body.single-service.postid-1680 #subheader ul").html("
Consultoria ProfissionalPisos de Última GeraçãoVenda com Instalação InclusaParcelamento em 12 X");
$("body.single-service.postid-605 #subheader ul").html("
Indicada pelos Melhores Arquitetos de Designer de InterioresMaior Variedade de Modelos e TecidosTecnologia de abertura automatizadaMenor Prazo de EntregaParcelamento em até 12 X");
$("body.single-service.postid-599 #subheader ul").html("
Cortinas Sob MedidaParcelamento em Até 12x SEM JUROSTempo de Entrega ReduzidoConsultores EspecializadosQualidade e Durabilidade de materialVariedade de Tecidos e ModelosMelhor preço com Fino AcabamentoLinha Básica e Linha LuxoCatálogos Nacionais e ImportadosAtendimento Personalizado3 Lojas físicas para melhor atende-los");
$("body.single-service.postid-1678 #subheader ul").html("
Equipamentos de Alta TecnologiaQualidade e DesignConsultoria ProfissionalElaboração e Execução de ProjetosParcelamento em até 24 X");
$("body.single-service.postid-606 #subheader ul").html("
Qualidade de materialMelhor preçoLinha Básica e linha luxoFino acabamentoCatálogos nacionais e importadosParcelamento em até 12x sem jurosDurabilidade");
$("body.single-service.postid-1679 #subheader ul").html("
Alto Padrão de AcabamentoQualidade e DesignModelos ExclusivosTecidos NobresParcelamento em até 12 X");
$("body.single-service.postid-604 #subheader ul").html("
Parcelamento em até 24xSoluções inteligentes Otimização de EspaçoQualidade das lojas de BrasíliaPreço do Entorno em Valparaizo de GoiásMelhor Custo x BenefícioShowroom com mais de 300 m²Móveis de MarcaFabricação Industrial");
'use strict';
var mobile_menu_show=0;
var grid_size=10;
var col=4;
var tmp_col=col;
var sr=466/700;
var $window=jQuery(window);
jQuery('section[data-type="background"]').each(function(){
var $bgobj=jQuery(this);
jQuery(window).scroll(function(){
var yPos=-($window.scrollTop() / $bgobj.data('speed'));
var coords='50% '+ yPos + 'px';
$bgobj.css({ backgroundPosition: coords });
});
});
document.createElement("article");
document.createElement("section");
function init_de(){
var $window=jQuery(window);
jQuery('section[data-type="background"]').each(function (){
var $bgobj=jQuery(this);
jQuery(window).scroll(function (){
enquire.register("screen and (min-width: 993px)", {
match: function (){
var yPos=-($window.scrollTop() / $bgobj.data('speed'));
var coords='50% ' + yPos + 'px';
$bgobj.css({ backgroundPosition: coords });
}});
});
document.createElement("article");
document.createElement("section");
});
jQuery('.de-team-list').each(function(){
jQuery(this).find("img").on('load', function(){
var w=jQuery(this).css("width");
var h=jQuery(this).css("height");
jQuery(this).parent().parent().find(".team-pic").css("height",h);
jQuery(this).parent().parent().find(".team-desc").css("width",w);
jQuery(this).parent().parent().find(".team-desc").css("height",h);
jQuery(this).parent().parent().find(".team-desc").css("top",h);
}).each(function(){
if(this.complete) jQuery(this).load();
});
});
jQuery(".de-team-list").on("mouseenter", function (){
var h;
h=jQuery(this).find("img").css("height");
jQuery(this).find(".team-desc").stop(true).animate({'top': "0px"},350,'easeOutQuad');
jQuery(this).find("img").stop(true).animate({'margin-top': "-100px"},400,'easeOutQuad');
}).on("mouseleave", function (){
var h;
h=jQuery(this).find("img").css("height");
jQuery(this).find(".team-desc").stop(true).animate({'top': h},350,'easeOutQuad');
jQuery(this).find("img").stop(true).animate({'margin-top': "0px"},400,'easeOutQuad');
})
jQuery('.item .picframe').each(function(){
jQuery(this).find("img").css("width","100%");
jQuery(this).find("img").css("height","auto");
jQuery(this).find("img").on('load', function(){
var w=jQuery(this).css("width");
var h=jQuery(this).css("height");
jQuery(this).parent().css("height",h);
}).each(function(){
if(this.complete) jQuery(this).load();
});
});
jQuery('.item > .picframe').each(function (){
jQuery(this).find("img").on('load', function (){
var w=jQuery(this).css("width");
var h=jQuery(this).css("height");
var space=40;
var w1=parseInt(jQuery(this).css("width"))-space;
var h1=parseInt(jQuery(this).css("height"))-space;
var obj=jQuery(this).parent().parent().find(".overlay-1");
obj.css("width", w);
obj.css("height", h);
if(!jQuery(this).parent().parent().parent().parent().hasClass('grid')){
jQuery(this).parent().css("height", h);
}}).each(function (){
if(this.complete) $(this).load();
});
});
jQuery('.overlay').fadeTo(1, 0);
jQuery(".item .picframe").on("mouseenter", function (){
jQuery(this).parent().find(".overlay").width(jQuery(this).find("img").css("width"));
jQuery(this).parent().find(".overlay").height(jQuery(this).find("img").css("height"));
jQuery(this).parent().find(".overlay").stop(true).fadeTo(300, .9);
var picheight=jQuery(this).find("img").css("height");
var newheight;
newheight=(picheight.substring(0, picheight.length - 2)/2)-10;
jQuery(this).parent().find(".pf_text").stop(true).animate({'margin-top': newheight},300,'easeOutCubic');
var w=jQuery(this).find("img").css("width");
var h=jQuery(this).find("img").css("height");
var w=parseInt(w, 10);
var h=parseInt(h, 10);
var $scale=1.2;
jQuery(this).find("img").stop(true).animate({
width: w*$scale,
height: h*$scale,
'margin-left': -w*($scale - 1)/2,
'margin-top': -h*($scale - 1)/2
}, 700,'easeOutQuad');
}).on("mouseleave", function (){
var newheight;
var picheight=jQuery(this).find("img").css("height");
newheight=(picheight.substring(0, picheight.length - 2)/2)-10;
jQuery(this).parent().find(".pf_text").stop(true).animate({'margin-top': newheight - 30},300,'easeOutCubic');
jQuery(this).parent().find(".overlay").stop(true).fadeTo(300, 0);
jQuery(this).find("img").stop(true).animate({
width: '100%',
height: '100%',
'margin-left': 0,
'margin-top': 0
}, 700,'easeOutQuad');
})
jQuery('.overlay').fadeTo(1, 0);
jQuery('.grid.border').css('padding-top',grid_size);
jQuery('.grid.border').css('padding-left',grid_size);
jQuery('.grid-item').each(function (){
var this_col=Number(jQuery(this).parent().attr('data-col'));
var this_gridspace=Number(jQuery(this).parent().attr('data-gridspace'));
var this_ratio=eval($(this).parent().attr('data-ratio'));
jQuery(this).parent().css('padding-left',this_gridspace);
var w=(($(document).width()-(this_gridspace*this_col+1))/this_col)-(this_gridspace/this_col);
var gi=$(this);
var h=w*this_ratio;
gi.css('width',w)
gi.css('height',h);
gi.find(".pf_title").css('margin-top',(h/2)-10);
gi.css('margin-right',this_gridspace);
gi.css('margin-bottom',this_gridspace);
if(gi.hasClass('large')){
$(this).css('width',(w*2)+this_gridspace);
$(this).css('height',(h*2)+this_gridspace);
}
if(gi.hasClass('large-width')){
$(this).css('width',(w*2)+this_gridspace);
$(this).css('height',h);
}
if(gi.hasClass('large-height')){
$(this).css('height',(h*2)+this_gridspace);
gi.find(".pf_title").css('margin-top',(h)-20);
}});
}
init_de();
function video_autosize(){
jQuery('.de-video-container').each(function(){
var height_1=jQuery(this).css("height");
var height_2=jQuery(this).find(".de-video-content").css("height");
var newheight=(height_1.substring(0, height_1.length - 2)-height_2.substring(0, height_2.length - 2))/2;
jQuery(this).find('.de-video-overlay').css("height", height_1);
jQuery(this).find(".de-video-content").animate({'margin-top': newheight},'fast');
});
}
window.onresize=function(event){
enquire.register("screen and (min-width: 993px)", {
match:function(){
jQuery('#mainmenu').show();
jQuery('.mainmenu').show();
mobile_menu_show=1;
},
unmatch:function(){
jQuery('#mainmenu').hide();
jQuery('.mainmenu').hide();
mobile_menu_show=0;
jQuery("#menu-btn").show();
}});
var mq=window.matchMedia("(max-width: 993px)");
if(mq.matches){
jQuery('.header-bottom').css("display", "block");
jQuery('.header-bottom').css("top", "0");
}
init_de();
video_autosize();
jQuery('#gallery').isotope();
jQuery('header').removeClass('smaller');
jQuery('header').removeClass('clone');
jQuery('.side-bg').each(function(){
jQuery(this).find(".image-container").css("height",jQuery(this).find(".image-container").parent().css("height"));
});
};
function init(){
var sh=jQuery('#de-sidebar').css("height");
var dh=jQuery(window).innerHeight();
var h=parseInt(sh) - parseInt(dh);
var header_height=parseInt(jQuery('header').height(), 10);
var screen_height=parseInt(jQuery(window).height(), 10);
var header_mt=screen_height - header_height;
var mq=window.matchMedia("(min-width: 993px)");
var ms=window.matchMedia("(min-width: 768px)");
window.addEventListener('scroll', function(e){
if(mq.matches){
var distanceY=window.pageYOffset||document.documentElement.scrollTop,
shrinkOn=100,
header=document.querySelector("header");
if(distanceY > shrinkOn){
classie.add(header,"smaller");
}else{
if(classie.has(header,"smaller")){
classie.remove(header,"smaller");
}}
}
if(mq.matches){
jQuery("header").addClass("clone", 1000, "easeOutBounce");
var $document=$(document);
var vscroll=0;
if($document.scrollTop() >=50&&vscroll==0){
jQuery("header.autoshow").removeClass("scrollOff");
jQuery("header.autoshow").addClass("scrollOn");
jQuery("header.autoshow").css("height", "auto");
vscroll=1;
}else{
jQuery("header.autoshow").removeClass("scrollOn");
jQuery("header.autoshow").addClass("scrollOff");
vscroll=0;
}
var $document=$(document);
var header_height=parseInt(jQuery('header').height(), 10);
var screen_height=parseInt(jQuery(window).height(), 10);
var header_mt=screen_height - header_height;
if($document.scrollTop() >=header_mt){
jQuery('.header-bottom').css("position", "fixed");
jQuery('.header-bottom').css("top", "0");
}else if($document.scrollTop() <=header_mt){
jQuery('.header-bottom').css("position", "absolute");
jQuery('.header-bottom').css("top", header_mt);
}
}
if(mq.matches){
var sh=jQuery('#de-sidebar').css("height");
var dh=jQuery(window).innerHeight();
var h=parseInt(sh) - parseInt(dh);
if(jQuery("header").hasClass("side-header")){
if(jQuery(document).scrollTop()>=h){
jQuery('#de-sidebar').css("position","fixed");
if(parseInt(sh)>parseInt(dh)){
jQuery('#de-sidebar').css("top",-h);
}
jQuery('#main').addClass("col-md-offset-3");
}else{
jQuery('#de-sidebar').css("position","relative");
if(parseInt(sh)>parseInt(dh)){
jQuery('#de-sidebar').css("top",0);
}
jQuery('#main').removeClass("col-md-offset-3");
}}
}});
if(mq.matches){
jQuery('.header-bottom').css('position', 'absolute');
jQuery('.header-bottom').css('top', header_mt);
}}
window.onload=init();
jQuery(".carousel-gallery").owlCarousel({
items:4,
navigation:false,
pagination:false
});
jQuery("#blog-carousel").owlCarousel({
items:2,
navigation:false,
pagination:true,
itemsDesktop:[1199,2],
itemsDesktopSmall:[979,1],
itemsTablet:[768, 1],
itemsTabletSmall:false,
itemsMobile:[479, 1]
});
jQuery(".text-slider").owlCarousel({
items:1,
singleItem:true,
navigation:false,
pagination:false,
mouseDrag:false,
touchDrag:false,
autoPlay:4000,
transitionStyle:"fade"
});
jQuery(".blog-slide").owlCarousel({
items:1,
singleItem:true,
navigation:false,
pagination:false,
autoPlay:false
});
jQuery(".next").on("click", function(){
$(this).parent().parent().find('.blog-slide').trigger('owl.next');
});
jQuery(".prev").on("click", function(){
$(this).parent().parent().find('.blog-slide').trigger('owl.prev');
});
var $doc_height=jQuery(window).innerHeight();
jQuery('#homepage #content.content-overlay').css("margin-top", $doc_height);
jQuery('.full-height, #home').css("height", $doc_height);
var picheight=jQuery('.center-y').css("height");
picheight=parseInt(picheight, 10);
jQuery('.center-y').css('margin-top', (($doc_height - picheight)/2)-90);
var vertical_height=jQuery('.vertical-align').css("height");
vertical_height=parseInt(vertical_height, 10);
var bannerlogo_height=jQuery('.banner-logo').css("height");
bannerlogo_height=parseInt(bannerlogo_height, 10);
jQuery('.vertical-align').css('margin-top', (($doc_height - vertical_height)/2) - (70 + (bannerlogo_height/2)));
jQuery('.full-height .de-video-container').css("height",$doc_height);
jQuery(window).load(function(){
video_autosize();
var $container=jQuery('#testimonial-masonry');
$container.isotope({
itemSelector: '.item',
});
var $container=jQuery('#services-masonry');
$container.isotope({
itemSelector: '.item',
});
var $container=jQuery('.archi-image-gallery');
$container.isotope({
itemSelector: '.item',
});
var $container=jQuery('#gallery');
$container.isotope({
itemSelector: '.item',
filter: '*'
});
jQuery('.grid').isotope({
itemSelector: '.grid-item',
});
jQuery('#filters a').on("click", function(){
var $this=jQuery(this);
if($this.hasClass('selected')){
return false;
}
var $optionSet=$this.parents();
$optionSet.find('.selected').removeClass('selected');
$this.addClass('selected');
var selector=jQuery(this).attr('data-filter');
$container.isotope({
filter: selector
});
return false;
});
jQuery('.de_tab').find('.de_tab_content div.de_tab_content_inner').hide();
jQuery('.de_tab').find('.de_tab_content div.de_tab_content_inner:first').show();
jQuery('li').find('.v-border').fadeTo(150,0);
jQuery('li.active').find('.v-border').fadeTo(150,1);
jQuery('.de_nav li').click(function(){
jQuery(this).parent().find('li').removeClass("active");
jQuery(this).addClass("active");
jQuery(this).parent().parent().find('.v-border').fadeTo(150,0);
jQuery(this).parent().parent().find('.de_tab_content div.de_tab_content_inner').hide();
var indexer=jQuery(this).index();
jQuery(this).parent().parent().find('.de_tab_content div.de_tab_content_inner:eq(' + indexer + ')').fadeIn();
jQuery(this).find('.v-border').fadeTo(150,1);
});
jQuery(".toggle-list h2").addClass("acc_active");
jQuery(".toggle-list h2").toggle(function(){
jQuery(this).addClass("acc_noactive");
jQuery(this).next(".ac-content").slideToggle(200);
},
function(){
jQuery(this).removeClass("acc_noactive").addClass("acc_active");
jQuery(this).next(".ac-content").slideToggle(200);
});
jQuery('#menu-btn').on("click", function(){
if(mobile_menu_show==0){
jQuery('#mainmenu, .mainmenu').slideDown();
mobile_menu_show=1;
}else{
jQuery('#mainmenu, .mainmenu').slideUp();
mobile_menu_show=0;
}});
jQuery('.de-gallery .item .icon-info').on("click", function(){
jQuery('.page-overlay').show();
url=jQuery(this).attr("data-value");
jQuery("#loader-area .project-load").load(url, function(){
jQuery("#loader-area").slideDown(500,function(){
jQuery('.page-overlay').hide();
jQuery('html, body').animate({
scrollTop: jQuery('#loader-area').offset().top - 70
}, 500, 'easeOutCirc');
jQuery(".image-slider").owlCarousel({
items:1,
singleItem:true,
navigation:false,
pagination:true,
autoPlay:false
});
jQuery(".container").fitVids();
jQuery('#btn-close-x').on("click", function(){
jQuery("#loader-area").slideUp(500,function(){
jQuery('html, body').animate({
scrollTop: jQuery('#section-portfolio').offset().top - 70
}, 500, 'easeOutCirc');
});
return false;
});
});
});
});
jQuery('.de-gallery .item').on("click", function(){
$('#navigation').show();
});
jQuery('.side-bg').each(function(){
jQuery(this).find(".image-container").css("height",jQuery(this).find(".image-container").parent().css("height"));
});
var target=jQuery('.center-y');
var targetHeight=target.outerHeight();
jQuery(document).scroll(function(e){
var scrollPercent=(targetHeight - window.scrollY) / targetHeight;
if(scrollPercent >=0){
target.css('opacity', scrollPercent);
}});
var target_vertical=jQuery('.vertical-align');
var target_verticalHeight=target_vertical.outerHeight();
jQuery(document).scroll(function(e){
var scrollPercent=(target_verticalHeight - window.scrollY) / target_verticalHeight;
if(scrollPercent >=0){
target_vertical.css('opacity', scrollPercent);
}});
});
var v_count='0';
jQuery(window).load(function(){
jQuery('.animated').fadeTo(0,0);
jQuery('.animated').each(function(){
var imagePos=jQuery(this).offset().top;
var timedelay=jQuery(this).attr('data-delay');
var topOfWindow=jQuery(window).scrollTop();
if(imagePos < topOfWindow+300){
jQuery(this).fadeTo(1,500);
var $anim=jQuery(this).attr('data-animation');
}});
jQuery(".arrow-up").on("click", function(){
jQuery(".coming-soon .coming-soon-content").fadeOut("medium",function(){
jQuery("#hide-content").fadeIn(600,function(){
jQuery('.arrow-up').animate({'bottom': '-40px' },"slow");
jQuery('.arrow-down').animate({'top': '0' },"slow");
});
});
});
jQuery(".arrow-down").on("click", function(){
jQuery("#hide-content").fadeOut("slow",function(){
jQuery(".coming-soon .coming-soon-content").fadeIn(800,function(){
jQuery('.arrow-up').animate({'bottom': '0px' },"slow");
jQuery('.arrow-down').animate({'top': '-40' },"slow");
});
});
});
jQuery('#gallery').isotope();
jQuery('.archi-image-gallery').isotope();
jQuery('#testimonial-masonry').isotope();
jQuery('#services-masonry').isotope();
jQuery('.grid').isotope();
});
jQuery(window).scroll(function(){
jQuery('.timer').each(function(){
var imagePos=jQuery(this).offset().top;
var topOfWindow=jQuery(window).scrollTop();
if(imagePos < topOfWindow+500&&v_count=='0'){
jQuery(function ($){
jQuery('.timer').each(count);
function count(options){
v_count='1';
var $this=jQuery(this);
options=$.extend({}, options||{}, $this.data('countToOptions')||{});
$this.countTo(options);
}});
}});
jQuery('.de-progress').each(function(){
var pos_y=jQuery(this).offset().top;
var value=jQuery(this).find(".progress-bar").attr('data-value');
var topOfWindow=jQuery(window).scrollTop();
if(pos_y < topOfWindow+500){
jQuery(this).find(".progress-bar").animate({'width': value },"slow");
}});
jQuery('.animated').each(function(){
var imagePos=jQuery(this).offset().top;
var timedelay=jQuery(this).attr('data-delay');
var topOfWindow=jQuery(window).scrollTop();
if(imagePos < topOfWindow+500){
jQuery(this).delay(timedelay).queue(function(){
jQuery(this).fadeTo(1,500);
var $anim=jQuery(this).attr('data-animation');
jQuery(this).addClass($anim).clearQueue();
});
}});
jQuery(".nav-exit").on("click", function(){
$.magnificPopup.close();
});
});
jQuery('.simple-ajax-popup-align-top').magnificPopup({
type: 'ajax',
alignTop: true,
overflowY: 'scroll',
fixedContentPos: true,
callbacks: {
beforeOpen: function(){ $('html').addClass('mfp-helper'); },
close: function(){ $('html').removeClass('mfp-helper'); }},
gallery: {
enabled: true
},
});
jQuery('.single-ajax-popup').magnificPopup({
type: 'ajax',
alignTop: true,
overflowY: 'scroll',
fixedContentPos: true,
callbacks: {
beforeOpen: function(){ $('html').addClass('mfp-helper'); },
close: function(){ $('html').removeClass('mfp-helper'); }}
});
jQuery('.popup-youtube').magnificPopup({
disableOn: 700,
type: 'iframe',
mainClass: 'mfp-fade',
removalDelay: 160,
preloader: false,
fixedContentPos: false
});
jQuery('.image-link, .video-link').magnificPopup({
callbacks: {
elementParse: function(item){
if(item.el.context.className=='video-link'){
item.type='iframe';
}else{
item.type='image';
}}
},
gallery:{
enabled:true
},
type: 'image',
closeOnContentClick: false,
closeBtnInside: false,
mainClass: 'mfp-with-zoom mfp-img-mobile',
image: {
verticalFit: true,
titleSrc: function(item){
return item.el.attr('title');
}},
});
jQuery('#mainmenu li a').each(function (){
if($(this).next("ul").length > 0){
$("
").insertAfter($(this));
}});
jQuery("#mainmenu > li > span").on("click", function (){
var iteration=$(this).data('iteration')||1;
switch (iteration){
case 1:
$(this).addClass("active");
$(this).parent().find("ul:first").css("height", "auto");
var curHeight=$(this).parent().find("ul:first").height();
$(this).parent().find("ul:first").css("height", "0");
$(this).parent().find("ul:first").animate({ 'height': curHeight }, 100, 'easeInOutQuint');
break;
case 2:
$(this).removeClass("active");
$(this).parent().find("ul:first").animate({ 'height': "0" }, 100, 'easeInOutQuint');
break;
}
iteration++;
if(iteration > 2) iteration=1;
$(this).data('iteration', iteration);
});
jQuery("#mainmenu > li > ul > li > span").on("click", function (){
var iteration=$(this).data('iteration')||1;
switch (iteration){
case 1:
$(this).addClass("active");
$(this).parent().find("ul:first").css("height", "auto");
$(this).parent().parent().parent().find("ul:first").css("height", "auto");
var curHeight=$(this).parent().find("ul:first").height();
$(this).parent().find("ul:first").css("height", "0");
$(this).parent().find("ul:first").animate({ 'height': curHeight }, 100, 'easeInOutQuint');
break;
case 2:
$(this).removeClass("active");
$(this).parent().find("ul:first").animate({ 'height': "0" }, 100, 'easeInOutQuint');
break;
}
iteration++;
if(iteration > 2) iteration=1;
$(this).data('iteration', iteration);
});
jQuery("#mainmenu > li > ul > li > ul > li span").on("click", function (){
var iteration=$(this).data('iteration')||1;
switch (iteration){
case 1:
$(this).addClass("active");
$(this).parent().find("ul:first").css("height", "auto");
$(this).parent().parent().parent().find("ul:first").css("height", "auto");
var curHeight=$(this).parent().find("ul:first").height();
$(this).parent().find("ul:first").css("height", "0");
$(this).parent().find("ul:first").animate({ 'height': curHeight }, 100, 'easeInOutQuint');
break;
case 2:
$(this).removeClass("active");
$(this).parent().find("ul:first").animate({ 'height': "0" }, 100, 'easeInOutQuint');
break;
}
iteration++;
if(iteration > 2) iteration=1;
$(this).data('iteration', iteration);
});
if($('#back-to-top').length){
var scrollTrigger=500,
backToTop=function (){
var scrollTop=$(window).scrollTop();
if(scrollTop > scrollTrigger){
$('#back-to-top').addClass('show');
}else{
$('#back-to-top').removeClass('show');
}};
backToTop();
$(window).on('scroll', function (){
backToTop();
});
$('#back-to-top').on('click', function (e){
e.preventDefault();
$('html,body').animate({
scrollTop: 0
}, 700);
});
$("section,div").css('background-color', function (){
return jQuery(this).data('bgcolor');
});
$("div").css('background-image', function (){
return jQuery(this).data('bgimage');
});
}
jQuery(".player").mb_YTPlayer();
$(function(){"use strict";
$('#home-sec').css({'height':($(window).height())+'px'});
$(window).resize(function(){
$('#home-sec').css({'height':($(window).height())+'px'});
});
$(".typed").typed({
stringsElement: $('.typed-strings'),
typeSpeed: 100,
backDelay: 1500,
loop: true,
contentType: 'html',
loopCount: false,
callback: function (){ null; },
resetCallback: function (){ newTyped(); }});
$.letItSnow('.let-it-snow', {
stickyFlakes: 'lis-flake--js',
makeFlakes: true,
sticky: true
});
$("#menu-btn").on("click", function(e){
if(!$(this).hasClass("active")){
$(this).addClass("active");
}else{
$(this).removeClass("active");
}});
$('ul.listed_taxonomy_filters > li > a').on('click', function(e){
$('ul.listed_taxonomy_filters > li > a').parent().removeClass("showchild");
$(this).parent().addClass("showchild");
});
});
jQuery('.expand').each(function (){
$(this).find('h4').on("click", function (){
var iteration=$(this).data('iteration')||1
switch(iteration){
case 1:
$(this).next('.hidden-content').slideDown(300);
$(this).addClass('active');
break;
case 2:
$(this).next('.hidden-content').slideUp(300);
$(this).removeClass('active');
break;
}
iteration++;
if(iteration>2) iteration=1
$(this).data('iteration',iteration);
});
});
});
!function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c
1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document);