/home/coolpkct/public_html/websites/1.sanso.co/wp-content/themes/hoshi/assets/js/modules.min.js
!function(e){"use strict";function t(){mkd.scroll=e(window).scrollTop(),mkd.body.hasClass("mkd-dark-header")&&(mkd.defaultHeaderStyle="mkd-dark-header"),mkd.body.hasClass("mkd-light-header")&&(mkd.defaultHeaderStyle="mkd-light-header")}function o(){}function i(){mkd.windowWidth=e(window).width(),mkd.windowHeight=e(window).height()}function a(){mkd.scroll=e(window).scrollTop()}switch(window.mkd={},mkd.modules={},mkd.scroll=0,mkd.window=e(window),mkd.document=e(document),mkd.windowWidth=e(window).width(),mkd.windowHeight=e(window).height(),mkd.body=e("body"),mkd.html=e("html, body"),mkd.htmlEl=e("html"),mkd.menuDropdownHeightSet=!1,mkd.defaultHeaderStyle="",mkd.minVideoWidth=1500,mkd.videoWidthOriginal=1280,mkd.videoHeightOriginal=720,mkd.videoRatio=1280/720,mkd.mkdOnDocumentReady=t,mkd.mkdOnWindowLoad=o,mkd.mkdOnWindowResize=i,mkd.mkdOnWindowScroll=a,e(document).ready(t),e(window).load(o),e(window).resize(i),e(window).scroll(a),!0){case mkd.body.hasClass("mkd-grid-1300"):mkd.boxedLayoutWidth=1350;break;case mkd.body.hasClass("mkd-grid-1200"):mkd.boxedLayoutWidth=1250;break;case mkd.body.hasClass("mkd-grid-1000"):mkd.boxedLayoutWidth=1050;break;case mkd.body.hasClass("mkd-grid-800"):mkd.boxedLayoutWidth=850;break;default:mkd.boxedLayoutWidth=1150}}(jQuery),function(c){"use strict";var e={};function t(){d()&&mkd.body.addClass("mkd-no-animations-on-touch"),n(),s(),l(),m(),k().init(),c(".mkd-section .mkd-video-wrap .mkd-video").mediaelementplayer({enableKeyboard:!1,iPadUseNativeControls:!1,pauseOtherPlayers:!1,iPhoneUseNativeControls:!1,AndroidUseNativeControls:!1}),navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/)&&(p(),c(".mkd-section .mkd-mobile-video-image").show(),c(".mkd-section .mkd-video-wrap").remove()),p(),c(".mkd-footer-uncover").length&&c(".mkd-content").css("margin-bottom",c(".mkd-footer-inner").height()-1),r(),b(),y(),x(),_(),T(),c(".mkd-gradient-overlay-animation").length&&c(".mkd-gradient-overlay-animation").each(function(){var s=c(this),e=c(this).data("gradient-color1").split(","),t=c(this).data("gradient-color2").split(","),o=c(this).data("gradient-color3").split(","),i=c(this).data("gradient-color4").split(","),r=new Array(e,t,o,i),l=0,m=[0,1,2,3];setInterval(function(){if(void 0!==c){var e=r[m[0]],t=r[m[1]],o=r[m[2]],i=r[m[3]],a=1-l,d="rgb("+Math.round(a*e[0]+l*t[0])+","+Math.round(a*e[1]+l*t[1])+","+Math.round(a*e[2]+l*t[2])+")",n="rgb("+Math.round(a*o[0]+l*i[0])+","+Math.round(a*o[1]+l*i[1])+","+Math.round(a*o[2]+l*i[2])+")";s.css({background:"-webkit-linear-gradient(left, "+d+","+n+")"}).css({background:"-moz-linear-gradient(right, "+d+", "+n+")"}).css({background:"linear-gradient(to right, "+d+", "+n+")"}),1<=(l+=.001)&&(l%=1,m[0]=m[1],m[2]=m[3],m[1]=(m[1]+Math.floor(1+Math.random()*(r.length-1)))%r.length,m[3]=(m[3]+Math.floor(1+Math.random()*(r.length-1)))%r.length)}},10)}),f()}function o(){!function(){var e,t,o=c(".mkd-no-animations-on-touch"),i=!0,a=c(".mkd-grow-in, .mkd-fade-in-up, .mkd-fade-in-down, .mkd-fade-in-left, .mkd-fade-in-right, .mkd-element-from-fade, .mkd-element-from-left, .mkd-element-from-right, .mkd-element-from-top, .mkd-element-from-bottom, .mkd-flip-in, .mkd-x-rotate, .mkd-z-rotate, .mkd-y-translate, .mkd-fade-in, .mkd-fade-in-left-x-rotate");o.length&&(i=!1);0<a.length&&i&&a.each(function(){c(this).appear(function(){void 0!==(t=c(this).data("animation"))&&""!==t&&(e=t,c(this).addClass(e+"-on"))},{accX:0,accY:mkdGlobalVars.vars.mkdElementAppearAmount})})}(),h(),u(),S()}function i(){p(),y(),u(),f()}function a(){}function d(){return Modernizr.touch&&!mkd.body.hasClass("mkd-no-animations-on-touch")}function n(){-1<navigator.appVersion.toLowerCase().indexOf("mac")&&mkd.body.hasClass("mkd-smooth-scroll")&&mkd.body.removeClass("mkd-smooth-scroll")}function s(){fluidvids.init({selector:["iframe"],players:["www.youtube.com","player.vimeo.com"]})}function r(){var e=c(".mkd-owl-slider");e.length&&e.each(function(){var e=c(this);e.hasClass("owl-carousel")||e.addClass("owl-carousel"),e.waitForImages(function(){e.css("visibility","visible"),e.animate({opacity:1})}),e.owlCarousel({autoplay:!0,autoplayHoverPause:!0,loop:!0,items:1,nav:!0,autoHeight:!0,dots:!1,navText:['<span class="mkd-prev-icon"><i class="fa fa-angle-left"></i></span>','<span class="mkd-next-icon"><i class="fa fa-angle-right"></i></span>'],smartSpeed:600,animateIn:"fadeIn",animateOut:"fadeOut"})})}function l(){c(".mkd-preload-background").each(function(){var e=c(this);if(""!==e.css("background-image")&&"none"!=e.css("background-image")){var t=e.attr("style");if(t=(t=t.match(/url\(["']?([^'")]+)['"]?\)/))?t[1]:""){var o=new Image;o.src=t,c(o).load(function(){e.removeClass("mkd-preload-background")})}}else c(window).load(function(){e.removeClass("mkd-preload-background")})})}function m(){c("a[data-rel^='prettyPhoto']").prettyPhoto({hook:"data-rel",animation_speed:"normal",slideshow:!1,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,horizontal_padding:0,default_width:960,default_height:540,counter_separator_label:"/",theme:"pp_default",hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,overlay_gallery:!1,keyboard_shortcuts:!0,deeplinking:!1,custom_markup:"",social_tools:!1,markup:'<div class="pp_pic_holder"> <div class="ppt"> </div> <div class="pp_top"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> <div class="pp_content_container"> <div class="pp_left"> <div class="pp_right"> <div class="pp_content"> <div class="pp_loaderIcon"></div> <div class="pp_fade"> <a href="#" class="pp_expand" title="Expand the image">Expand</a> <div class="pp_hoverContainer"> <a class="pp_next" href="#"></a> <a class="pp_previous" href="#"></a> </div> <div id="pp_full_res"></div> <div class="pp_details"> <div class="pp_nav"> <a href="#" class="pp_arrow_previous">Previous</a> <p class="currentTextHolder">0/0</p> <a href="#" class="pp_arrow_next">Next</a> </div> <p class="pp_description"></p> {pp_social} <a class="pp_close" href="#">Close</a> </div> </div> </div> </div> </div> </div> <div class="pp_bottom"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> </div> <div class="pp_overlay"></div>'})}function h(){if(0<c("[data-mkd_header_style]").length&&mkd.body.hasClass("mkd-header-style-on-scroll")){var e=c(".wpb_row.mkd-section"),t=function(e){void 0!==e.data("mkd_header_style")?mkd.body.removeClass("mkd-dark-header mkd-light-header").addClass(e.data("mkd_header_style")):mkd.body.removeClass("mkd-dark-header mkd-light-header").addClass(""+mkd.defaultHeaderStyle)};e.waypoint(function(e){"down"===e&&t(c(this.element))},{offset:0}),e.waypoint(function(e){"up"===e&&t(c(this.element))},{offset:function(){return-c(this.element).outerHeight()}})}}function u(){c(".mkd-parallax-section-holder").length&&c(".mkd-parallax-section-holder").each(function(){var e=c(this);e.hasClass("mkd-full-screen-height-parallax")&&(e.height(mkd.windowHeight),e.find(".mkd-parallax-content-outer").css("padding",0));var t=.4*e.data("mkd-parallax-speed");e.parallax("50%",t)})}function f(){if(c(".mkd-intro-section-section-holder").length&&1024<mkd.windowWidth){var e=c(".mkd-intro-section-section-holder");e.height(mkd.windowHeight);mkd.window.on("scroll",function(){0<mkd.scroll?e.addClass("scrolled"):e.removeClass("scrolled")})}}(mkd.modules.common=e).mkdIsTouchDevice=d,e.mkdDisableSmoothScrollForMac=n,e.mkdFluidVideo=s,e.mkdPreloadBackgrounds=l,e.mkdPrettyPhoto=m,e.mkdCheckHeaderStyleOnScroll=h,e.mkdInitParallax=u,e.mkdEnableScroll=function(){window.removeEventListener&&window.removeEventListener("wheel",g,!1);window.onmousewheel=document.onmousewheel=document.onkeydown=null,mkd.body.hasClass("mkd-smooth-scroll")&&(window.addEventListener("mousewheel",smoothScrollListener,!1),window.addEventListener("wheel",smoothScrollListener,{passive:!1}))},e.mkdDisableScroll=function(){window.addEventListener&&window.addEventListener("wheel",g,{passive:!1});document.onkeydown=v,mkd.body.hasClass("mkd-smooth-scroll")&&(window.removeEventListener("mousewheel",smoothScrollListener,!1),window.removeEventListener("wheel",smoothScrollListener,{passive:!1}))},e.mkdWheel=g,e.mkdKeydown=v,e.mkdPreventDefaultValue=w,e.mkdOwlSlider=r,e.mkdInitSelfHostedVideoPlayer=b,e.mkdSelfHostedVideoSize=y,e.mkdInitBackToTop=x,e.mkdBackButtonShowHide=_,e.mkdSmoothTransition=S,e.mkdInitCustomMenuDropdown=T,e.mkdOnDocumentReady=t,e.mkdOnWindowLoad=o,e.mkdOnWindowResize=i,e.mkdOnWindowScroll=a,e.mkdIsTouchDevice=d,c(document).ready(t),c(window).load(o),c(window).resize(i),c(window).scroll(a);var k=mkd.modules.common.mkdInitAnchor=function(){function a(e){c(".mkd-main-menu .mkd-active-item, .mkd-mobile-nav .mkd-active-item, .mkd-vertical-menu .mkd-active-item, .mkd-fullscreen-menu .mkd-active-item").removeClass("mkd-active-item"),e.parent().addClass("mkd-active-item"),c(".mkd-main-menu a, .mkd-mobile-nav a, .mkd-vertical-menu a, .mkd-fullscreen-menu a").removeClass("current"),e.addClass("current")}function e(){mkd.document.on("click",".mkd-main-menu a, .mkd-vertical-menu a, .mkd-fullscreen-menu a, .mkd-btn, .mkd-anchor, .mkd-mobile-nav a",function(){var e,t=c(this),o=t.prop("hash").split("#")[1];if(""!==o&&0<c('[data-mkd-anchor="'+o+'"]').length){var i=c('[data-mkd-anchor="'+o+'"]').offset().top;return e=c('[data-mkd-anchor="'+o+'"]').offset().top-function(e){return"mkd-sticky-header-on-scroll-down-up"==mkd.modules.header.behaviour&&(e>mkd.modules.header.stickyAppearAmount?mkd.modules.header.isStickyVisible=!0:mkd.modules.header.isStickyVisible=!1),"mkd-sticky-header-on-scroll-up"==mkd.modules.header.behaviour&&e>mkd.scroll&&(mkd.modules.header.isStickyVisible=!1),mkd.modules.header.isStickyVisible?mkdGlobalVars.vars.mkdStickyHeaderTransparencyHeight:mkdPerPageVars.vars.mkdHeaderTransparencyHeight}(i),a(t),mkd.html.stop().animate({scrollTop:Math.round(e)},1e3,function(){history.pushState&&history.pushState(null,null,"#"+o)}),!1}})}return{init:function(){c("[data-mkd-anchor]").length&&(e(),c("[data-mkd-anchor]").waypoint(function(e){"down"===e&&a(c("a[href='"+window.location.href.split("#")[0]+"#"+c(this.element).data("mkd-anchor")+"']"))},{offset:"50%"}),c("[data-mkd-anchor]").waypoint(function(e){"up"===e&&a(c("a[href='"+window.location.href.split("#")[0]+"#"+c(this.element).data("mkd-anchor")+"']"))},{offset:function(){return-(c(this.element).outerHeight()-150)}}),c(window).load(function(){!function(){var e=window.location.hash.split("#")[1];if(""!==e&&0<c('[data-mkd-anchor="'+e+'"]').length){var t=window.location.href.split("#")[0]+"#"+e;if(c("a[href='"+t+"']").length)c("a[href='"+t+"']").trigger("click");else c("<a/>").attr({href:t,class:"mkd-anchor"}).appendTo("body").trigger("click")}}()}))}}};function p(){c(".mkd-section .mkd-video-wrap").each(function(){var e=c(this),t=e.closest(".mkd-section").outerWidth();e.width(t);var o=e.closest(".mkd-section").outerHeight();mkd.minVideoWidth=mkd.videoRatio*(o+20),e.height(o);var i=t/mkd.videoWidthOriginal,a=o/mkd.videoHeightOriginal,d=a;a<i&&(d=i),d*mkd.videoWidthOriginal<mkd.minVideoWidth&&(d=mkd.minVideoWidth/mkd.videoWidthOriginal),e.find("video, .mejs-overlay, .mejs-poster").width(Math.ceil(d*mkd.videoWidthOriginal+2)),e.find("video, .mejs-overlay, .mejs-poster").height(Math.ceil(d*mkd.videoHeightOriginal+2)),e.scrollLeft((e.find("video").width()-t)/2),e.find(".mejs-overlay, .mejs-poster").scrollTop((e.find("video").height()-o)/2),e.scrollTop((e.find("video").height()-o)/2)})}function g(e){w(e)}function v(e){for(var t=[37,38,39,40],o=t.length;o--;)if(e.keyCode===t[o])return void w(e)}function w(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}function b(){c(".mkd-self-hosted-video").mediaelementplayer({audioWidth:"100%"})}function y(){c(".mkd-self-hosted-video-holder .mkd-video-wrap").each(function(){var e=c(this),t=e.closest(".mkd-self-hosted-video-holder").outerWidth(),o=t/mkd.videoRatio;navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/)&&(e.parent().width(t),e.parent().height(o)),e.width(t),e.height(o),e.find("video, .mejs-overlay, .mejs-poster").width(t),e.find("video, .mejs-overlay, .mejs-poster").height(o)})}function C(e){var t=c("#mkd-back-to-top");t.removeClass("off on"),"on"===e?t.addClass("on"):t.addClass("off")}function _(){mkd.window.scroll(function(){var e=c(this).scrollTop(),t=c(this).height();C((0<e?e+t/2:1)<1e3?"off":"on")})}function x(){c("#mkd-back-to-top").on("click",function(e){e.preventDefault(),mkd.html.animate({scrollTop:0},mkd.window.scrollTop()/2,"easeOutQuart")})}function S(){if(mkd.body.hasClass("mkd-smooth-page-transitions")){if(mkd.body.hasClass("mkd-smooth-page-transitions-preloader")){var t=c("body > .mkd-smooth-transition-loader.mkd-mimic-ajax");t.fadeOut(500),c(window).on("pageshow",function(e){e.originalEvent.persisted&&t.fadeOut(500)})}if(mkd.body.hasClass("mkd-smooth-page-transitions-fadeout")){if(c("a").parent().hasClass("mkd-blog-load-more-button")||c("a").parent().hasClass("mkd-ptf-list-load-more"))return!1;c("a").on("click",function(e){var t=c(this);1===e.which&&0<=t.attr("href").indexOf(window.location.host)&&void 0===t.data("rel")&&void 0===t.attr("rel")&&(void 0===t.attr("target")||"_self"===t.attr("target"))&&t.attr("href").split("#")[0]!==window.location.href.split("#")[0]&&(e.preventDefault(),c(".mkd-wrapper-inner").fadeOut(1e3,function(){window.location=t.attr("href")}))})}}}function T(){var e,t,o=c(".mkd-sidebar .widget_nav_menu .menu");o.length&&o.each(function(){t=c(this),(e=t.find("li.menu-item-has-children > a")).length&&e.each(function(){var o=c(this);o.on("click",function(e){e.preventDefault();var t=o.parent().children(".sub-menu");t.is(":visible")?(t.slideUp(),o.removeClass("mkd-custom-menu-active")):(t.slideDown(),o.addClass("mkd-custom-menu-active"))})})})}}(jQuery),function(l){"use strict";var e={};mkd.modules.ajax=e;var m={};function t(){r()}function o(){}function i(){}function a(){}e.animation=m,e.mkdFetchPage=n,e.mkdInitAjax=r,e.mkdHandleLinkClick=h,e.mkdInsertFetchedContent=p,e.mkdInitBackBehavior=c,e.mkdSetActiveState=u,e.mkdReinitiateAll=f,e.mkdHandleMeta=k,e.mkdOnDocumentReady=t,e.mkdOnWindowLoad=o,e.mkdOnWindowResize=i,e.mkdOnWindowScroll=a,l(document).ready(t),l(window).load(o),l(window).resize(i),l(window).scroll(a);var s=!0,d=!0;function n(a,d,n){function e(e,t){a[e]=void 0!==a[e]?a[e]:t}d=void 0!==d?d:".mkd-content",n=void 0!==n?n:".mkd-content",a=void 0!==a?a:{},e("url",window.location.href),e("type","POST"),e("success",function(e){var t=l(e),o=t.find(".mkd-meta");o.length&&k(o);var i=t.find(n);if(!i.length)return!(s=!0);p(a.url,i,d)}),e("ajaxReq","yes"),l.ajax({url:a.url,type:a.type,data:{ajaxReq:a.ajaxReq},success:a.success})}function r(){if(mkd.body.removeClass("page-not-loaded"),m.loader=l("body > .mkd-smooth-transition-loader.mkd-ajax"),m.loader.length){if(m.loader.fadeOut(m.loaderTime),l(window).focus(function(){m.loader.fadeOut(m.loaderTime)}),mkd.body.hasClass("woocommerce")||mkd.body.hasClass("woocommerce-page"))return!1;c(),l(document).on("click",'a[target!="_blank"]:not(.no-ajax):not(.no-link)',function(e){var t=l(this);if(1===e.ctrlKey)return window.open(t.attr("href"),"_blank"),!1;if(t.parents(".mkd-ptf-load-more").length)return!1;if(t.parents(".mkd-blog-load-more-button").length)return!1;if(t.parents("mkd-post-info-comments").length){var o=t.attr("href").split("#")[1];return l("html, body").scrollTop(l("#"+o).offset().top),!1}if(window.location.href.split("#")[0]==t.attr("href").split("#")[0])return!1;if(0===t.closest(".mkd-no-animation").length){if(0<=document.location.href.indexOf("?s="))return!0;if(0<=t.attr("href").indexOf("wp-admin"))return!0;if(0<=t.attr("href").indexOf("wp-content"))return!0;if(-1!==jQuery.inArray(t.attr("href").split("#")[0],mkdGlobalVars.vars.no_ajax_pages))return document.location.href=t.attr("href"),!1;if("http://#"===t.attr("href")||"#"===t.attr("href"))return!1;if(0===t.attr("href").indexOf(window.location.protocol+"//"+window.location.host)){if(!s)return!1;e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation(),t.is(".current")||h(t)}}})}}function c(){window.history.pushState&&l(window).on("popstate",function(){var e=location.href;!d&&s&&(s=!1,n({url:e}))})}function h(e){s=!1,m.loader.fadeIn(m.loaderTime),n({url:e.attr("href")})}function u(e){var t=l("nav a[href='"+e+"'], .widget_nav_menu a[href='"+e+"']");l(".mkd-main-menu a, .mkd-mobile-nav a, .mkd-mobile-nav h4, .mkd-vertical-menu a, .popup_menu a, .widget_nav_menu a").removeClass("current").parent().removeClass("mkd-active-item"),l(".widget_nav_menu ul.menu > li").removeClass("current-menu-item"),t.each(function(){var e=l(this);0===e.closest(".second").length?e.parent().addClass("mkd-active-item"):e.closest(".second").parent().addClass("mkd-active-item"),0<e.closest(".mkd-mobile-nav").length&&(e.closest(".level0").addClass("mkd-active-item"),e.closest(".level1").addClass("mkd-active-item"),e.closest(".level2").addClass("mkd-active-item")),0<e.closest(".widget_nav_menu").length&&e.closest(".widget_nav_menu").find(".menu-item").addClass("current-menu-item"),e.addClass("current")})}function f(){l(document).off(),l(window).off(),mkd.body.off().find("*").off(),mkd.mkdOnDocumentReady(),mkd.mkdOnWindowLoad(),mkd.mkdOnWindowResize(),mkd.mkdOnWindowScroll();for(var e=["common","ajax","header","title","shortcodes","woocommerce","portfolio","blog","like"],t=0;t<e.length;t++)mkd.modules[e[t]].mkdOnDocumentReady(),mkd.modules[e[t]].mkdOnWindowLoad(),mkd.modules[e[t]].mkdOnWindowResize(),mkd.modules[e[t]].mkdOnWindowScroll()}function k(e){var t=e.find(".mkd-seo-title").text(),o=e.find(".mkd-page-transition").text(),i=e.find(".mkd-seo-description").text(),a=e.find(".mkd-seo-keywords").text();void 0!==o&&(m.type=o),l('head meta[name="description"]').length?l('head meta[name="description"]').attr("content",i):void 0!==i&&l('<meta name="description" content="'+i+'">').prependTo(l("head")),l('head meta[name="keywords"]').length?l('head meta[name="keywords"]').attr("content",a):void 0!==a&&l('<meta name="keywords" content="'+a+'">').prependTo(l("head")),document.title=t;var d=e.find(".mkd-body-classes").text().split(",");mkd.body.removeClass();for(var n=0;n<d.length;n++)"mkd-page-not-loaded"!==d[n]&&mkd.body.addClass(d[n]);if(0<l("#wp-admin-bar-edit").length){var s=e.find("#mkd-page-id").text(),r=l("#wp-admin-bar-edit a").attr("href").replace(/(post=).*?(&)/,"$1"+s+"$2");l("#wp-admin-bar-edit a").attr("href",r)}}function p(e,t,o){o=void 0!==o?o:".mkd-content";var i=mkd.body.find(o);t.height(i.height()).css({position:"absolute",opacity:0,overflow:"hidden"}).insertBefore(i),t.waitForImages(function(){-1!==e.indexOf("#")&&l('<a class="mkd-temp-anchor mkd-anchor" href="'+e+'" style="display: none"></a>').appendTo("body"),f(),"fade"==m.type&&(i.stop().fadeTo(m.time,0,function(){i.remove(),window.history.pushState?(e!==window.location.href&&window.history.pushState({path:e},"",e),"undefined"!=typeof _gaq&&_gaq.push(["_trackPageview",e])):document.location.href=window.location.protocol+"//"+window.location.host+"#"+e.split(window.location.protocol+"//"+window.location.host)[1],u(e),mkd.body.animate({scrollTop:0},m.time,"swing")}),setTimeout(function(){t.css("position","relative").height("").stop().fadeTo(m.time,1,function(){d=!(s=!0),m.loader.fadeOut(m.loaderTime,function(){var e=l(".mkd-temp-anchor");e.length&&e.trigger("click").remove()})})},!m.simultaneous*m.time))})}m.type=null,m.time=500,m.simultaneous=!0,m.loader=null,m.loaderTime=500}(jQuery),function(c){"use strict";var e={};function t(){!function(){var t,e=c(".mkd-page-header"),o=c(".mkd-sticky-header"),i=c(".mkd-fixed-wrapper"),a=c(".mkd-page-header").find(".mkd-fixed-wrapper").length?c(".mkd-page-header").find(".mkd-fixed-wrapper").offset().top:null;switch(!0){case mkd.body.hasClass("mkd-sticky-header-on-scroll-up"):mkd.modules.header.behaviour="mkd-sticky-header-on-scroll-up";var d=c(document).scrollTop();t=mkdGlobalVars.vars.mkdTopBarHeight+mkdGlobalVars.vars.mkdLogoAreaHeight+mkdGlobalVars.vars.mkdMenuAreaHeight+mkdGlobalVars.vars.mkdStickyHeaderHeight,(n=function(){var e=c(document).scrollTop();d<e&&t<e||e<t?(mkd.modules.header.isStickyVisible=!1,o.removeClass("header-appear").find(".mkd-main-menu .second").removeClass("mkd-drop-down-start")):(mkd.modules.header.isStickyVisible=!0,o.addClass("header-appear")),d=c(document).scrollTop()})(),c(window).scroll(function(){n()});break;case mkd.body.hasClass("mkd-sticky-header-on-scroll-down-up"):var n,s=function(){var e=mkdPerPageVars.vars.mkdStickyScrollAmountFullScreen;return void 0!==e&&!0===e};mkd.modules.header.behaviour="mkd-sticky-header-on-scroll-down-up",function(){var e;e=s()?mkd.window.height():0!==mkdPerPageVars.vars.mkdStickyScrollAmount?mkdPerPageVars.vars.mkdStickyScrollAmount:mkdGlobalVars.vars.mkdTopBarHeight+mkdGlobalVars.vars.mkdLogoAreaHeight+mkdGlobalVars.vars.mkdMenuAreaHeight,console.log(mkdGlobalVars.vars.mkdTopBarHeight),console.log(mkdGlobalVars.vars.mkdLogoAreaHeight),console.log(mkdGlobalVars.vars.mkdMenuAreaHeight),t=e}(),mkd.modules.header.stickyAppearAmount=t,(n=function(){mkd.scroll<t?(mkd.modules.header.isStickyVisible=!1,o.removeClass("header-appear").find(".mkd-main-menu .second").removeClass("mkd-drop-down-start")):(mkd.modules.header.isStickyVisible=!0,o.addClass("header-appear"))})(),c(window).scroll(function(){n()});break;case mkd.body.hasClass("mkd-fixed-on-scroll"):mkd.modules.header.behaviour="mkd-fixed-on-scroll";var r=function(){mkd.scroll<a?(i.removeClass("fixed"),e.css("margin-bottom",0)):(i.addClass("fixed"),e.css("margin-bottom",i.height()))};r(),c(window).scroll(function(){r()})}}(),d(),n(),f(),r(),l(),m(),h(),u().init()}function o(){s(),m()}function i(){m(),s()}function a(){}function d(){var i,a=c(".mkd-wrapper"),d=c(".mkd-side-menu"),n=c("a.mkd-side-menu-button-opener"),s=!1,r=!1,l=!1;mkd.body.hasClass("mkd-side-menu-slide-from-right")?(i="mkd-right-side-menu-opened",a.prepend('<div class="mkd-cover"/>'),s=!0):mkd.body.hasClass("mkd-side-menu-slide-with-content")?(i="mkd-side-menu-open",r=!0):mkd.body.hasClass("mkd-side-area-uncovered-from-content")&&(i="mkd-right-side-menu-opened",l=!0),c("a.mkd-side-menu-button-opener, a.mkd-close-side-menu").on("click",function(e){if(e.preventDefault(),n.hasClass("opened")){if(n.removeClass("opened"),mkd.body.removeClass(i),l)var t=setTimeout(function(){d.css({visibility:"hidden"}),clearTimeout(t)},400)}else{n.addClass("opened"),mkd.body.addClass(i),s&&c(".mkd-wrapper .mkd-cover").on("click",function(){mkd.body.removeClass("mkd-right-side-menu-opened"),n.removeClass("opened")}),l&&d.css({visibility:"visible"});var o=c(window).scrollTop();c(window).scroll(function(){if(400<Math.abs(mkd.scroll-o)&&(mkd.body.removeClass(i),n.removeClass("opened"),l))var e=setTimeout(function(){d.css({visibility:"hidden"}),clearTimeout(e)},400)})}r&&(e.stopPropagation(),a.on("click",function(){e.preventDefault(),n.removeClass("opened"),mkd.body.removeClass("mkd-side-menu-open")}))})}function n(){var e=c(".mkd-side-menu");e.length&&e.niceScroll({scrollspeed:60,mousescrollstep:40,cursorwidth:0,cursorborder:0,cursorborderradius:0,cursorcolor:"transparent",autohidemode:!1,horizrailenabled:!1})}function s(){if(mkd.body.hasClass("mkd-header-divided")){var e=c(".mkd-menu-area"),t=c(".mkd-sticky-holder"),o=e.width(),i=t.width(),a=c(".mkd-main-menu > ul > li > a"),d=0,n=e.find(".mkd-logo-wrapper .mkd-normal-logo"),s=0;e.children(".mkd-grid").length&&(o=e.children(".mkd-grid").outerWidth()),t.children(".mkd-grid").length&&(i=t.children(".mkd-grid").outerWidth()),a.length&&(d=parseInt(a.css("padding-left"))),n.length&&(s=n.width()/2);var r=Math.round(o/2-d-s),l=Math.round(i/2-d-s);c(".mkd-menu-area .mkd-position-left").width(r),c(".mkd-menu-area .mkd-position-right").width(r),c(".mkd-sticky-header .mkd-position-left").width(l),c(".mkd-sticky-header .mkd-position-right").width(l),e.css("opacity",1)}}function r(){var e=c(".mkd-mobile-header .mkd-mobile-menu-opener"),t=c(".mkd-mobile-header .mkd-mobile-nav"),o=c('.mkd-mobile-nav .mobile_arrow, .mkd-mobile-nav h4, .mkd-mobile-nav a[href*="#"]');e.length&&t.length&&e.on("tap click",function(e){e.stopPropagation(),e.preventDefault(),t.is(":visible")?t.slideUp(200):t.slideDown(200)}),o.length&&o.each(function(){c(this).on("tap click",function(e){var t=c(this).nextAll("ul").first();if(t.length){e.preventDefault(),e.stopPropagation();var o=c(this).parent("li");t.is(":visible")?(t.slideUp(200),o.removeClass("mkd-opened")):(t.slideDown(200),o.addClass("mkd-opened"))}})}),c(".mkd-mobile-nav a, .mkd-mobile-logo-wrapper a").on("click tap",function(e){"http://#"!==c(this).attr("href")&&"#"!==c(this).attr("href")&&t.slideUp(200)})}function l(){if(mkd.body.hasClass("mkd-sticky-up-mobile-header")){var t,o=c(".mkd-mobile-header"),i=c("#wpadminbar"),e=o.length?o.height():0,a=i.length?i.height():0,d=c(document).scrollTop();t=e+a,c(window).scroll(function(){var e=c(document).scrollTop();t<e?o.addClass("mkd-animate-mobile-header"):o.removeClass("mkd-animate-mobile-header"),d<e&&t<e||e<t?(o.removeClass("mobile-header-appear"),o.css("margin-bottom",0),i.length&&o.find(".mkd-mobile-header-inner").css("top",0)):(o.addClass("mobile-header-appear"),o.css("margin-bottom",t)),d=c(document).scrollTop()})}}function m(){var r=c(".mkd-drop-down > ul > li");r.each(function(e){if(0<c(r[e]).find(".second").length){var t=c(r[e]).find(".second");if(c(r[e]).hasClass("wide")){var o=c(this).find(".inner > ul"),i=parseInt(o.css("padding-left").slice(0,-2))+parseInt(o.css("padding-right").slice(0,-2)),a=o.outerWidth();c(this).hasClass("left_position")||c(this).hasClass("right_position")||t.css("left",0);var d=0;if(c(this).find(".second > .inner > ul > li").each(function(){var e=c(this).height();d<e&&(d=e)}),c(this).find(".second > .inner > ul > li").css("height",""),c(this).find(".second > .inner > ul > li").height(d),c(this).hasClass("wide_background")){if(!c(this).hasClass("left_position")&&!c(this).hasClass("right_position")){n=t.offset().left;t.css("left",-n),t.css("width",mkd.windowWidth)}}else if(!c(this).hasClass("left_position")&&!c(this).hasClass("right_position")){var n=(mkd.windowWidth-2*(mkd.windowWidth-o.offset().left))/2+(a+i)/2;t.css("left",-n)}}if(mkd.menuDropdownHeightSet||(c(r[e]).data("original_height",t.height()+"px"),t.height(0)),navigator.userAgent.match(/(iPod|iPhone|iPad)/))c(r[e]).on("touchstart mouseenter",function(){t.css({height:c(r[e]).data("original_height"),overflow:"visible",visibility:"visible",opacity:"1"})}).on("mouseleave",function(){t.css({height:"0px",overflow:"hidden",visibility:"hidden",opacity:"0"})});else if(mkd.body.hasClass("mkd-dropdown-animate-height"))c(r[e]).mouseenter(function(){t.css({visibility:"visible",height:"0px",opacity:"0"}),t.stop().animate({height:c(r[e]).data("original_height"),opacity:1},200,function(){t.css("overflow","visible")})}).mouseleave(function(){t.stop().animate({height:"0px"},0,function(){t.css({overflow:"hidden",visibility:"hidden"})})});else{var s={interval:0,over:function(){setTimeout(function(){t.addClass("mkd-drop-down-start"),t.stop().css({height:c(r[e]).data("original_height")})},150)},timeout:150,out:function(){t.stop().css({height:"0px"}),t.removeClass("mkd-drop-down-start")}};c(r[e]).hoverIntent(s)}}}),c(".mkd-drop-down ul li.wide ul li a").on("click",function(e){if(1===e.which){var t=c(this);setTimeout(function(){t.mouseleave()},500)}}),mkd.menuDropdownHeightSet=!0}function h(){var o,i,a,d,e=c("a.mkd-search-opener");if(c("html").hasClass("touch")&&!0,0<e.length&&(mkd.body.hasClass("mkd-fullscreen-search")?(a=c(".mkd-fullscreen-search-holder"),c(".mkd-fullscreen-search-overlay"),d=a.find(".mkd-field-holder"),e.on("click",function(e){function t(){mkd.body.removeClass("mkd-fullscreen-search-opened"),a.removeClass("mkd-animate"),mkd.body.removeClass("mkd-search-fade-in"),mkd.body.addClass("mkd-search-fade-out"),mkd.body.hasClass("page-template-full_screen-php")||mkd.modules.common.mkdEnableScroll(),d.find(".mkd-search-field").blur().val("")}e.preventDefault(),a.hasClass("mkd-animate")?t():function(){mkd.body.addClass("mkd-fullscreen-search-opened"),mkd.body.removeClass("mkd-search-fade-out"),mkd.body.addClass("mkd-search-fade-in"),a.addClass("mkd-animate"),mkd.body.hasClass("page-template-full_screen-php")||mkd.modules.common.mkdDisableScroll();setTimeout(function(){d.find(".mkd-search-field").focus()},400)}(),c(document).mouseup(function(e){d.is(e.target)||0!==d.has(e.target).length||(e.preventDefault(),t())}),c(document).keyup(function(e){27===e.keyCode&&t()})}),c(".mkd-fullscreen-search-holder .mkd-search-field").focus(function(){c(".mkd-fullscreen-search-holder .mkd-field-holder .mkd-line").css("width","100%")}),c(".mkd-fullscreen-search-holder .mkd-search-field").blur(function(){c(".mkd-fullscreen-search-holder .mkd-field-holder .mkd-line").css("width","0")})):mkd.body.hasClass("mkd-search-slides-from-window-top")?(i=c(".mkd-search-slide-window-top"),o=c(".mkd-search-close"),e.on("click",function(e){e.preventDefault();var t=0;c(".title").hasClass("has_parallax_background")&&(t=parseInt(c(".title.has_parallax_background").css("backgroundPosition").split(" ")[1])),0===i.height()?(c('.mkd-search-slide-window-top input[type="text"]').focus(),mkd.body.addClass("mkd-search-open"),c(".title.has_parallax_background").animate({"background-position-y":t+50+"px"},150)):(mkd.body.removeClass("mkd-search-open"),c(".title.has_parallax_background").animate({"background-position-y":t-50+"px"},150)),c(window).scroll(function(){0!==i.height()&&50<mkd.scroll&&(mkd.body.removeClass("mkd-search-open"),c(".title.has_parallax_background").css("backgroundPosition","center "+t+"px"))}),o.on("click",function(e){e.preventDefault(),mkd.body.removeClass("mkd-search-open"),c(".title.has_parallax_background").animate({"background-position-y":t+"px"},150)})})):mkd.body.hasClass("mkd-search-covers-header")&&e.on("click",function(e){e.preventDefault();var t,o,i,a=c(".mkd-search-cover .mkd-form-holder-outer");i=c(this).closest(".mkd-grid").length?(o=c(this).closest(".mkd-grid").children().first()).parent():o=c(this).closest(".mkd-menu-area").children().first(),0<c(this).closest(".mkd-sticky-header").length&&(o=c(this).closest(".mkd-sticky-header").children().first()),0<c(this).closest(".mkd-mobile-header").length&&(o=c(this).closest(".mkd-mobile-header").children().children().first()),i.parent().hasClass("mkd-logo-area")?t=mkdGlobalVars.vars.mkdLogoAreaHeight:i.parent().hasClass("mkd-top-bar")?t=mkdGlobalVars.vars.mkdTopBarHeight:i.parent().hasClass("mkd-menu-area")?t=mkdGlobalVars.vars.mkdMenuAreaHeight:i.hasClass("mkd-sticky-header")?t=mkdGlobalVars.vars.mkdMenuAreaHeight:i.parent().hasClass("mkd-mobile-header")&&(t=c(".mkd-mobile-header-inner").height()),a.height(t),o.stop(!0).fadeIn(600),c('.mkd-search-cover input[type="text"]').focus(),c(".mkd-search-close, .content, footer").on("click",function(e){e.preventDefault(),o.stop(!0).fadeOut(450)}),o.blur(function(){o.stop(!0).fadeOut(450)})}),void 0!==e.data("hover-color"))){var t=function(e){e.data.searchOpener.css("color",e.data.color)},n=e.css("color"),s=e.data("hover-color");e.on("mouseenter",{searchOpener:e,color:s},t),e.on("mouseleave",{searchOpener:e,color:n},t)}}(mkd.modules.header=e).isStickyVisible=!1,e.stickyAppearAmount=0,e.behaviour,e.mkdSideArea=d,e.mkdSideAreaScroll=n,e.mkdInitMobileNavigation=r,e.mkdMobileHeaderBehavior=l,e.mkdSetDropDownMenuPosition=function(){c(".mkd-drop-down > ul > li.narrow").each(function(e){var t,o=mkd.windowWidth-16,i=c(this).offset().left,a=c(this).find(".second .inner ul").width(),d=0;d=mkd.body.hasClass("boxed")?mkd.boxedLayoutWidth-(i-(o-mkd.boxedLayoutWidth)/2):o-i,0<c(this).find("li.sub").length&&(t=d-a),(d<a||t<a)&&(c(this).find(".second").addClass("right"),c(this).find(".second .inner ul").addClass("right"))})},e.mkdDropDownMenu=m,e.mkdSearch=h,e.mkdFullscreenMenu=f,e.mkdOnDocumentReady=t,e.mkdOnWindowLoad=o,e.mkdOnWindowResize=i,e.mkdOnWindowScroll=a,c(document).ready(t),c(window).load(o),c(window).resize(i),c(window).scroll(a);var u=function(){var t=c(".mkd-vertical-menu-area");return{init:function(){t.length&&function(){var i,a,e=t.find(".mkd-vertical-menu");void 0!==e.data("navigation-type")&&e.data("navigation-type");i=e.find("ul li.menu-item-has-children"),a=i.find(" > .second, > ul"),i.each(function(){var t=c(this).find(" > .second, > ul"),o=this;Modernizr.touch?c(this).find("> a").on("click tap",function(e){e.preventDefault(),e.stopPropagation(),t.hasClass("mkd-float-open")?(t.removeClass("mkd-float-open"),c(o).removeClass("open")):(c(this).parents("li").hasClass("open")||(i.removeClass("open"),a.removeClass("mkd-float-open")),t.addClass("mkd-float-open"),c(o).addClass("open"))}):c(this).hoverIntent({over:function(){t.addClass("mkd-float-open"),c(o).addClass("open")},out:function(){t.removeClass("mkd-float-open"),c(o).removeClass("open")},timeout:300})})}()}}};function f(){if(c("a.mkd-fullscreen-menu-opener").length){var t,o=c("a.mkd-fullscreen-menu-opener"),e=c(".mkd-fullscreen-menu-holder-outer"),i=!1,a=!1,d=c(".mkd-fullscreen-logo-wrapper"),n=c(".mkd-fullscreen-above-menu-widget-holder"),s=c(".mkd-fullscreen-below-menu-widget-holder"),r=c(".mkd-fullscreen-menu-holder-outer nav > ul > li > a"),l=c(".mkd-fullscreen-menu > ul li.has_sub > a"),m=c(".mkd-fullscreen-menu ul li:not(.has_sub) a");e.height(mkd.windowHeight).niceScroll({scrollspeed:30,mousescrollstep:20,cursorwidth:0,cursorborder:0,cursorborderradius:0,cursorcolor:"transparent",autohidemode:!1,horizrailenabled:!1}),c(window).resize(function(){e.height(mkd.windowHeight)}),mkd.body.hasClass("mkd-fade-push-text-right")?(t="mkd-push-nav-right",i=!0):mkd.body.hasClass("mkd-fade-push-text-top")&&(t="mkd-push-text-top",a=!0),(i||a)&&(d.length&&d.css({"-webkit-animation-delay":"0ms","-moz-animation-delay":"0ms","animation-delay":"0ms"}),n.length&&n.children().css({"-webkit-animation-delay":"70ms","-moz-animation-delay":"70ms","animation-delay":"70ms"}),r.each(function(e){c(this).css({"-webkit-animation-delay":70*(e+2)+"ms","-moz-animation-delay":70*(e+2)+"ms","animation-delay":70*(e+2)+"ms"})}),s.length&&s.children().css({"-webkit-animation-delay":70*(r.length+2)+"ms","-moz-animation-delay":70*(r.length+2)+"ms","animation-delay":70*(r.length+2)+"ms"})),o.on("click",function(e){e.preventDefault(),o.hasClass("opened")?(o.removeClass("opened"),mkd.body.removeClass("mkd-fullscreen-menu-opened"),mkd.body.removeClass("mkd-fullscreen-fade-in").addClass("mkd-fullscreen-fade-out"),mkd.body.addClass(t),mkd.body.hasClass("page-template-full_screen-php")||mkd.modules.common.mkdEnableScroll(),c("nav.mkd-fullscreen-menu ul.sub_menu").slideUp(200,function(){c("nav.popup_menu").getNiceScroll().resize()})):(o.addClass("opened"),mkd.body.addClass("mkd-fullscreen-menu-opened"),mkd.body.removeClass("mkd-fullscreen-fade-out").addClass("mkd-fullscreen-fade-in"),mkd.body.removeClass(t),mkd.body.hasClass("page-template-full_screen-php")||mkd.modules.common.mkdDisableScroll(),c(document).keyup(function(e){27===e.keyCode&&(o.removeClass("opened"),mkd.body.removeClass("mkd-fullscreen-menu-opened"),mkd.body.removeClass("mkd-fullscreen-fade-in").addClass("mkd-fullscreen-fade-out"),mkd.body.addClass(t),mkd.body.hasClass("page-template-full_screen-php")||mkd.modules.common.mkdEnableScroll(),c("nav.mkd-fullscreen-menu ul.sub_menu").slideUp(200,function(){c("nav.popup_menu").getNiceScroll().resize()}))}))}),l.on("tap click",function(e){e.preventDefault();var t=c(this).parent(),o=t.siblings(".menu-item-has-children");if(t.hasClass("has_sub")){var i=t.find("> ul.sub_menu");i.is(":visible")?(i.slideUp(450,"easeInOutQuint"),t.removeClass("open_sub")):(t.addClass("open_sub"),0===o.length?i.slideDown(400,"easeInOutQuint"):(t.closest("li.menu-item").siblings().find(".menu-item").removeClass("open_sub"),t.siblings().removeClass("open_sub").find(".sub_menu").slideUp(400,"easeInOutQuint",function(){i.slideDown(400,"easeInOutQuint")})))}return!1}),m.on("click",function(e){if("http://#"===c(this).attr("href")||"#"===c(this).attr("href"))return!1;1===e.which&&(o.removeClass("opened"),mkd.body.removeClass("mkd-fullscreen-menu-opened"),mkd.body.removeClass("mkd-fullscreen-fade-in").addClass("mkd-fullscreen-fade-out"),mkd.body.addClass(t),c("nav.mkd-fullscreen-menu ul.sub_menu").slideUp(200,function(){c("nav.popup_menu").getNiceScroll().resize()}),mkd.modules.common.mkdEnableScroll())})}}}(jQuery),function(d){"use strict";var e={};function t(){n()}function o(){}function i(){}function a(){}function n(){if(0<d(".mkd-title.mkd-has-parallax-background").length&&0===d(".touch").length){var e=d(".mkd-title.mkd-has-parallax-background"),t=d(".mkd-title.mkd-has-parallax-background.mkd-zoom-out"),o=null!=e.data("background-width")?parseInt(e.data("background-width").match(/\d+/)):0,i=e.data("height")/1e4*7,a=-mkd.scroll*i;e.css({"background-position":"center "+(a+mkdGlobalVars.vars.mkdAddForAdminBar)+"px"}),t.css({"background-size":o-mkd.scroll+"px auto"}),d(window).scroll(function(){a=-mkd.scroll*i,e.css({"background-position":"center "+(a+mkdGlobalVars.vars.mkdAddForAdminBar)+"px"}),t.css({"background-size":o-mkd.scroll+"px auto"})})}}(mkd.modules.title=e).mkdParallaxTitle=n,e.mkdOnDocumentReady=t,e.mkdOnWindowLoad=o,e.mkdOnWindowResize=i,e.mkdOnWindowScroll=a,d(document).ready(t),d(window).load(o),d(window).resize(i),d(window).scroll(a)}(jQuery),function(z){"use strict";var e={};function t(){Z(),d(),s(),l(),m().init(),n(),r(),u(),f(),k(),p(),R(),g(),v().init(),w(),b(),x(),V(),j(),_(),y(),T(),W(),S(),P(),A(),H().init(),c().init(),L().init(),F().init(),E().init(),B().init(),G(),q(),h(),U(),X(),K()}function o(){Q(),z(".mkd-expanding-images").length&&z(".mkd-expanding-images").each(function(){var e=z(this);e.appear(function(){e.addClass("active")},{accX:0,accY:-e.height()})}),mkd.modules.common.mkdInitParallax()}function i(){w(),b(),T(),W()}function a(){Z()}function d(){var e=z(".mkd-counter");e.length&&e.each(function(){var t=z(this);t.appear(function(){if(t.parent().addClass("mkd-counter-holder-show"),t.hasClass("zero")){var e=parseFloat(t.text());t.countTo({from:0,to:e,speed:1500,refreshInterval:100})}else t.absoluteCounter({speed:2e3,fadeInDelay:1e3})},{accX:0,accY:mkdGlobalVars.vars.mkdElementAppearAmount})})}function s(){var e=z(".mkd-progress-bar");e.length&&e.each(function(){var a=z(this);a.appear(function(){if(!function(e){var t=parseFloat(e.find(".mkd-progress-content").data("percentage")),o=e.find(".mkd-progress-number .mkd-percent");o.length&&o.each(function(){var e=z(this);e.parents(".mkd-progress-number-wrapper").css("opacity","1"),e.countTo({from:0,to:t,speed:1500,refreshInterval:50})})}(a),0!==a.find(".mkd-floating.mkd-floating-inside")){var e=a.find(".mkd-progress-content").height();e+=parseFloat(a.find(".mkd-progress-title-holder").css("padding-bottom")),e+=parseFloat(a.find(".mkd-progress-title-holder").css("margin-bottom")),a.find(".mkd-floating-inside").css("margin-bottom",-e+"px")}var t=a.find(".mkd-progress-content").data("percentage"),o=a.find(".mkd-progress-content"),i=a.find(".mkd-progress-number");o.css("width","0%"),o.animate({width:t+"%"},1500),i.css("left","0%"),i.animate({left:t+"%"},1500)})})}function n(){var e=z(".mkd-message");e.length&&e.each(function(){z(this).find(".mkd-close").on("click",function(e){e.preventDefault(),z(this).parent().parent().fadeOut(500)})})}function r(){var e=z(".mkd-message.mkd-with-icon");e.length&&e.each(function(){var e=z(this),t=e.find(".mkd-message-text-holder").height(),o=e.find(".mkd-message-icon-holder").height();o<t?e.find(".mkd-message-icon-holder").height(t):e.find(".mkd-message-text-holder").height(o)})}function l(){var n,s,r,l,m,c,h,u,f,k,p,e=z(".mkd-countdown");e.length&&e.each(function(){var e,t,o,i,a=z(this).attr("id"),d=z("#"+a);n=d.data("year"),s=d.data("month"),r=d.data("day"),l=d.data("hour"),m=d.data("minute"),c=d.data("timezone"),h=d.data("month-label"),u=d.data("day-label"),f=d.data("hour-label"),k=d.data("minute-label"),p=d.data("second-label"),e=d.data("digit-size"),t=d.data("digit-color"),o=d.data("label-size"),i=d.data("label-color"),d.countdown({until:new Date(n,s-1,r,l,m,44),labels:["Years",h,"Weeks",u,f,k,p],format:"yodHMS",timezone:c,padZeroes:!0,onTick:function(){d.find(".countdown-amount").css({"font-size":e+"px","line-height":e+"px",color:t}),d.find(".countdown-period").css({"font-size":o+"px",color:i})}})})}(mkd.modules.shortcodes=e).mkdInitCounter=d,e.mkdInitProgressBars=s,e.mkdInitCountdown=l,e.mkdInitMessages=n,e.mkdInitMessageHeight=r,e.mkdInitTestimonials=h,e.mkdInitCarousels=u,e.mkdInitPieChart=f,e.mkdInitPieChartDoughnut=k,e.mkdInitTabs=p,e.mkdTwitterSlider=R,e.mkdInitTabIcons=g,e.mkdInitBlogListMasonry=w,e.mkdCustomFontResize=b,e.mkdInitImageGallery=x,e.mkdInitAccordions=_,e.mkdShowGoogleMap=y,e.mkdInitPortfolioListMasonry=T,e.mkdInitPortfolioListPinterest=W,e.mkdInitPortfolio=S,e.mkdInitPortfolioMasonryFilter=P,e.mkdInitPortfolioLoadMore=A,e.mkdCheckSliderForHeaderStyle=D,e.mkdProcess=L,e.mkdProgressBarVertical=F,e.mkdIconProgressBar=E,e.mkdBlogSlider=V,e.teamSlider=j,e.mkdOnDocumentReady=t,e.mkdOnWindowLoad=o,e.mkdOnWindowResize=i,e.mkdOnWindowScroll=a,e.emptySpaceResponsive=B,e.mkdZoomingSlider=G,e.mkdInitVerticalSplitSlider=q,e.mkdThumbnailImageSlider=U,e.mkdProductSlider=Q,e.mkdTypeOutSectionTitle=X,e.mkdWorkflow=K,z(document).ready(t),z(window).load(o),z(window).resize(i),z(window).scroll(a);var m=mkd.modules.shortcodes.mkdIcon=function(){var e=z(".mkd-icon-shortcode");return{init:function(){e.length&&e.each(function(){!function(e){e.hasClass("mkd-icon-animation")&&e.appear(function(){e.parent(".mkd-icon-animation-holder").addClass("mkd-icon-animation-show")},{accX:0,accY:mkdGlobalVars.vars.mkdElementAppearAmount})}(z(this)),function(e){if(void 0!==e.data("hover-color")){var t=function(e){e.data.icon.css("color",e.data.color)},o=e.find(".mkd-icon-element"),i=e.data("hover-color"),a=o.css("color");""!==i&&(e.on("mouseenter",{icon:o,color:i},t),e.on("mouseleave",{icon:o,color:a},t))}}(z(this)),function(e){if(void 0!==e.data("hover-background-color")){var t=function(e){e.data.icon.css("background-color",e.data.color)},o=e.data("hover-background-color"),i=e.css("background-color");""!==o&&(e.on("mouseenter",{icon:e,color:o},t),e.on("mouseleave",{icon:e,color:i},t))}}(z(this)),function(e){if(void 0!==e.data("hover-border-color")){var t=function(e){e.data.icon.css("border-color",e.data.color)},o=e.data("hover-border-color"),i=e.css("border-color");""!==o&&(e.on("mouseenter",{icon:e,color:o},t),e.on("mouseleave",{icon:e,color:i},t))}}(z(this))})}}},c=mkd.modules.shortcodes.mkdSocialIconWidget=function(){var e=z(".mkd-social-icon-widget-holder");return{init:function(){e.length&&e.each(function(){!function(e){if(void 0!==e.data("hover-color")){var t=function(e){e.data.icon.css("color",e.data.color)},o=e,i=e.data("hover-color"),a=o.css("color");""!==i&&(e.on("mouseenter",{icon:o,color:i},t),e.on("mouseleave",{icon:o,color:a},t))}}(z(this))})}}};function h(){var e=z(".mkd-testimonials.testimonials-slider");e.length&&e.each(function(){var e=z(this),t=800;void 0!==e.data("animation-speed")&&!1!==e.data("animation-speed")&&(t=e.data("animation-speed")),e.hasClass("owl-carousel")||e.addClass("owl-carousel");var o=z(this).data("navigation_color"),i=z(this).data("navigation_active_color");e.owlCarousel({items:1,autoHeight:!0,autoplay:!0,autoplayTimeout:3e3,autoplayHoverPause:!0,loop:!0,nav:!1,dots:!0,smartSpeed:t,onInitialized:function(){e.css("visibility","visible"),""!==o&&""!=i&&(e.find(".owl-dot span").css({"background-color":o}),e.find(".owl-dot.active span").css({"background-color":i}))},animateIn:"fadeInRight",animateOut:"fadeOutLeft"}),""!==o&&""!=i&&e.on("changed.owl.carousel",function(){e.find(".owl-dot span").css({"background-color":o}),e.find(".owl-dot.active span").css({"background-color":i})})})}function u(){var t,o,e=z(".mkd-carousel-holder");e.length&&e.each(function(){t=z(this).children(".mkd-carousel"),o=t.data("items"),t.waitForImages(function(){t.css("visibility","visible"),t.hasClass("owl-carousel")||t.addClass("owl-carousel")});var e=t.data("navigation");e=void 0!==e&&"yes"===e,t.owlCarousel({autoplay:!0,autoplayTimeout:3e3,autoplayHoverPause:!0,loop:!0,nav:e,dots:!1,items:o,responsive:{0:{items:1},480:{items:2},768:{items:3},1024:{items:o}},smartSpeed:600,navText:['<span class="mkd-prev-icon"><i class="lnr lnr-chevron-left"></i></span>','<span class="mkd-next-icon"><i class="lnr lnr-chevron-right"></i></span>']})})}function f(){var e=z(".mkd-pie-chart-holder, .mkd-pie-chart-with-icon-holder");e.length&&e.each(function(){var e,t,o=z(this),i=o.children(".mkd-percentage, .mkd-percentage-with-icon"),a=185;void 0!==o.data("bar-color")&&""!==o.data("bar-color")&&(e=o.data("bar-color")),void 0!==i.data("size")&&""!==i.data("size")&&(a=i.data("size")),void 0!==o.data("track-color")&&""!==o.data("track-color")&&(t=o.data("track-color")),i.appear(function(){!function(e){e.css("opacity","1");var t=e.find(".mkd-to-counter"),o=parseFloat(t.text());t.countTo({from:0,to:o,speed:1500,refreshInterval:50})}(o),i.css("opacity","1"),i.easyPieChart({barColor:e,trackColor:t,scaleColor:!1,lineCap:"butt",lineWidth:10,animate:1500,size:a})},{accX:0,accY:mkdGlobalVars.vars.mkdElementAppearAmount})})}function k(){z(".mkd-pie-chart-doughnut-holder, .mkd-pie-chart-pie-holder").each(function(){for(var e=z(this).find("canvas"),t=e.attr("id"),o=document.getElementById(t).getContext("2d"),i=[],a=z(o.canvas),d=1;d<=10;d++){var n,s=a.data("value-"+d),r=a.data("color-"+d);void 0!==s&&void 0!==r&&(n={value:s,color:r},i.push(n))}e.hasClass("mkd-pie")?new Chart(o).Pie(i,{segmentStrokeColor:"transparent"}):new Chart(o).Doughnut(i,{segmentStrokeColor:"transparent"})})}function p(){var e=z(".mkd-tabs");e.length&&e.each(function(){var e=z(this);e.children(".mkd-tab-container").each(function(e){e+=1;var t=z(this),o=t.attr("id"),i=t.parent().find(".mkd-tabs-nav li:nth-child("+e+") a"),a=i.attr("href");-1<(o="#"+o).indexOf(a)&&i.attr("href",o)}),e.hasClass("mkd-horizontal")?e.tabs():e.hasClass("mkd-vertical")&&(e.tabs().addClass("ui-tabs-vertical ui-helper-clearfix"),e.find(".mkd-tabs-nav > ul >li").removeClass("ui-corner-top").addClass("ui-corner-left"));var t=e.find(".mkd-tab-container");function o(e){e.each(function(){var e=z(this);e.is(":visible")?e.addClass("mkd-visible"):e.removeClass("mkd-visible")})}if(o(t),e.find("li:not(.mkd-tab-line)").each(function(){z(this).on("click",function(){setTimeout(function(){o(t)},50)})}),e.hasClass("mkd-horizontal")){var i=e.find("> ul > li:not(.mkd-tab-line)"),a=e.find(".mkd-tab-line");1024<=mkd.windowWidth?(a.css({width:i.first().outerWidth()}),a.css({left:0}),i.each(function(){var e=z(this);e.mouseenter(function(){a.css({width:e.outerWidth()}),a.css({left:e.offset().left-e.parent().offset().left})})}),e.find("> ul").mouseleave(function(){a.css({width:i.filter(".ui-tabs-active").outerWidth()}),a.css({left:i.filter(".ui-tabs-active").offset().left-i.filter(".ui-tabs-active").parent().offset().left})})):i.each(function(){a.css({width:"100%"}),a.css({transition:"none"});var e=z(this);e.on("click",function(){a.css({top:e.offset().top-e.parent().offset().top+e.height()})})})}if(e.hasClass("mkd-vertical")){i=e.find("> ul > li");(a=e.find(".mkd-tab-line")).css({height:i.first().outerHeight()}),a.css({top:0}),i.each(function(){var e=z(this);e.mouseenter(function(){a.css({height:e.outerHeight()}),a.css({top:e.offset().top-e.parent().offset().top})})}),e.find("> ul").mouseleave(function(){a.css({height:i.filter(".ui-tabs-active").outerHeight()}),a.css({top:i.filter(".ui-tabs-active").offset().top-i.filter(".ui-tabs-active").parent().offset().top})})}})}function g(){var e=z(".mkd-tab-container");e.length&&e.each(function(){var e=z(this),t=e.attr("id"),o="";void 0===e.data("icon-html")&&"false"===e.data("icon-html")||(o=e.data("icon-html"));var i=e.parents(".mkd-tabs").find('.mkd-tabs-nav > li > a[href="#'+t+'"]');void 0!==i&&i.children(".mkd-icon-frame").append(o)})}var v=mkd.modules.shortcodes.mkdButton=function(){var e=z(".mkd-btn");return{init:function(){e.length&&e.each(function(){!function(e){if(void 0!==e.data("hover-color")){var t=function(e){e.data.button.css("color",e.data.color)},o=e.css("color"),i=e.data("hover-color");e.on("mouseenter",{button:e,color:i},t),e.on("mouseleave",{button:e,color:o},t)}}(z(this)),function(e){if(void 0!==e.data("hover-bg-color")){var t=function(e){e.data.button.css("background-color",e.data.color)},o=e.css("background-color"),i=e.data("hover-bg-color");e.on("mouseenter",{button:e,color:i},t),e.on("mouseleave",{button:e,color:o},t)}}(z(this)),function(e){if(void 0!==e.data("hover-border-color")){var t=function(e){e.data.button.css("border-color",e.data.color)},o=e.css("borderTopColor"),i=e.data("hover-border-color");e.on("mouseenter",{button:e,color:i},t),e.on("mouseleave",{button:e,color:o},t)}}(z(this))})}}};function w(){var e=z(".mkd-blog-list-holder.mkd-masonry .mkd-blog-list");e.length&&e.each(function(){var e=z(this);e.animate({opacity:1}),e.isotope({itemSelector:".mkd-blog-list-masonry-item",masonry:{columnWidth:".mkd-blog-list-masonry-grid-sizer",gutter:".mkd-blog-list-masonry-grid-gutter"}})})}function b(){var e=z(".mkd-custom-font-holder");e.length&&e.each(function(){var e,t,o=z(this),i=1,a=1;mkd.windowWidth<1200&&(i=.8),mkd.windowWidth<1e3&&(i=.7),mkd.windowWidth<768&&(i=.6,a=.7),mkd.windowWidth<600&&(i=.5,a=.6),mkd.windowWidth<480&&(i=.5,a=.6),void 0!==o.data("font-size")&&!1!==o.data("font-size")&&(70<(e=parseInt(o.data("font-size")))?e=Math.round(e*i):35<e&&(e=Math.round(e*a)),o.css("font-size",e+"px")),void 0!==o.data("line-height")&&!1!==o.data("line-height")&&(70<(t=parseInt(o.data("line-height")))&&mkd.windowWidth<1200?t="1.2em":35<t&&mkd.windowWidth<768?t="1.2em":t+="px",o.css("line-height",t))})}function y(){z(".mkd-google-map").length&&z(".mkd-google-map").each(function(){var e,t,o,i,a,d,n,s,r,l,m=z(this);void 0!==m.data("custom-map-style")&&(e=m.data("custom-map-style")),void 0!==m.data("color-overlay")&&!1!==m.data("color-overlay")&&(t=m.data("color-overlay")),void 0!==m.data("saturation")&&!1!==m.data("saturation")&&(o=m.data("saturation")),void 0!==m.data("lightness")&&!1!==m.data("lightness")&&(i=m.data("lightness")),void 0!==m.data("zoom")&&!1!==m.data("zoom")&&(a=m.data("zoom")),void 0!==m.data("pin")&&!1!==m.data("pin")&&(d=m.data("pin")),void 0!==m.data("height")&&!1!==m.data("height")&&(n=m.data("height")),void 0!==m.data("unique-id")&&!1!==m.data("unique-id")&&(s=m.data("unique-id")),void 0!==m.data("scroll-wheel")&&(r=m.data("scroll-wheel")),void 0!==m.data("addresses")&&!1!==m.data("addresses")&&(l=m.data("addresses")),function(e,t,o,i,a,d,n,s,r,l,m,c){if("object"!=typeof google)return;var h,u=[{stylers:[{hoshi:t},{saturation:o},{lightness:i},{gamma:1}]}];h=e?"mkd-style":google.maps.MapTypeId.ROADMAP;var f=new google.maps.StyledMapType(u,{name:"Mikado Google Map"});m=new google.maps.Geocoder;var k=new google.maps.LatLng(-34.397,150.644);isNaN(s)||(s+="px");var p,g={zoom:d,scrollwheel:a,center:k,zoomControl:!0,zoomControlOptions:{style:google.maps.ZoomControlStyle.SMALL,position:google.maps.ControlPosition.RIGHT_CENTER},scaleControl:!1,scaleControlOptions:{position:google.maps.ControlPosition.LEFT_CENTER},streetViewControl:!1,streetViewControlOptions:{position:google.maps.ControlPosition.LEFT_CENTER},panControl:!1,panControlOptions:{position:google.maps.ControlPosition.LEFT_CENTER},mapTypeControl:!1,mapTypeControlOptions:{mapTypeIds:[google.maps.MapTypeId.ROADMAP,"mkd-style"],style:google.maps.MapTypeControlStyle.HORIZONTAL_BAR,position:google.maps.ControlPosition.LEFT_CENTER},mapTypeId:h};for((l=new google.maps.Map(document.getElementById(n),g)).mapTypes.set("mkd-style",f),p=0;p<c.length;++p)C(c[p],r,l,m);document.getElementById(n).style.height=s}(e,t,o,i,r,a,"mkd-map-"+s,n,d,"map_"+s,"geocoder_"+s,l)})}function C(i,a,d,e){if(""!==i){var t='<div id="content"><div id="siteNotice"></div><div id="bodyContent"><p>'+i+"</p></div></div>",n=new google.maps.InfoWindow({content:t});e.geocode({address:i},function(e,t){if(t===google.maps.GeocoderStatus.OK){d.setCenter(e[0].geometry.location);var o=new google.maps.Marker({map:d,position:e[0].geometry.location,icon:a,title:i.store_title});google.maps.event.addListener(o,"click",function(){n.open(d,o)}),google.maps.event.addDomListener(window,"resize",function(){d.setCenter(e[0].geometry.location)})}})}}function _(){var e=z(".mkd-accordion-holder");e.length&&e.each(function(){var e=z(this);if(e.hasClass("mkd-accordion")&&e.accordion({animate:"swing",collapsible:!1,active:0,icons:"",heightStyle:"content"}),e.hasClass("mkd-toggle")){var t=z(this),o=t.find(".mkd-title-holder"),i=o.next();t.addClass("accordion ui-accordion ui-accordion-icons ui-widget ui-helper-reset"),o.addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-top ui-corner-bottom"),i.addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").hide(),o.each(function(){var e=z(this);e.on("mouseenter mouseleave",function(){e.toggleClass("ui-state-hover")}),e.on("click",function(){e.toggleClass("ui-accordion-header-active ui-state-active ui-state-default ui-corner-bottom"),e.next().toggleClass("ui-accordion-content-active").slideToggle(400)})})}})}function x(){var e=z(".mkd-image-gallery");e.length&&e.each(function(){var e,t,o,i=z(this).children(".mkd-image-gallery-slider"),a=!1,d=i.data("autoplay"),n="yes"==i.data("navigation"),s="yes"==i.data("pagination");""!=d&&(a=!0),(e="slide"==i.data("animation"))?(t="slideInRight",o="slideOutLeft"):(e="fade"==i.data("animation"))?(t="fadeIn",o="fadeOut"):(e="fadeUp"==i.data("animation"))?(t="fadeInUp",o="fadeOutUp"):(e="backSlide"==i.data("animation"))?(t="zoomInRight",o="zoomOutLeft"):(e="goDown"==i.data("animation"))&&(t="slideInDown",o="slideOutDown"),i.hasClass("owl-carousel")||i.addClass("owl-carousel"),i.waitForImages(function(){i.css("visibility","visible"),i.animate({opacity:1},600,"easeOutSine")}),i.owlCarousel({items:1,autoplay:a,autoplayTimeout:1e3*d,autoplayHoverPause:!0,loop:!0,nav:n,dots:s,transitionStyle:e,autoHeight:!0,smartSpeed:600,navText:['<span class="mkd-prev-icon"><i class="lnr lnr-chevron-left"></i></span>','<span class="mkd-next-icon"><i class="lnr lnr-chevron-right"></i></span>'],animateIn:t,animateOut:o})})}function S(){var e=z(".mkd-portfolio-list-holder-outer.mkd-ptf-standard, .mkd-portfolio-list-holder-outer.mkd-ptf-gallery");e.length&&e.each(function(){var e=z(this);e.waitForImages(function(){!function(e){var t="";e.hasClass("mkd-ptf-has-filter")&&(t="."+(t=e.find(".mkd-portfolio-filter-holder-inner ul li").data("class")));var o=e.find(".mkd-portfolio-list-holder");o.mixItUp({callbacks:{onMixLoad:function(){o.find("article").css("visibility","visible")},onMixStart:function(){o.find("article").css("visibility","visible")},onMixBusy:function(){o.find("article").css("visibility","visible")}},selectors:{filter:t},animation:{duration:400,effects:"fade translateZ(-360px) scale(0.43) stagger(86ms)",easing:"cubic-bezier(0.455, 0.03, 0.515, 0.955)"}})}(e),e.hasClass("mkd-ptf-cursor-follow")&&!e.hasClass("mkd-ptf-standard")&&e.find("article").each(function(){z(this).hoverdir({hoverElem:"div.mkd-ptf-item-text-overlay",speed:330,hoverDelay:35,easing:"ease"})})})})}function T(){var e=z(".mkd-portfolio-list-holder-outer.mkd-ptf-masonry");e.length&&e.each(function(){var e=z(this).children(".mkd-portfolio-list-holder"),t=e.find(".mkd-portfolio-list-masonry-grid-sizer").width();I(t,e),O(e),e.parent().hasClass("mkd-ptf-cursor-follow")&&e.find("article").each(function(){z(this).hoverdir({hoverElem:"div.mkd-ptf-item-text-overlay",speed:330,hoverDelay:35,easing:"ease"})}),z(window).resize(function(){I(t,e),O(e)})})}function O(e){e.animate({opacity:1}),e.isotope({itemSelector:".mkd-portfolio-item",masonry:{columnWidth:".mkd-portfolio-list-masonry-grid-sizer"}})}function I(e,t){var o=t.find(".mkd-default-masonry-item"),i=t.find(".mkd-large-width-masonry-item"),a=t.find(".mkd-large-height-masonry-item"),d=t.find(".mkd-large-width-height-masonry-item");o.css("height",e),a.css("height",Math.round(2*e)),600<mkd.windowWidth?(d.css("height",Math.round(2*e)),i.css("height",e)):(d.css("height",e),i.css("height",Math.round(e/2)))}function W(){var e=z(".mkd-portfolio-list-holder-outer.mkd-ptf-pinterest");e.length&&e.each(function(){var e=z(this).children(".mkd-portfolio-list-holder");M(e),z(window).resize(function(){M(e)})})}function M(e){e.animate({opacity:1}),e.isotope({itemSelector:".mkd-portfolio-item",masonry:{columnWidth:".mkd-portfolio-list-masonry-grid-sizer",gutter:".mkd-portfolio-list-masonry-grid-gutter"}})}function P(){var e=z(".mkd-portfolio-filter-holder.mkd-masonry-filter");e.length&&e.each(function(){var o=z(this),i=null;o.find("ul li").data("class");o.find(".filter:first").addClass("current"),o.find(".filter").on("click",function(){var e=z(this);clearTimeout(i),z(".isotope, .isotope .isotope-item").css("transition-duration","0.8s"),i=setTimeout(function(){z(".isotope, .isotope .isotope-item").css("transition-duration","0s")},700);var t=z(this).attr("data-filter");return o.siblings(".mkd-portfolio-list-holder-outer").find(".mkd-portfolio-list-holder").isotope({filter:t}),o.find(".filter").removeClass("current"),e.addClass("current"),!1})})}function A(){var e=z(".mkd-portfolio-list-holder-outer.mkd-ptf-load-more");e.length&&e.each(function(){var i,a,d=z(this),n=d.find(".mkd-portfolio-list-holder"),s=d.find(".mkd-ptf-list-load-more a");void 0!==d.data("max-num-pages")&&!1!==d.data("max-num-pages")&&(a=d.data("max-num-pages")),s.on("click",function(e){var t=function(e){var t={type:"",columns:"",gridSize:"",orderBy:"",order:"",number:"",imageSize:"",customImageDimensions:"",filter:"",filterOrderBy:"",category:"",selectedProjectes:"",showLoadMore:"",titleTag:"",nextPage:"",maxNumPages:"",showExcerpt:"",infoPosition:""};void 0!==e.data("type")&&!1!==e.data("type")&&(t.type=e.data("type"));void 0!==e.data("grid-size")&&!1!==e.data("grid-size")&&(t.gridSize=e.data("grid-size"));void 0!==e.data("columns")&&!1!==e.data("columns")&&(t.columns=e.data("columns"));void 0!==e.data("order-by")&&!1!==e.data("order-by")&&(t.orderBy=e.data("order-by"));void 0!==e.data("order")&&!1!==e.data("order")&&(t.order=e.data("order"));void 0!==e.data("number")&&!1!==e.data("number")&&(t.number=e.data("number"));void 0!==e.data("image-size")&&!1!==e.data("image-size")&&(t.imageSize=e.data("image-size"));void 0!==e.data("custom-image-dimensions")&&!1!==e.data("custom-image-dimensions")&&(t.customImageDimensions=e.data("custom-image-dimensions"));void 0!==e.data("filter")&&!1!==e.data("filter")&&(t.filter=e.data("filter"));void 0!==e.data("filter-order-by")&&!1!==e.data("filter-order-by")&&(t.filterOrderBy=e.data("filter-order-by"));void 0!==e.data("category")&&!1!==e.data("category")&&(t.category=e.data("category"));void 0!==e.data("selected-projects")&&!1!==e.data("selected-projects")&&(t.selectedProjectes=e.data("selected-projects"));void 0!==e.data("show-load-more")&&!1!==e.data("show-load-more")&&(t.showLoadMore=e.data("show-load-more"));void 0!==e.data("title-tag")&&!1!==e.data("title-tag")&&(t.titleTag=e.data("title-tag"));void 0!==e.data("next-page")&&!1!==e.data("next-page")&&(t.nextPage=e.data("next-page"));void 0!==e.data("max-num-pages")&&!1!==e.data("max-num-pages")&&(t.maxNumPages=e.data("max-num-pages"));void 0!==e.data("show-excerpt")&&!1!==e.data("show-excerpt")&&(t.showExcerpt=e.data("show-excerpt"));return t}(d);if(i=t.nextPage,e.preventDefault(),e.stopPropagation(),i<=a){var o=function(e){return{action:"mkd_core_portfolio_ajax_load_more",type:e.type,columns:e.columns,gridSize:e.gridSize,orderBy:e.orderBy,order:e.order,number:e.number,imageSize:e.imageSize,customImageDimensions:e.customImageDimensions,filter:e.filter,filterOrderBy:e.filterOrderBy,category:e.category,selectedProjectes:e.selectedProjectes,showLoadMore:e.showLoadMore,titleTag:e.titleTag,nextPage:e.nextPage,showExcerpt:e.showExcerpt}}(t);z.ajax({type:"POST",data:o,url:mkdCoreAjaxUrl,success:function(e){i++,d.data("next-page",i);var t=function(e){var t=z.trim(e),o=z(t),i=z();return o.each(function(e,t){1===t.nodeType&&(i=i.add(this))}),i}(z.parseJSON(e).html);d.waitForImages(function(){setTimeout(function(){d.hasClass("mkd-ptf-masonry")||d.hasClass("mkd-ptf-pinterest")?(n.isotope().append(t).isotope("appended",t).isotope("reloadItems"),d.hasClass("mkd-ptf-masonry")&&(I(d.find(".mkd-portfolio-list-masonry-grid-sizer").width(),d),O(d))):n.mixItUp("append",t);d.hasClass("mkd-ptf-cursor-follow")&&d.find("article").each(function(){z(this).hoverdir({hoverElem:"div.mkd-ptf-item-text-overlay"})})},400)})}})}i===a&&s.hide()})})}var H=mkd.modules.shortcodes.mkdSlider=function(){function i(e){return e.match(t)[0].substr(1).split(",").map(function(e){return parseFloat(e)})}var d,n,s,r,l,m,c,h,u,f,k,p,e=z(".mkd-slider .carousel"),g=/url\(["']?([^'")]+)['"]?\)/,v=[1600,1200,900,650,500,320],w={zoom_center:"1.2, 0, 0, 1.2, 0, 0",zoom_top_left:"1.2, 0, 0, 1.2, -150, -150",zoom_top_right:"1.2, 0, 0, 1.2, 150, -150",zoom_bottom_left:"1.2, 0, 0, 1.2, -150, 150",zoom_bottom_right:"1.2, 0, 0, 1.2, 150, 150"},t=/\([0-9epx\.\, \t\-]+/gi,b=["transform","-webkit-transform"];z.fn.transformAnimate=function(a){var e={transform:"matrix(1,0,0,1,0,0)"};z.extend(e,a),this.css("percentAnim",0);var d=function(t){var o=null;return b.some(function(e){return null!==(o=t.css(e))&&""!==o}),i(o=o&&"none"!==o?o:"matrix(1,0,0,1,0,0)")}(this),n=i(e.transform);return e.step=function(o,e){var t=z(this),i=d.map(function(e,t){return function(e,t,o){return e+o/100*(t-e)}(e,n[t],o)});!function(e,t){for(var o="matrix("+t.join(",")+")",i=b.length-1;0<=i;--i)e.css(b[i],o+" rotate(0.01deg)")}(t,i),a.step&&a.step.apply(this,[i,e])},this.stop().animate({percentAnim:100},e)};function o(e,t,o,i){var a=t;i||(mkd.windowWidth>o[0]?a=t:mkd.windowWidth>o[1]?a=.75*t:mkd.windowWidth>o[2]?a=.6*t:mkd.windowWidth>o[3]?a=.55*t:mkd.windowWidth<=o[3]&&(a=.45*t)),e.css({height:a+"px"}),e.find(".mkd-slider-preloader").css({height:a+"px"}),e.find(".mkd-slider-preloader .mkd-ajax-loader").css({display:"block"}),e.find(".item").css({height:a+"px"})}function a(e){var t=mkd.windowWidth<1e3?mkdGlobalVars.vars.mkdMobileHeaderHeight+z(".mkd-top-bar").height():0;e.css({height:mkd.windowHeight-t+"px"}),e.find(".mkd-slider-preloader").css({height:mkd.windowHeight+"px"}),e.find(".mkd-slider-preloader .mkd-ajax-loader").css({display:"block"}),e.find(".item").css({height:mkd.windowHeight+"px"})}function y(e,t,o,i,a,d){function n(e,t,o,i,a){m=e,c=t,h=o,u=i,f=a}mkd.windowWidth>e[0]?n(t[0],o[0],i[0],a[0],d[0]):mkd.windowWidth>e[1]?n(t[1],o[1],i[1],a[1],d[1]):mkd.windowWidth>e[2]?n(t[2],o[2],i[2],a[2],d[2]):mkd.windowWidth>e[3]?n(t[3],o[3],i[3],a[3],d[3]):mkd.windowWidth>e[4]?n(t[4],o[4],i[4],a[4],d[4]):mkd.windowWidth>e[5]?n(t[5],o[5],i[5],a[5],d[5]):n(t[6],o[6],i[6],a[6],d[6]),k=h,p=u,mkd.windowWidth<=e[0]&&(k=h/2,p=u/2)}function C(e,t,o){o&&(m=c=h=u=f=k=p=1),e.find(".mkd-thumb").css({width:Math.round(window["slider_graphic_width_"+t][0]*m)+"px",height:Math.round(window["slider_graphic_height_"+t][0]*m)+"px"}),e.find(".mkd-slide-title").css({"font-size":Math.round(window["slider_title_"+t][0]*c)+"px","line-height":Math.round(window["slider_title_"+t][1]*c)+"px","letter-spacing":Math.round(window["slider_title_"+t][2]*c)+"px","margin-bottom":Math.round(window["slider_title_"+t][3]*c)+"px"}),e.find(".mkd-slide-subtitle").css({"font-size":Math.round(window["slider_subtitle_"+t][0]*h)+"px","line-height":Math.round(window["slider_subtitle_"+t][1]*h)+"px","margin-bottom":Math.round(window["slider_subtitle_"+t][3]*h)+"px","letter-spacing":Math.round(window["slider_subtitle_"+t][2]*k)+"px"}),e.find(".mkd-slide-text").css({"font-size":Math.round(window["slider_text_"+t][0]*u)+"px","line-height":Math.round(window["slider_text_"+t][1]*u)+"px","letter-spacing":Math.round(window["slider_text_"+t][2]*p)+"px"}),e.find(".mkd-btn:eq(0)").css({"font-size":Math.round(window["slider_button1_"+t][0]*f)+"px","line-height":Math.round(window["slider_button1_"+t][1]*f)+"px","letter-spacing":Math.round(window["slider_button1_"+t][2]*f)+"px","padding-top":Math.round(window["slider_button1_"+t][3]*f)+"px","padding-bottom":Math.round(window["slider_button1_"+t][3]*f)+"px","padding-left":Math.round(window["slider_button1_"+t][4]*f)+"px","padding-right":Math.round(window["slider_button1_"+t][4]*f)+"px"}),e.find(".mkd-btn:eq(1)").css({"font-size":Math.round(window["slider_button2_"+t][0]*f)+"px","line-height":Math.round(window["slider_button2_"+t][1]*f)+"px","letter-spacing":Math.round(window["slider_button2_"+t][2]*f)+"px","padding-top":Math.round(window["slider_button2_"+t][3]*f)+"px","padding-bottom":Math.round(window["slider_button2_"+t][3]*f)+"px","padding-left":Math.round(window["slider_button2_"+t][4]*f)+"px","padding-right":Math.round(window["slider_button2_"+t][4]*f)+"px"})}function _(e){if(e.find(".item").each(function(e){!function(e,t){window["slider_graphic_width_"+t]=[],window["slider_graphic_height_"+t]=[],window["slider_title_"+t]=[],window["slider_subtitle_"+t]=[],window["slider_text_"+t]=[],window["slider_button1_"+t]=[],window["slider_button2_"+t]=[],window["slider_graphic_width_"+t].push(parseFloat(e.find(".mkd-thumb img").data("width"))),window["slider_graphic_height_"+t].push(parseFloat(e.find(".mkd-thumb img").data("height"))),window["slider_title_"+t].push(parseFloat(e.find(".mkd-slide-title").css("font-size"))),window["slider_subtitle_"+t].push(parseFloat(e.find(".mkd-slide-subtitle").css("font-size"))),window["slider_text_"+t].push(parseFloat(e.find(".mkd-slide-text").css("font-size"))),window["slider_button1_"+t].push(parseFloat(e.find(".mkd-btn:eq(0)").css("font-size"))),window["slider_button2_"+t].push(parseFloat(e.find(".mkd-btn:eq(1)").css("font-size"))),window["slider_title_"+t].push(parseFloat(e.find(".mkd-slide-title").css("line-height"))),window["slider_subtitle_"+t].push(parseFloat(e.find(".mkd-slide-subtitle").css("line-height"))),window["slider_text_"+t].push(parseFloat(e.find(".mkd-slide-text").css("line-height"))),window["slider_button1_"+t].push(parseFloat(e.find(".mkd-btn:eq(0)").css("line-height"))),window["slider_button2_"+t].push(parseFloat(e.find(".mkd-btn:eq(1)").css("line-height"))),window["slider_title_"+t].push(parseFloat(e.find(".mkd-slide-title").css("letter-spacing"))),window["slider_subtitle_"+t].push(parseFloat(e.find(".mkd-slide-subtitle").css("letter-spacing"))),window["slider_text_"+t].push(parseFloat(e.find(".mkd-slide-text").css("letter-spacing"))),window["slider_button1_"+t].push(parseFloat(e.find(".mkd-btn:eq(0)").css("letter-spacing"))),window["slider_button2_"+t].push(parseFloat(e.find(".mkd-btn:eq(1)").css("letter-spacing"))),window["slider_title_"+t].push(parseFloat(e.find(".mkd-slide-title").css("margin-bottom"))),window["slider_subtitle_"+t].push(parseFloat(e.find(".mkd-slide-subtitle").css("margin-bottom"))),window["slider_button1_"+t].push(parseFloat(e.find(".mkd-btn:eq(0)").css("padding-top"))),window["slider_button2_"+t].push(parseFloat(e.find(".mkd-btn:eq(1)").css("padding-top"))),window["slider_button1_"+t].push(parseFloat(e.find(".mkd-btn:eq(0)").css("padding-left"))),window["slider_button2_"+t].push(parseFloat(e.find(".mkd-btn:eq(1)").css("padding-left")))}(z(this),e),C(z(this),e,!1)}),e.hasClass("mkd-full-screen"))a(e),z(window).resize(function(){y(v,d,n,s,r,l),a(e),e.find(".item").each(function(e){C(z(this),e,!1)})});else if(e.hasClass("mkd-responsive-height")){var t=e.data("height");o(e,t,v,!1),z(window).resize(function(){y(v,d,n,s,r,l),o(e,t,v,!1),e.find(".item").each(function(e){C(z(this),e,!1)})})}else{t=e.data("height");e.find(".mkd-slider-preloader").css({height:e.height()+"px"}),e.find(".mkd-slider-preloader .mkd-ajax-loader").css({display:"block"}),mkd.windowWidth<1e3?o(e,t,v,!1):o(e,t,v,!0),z(window).resize(function(){y(v,d,n,s,r,l),mkd.windowWidth<1e3?(o(e,t,v,!1),e.find(".item").each(function(e){C(z(this),e,!1)})):(o(e,t,v,!0),e.find(".item").each(function(e){C(z(this),e,!0)}))})}}function x(e,t,o){1===t?(e.find(".left.carousel-control .prev").html(o),e.find(".right.carousel-control .next").html(t+1)):t==o?(e.find(".left.carousel-control .prev").html(t-1),e.find(".right.carousel-control .next").html(1)):(e.find(".left.carousel-control .prev").html(t-1),e.find(".right.carousel-control .next").html(t+1))}function S(e){var d=1500;e.find(".item .mkd-video .mkd-video-wrap").each(function(){var e=mkd.windowWidth,t=z(this).closest(".carousel").height();z(this).width(e),d=1920/1080*(t+20),z(this).height(t);var o=e/1920,i=(t-mkdGlobalVars.vars.mkdMenuAreaHeight)/1080,a=i;i<o&&(a=o),1920*a<d&&(a=d/1920),z(this).find("video, .mejs-overlay, .mejs-poster").width(Math.ceil(1920*a+2)),z(this).find("video, .mejs-overlay, .mejs-poster").height(Math.ceil(1080*a+2)),z(this).scrollLeft((z(this).find("video").width()-e)/2),z(this).find(".mejs-overlay, .mejs-poster").scrollTop((z(this).find("video").height()-t)/2),z(this).scrollTop((z(this).find("video").height()-t)/2)})}function T(e,t,o){e.find(".carousel-inner .item:first-child").addClass("active"),D(z(".carousel .active"),e.hasClass("mkd-header-effect")),e.hasClass("mkd-slider-numbers")&&x(e,1,t),e.find(".item video").length&&(S(e),function(e){z(".item .mkd-video-wrap .video").mediaelementplayer({enableKeyboard:!1,iPadUseNativeControls:!1,pauseOtherPlayers:!1,iPhoneUseNativeControls:!1,AndroidUseNativeControls:!1}),z(window).resize(function(){S(e)}),navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/)&&(z(".mkd-slider .mkd-mobile-video-image").show(),z(".mkd-slider .mkd-video-wrap").remove())}(e)),e.hasClass("mkd-auto-start")?(e.carousel({interval:o,pause:!1}),e.find(".slide_buttons_holder .qbutton").mouseenter(function(){e.carousel("pause")}).mouseleave(function(){e.carousel("cycle")})):e.carousel({interval:0,pause:!1}),z(".carousel-inner .item:first-child").hasClass("mkd-animate-image")&&1e3<mkd.windowWidth&&e.find(".carousel-inner .item.mkd-animate-image:first-child .mkd-image").transformAnimate({transform:"matrix("+w[z(".carousel-inner .item:first-child").data("mkd_animate_image")]+")",duration:3e4})}return{init:function(){if(e.length){if(e.each(function(){var t=z(this),e=t.data("slide_animation_timeout"),o=t.find(".item").length;if(t.data("mkd_responsive_breakpoints")&&"set2"==t.data("mkd_responsive_breakpoints")&&(v=[1600,1300,1e3,768,567,320]),d=t.data("mkd_responsive_graphic_coefficients").split(","),n=t.data("mkd_responsive_title_coefficients").split(","),s=t.data("mkd_responsive_subtitle_coefficients").split(","),r=t.data("mkd_responsive_text_coefficients").split(","),l=t.data("mkd_responsive_button_coefficients").split(","),y(v,d,n,s,r,l),_(t),mkd.htmlEl.hasClass("touch")){if(0<t.find(".item:first-child .mkd-mobile-video-image").length)var i=g.exec(t.find(".item:first-child .mkd-mobile-video-image").attr("style"));else i=g.exec(t.find(".item:first-child .mkd-image").attr("style"));if(i)(a=new Image).src=i[1],z(a).load(function(){z(".mkd-slider-preloader").fadeOut(500),T(t,o,e)})}else{var a;if(0<t.find(".item:first-child video").length)t.find(".item:first-child video").get(0).addEventListener("loadeddata",function(){z(".mkd-slider-preloader").fadeOut(500),T(t,o,e)});else if(i=g.exec(t.find(".item:first-child .mkd-image").attr("style")))(a=new Image).src=i[1],z(a).load(function(){z(".mkd-slider-preloader").fadeOut(500),T(t,o,e)})}t.on("slide.bs.carousel",function(){t.addClass("mkd-in-progress"),t.find(".active .mkd-slider-content-outer").fadeTo(250,0)}),t.on("slid.bs.carousel",function(){if(t.removeClass("mkd-in-progress"),t.find(".active .mkd-slider-content-outer").fadeTo(0,1),t.hasClass("mkd-slider-numbers")){var e=z(".item").index(z(".item.active")[0])+1;x(t,e,o)}z(".item.mkd-animate-image .mkd-image").stop().css({transform:"","-webkit-transform":""}),z(".item.active").hasClass("mkd-animate-image")&&1e3<mkd.windowWidth&&z(".item.mkd-animate-image.active .mkd-image").transformAnimate({transform:"matrix("+w[z(".item.mkd-animate-image.active").data("mkd_animate_image")]+")",duration:3e4})}),t.swipe({swipeLeft:function(){t.carousel("next")},swipeRight:function(){t.carousel("prev")},threshold:20})}),z(".no-touch .carousel").length)skrollr.init({smoothScrolling:!1,forceHeight:!1}).refresh();z(window).scroll(function(){z(".mkd-slider .carousel").height()<mkd.scroll?z(".mkd-slider .carousel").addClass("mkd-disable-slider-header-style-changing"):(z(".mkd-slider .carousel").removeClass("mkd-disable-slider-header-style-changing"),D(z(".mkd-slider .carousel .active"),z(".mkd-slider .carousel").hasClass("mkd-header-effect"))),z(".mkd-slider .carousel").hasClass("mkd-full-screen")&&mkd.scroll>mkd.windowHeight&&1e3<mkd.windowWidth?z(".mkd-slider .carousel").find(".carousel-inner, .carousel-indicators").hide():!z(".mkd-slider .carousel").hasClass("mkd-full-screen")&&mkd.scroll>z(".mkd-slider .carousel").height()&&1e3<mkd.windowWidth?z(".mkd-slider .carousel").find(".carousel-inner, .carousel-indicators").hide():z(".mkd-slider .carousel").find(".carousel-inner, .carousel-indicators").show()})}}}};function D(e,t){if(0<z(".mkd-slider .carousel").not(".mkd-disable-slider-header-style-changing").length){var o="";e.hasClass("light")&&(o="mkd-light-header"),e.hasClass("dark")&&(o="mkd-dark-header"),""!==o?t&&mkd.body.removeClass("mkd-dark-header mkd-light-header").addClass(o):t&&mkd.body.removeClass("mkd-dark-header mkd-light-header").addClass(mkd.defaultHeaderStyle)}}function L(){var e=z(".mkd-process-holder");return{init:function(){e.length&&e.each(function(){!function(e){var t=e.find(".mkd-process-item-holder").filter(".mkd-pi-highlighted");if(t.length)if(1===t.length){var o=t.nextAll();o.length&&o.addClass("mkd-pi-push-right")}else e.addClass("mkd-process-multiple-highlights")}(z(this)),function(e){if(!mkd.body.hasClass("mkd-no-animations-on-touch")){var t=e.find(".mkd-process-item-holder"),o=e.find(".mkd-process-bg-holder");e.appear(function(){var e=new TimelineLite;e.fromTo(o,.2,{y:50,opacity:0,delay:.1},{opacity:1,y:0,delay:.1}),e.staggerFromTo(t,.3,{opacity:0,y:50,ease:Back.easeOut.config(2)},{opacity:1,y:0,ease:Back.easeOut.config(2)},.2)},{accX:0,accY:mkdGlobalVars.vars.mkdElementAppearAmount})}}(z(this))})}}}function F(){var e=z(".mkd-vertical-progress-bar-holder");return{init:function(){e.length&&e.each(function(){!function(i){i.appear(function(){var e=i.find(".mkd-vpb-bar"),t=i.find(".mkd-vpb-active-bar"),o=e.data("percent");t.animate({height:o+"%"},1500)},{accX:0,accY:mkdGlobalVars.vars.mkdElementAppearAmount})}(z(this)),function(t){t.appear(function(){var e=t.find(".mkd-vpb-bar").data("percent");t.find(".mkd-vpb-percent-number").countTo({from:0,to:e,speed:1500,refreshInterval:50})})}(z(this))})}}}function E(){var e=z(".mkd-icon-progress-bar"),s=function(e,t){e.addClass("mkd-ipb-active"),void 0!==t&&""!==t&&e.find(".mkd-ipb-icon-elem").css("color",t)};return{init:function(){e.length&&e.each(function(){!function(e){var n=[];e.appear(function(){var i=parseInt(e.data("number-of-active-icons")),a=e.find(".mkd-ipb-icon"),d=e.data("icon-active-color");void 0!==i&&a.each(function(e){if(e<i){var t=150*(e+1),o=z(this);n[e]=setTimeout(function(){s(o,d),z(a[e]).addClass("active"),-1<z(a[e]).attr("class").indexOf("gradient")&&z(a[e]).attr("class",z(a[e]).attr("class").replace("-off",""))},t)}})},{accX:0,accY:mkdGlobalVars.vars.mkdElementAppearAmount})}(z(this))})}}}function V(){var e=z(".mkd-blog-slider-holder"),s=!!z("body").hasClass("mkd-header-vertical");e.length&&e.each(function(){var e=z(this),t=4,o="dots";void 0!==z(this).data("posts_to_show")&&(t=z(this).data("posts_to_show")),void 0!==z(this).data("slider_navigation")&&(o=z(this).data("slider_navigation"));var i=z(this).data("navigation_color"),a=z(this).data("navigation_active_color"),d="arrows"!=o,n="dots"!=o;e.on("init",function(){e.css({opacity:"1"}),""!==i&&""!=a&&(e.find(".slick-dots li").css({"background-color":i}),e.find(".slick-dots li.slick-active").css({"background-color":a}))}).slick({dots:d,infinite:!1,arrows:n,cssEase:"cubic-bezier(0.77, 0, 0.175, 1)",speed:850,slidesToShow:t,slidesToScroll:t,responsive:[{breakpoint:1650,settings:{slidesToShow:s&&4===t?3:t,slidesToScroll:s&&4===t?3:t}},{breakpoint:1441,settings:{slidesToShow:s?2:3,slidesToScroll:s?2:3}},{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:769,settings:{slidesToShow:1,slidesToScroll:1}}]}),""!==i&&""!=a&&(e.on("swipe",function(){e.find(".slick-dots li").css({"background-color":i}),e.find(".slick-dots li.slick-active").css({"background-color":a})}),e.find(".slick-dots li").on("click",function(){e.find(".slick-dots li").css({"background-color":i}),e.find(".slick-dots li.slick-active").css({"background-color":a})}),e.find(".slick-arrow:not(slick-disabled)").on("click",function(){e.find(".slick-dots li").css({"background-color":i}),e.find(".slick-dots li.slick-active").css({"background-color":a})}))})}function j(){var e=z(".mkd-team-slider-holder");e.length&&e.each(function(){var e=z(this).find(".mkd-team-slider"),t=e.data("items"),o=e.data("play"),i=e.data("dots");e.length&&e.on("init",function(){e.css({opacity:"1"})}).slick({dots:i,slidesToShow:t,slidesToScroll:1,autoplay:o,swipeToSlide:!0,autoplaySpeed:2e3,touchTreshold:20,cssEase:"cubic-bezier(0.77, 0, 0.175, 1)",speed:850,responsive:[{breakpoint:1400,settings:{slidesToShow:4}},{breakpoint:1024,settings:{slidesToShow:2}},{breakpoint:600,settings:{slidesToShow:1}}]})})}function R(){var e=z(".mkd-twitter-slider-inner");e.length&&e.each(function(){z(this).slick({centerMode:!0,slidesToShow:1,arrows:!1,centerPadding:"0px",dots:!0,speed:1500,cssEase:"cubic-bezier(0.77, 0, 0.175, 1)",swipeToSlide:!0})})}function B(){function o(e,t){if(void 0!==e){var o=t.data("original-height"),i=function(e){var t=[];for(var o in n){var i=e.data(o);void 0!==i&&""!==i&&t.push(n[o])}return t}(t),a=Math.max.apply(null,i);for(var d in n)mkd.windowWidth<=n[d]?t.height(e[d]):mkd.windowWidth>a&&t.height(o)}}var e=z(".vc_empty_space"),n={large_laptop:1559,laptop:1279,tablet_landscape:1023,tablet_portrait:767,phone_landscape:599,phone_portrait:479};!function(){var e=[];for(var t in n)e.push(n[t])}();return{init:function(){e.length&&e.each(function(){var e=function(e){var t={};for(var o in n){var i=e.data(o);void 0!==i&&""!==i&&(t[o]=i)}return t}(z(this));o(e,z(this));var t=z(this);z(window).resize(function(){o(e,t)})})}}}function G(){var e=z(".mkd-zooming-slider-holder");e.length&&e.each(function(){var e=z(this),t=e.data("autoplay"),o=e.data("slides-to-show");z(this).slick({infinite:!0,autoplay:t,centerMode:!0,slidesToShow:o,slidesToScroll:1,arrows:!1,centerPadding:"0px",dots:!1,speed:850,cssEase:"cubic-bezier(0.77, 0, 0.175, 1)",swipeToSlide:!0,responsive:[{breakpoint:1400,settings:{centerPadding:"0px",slidesToShow:o}},{breakpoint:1281,settings:{centerPadding:"0px",slidesToShow:3}},{breakpoint:768,settings:{centerPadding:!1,centerMode:!1,slidesToShow:1}}]})})}function q(){mkd.body.hasClass("mkd-vertical-split-screen-initialized")&&(mkd.body.removeClass("mkd-vertical-split-screen-initialized"),z.fn.multiscroll.destroy());var d="";if(mkd.body.hasClass("mkd-light-header")?d="light":mkd.body.hasClass("mkd-dark-header")&&(d="dark"),z(".mkd-vertical-split-slider").length){var n=z(".mkd-vertical-split-slider");n.height(mkd.windowHeight).animate({opacity:1},300),n.multiscroll({scrollingSpeed:700,easing:"easeInOutQuart",navigation:!0,useAnchorsOnLoad:!1,sectionSelector:".mkd-vss-ms-section",leftSelector:".mkd-vss-ms-left",rightSelector:".mkd-vss-ms-right",afterRender:function(){N(z(".mkd-vss-ms-right .mkd-vss-ms-section:last-child").data("header-style"),d),mkd.body.addClass("mkd-vertical-split-screen-initialized");var e=z("div.wpcf7 > form");e.length&&e.each(function(){var t=z(this);t.find(".wpcf7-submit").off().on("click",function(e){e.preventDefault(),wpcf7.submit(t)})});var t=z("<div class='mkd-vertical-split-slider-responsive' />");n.after(t);for(var o=z(".mkd-vertical-split-slider .mkd-vss-ms-left > div"),i=z(".mkd-vertical-split-slider .mkd-vss-ms-right > div"),a=0;a<o.length;a++)t.append(z(o[a]).clone(!0)),t.append(z(i[o.length-1-a]).clone(!0));z(".mkd-vertical-split-slider-responsive .mkd-google-map").length&&z(".mkd-vertical-split-slider-responsive .mkd-google-map").each(function(){var e=z(this);e.empty();var t=Math.floor(1e5*Math.random()+1);e.attr("id","mkd-map-"+t),e.data("unique-id",t)}),v().init(),h(),T(),W(),S(),y(),s()},onLeave:function(e,t,o){N(z(z(".mkd-vss-ms-right .mkd-vss-ms-section")[z(".mkd-vss-ms-right .mkd-vss-ms-section").length-t]).data("header-style"),d)}}),mkd.windowWidth<=1024?z.fn.multiscroll.destroy():z.fn.multiscroll.build(),z(window).resize(function(){mkd.windowWidth<=1024?z.fn.multiscroll.destroy():z.fn.multiscroll.build()})}}function N(e,t){null!=e&&""!=e?mkd.body.removeClass("mkd-light-header mkd-dark-header").addClass("mkd-"+e+"-header"):""!=t?mkd.body.removeClass("mkd-light-header mkd-dark-header").addClass("mkd-"+t+"-header"):mkd.body.removeClass("mkd-light-header mkd-dark-header")}function U(){z(".mkd-thumbnail-image-slider").length&&z(".mkd-thumbnail-image-slider").each(function(){var e=z(this);e.waitForImages(function(){z(this).animate({opacity:1},2200)}),e.find(".flexslider").flexslider({animation:"slide",controlNav:"thumbnails",directionNav:!1,customDirectionNav:!1,animationLoop:!1,start:function(e){e.find(".flex-control-nav .flex-active").parent("li").addClass("active-item").siblings().removeClass("active-item"),mkd.modules.common.mkdInitParallax()},after:function(e){e.find(".flex-control-nav .flex-active").parent("li").addClass("active-item").siblings().removeClass("active-item")}})})}function Q(){z(".mkd-product-slider").length&&z(".mkd-product-slider").each(function(){var e,t=z(this);e=void 0!==z(this).data("products_shown")?z(this).data("products_shown"):"auto";var o,i=1===t.parents(".mkd-grid-section").length?3:e;switch(e){case 3:o=667;break;case 4:o=500;break;case 5:o=400;break;case 6:o=334;break;default:o=500}function a(e){t.find("ul.products").triggerHandler("currentVisible").filter(":eq("+e+")").addClass("active")}var d=1===t.parents(".mkd-grid-section").length?353:o;t.find("ul.products").carouFredSel({circular:!0,responsive:!0,scroll:{items:1,onBefore:function(){t.find("ul.products").children().removeClass("active")},onAfter:function(){a(1)}},prev:{button:function(){return t.find(".caroufredsel-direction-nav .caroufredsel-prev")}},next:{button:function(){return t.find(".caroufredsel-direction-nav .caroufredsel-next")}},pagination:function(){return t.find(".mkd-product-slider-pager")},items:{width:d,visible:{min:1,max:i}},auto:!1,pauseOnHover:!0,mousewheel:!1,swipe:{onMouse:!0,onTouch:!0},onCreate:function(){a(1),t.find("ul.products").trigger("updateSizes"),setTimeout(function(){Y(),mkd.modules.common.mkdInitParallax()},300),t.animate({opacity:1},1e3)}}),z(window).resize(function(){Y()})})}function Y(){z(".mkd-product-slider .products").length&&z(".mkd-product-slider .products").each(function(){z(this).parents(".caroufredsel_wrapper").css({height:z(this).find("li").outerHeight()+"px"})})}function X(){var e=z(".mkd-section-title-holder .mkd-typed");e.length&&e.each(function(){var e,t=z(this),o=t.parent(".mkd-typed-wrap"),i=!1,a=o.attr("data-cursor-gradient"),d=o.attr("data-cursor-color"),n=o.attr("data-loop"),s=t.find(".mkd-typed-strings:first-child").text(),r=t.find(".mkd-typed-strings:nth-child(2)").text(),l=t.find(".mkd-typed-strings:nth-child(3)").text();r.trim()&&l.trim()||(e=[s]),!l.trim()&&r.length&&(e=[s,r]),s.length&&r.length&&l.length&&(e=[s,r,l]),n="yes"==n,o.appear(function(){o.addClass("mkd-typing"),setTimeout(function(){t.typed({strings:e,typeSpeed:80,backDelay:800,loop:n,contentType:"text",loopCount:!0,cursorChar:"|",preStringTyped:function(){i||""==a||null==a?i||""==d||null==d||(o.find(".typed-cursor").css("color",d),i=!0):(o.find(".typed-cursor").wrapInner("<span></span>").addClass(a),i=!0)}})},100)})})}function K(){var e=z(".mkd-workflow");e.length&&e.each(function(){var e=z(this);if(e.hasClass("mkd-workflow-animate")){var t=e.find(".mkd-workflow-item");e.appear(function(){e.addClass("mkd-appeared"),setTimeout(function(){t.each(function(e){var t=z(this);setTimeout(function(){t.addClass("mkd-appeared")},350*e)})},350)},{accX:0,accY:mkdGlobalVars.vars.mkdElementAppearAmount})}})}function Z(){z.fn.preloader=function(e,t){if(e&&"destroy"==e)this.find(".mkd-preloader").remove();else{var o=z('<div class="mkd-preloader"></div>');z('<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="75" width="75" viewbox="0 0 75 75"><circle stroke-linecap="round" cx="37.5" cy="37.5" r="33.5" stroke-width="8"/></svg>').appendTo(o),o.appendTo(this),"function"==typeof t&&t()}return this},z('img[data-image][data-lazy="true"]:not(.lazyLoading)').each(function(e,t){(t=z(t)).attr("data-ratio")&&t.height(t.width()*t.data("ratio"));var o=t[0].getBoundingClientRect(),i=mkd.windowHeight||document.documentElement.clientHeight,a=mkd.windowWidth||document.documentElement.clientWidth,d=t.outerHeight(),n=t.outerWidth();if((0!=o.top||0!=o.right||0!=o.bottom||0!=o.left)&&(0<=o.top||0<=o.top+d)&&0<=o.bottom&&o.bottom-d-i<=0&&(0<=o.left||0<=o.left+n)&&0<=o.right&&o.right-n-a<=0){var s=t.parent();s&&s.preloader("init"),t.addClass("lazyLoading");var r=new Image;z(r).on("load",function(){s.preloader("destroy"),t.removeAttr("data-image").removeData("image").removeAttr("data-lazy").removeData("lazy").removeClass("lazyLoading"),t.attr("src",z(this).attr("src")),t.height("auto")}).attr("src",t.data("image"))}})}}(jQuery),function(r){"use strict";var e={};function t(){d(),n(),function(){var e=r(".mkd-woocommerce-single-page .images .woocommerce-product-gallery__image");e.length&&(e.children("a").attr("data-rel","prettyPhoto[product-gallery]"),"function"==typeof mkd.modules.common.mkdPrettyPhoto&&mkd.modules.common.mkdPrettyPhoto())}()}function o(){}function i(){}function a(){}function d(){r(document).on("click",".mkd-quantity-minus, .mkd-quantity-plus",function(e){e.stopPropagation();var t,o=r(this),i=o.siblings(".mkd-quantity-input"),a=parseFloat(i.attr("step")),d=parseFloat(i.attr("max")),n=!1,s=parseFloat(i.val());o.hasClass("mkd-quantity-minus")&&(n=!0),n?1<=(t=s-a)?i.val(t):i.val(1):(t=s+a,void 0===d?i.val(t):d<=t?i.val(d):i.val(t)),i.trigger("change")})}function n(){(r(".woocommerce-ordering .orderby").length||r("#calc_shipping_country").length)&&(r(".woocommerce-ordering .orderby").select2({minimumResultsForSearch:1/0}),r("#calc_shipping_country").select2()),r(".variations_form.cart select").select2({minimumResultsForSearch:1/0})}(mkd.modules.woocommerce=e).mkdInitQuantityButtons=d,e.mkdInitSelect2=n,e.mkdOnDocumentReady=t,e.mkdOnWindowLoad=o,e.mkdOnWindowResize=i,e.mkdOnWindowScroll=a,r(document).ready(t),r(window).load(o),r(window).resize(i),r(window).scroll(a)}(jQuery),function(s){"use strict";var e={};function t(){e.mkdPortfolioSlider()}function o(){n().init(),d().init()}function i(){}function a(){}(mkd.modules.portfolio=e).mkdOnDocumentReady=t,e.mkdOnWindowLoad=o,e.mkdOnWindowResize=i,e.mkdOnWindowScroll=a,e.mkdPortfolioSingleMasonryImages=n,s(document).ready(t),s(window).load(o),s(window).resize(i),s(window).scroll(a),e.mkdPortfolioSlider=function(){var e=s(".mkd-portfolio-slider-holder");e.length&&e.each(function(){var e=s(this).find(".mkd-portfolio-slider-list"),t=e.data("columns"),o=e.data("enable-autoplay"),i=e.data("enable-pagination");e.waitForImages(function(){e.css("visibility","visible")}),e.hasClass("owl-carousel")||e.addClass("owl-carousel"),void 0!==i&&(i="yes"==i),void 0!==o&&(o="yes"==o),e.owlCarousel({responsive:{0:{items:1},768:{items:2},1024:{items:t-1},1280:{items:t}},items:t,autoHeight:!0,autoplay:o,autoplayTimeout:3e3,autoplayHoverPause:!0,loop:!0,nav:!1,dots:i,smartSpeed:400})})};var d=function(){var e=s(".mkd-follow-portfolio-info .small-images.mkd-portfolio-single-holder .mkd-portfolio-info-holder, .mkd-follow-portfolio-info .small-slider.mkd-portfolio-single-holder .mkd-portfolio-info-holder");if(e.length)var t=e.parent(),o=t.offset().top,i=t.height(),a=s(".mkd-portfolio-media").height(),d=s(".header-appear, .mkd-fixed-wrapper"),n=d.length?d.height():0;return{init:function(){mkd.modules.common.mkdIsTouchDevice()||(e.length&&i<a&&mkd.scroll>o&&e.animate({marginTop:mkd.scroll-o+mkdGlobalVars.vars.mkdAddForAdminBar+n+20}),s(window).scroll(function(){e.length&&i<a&&(mkd.scroll>o?mkd.scroll+n+mkdGlobalVars.vars.mkdAddForAdminBar+i+20<o+a?(s(".header-appear, .mkd-fixed-wrapper").length&&(n=s(".header-appear, .mkd-fixed-wrapper").height()),e.stop().animate({marginTop:mkd.scroll-o+mkdGlobalVars.vars.mkdAddForAdminBar+n+20}),n=0):e.stop().animate({marginTop:a-i}):e.stop().animate({marginTop:0}))}))}}};function n(){function e(){a=i.find(".mkd-ptf-gallery-sizer").outerWidth(),d=a/1.48+23;var e=i.find(".mkd-ptf-gallery-item.default"),t=i.find(".mkd-ptf-img-large-height"),o=i.find(".mkd-ptf-img-large-height-width");e.css("height",d),t.css("height",Math.round(2*d)),o.css("height",Math.round(2*d))}var i=s(".mkd-portfolio-single-holder.masonry").find(".mkd-ptf-gallery"),a=i.find(".mkd-ptf-gallery-sizer").outerWidth(),d=a/1.48+23;return{init:function(){e(),i.isotope({itemSelector:".mkd-ptf-gallery-item",masonry:{columnWidth:".mkd-ptf-gallery-sizer",gutter:".mkd-ptf-gallery-gutter"}}),s(window).resize(function(){e()})}}}}(jQuery);