!function($){function mk_text_typer(){"use strict";$("[data-typer-targets]").each(function(){var that=this;MK.core.loadDependencies([MK.core.path.plugins+"jquery.typed.js"],function(){var $this=$(that),$first_string=[$this.text()],$rest_strings=$this.attr("data-typer-targets").split(","),$strings=$first_string.concat($rest_strings);$this.text(""),$this.typed({strings:$strings,typeSpeed:30,backDelay:1200,loop:!0,loopCount:!1})})})}function mk_tab_slider_func(){"use strict";$(".mk-tab-slider").each(function(){var that=this;MK.core.loadDependencies([MK.core.path.plugins+"jquery.swiper.js"],function(){function repaintFirefox(){$content.css("display","block"),setTimeout(function(){mk_tab_slider.reInit(),$content.css("display","table")},100)}var $this=$(that),id=$this.data("id"),$autoplayTime=$this.data("autoplay"),$content=$(".mk-slider-content"),mk_tab_slider=$this.swiper({wrapperClass:"mk-tab-slider-wrapper",slideClass:"mk-tab-slider-item",calculateHeight:!0,speed:500,autoplay:!isTest&&$autoplayTime,onSlideChangeStart:function(){$('.mk-tab-slider-nav[data-id="'+id+'"]').find(".active").removeClass("active"),$('.mk-tab-slider-nav[data-id="'+id+'"]').find("a").eq(mk_tab_slider.activeIndex).addClass("active")}});$('.mk-tab-slider-nav[data-id="'+id+'"]').find("a").first().addClass("active"),$('.mk-tab-slider-nav[data-id="'+id+'"]').find("a").on("touchstart mousedown",function(e){e.preventDefault(),$('.mk-tab-slider-nav[data-id="'+id+'"]').find(".active").removeClass("active"),$(this).addClass("active"),mk_tab_slider.swipeTo($(this).index())}),$('.mk-tab-slider-nav[data-id="'+id+'"]').find("a").click(function(e){e.preventDefault()}),repaintFirefox(),$(window).on("resize",repaintFirefox)})})}function mk_one_page_scroller(){"use strict";$(".mk-edge-one-pager").each(function(){var self=this;MK.core.loadDependencies([MK.core.path.plugins+"jquery.fullpage.js"],function(){function swipeTo(href,e){if(href="_"+href,~href.indexOf("#")){var section=href.split("#")[1];~anchorArr.indexOf(section)&&(void 0!==e&&e.preventDefault(),scrollable?$.fn.fullpage.moveTo(section):MK.utils.scrollToAnchor('[data-title="'+section+'"]'))}}var $this=$(self),anchorArr=[];$this.find(".section").each(function(){anchorArr.push($(this).attr("data-title"))});var scrollable=!0;$this.find(".section").each(function(){var $section=$(this),$content=$section.find(".edge-slide-content");$section.height();$content.innerHeight()+30>$(window).height()&&(scrollable=!1)}),scrollable||$this.find(".section").each(function(){$(this).addClass("active").css({"padding-bottom":"50px"})}),scrollable&&$this.fullpage({verticalCentered:!1,resize:!0,slidesColor:["#ccc","#fff"],anchors:anchorArr,scrollingSpeed:600,easing:"easeInQuart",menu:!1,navigation:!0,navigationPosition:"right",navigationTooltips:!1,slidesNavigation:!0,slidesNavPosition:"bottom",loopBottom:!1,loopTop:!1,loopHorizontal:!0,autoScrolling:!0,scrollOverflow:!1,css3:!0,paddingTop:0,paddingBottom:0,normalScrollElements:".mk-header, .mk-responsive-wrap",normalScrollElementTouchThreshold:5,keyboardScrolling:!0,touchSensitivity:15,continuousVertical:!1,animateAnchor:!0,onLeave:function(index,nextIndex,direction){var currentSkin=$this.find(".one-pager-slide").eq(nextIndex-1).attr("data-header-skin");MK.utils.eventManager.publish("firstElSkinChange",currentSkin),$("#fullPage-nav").removeClass("light-skin dark-skin").addClass(currentSkin+"-skin")},afterRender:function(){var $nav=$("#fullPage-nav");setTimeout(function(){var currentSkin=$this.find(".one-pager-slide").eq(0).attr("data-header-skin");MK.utils.eventManager.publish("firstElSkinChange",currentSkin),$nav.length&&$nav.removeClass("light-skin dark-skin").addClass(currentSkin+"-skin")},300);var $slide=$this.find(".section"),headerHeight=MK.val.offsetHeaderHeight(0),windowHeight=$(window).height();if($slide.height(windowHeight-headerHeight),$nav.length){$nav.css({top:"calc(50% + "+headerHeight/2+"px)",marginTop:0});var style=$this.attr("data-pagination");$nav.addClass("pagination-"+style)}setTimeout(mk_one_pager_resposnive,1e3)},afterResize:function(){var $slide=$this.find(".section"),headerHeight=MK.val.offsetHeaderHeight(0),windowHeight=$(window).height();$slide.height(windowHeight-headerHeight),$("#fullPage-nav").css({top:"calc(50% + "+headerHeight/2+"px)",marginTop:0}),setTimeout(mk_one_pager_resposnive,1e3),console.log("Reposition pager content.")}});var loc=window.location;loc.hash&&swipeTo(loc.hash),$(document).on("click","a",function(e){swipeTo($(e.currentTarget).attr("href"),e)})})})}function mk_one_pager_resposnive(){"use strict";$(".mk-edge-one-pager").each(function(){var $pager=$(this),headerHeight=MK.val.offsetHeaderHeight(0),windowHeight=$(window).height()-headerHeight;$pager.find(".one-pager-slide").each(function(){var $slide=$(this),$content=$slide.find(".edge-slide-content");if($slide.hasClass("left_center")||$slide.hasClass("center_center")||$slide.hasClass("right_center")){var contentHeight=$content.height(),distanceFromTop=(windowHeight-contentHeight)/2;distanceFromTop=distanceFromTop<50?50+headerHeight:distanceFromTop,$content.css("marginTop",distanceFromTop)}if($slide.hasClass("left_bottom")||$slide.hasClass("center_bottom")||$slide.hasClass("right_bottom")){var distanceFromTop=windowHeight-$content.height()-90;$content.css("marginTop",distanceFromTop)}})})}function mk_gallery(){"use strict";$(".mk-gallery .mk-gallery-item.hover-overlay_layer .item-holder").each(function(){function updatePosition(){var parentHeight=itemHolder.outerHeight(),contentHeight=galleryDesc.innerHeight(),paddingVal=(parentHeight-contentHeight)/2;galleryDesc.css({top:paddingVal})}var itemHolder=$(this),galleryDesc=itemHolder.find(".gallery-desc");updatePosition(),$(window).on("resize",function(){setTimeout(function(){updatePosition()},1e3)})}),$(window).width()<=1024&&$(".mk-gallery .mk-gallery-item").on("click",function(e){var clicks=$(this).data("clicks");$(this).toggleClass("hover-state"),$(this).data("clicks",!clicks)})}function mk_theatre_responsive_calculator(){var $laptopContainer=$(".laptop-theatre-slider"),$computerContainer=$(".desktop-theatre-slider");$laptopContainer.each(function(){var $this=$(this),$window=$(window),$windowWidth=$window.outerWidth(),$width=($window.outerHeight(),$this.outerWidth()),$height=$this.outerHeight(),$player=$this.find(".player-container");$windowWidth>$width&&$player.css({"padding-left":parseInt(143*$width/1200),"padding-right":parseInt(143*$width/1200),"padding-top":parseInt(38*$height/690),"padding-bottom":parseInt(78*$height/690)})}),$computerContainer.each(function(){var $this=$(this),$window=$(window),$windowWidth=$window.outerWidth(),$width=($window.outerHeight(),$this.outerWidth()),$height=$this.outerHeight(),$player=$this.find(".player-container");$windowWidth>$width&&$player.css({"padding-left":parseInt(49*$width/1200),"padding-right":parseInt(52*$width/1200),"padding-top":parseInt(60*$height/969),"padding-bottom":parseInt(290*$height/969)})})}function mk_mobile_tablet_responsive_calculator(){var $laptopSlideshow=$(".mk-laptop-slideshow-shortcode"),$lcdSlideshow=$(".mk-lcd-slideshow");$.exists(".mk-laptop-slideshow-shortcode")&&$laptopSlideshow.each(function(){var $this=$(this),$window=$(window),$width=($window.outerWidth(),$window.outerHeight(),$this.outerWidth()),$height=$this.outerHeight();$this.find(".slideshow-container").css({"padding-left":parseInt(102*$width/836),"padding-right":parseInt(102*$width/836),"padding-top":parseInt(28*$height/481),"padding-bottom":parseInt(52*$height/481)})}),$.exists(".mk-lcd-slideshow")&&$lcdSlideshow.each(function(){var $this=$(this),$window=$(window),$width=($window.outerWidth(),$window.outerHeight(),$this.outerWidth()),$height=$this.outerHeight();$this.find(".slideshow-container").css({"padding-left":parseInt(36*$width/886),"padding-right":parseInt(39*$width/886),"padding-top":parseInt(35*$height/713),"padding-bottom":parseInt(213*$height/713)})})}function mk_start_tour_resize(){$(".mk-header-start-tour").each(function(){function updateStartTour(){$windowWidth=minimumLengthToSearch&&($mkAjaxSearchInput.addClass("ajax-searching"),requestCounter++,$.getJSON(ajaxurl+querySpliter+"callback=?&action=mk_ajax_search&security="+security+"&_wp_http_referer="+wpHttpReferer+"&term="+searchTerm).done(showSearchResult).fail(showErrorMessage)))}function showSearchResult(data){if(responseCounter++,isCorrectResponse()){if(data.length>0)for(var i=0;i").append(''+item.image+''+item.label+''+item.date+"").appendTo(ul)}else ul.innerHTML='
  • No Result.
  • ';$mkAjaxSearchInput.parent("form").removeClass("ajax-searching").addClass("ajax-search-complete")}}function showErrorMessage(){responseCounter++,isCorrectResponse()&&(ul.innerHTML='
  • Can not search! Please try again.
  • ')}function isCorrectResponse(){return requestCounter===responseCounter}if("beside_nav"===mk_ajax_search_option){var searchTerm,minimumLengthToSearch=3,$mkAjaxSearchInput=$("#mk-ajax-search-input"),security=$mkAjaxSearchInput.siblings('input[name="security"]').val(),wpHttpReferer=$mkAjaxSearchInput.siblings('input[name="_wp_http_referer"]').val(),querySpliter=ajaxurl.indexOf("?")>-1?"&":"?",ul=document.getElementById("mk-nav-search-result"),requestCounter=0,responseCounter=0;$mkAjaxSearchInput.on("paste input propertychange",onSearchBoxInput)}}function mk_backgrounds_parallax(){"use strict";1==mk_header_parallax&&$(".mk-header-bg").addClass("mk-parallax-enabled"),1==mk_body_parallax&&$("body").addClass("mk-parallax-enabled"),1==mk_banner_parallax&&$(".mk-header").addClass("mk-parallax-enabled"),1==mk_footer_parallax&&$("#mk-footer").addClass("mk-parallax-enabled"),$(".mk-parallax-enabled").each(function(){var $this=$(this);MK.utils.isMobile()||MK.core.loadDependencies([MK.core.path.plugins+"jquery.parallax.js"],function(){$this.parallax("49%",.3)})}),$(".mk-fullwidth-slideshow.parallax-slideshow").each(function(){var $this=$(this);MK.utils.isMobile()||MK.core.loadDependencies([MK.core.path.plugins+"jquery.parallax.js"],function(){var speed_factor=$this.attr("data-speedFactor");$this.parallax("49%",speed_factor)})})}function loop_audio_init(){$.exists(".jp-jplayer")&&$(".jp-jplayer.mk-blog-audio").each(function(){var $this=$(this);MK.core.loadDependencies([MK.core.path.plugins+"jquery.jplayer.js"],function(){var ogg_file,mp3_file,css_selector_ancestor="#"+$this.siblings(".jp-audio").attr("id");ogg_file=$this.attr("data-ogg"),mp3_file=$this.attr("data-mp3"),$this.jPlayer({ready:function(){$this.jPlayer("setMedia",{mp3:mp3_file,ogg:ogg_file})},play:function(){$this.jPlayer("pauseOthers")},swfPath:void 0,supplied:"mp3, ogg",cssSelectorAncestor:css_selector_ancestor,wmode:"window"})})})}function mk_blog_carousel(){"use strict";$.exists(".mk-blog-showcase")&&$(".mk-blog-showcase ul li").each(function(){$(this).on("hover",function(){$(this).siblings("li").removeClass("mk-blog-first-el").end().addClass("mk-blog-first-el")})})}function mk_contact_form(){"use strict";function validateForm(e,invalidClassName){e.preventDefault();for(var form=e.target||e.srcElement,inputs=getFormInputs(form),isValidForm=!0,hasCaptchaField=!1,i=0;i'):captchaImageHolder.find(".captcha-image").attr("src",captchaImageURL+"?"+(new Date).getTime())}e&&e.preventDefault(),$.post(ajaxurl,{action:"mk_create_captcha_image"},appendImage)}function getFormInputs(form){return form.querySelectorAll("input,textarea")}function getFormData(form){for(var data={action:"mk_contact_form"},inputs=getFormInputs(form),i=0;i0&&$(window).on("load",initializeCaptchas)}}function mk_login_form(){$("form.mk-login-form").each(function(){var $this=$(this);$this.on("submit",function(e){$("p.mk-login-status",$this).show().text(ajax_login_object.loadingmessage),$.ajax({type:"POST",dataType:"json",url:ajax_login_object.ajaxurl,data:{action:"ajaxlogin",username:$("#username",$this).val(),password:$("#password",$this).val(),security:$("#security",$this).val()},success:function(data){$("p.mk-login-status",$this).text(data.message),!0===data.loggedin&&(document.location.href=ajax_login_object.redirecturl)}}),e.preventDefault()})})}function mk_click_events(){"use strict";$(".mk-header-login, .mk-header-signup, .mk-side-dashboard, .mk-quick-contact-wrapper, .mk-dashboard-trigger, .blog-share-container, .news-share-buttons, .main-nav-side-search, #mk-fullscreen-search-wrapper, #fullscreen-navigation").on("click",function(event){event.stopPropagation?event.stopPropagation():window.event&&(window.event.cancelBubble=!0)}),$("html").on("click",function(){$(".mk-login-register, .mk-header-subscribe, #mk-quick-contact, .single-share-buttons, .single-share-box, .blog-social-share, .news-share-buttons, #mk-nav-search-wrapper").fadeOut(300),$(".mk-quick-contact-link").removeClass("quick-contact-active")}),$(".mk-fullscreen-search-overlay").on("click",function(){$(this).removeClass("mk-fullscreen-search-overlay-show")}),$(".mk-forget-password").on("click",function(){$(".mk-forget-panel").siblings().hide().end().show()}),$(".mk-create-account").on("click",function(){$("#mk-register-panel").siblings().hide().end().show()}),$(".mk-return-login").on("click",function(){$("#mk-login-panel").siblings().hide().end().show()}),$(".mk-quick-contact-link").on("click",function(){var $this=$(this),$quickContact=$("#mk-quick-contact");return $this.hasClass("quick-contact-active")?($quickContact.removeClass("quick-contact-anim").fadeOut(100),$this.removeClass("quick-contact-active")):($quickContact.addClass("quick-contact-anim").fadeIn(250),$this.addClass("quick-contact-active")),!1})}function mk_social_share_global(){"use strict";$(".twitter-share").on("click",function(){var $this=$(this),$url=$this.attr("data-url"),$title=$this.attr("data-title");return window.open("http://twitter.com/intent/tweet?text="+$title+" "+$url,"twitterWindow","height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0"),!1}),$(".pinterest-share").on("click",function(){var $this=$(this),$url=$this.attr("data-url"),$title=$this.attr("data-title"),$image=$this.attr("data-image");return window.open("http://pinterest.com/pin/create/button/?url="+$url+"&media="+$image+"&description="+$title,"twitterWindow","height=320,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0"),!1}),$(".facebook-share").on("click",function(){var $url=$(this).attr("data-url");return window.open("https://www.facebook.com/sharer/sharer.php?u="+$url,"facebookWindow","height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0"),!1}),$(".googleplus-share").on("click",function(){var $url=$(this).attr("data-url");return window.open("https://plus.google.com/share?url="+$url,"googlePlusWindow","height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0"),!1}),$(".linkedin-share").on("click",function(){var $this=$(this),$url=$this.attr("data-url"),$title=$this.attr("data-title"),$desc=$this.attr("data-desc");return window.open("http://www.linkedin.com/shareArticle?mini=true&url="+$url+"&title="+$title+"&summary="+$desc,"linkedInWindow","height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0"),!1})}function mk_event_countdown(){$.exists(".mk-event-countdown")&&MK.core.loadDependencies([MK.core.path.plugins+"jquery.countdown.js"],function(){$(".mk-event-countdown").each(function(){if(!isTest){var $this=$(this),$date=$this.attr("data-date"),$offset=$this.attr("data-offset");$this.downCount({date:$date,offset:$offset})}})})}function mk_flexslider_init(){var $lcd=$(".mk-lcd-slideshow"),$laptop=$(".mk-laptop-slideshow-shortcode");$lcd.length&&$lcd.find(".mk-lcd-image").fadeIn(),$laptop.length&&$laptop.find(".mk-laptop-image").fadeIn(),$(".js-flexslider").each(function(){($(this).parents(".mk-tabs").length||$(this).parents(".mk-accordion").length)&&$(this).removeData("flexslider");var $this=$(this),$selector=$this.attr("data-selector"),$animation=$this.attr("data-animation"),$easing=$this.attr("data-easing"),$direction=$this.attr("data-direction"),$smoothHeight="true"==$this.attr("data-smoothHeight"),$slideshowSpeed=$this.attr("data-slideshowSpeed"),$animationSpeed=$this.attr("data-animationSpeed"),$controlNav="true"==$this.attr("data-controlNav"),$directionNav="true"==$this.attr("data-directionNav"),$pauseOnHover="true"==$this.attr("data-pauseOnHover"),$isCarousel="true"==$this.attr("data-isCarousel");if(void 0!==$selector)var $selector_class=$selector;else var $selector_class=".mk-flex-slides > li";if(!0===$isCarousel)var $itemWidth=parseInt($this.attr("data-itemWidth")),$itemMargin=parseInt($this.attr("data-itemMargin")),$minItems=parseInt($this.attr("data-minItems")),$maxItems=parseInt($this.attr("data-maxItems")),$move=parseInt($this.attr("data-move"));else var $itemWidth=$itemMargin=$minItems=$maxItems=$move=0;MK.core.loadDependencies([MK.core.path.plugins+"jquery.flexslider.js"],function(){$this.flexslider({selector:$selector_class,animation:$animation,easing:$easing,direction:$direction,smoothHeight:$smoothHeight,slideshow:!isTest,slideshowSpeed:$slideshowSpeed,animationSpeed:$animationSpeed,controlNav:$controlNav,directionNav:$directionNav,pauseOnHover:$pauseOnHover,prevText:"",nextText:"",itemWidth:$itemWidth,itemMargin:$itemMargin,minItems:$minItems,maxItems:$maxItems,move:$move})})})}function mk_header_searchform(){$(".mk-search-trigger").click(function(){setTimeout(function(){$("#mk-ajax-search-input").focus()},500)}),$(".mk-header-toolbar .mk-header-searchform .text-input").on("focus",function(){if($(".mk-header-toolbar .mk-header-searchform .text-input").hasClass("on-close-state"))return $(".mk-header-toolbar .mk-header-searchform .text-input").removeClass("on-close-state").animate({width:"200px"},200),!1}),$(".mk-header-toolbar .mk-header-searchform").click(function(event){event.stopPropagation?event.stopPropagation():window.event&&(window.event.cancelBubble=!0)}),$("html").click(function(){$(this).find(".mk-header-toolbar .mk-header-searchform .text-input").addClass("on-close-state").animate({width:90},300)}),"Edge"===MK.utils.browser.name&&$("#mk-fullscreen-search-input").on("keydown",function(e){13==e.which&&(e.preventDefault(),$("#mk-fullscreen-searchform").submit())})}function mk_hover_events(){"use strict";$(".shopping-cart-header").hover(function(){$(this).find(".mk-shopping-cart-box").stop(!0,!0).fadeIn(250)},function(){$(this).find(".mk-shopping-cart-box").stop(!0,!0).fadeOut(250)}),$(".widget-sub-navigation > ul > li, .widget_nav_menu ul.menu > li, .widget_product_categories ul > .cat-item").each(function(){var $this=$(this),$subLevel=$this.find("ul").first();($this.hasClass("page_item_has_children")||$this.hasClass("menu-item-has-children")||$this.hasClass("cat-parent"))&&($this.on("click",function(){$this.hasClass("toggle-active")?($subLevel.stop(!0,!0).slideUp(700),$this.removeClass("toggle-active")):($subLevel.stop(!0,!0).slideDown(700),$this.addClass("toggle-active"))}),$subLevel.on("click",function(e){e.stopPropagation()}))});$(".mk-fullscreen-trigger").on("click",function(e){$(".mk-fullscreen-search-overlay").addClass("mk-fullscreen-search-overlay-show"),setTimeout(function(){$("#mk-fullscreen-search-input").focus()},300),e.preventDefault()}),$(".mk-fullscreen-close").on("click",function(e){$(".mk-fullscreen-search-overlay").removeClass("mk-fullscreen-search-overlay-show"),e.preventDefault()})}function mk_unfold_footer(){var $this=$("#mk-footer"),$spacer=$("#mk-footer-unfold-spacer"),$footerHeight=$this.outerHeight();window.matchMedia("(max-width: 767px)").matches?$spacer.css("height",0):$this.hasClass("mk-footer-unfold")&&$spacer.css("height",$footerHeight)}function mk_lightbox_init(){$(".mk-lightbox").fancybox({padding:15,margin:15,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,openEffect:"fade",openSpeed:200,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:200,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"none",nextSpeed:350,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"none",prevSpeed:350,prevEasing:"swing",prevMethod:"changeOut",helpers:{media:{},overlay:{locked:!0}},tpl:{wrap:'
    ',image:'',error:'

    The requested content cannot be loaded.
    Please try again later.

    ',closeBtn:'',next:'',prev:'',loading:'
    '},afterLoad:function(){$("html").addClass("fancybox-lock"),$(".fancybox-wrap").appendTo(".fancybox-overlay")},beforeShow:function(){this.locked=!0}})}function mk_love_post(){"use strict";$("body").on("click",".mk-love-this",function(){var $this=$(this),$id=$this.attr("id");if($this.hasClass("item-loved"))return!1;if($this.hasClass("item-inactive"))return!1;var $sentdata={action:"mk_love_post",post_id:$id};return $.post(ajaxurl,$sentdata,function(data){$this.find(".mk-love-count").html(data),$this.addClass("item-loved")}),$this.addClass("item-inactive"),!1})}function mk_milestone(){"use strict";!isTest&&$.exists(".mk-milestone")&&$(".mk-milestone").each(function(){var $this=$(this),stop_number=$this.find(".milestone-number").attr("data-stop"),animation_speed=parseInt($this.find(".milestone-number").attr("data-speed")),build=function(){$this.hasClass("scroll-animated")||($this.addClass("scroll-animated"),$({countNum:$this.find(".milestone-number").text()}).animate({countNum:stop_number},{duration:animation_speed,easing:"linear",step:function(){$this.find(".milestone-number").text(Math.floor(this.countNum))},complete:function(){$this.find(".milestone-number").text(this.countNum)}}))};MK.utils.isMobile()?build():MK.utils.scrollSpy(this,{position:"bottom",after:build})})}function mk_portfolio_widget(){"use strict";$(".widget_recent_portfolio li").each(function(){$(this).find(".portfolio-widget-thumb").hover(function(){$(this).siblings(".portfolio-widget-info").animate({opacity:1},200)},function(){$(this).siblings(".portfolio-widget-info").animate({opacity:0},200)})})}function mk_skill_meter(){"use strict";$.exists(".mk-skill-meter")&&(MK.utils.isMobile()?$(".mk-skill-meter .progress-outer").each(function(){var $this=$(this);$this.hasClass("scroll-animated")||($this.addClass("scroll-animated"),$this.css({width:$(this).attr("data-width")+"%"}))}):$(".mk-skill-meter .progress-outer").each(function(){var $this=$(this),build=function(){$this.hasClass("scroll-animated")||($this.addClass("scroll-animated"),$this.animate({width:$this.attr("data-width")+"%"},2e3))};MK.utils.scrollSpy(this,{position:"bottom",after:build})}))}function addClass(tag,className){tag.className+=" "+className}function removeClass(tag,className){tag.className=tag.className.replace(new RegExp(className,"g"),"")}function validateEmail(input,invalidClassName){var value=input.value.trim();return(input.required||value.length>0)&&!/^([a-z0-9_\.\-\+]+)@([\da-z\.\-]+)\.([a-z\.]{2,63})$/i.test(value)?(invalidClassName&&addClass(input,invalidClassName),!1):(invalidClassName&&removeClass(input,invalidClassName),!0)}function validateText(input,invalidClassName){var value=input.value.trim();return input.required&&0===value.length?(invalidClassName&&addClass(input,invalidClassName),!1):(invalidClassName&&removeClass(input,invalidClassName),!0)}function product_loop_add_cart(){var $body=$("body");$body.on("click",".add_to_cart_button",function(){var $holder=$(this).parents(".product:eq(0)"),$i=$holder.find(".product-loading-icon");$holder.addClass("adding-to-cart").removeClass("added-to-cart"),$i.html('')}),$body.bind("added_to_cart",function(){var $holder=$(".adding-to-cart"),$i=$holder.find(".product-loading-icon");$holder.removeClass("adding-to-cart").addClass("added-to-cart"),$i.html('')})}var MK={api:{},ui:{},component:{}};window.MK=MK,window.elementQuery=function(){var queryMatchers={"min-width":function(element,value,units){var el=element,px=convertToPx(el,value,units);return value&&el&&el.offsetWidth>=px},"max-width":function(element,value,units){var el=element,px=convertToPx(el,value,units);return value&&el&&el.offsetWidth-1;i--){var rule=rules[i],matcher=queryMatchers[rule.property];if(matcher&&!matcher(element,rule.value,rule.units))return!1}return!0},loader={loadStyleSheets:function(sheets,callback){for(var completed=0,i=0,len=sheets.length;i1&&parsed.push(result)}return parsed.length?parsed:null},parseSingleSelector:function(selector){for(var parsed=[],lastIndex=0;queryMatch=QUERY_PATTERN.exec(selector);){var selectorChunk=selector.slice(lastIndex,queryMatch.index);lastIndex=QUERY_PATTERN.lastIndex;var queryData=this.parseQuery(queryMatch[1]);parsed.push(selectorChunk),parsed.push(queryData)}var remaining=selector.slice(lastIndex);return WHITESPACE_PATTERN.test(remaining)||parsed.push(remaining),QUERY_PATTERN.lastIndex=0,parsed},parseQuery:function(queryString){for(var ruleMatch,rules=[];ruleMatch=QUERY_RULES_PATTERN.exec(queryString);)rules.push({property:ruleMatch[1],value:parseFloat(ruleMatch[2]),units:ruleMatch[3]});return rules}}}(elementQuery),function($){"use strict";$.exists=function(selector){return $(selector).length>0},$.getCachedScript=function(url){var options={dataType:"script",cache:!0,url:url};return $.ajax(options)},$.fn.mk_imagesLoaded=function(){var $imgs=this.find('img[src!=""]');if(!$imgs.length)return $.Deferred().resolve().promise();var dfds=[];return $imgs.each(function(){var dfd=$.Deferred();dfds.push(dfd);var img=new Image;img.onload=function(){dfd.resolve()},img.onerror=function(){dfd.resolve()},img.src=this.src}),$.when.apply($,dfds)}}(jQuery),function(){function resetTriggers(element){var triggers=element.__resizeTriggers__,expand=triggers.firstElementChild,contract=triggers.lastElementChild,expandChild=expand.firstElementChild;contract.scrollLeft=contract.scrollWidth,contract.scrollTop=contract.scrollHeight,expandChild.style.width=expand.offsetWidth+1+"px",expandChild.style.height=expand.offsetHeight+1+"px",expand.scrollLeft=expand.scrollWidth,expand.scrollTop=expand.scrollHeight}function checkTriggers(element){return element.offsetWidth!=element.__resizeLast__.width||element.offsetHeight!=element.__resizeLast__.height}function scrollListener(e){var element=this;resetTriggers(this),this.__resizeRAF__&&cancelFrame(this.__resizeRAF__),this.__resizeRAF__=requestFrame(function(){checkTriggers(element)&&(element.__resizeLast__.width=element.offsetWidth,element.__resizeLast__.height=element.offsetHeight,element.__resizeListeners__.forEach(function(fn){fn.call(element,e)}))})}function createStyles(){if(!stylesCreated){var css=(animationKeyframes||"")+".resize-triggers { "+(animationStyle||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',head=document.head||document.getElementsByTagName("head")[0],style=document.createElement("style");style.type="text/css",style.styleSheet?style.styleSheet.cssText=css:style.appendChild(document.createTextNode(css)),head.appendChild(style),stylesCreated=!0}}var attachEvent=document.attachEvent,stylesCreated=!1;if(!attachEvent){var requestFrame=function(){var raf=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(fn){return window.setTimeout(fn,20)};return function(fn){return raf(fn)}}(),cancelFrame=function(){var cancel=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout;return function(id){return cancel(id)}}(),animation=!1,keyframeprefix="",animationstartevent="animationstart",domPrefixes="Webkit Moz O ms".split(" "),startEvents="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),pfx="",elm=document.createElement("fakeelement");if(void 0!==elm.style.animationName&&(animation=!0),!1===animation)for(var i=0;i
    ',element.appendChild(element.__resizeTriggers__),resetTriggers(element),element.addEventListener("scroll",scrollListener,!0),animationstartevent&&element.__resizeTriggers__.addEventListener(animationstartevent,function(e){e.animationName==animationName&&resetTriggers(element)})),element.__resizeListeners__.push(fn))},window.removeResizeListener=function(element,fn){attachEvent?element.detachEvent("onresize",fn):(element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn),1),element.__resizeListeners__.length||(element.removeEventListener("scroll",scrollListener),element.__resizeTriggers__=!element.removeChild(element.__resizeTriggers__)))}}(),function(window,document){function addStyleSheet(ownerDocument,cssText){var p=ownerDocument.createElement("p"),parent=ownerDocument.getElementsByTagName("head")[0]||ownerDocument.documentElement;return p.innerHTML="x",parent.insertBefore(p.lastChild,parent.firstChild)}function getElements(){var elements=html5.elements;return"string"==typeof elements?elements.split(" "):elements}function addElements(newElements,ownerDocument){var elements=html5.elements;"string"!=typeof elements&&(elements=elements.join(" ")),"string"!=typeof newElements&&(newElements=newElements.join(" ")),html5.elements=elements+" "+newElements,shivDocument(ownerDocument)}function getExpandoData(ownerDocument){var data=expandoData[ownerDocument[expando]];return data||(data={},expanID++,ownerDocument[expando]=expanID,expandoData[expanID]=data),data}function createElement(nodeName,ownerDocument,data){if(ownerDocument||(ownerDocument=document),supportsUnknownElements)return ownerDocument.createElement(nodeName);data||(data=getExpandoData(ownerDocument));var node;return node=data.cache[nodeName]?data.cache[nodeName].cloneNode():saveClones.test(nodeName)?(data.cache[nodeName]=data.createElem(nodeName)).cloneNode():data.createElem(nodeName),!node.canHaveChildren||reSkip.test(nodeName)||node.tagUrn?node:data.frag.appendChild(node)}function createDocumentFragment(ownerDocument,data){if(ownerDocument||(ownerDocument=document),supportsUnknownElements)return ownerDocument.createDocumentFragment();data=data||getExpandoData(ownerDocument);for(var clone=data.frag.cloneNode(),i=0,elems=getElements(),l=elems.length;i",supportsHtml5Styles="hidden"in a,supportsUnknownElements=1==a.childNodes.length||function(){document.createElement("a");var frag=document.createDocumentFragment();return void 0===frag.cloneNode||void 0===frag.createDocumentFragment||void 0===frag.createElement}()}catch(e){supportsHtml5Styles=!0,supportsUnknownElements=!0}}();var html5={elements:options.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==options.shivCSS,supportsUnknownElements:supportsUnknownElements,shivMethods:!1!==options.shivMethods,type:"default",shivDocument:shivDocument,createElement:createElement,createDocumentFragment:createDocumentFragment,addElements:addElements};window.html5=html5,shivDocument(document),"object"==typeof module&&module.exports&&(module.exports=html5)}("undefined"!=typeof window?window:this,document),window.matchMedia||(window.matchMedia=function(){"use strict";var styleMedia=window.styleMedia||window.media;if(!styleMedia){var style=document.createElement("style"),script=document.getElementsByTagName("script")[0],info=null;style.type="text/css",style.id="matchmediajs-test",script.parentNode.insertBefore(style,script),info="getComputedStyle"in window&&window.getComputedStyle(style,null)||style.currentStyle,styleMedia={matchMedium:function(media){var text="@media "+media+"{ #matchmediajs-test { width: 1px; }}";return style.styleSheet?style.styleSheet.cssText=text:style.textContent=text,"1px"===info.width}}}return function(media){return{matches:styleMedia.matchMedium(media||"all"),media:media||"all"}}}()),function(global){"use strict";function noop(){}function safeActiveElement(){try{return document.activeElement}catch(err){}}function inArray(arr,item){for(var i=0,len=arr.length;i=0&&(elem.setAttribute("maxLength",maxLength),elem.removeAttribute(ATTR_MAXLENGTH));var type=elem.getAttribute(ATTR_INPUT_TYPE);return type&&(elem.type=type),!0}return!1}function showPlaceholder(elem){var val=elem.getAttribute(ATTR_CURRENT_VAL);if(""===elem.value&&val){elem.setAttribute(ATTR_ACTIVE,"true"),elem.value=val,elem.className+=" "+placeholderClassName;elem.getAttribute(ATTR_MAXLENGTH)||(elem.setAttribute(ATTR_MAXLENGTH,elem.maxLength),elem.removeAttribute("maxLength"));return elem.getAttribute(ATTR_INPUT_TYPE)?elem.type="text":"password"===elem.type&&changeType(elem,"text")&&elem.setAttribute(ATTR_INPUT_TYPE,"password"),!0}return!1}function makeFocusHandler(elem){return function(){hideOnInput&&elem.value===elem.getAttribute(ATTR_CURRENT_VAL)&&"true"===elem.getAttribute(ATTR_ACTIVE)?moveCaret(elem,0):hidePlaceholder(elem)}}function makeBlurHandler(elem){return function(){showPlaceholder(elem)}}function makeSubmitHandler(form){return function(){disablePlaceholders(form)}}function makeKeydownHandler(elem){return function(e){if(keydownVal=elem.value,"true"===elem.getAttribute(ATTR_ACTIVE)&&keydownVal===elem.getAttribute(ATTR_CURRENT_VAL)&&inArray(badKeys,e.keyCode))return e.preventDefault&&e.preventDefault(),!1}}function makeKeyupHandler(elem){return function(){hidePlaceholder(elem,keydownVal),""===elem.value&&(elem.blur(),moveCaret(elem,0))}}function makeClickHandler(elem){return function(){elem===safeActiveElement()&&elem.value===elem.getAttribute(ATTR_CURRENT_VAL)&&"true"===elem.getAttribute(ATTR_ACTIVE)&&moveCaret(elem,0)}}function newElement(elem){var form=elem.form;form&&"string"==typeof form&&(form=document.getElementById(form),form.getAttribute(ATTR_FORM_HANDLED)||(addEventListener(form,"submit",makeSubmitHandler(form)),form.setAttribute(ATTR_FORM_HANDLED,"true"))),addEventListener(elem,"focus",makeFocusHandler(elem)),addEventListener(elem,"blur",makeBlurHandler(elem)),hideOnInput&&(addEventListener(elem,"keydown",makeKeydownHandler(elem)),addEventListener(elem,"keyup",makeKeyupHandler(elem)),addEventListener(elem,"click",makeClickHandler(elem))),elem.setAttribute(ATTR_EVENTS_BOUND,"true"),elem.setAttribute(ATTR_CURRENT_VAL,placeholder),(hideOnInput||elem!==safeActiveElement())&&showPlaceholder(elem)}var test=document.createElement("input"),nativeSupport=void 0!==test.placeholder;if(global.Placeholders={nativeSupport:nativeSupport,disable:nativeSupport?noop:disablePlaceholders,enable:nativeSupport?noop:enablePlaceholders},!nativeSupport){var keydownVal,validTypes=["text","search","url","tel","email","password","number","textarea"],badKeys=[27,33,34,35,36,37,38,39,40,8,46],placeholderClassName="placeholdersjs",classNameRegExp=new RegExp("(?:^|\\s)"+placeholderClassName+"(?!\\S)"),ATTR_CURRENT_VAL="data-placeholder-value",ATTR_ACTIVE="data-placeholder-active",ATTR_INPUT_TYPE="data-placeholder-type",ATTR_FORM_HANDLED="data-placeholder-submit",ATTR_EVENTS_BOUND="data-placeholder-bound",ATTR_MAXLENGTH="data-placeholder-maxlength",head=document.getElementsByTagName("head")[0],root=document.documentElement,Placeholders=global.Placeholders,inputs=document.getElementsByTagName("input"),textareas=document.getElementsByTagName("textarea"),hideOnInput="false"===root.getAttribute("data-placeholder-focus"),liveUpdates="false"!==root.getAttribute("data-placeholder-live"),styleElem=document.createElement("style");styleElem.type="text/css";var styleRules=document.createTextNode("."+placeholderClassName+" {color:#ccc;}");styleElem.styleSheet?styleElem.styleSheet.cssText=styleRules.nodeValue:styleElem.appendChild(styleRules),head.insertBefore(styleElem,head.firstChild);for(var placeholder,elem,i=0,len=inputs.length+textareas.length;iarr[i]?(i+=1,check()):higher=arr[i]};return check(),higher},MK.utils.throttle=function(delay,fn){var last,deferTimer;return function(){var context=this,args=arguments,now=+new Date;last&&now=o&&s<=o+h&&"active"!==_p?(config.active&&config.active(o),_p="active"):s>o+h&&"after"!==_p&&(config.after&&config.after(o+h),_p="after")},rAF=function(){window.requestAnimationFrame(checkPosition)},exportVals=function(){return cacheVals},updateCache=function(){var o=offset(),h=height();cacheVals={before:o-$window.height(),active:o,after:o+h}};config.cache&&config.cache(exportVals),checkPosition(),$window.on("load",checkPosition),$window.on("resize",checkPosition),$window.on("mouseup",checkPosition),window.addResizeListener(container,checkPosition),$window.on("scroll",rAF),updateCache(),$window.on("load",updateCache),$window.on("resize",updateCache),window.addResizeListener(container,updateCache)}}(jQuery),function($){"use strict";$("body").on("click",".js-taphover",function(e){var $link=$(e.currentTarget),$target=$(e.target);if($link.hasClass("hover"))return!0;MK.utils.isMobile()&&(!$target.hasClass("hover-icon")&&!$target.closest(".hover-icon").length||$target.closest(".js-taphover").hasClass("hover")||e.preventDefault(),$link.addClass("hover"),$(".js-taphover").not(e.currentTarget).removeClass("hover"),e.stopPropagation())}),$(document).on("click",function(e){$(".js-taphover").removeClass("hover")})}(jQuery),function($){"use strict";function calc(){wrapperHeight=$wrapper.height(),wrapperWidth=$wrapper.width(),wrapperAspectRatio=wrapperHeight/wrapperWidth*100}function apply(){var width=wrapperAspectRatio/baseAspectRatio*100,widthOverflow=width-100;$videoHolder.css({"padding-top":wrapperAspectRatio+"%",width:width+"%",left:-widthOverflow/2+"%"})}function reset(){$videoHolder.css({"padding-top":baseAspectRatio+"%",width:"100%",left:0})}function setCover(){reset(),calc(),wrapperAspectRatio>baseAspectRatio&&apply()}var wrapperHeight,wrapperWidth,wrapperAspectRatio,$videoHolder=$(".mk-center-video"),$wrapper=$videoHolder.parent(),baseAspectRatio=56.25;$(window).on("load",setCover),$(window).on("resize",setCover)}(jQuery),function($){"use strict";var MK=window.MK||{};MK.val={},MK.val.scroll=function(){var offset=0,$window=$(window),hasPageYOffset=void 0!==window.pageYOffset,body=document.documentElement||document.body.parentNode||document.body,update=function(){ offset=hasPageYOffset?window.pageYOffset:body.scrollTop},rAF=function(){window.requestAnimationFrame(update)};return update(),$window.on("load",update),$window.on("resize",update),$window.on("scroll",rAF),function(){return offset}}(),MK.val.viewportPercentHeight=function(percent){return $(window).height()*(percent/100)},MK.val.adminbarHeight=function(){return php.hasAdminbar?window.matchMedia("(max-width: 782px)").matches?46:32:0},MK.val.stickyOffset=function(){var $header=$(".mk-header").not(".js-header-shortcode").first();if(!$header.length)return function(){return 0};var $toolbar=$header.find(".mk-header-toolbar"),config=$header.data(),hasToolbar=$toolbar.length,toolbarHeight=hasToolbar?$toolbar.height():0,isVertical=4===config.headerStyle,headerHeight=isVertical?0:config.height,type="number"==typeof config.stickyOffset&&"number"||"header"===config.stickyOffset&&"header"||"percent",stickyOffset=0,setOffset=function(){toolbarHeight=hasToolbar?$toolbar.height():0,MK.utils.isResponsiveMenuState()&&(headerHeight=config.responsiveHeight,hasToolbar&&$toolbar.is(":hidden")&&(toolbarHeight=0)),"number"===type?stickyOffset=config.stickyOffset:"header"===type?stickyOffset=headerHeight+toolbarHeight+MK.val.adminbarHeight():"percent"===type&&(stickyOffset=MK.val.viewportPercentHeight(parseInt(config.stickyOffset)))};return setOffset(),$(window).on("resize",setOffset),function(){return stickyOffset}}(),MK.val.offsetHeaderHeight=function(){var $header=$(".mk-header").not(".js-header-shortcode").first();if(!$header.length)return function(){return 0};var $toolbar=$header.find(".mk-header-toolbar"),config=$header.data(),stickyHeight=config.stickyHeight,desktopHeight=config.height,mobileHeight=config.responsiveHeight,isTransparent=$header.hasClass("transparent-header"),isSticky=config.stickyStyle.length,isStickyLazy="lazy"===config.stickyStyle,isVertical=4===config.headerStyle,hasToolbar=$toolbar.length,toolbarHeight=hasToolbar?$toolbar.height():0,$innerHeader=$header.find(".mk-header-inner"),headerHeight=($innerHeader.length,function(offset){toolbarHeight=hasToolbar?$toolbar.height():0;var stickyOffset=MK.val.stickyOffset();if(MK.utils.isResponsiveMenuState()){hasToolbar&&$toolbar.is(":hidden")&&(toolbarHeight=0);var headerBorder=0;headerBorder=parseInt($innerHeader.css("border-bottom-width"));var totalHeight=mobileHeight+MK.val.adminbarHeight()+toolbarHeight+headerBorder;return offset<=totalHeight?totalHeight:MK.val.adminbarHeight()}if(offset<=stickyOffset)return isVertical?hasToolbar?toolbarHeight+MK.val.adminbarHeight():MK.val.adminbarHeight():isTransparent?MK.val.adminbarHeight():desktopHeight+toolbarHeight+MK.val.adminbarHeight();if(offset>stickyOffset){if(isVertical)return MK.val.adminbarHeight();if(!isSticky)return MK.val.adminbarHeight();if(isStickyLazy)return MK.val.adminbarHeight();if(isSticky)return stickyHeight+MK.val.adminbarHeight()}return 0});return function(offset){return headerHeight(offset-MK.val.adminbarHeight())}}(),MK.val.dynamicOffset=function(el,position,threshold){var $window=$(window),$el=$(el),pos=position||"top",thr=threshold||0,container=document.getElementById("mk-theme-container"),currentPos=0,offset=0,winH=0,rect=0,x=0,update=function(){winH=$window.height(),rect=$el[0].getBoundingClientRect(),offset=rect.top+MK.val.scroll(),x="top"===pos?MK.val.offsetHeaderHeight(offset):winH+(rect.height-thr),currentPos=offset-x-1};return update(),$window.on("load",update),$window.on("resize",update),window.addResizeListener(container,update),function(){return currentPos}},MK.val.dynamicHeight=function(el){var $window=$(window),$el=$(el),container=document.getElementById("mk-theme-container"),currentHeight=0,update=function(){currentHeight=$el.outerHeight()};return update(),$window.on("load",update),$window.on("resize",update),window.addResizeListener(container,update),function(){return currentHeight}}}(jQuery),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return 0==b?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(1-Math.pow(2,-10*b/e))+c},easeInOutExpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(2-Math.pow(2,-10*--b))+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),h
    ',image:'',iframe:'",error:'

    The requested content cannot be loaded.
    Please try again later.

    ',closeBtn:'',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=u(a)?f(a).get():[a]),f.each(a,function(e,c){var g,h,k,n,m,l={};"object"===f.type(c)&&(c.nodeType&&(c=f(c)),u(c)?(l={href:c.data("fancybox-href")||c.attr("href"),title:f("
    ").text(c.data("fancybox-title")||c.attr("title")).html(),isDom:!0,element:c},f.metadata&&f.extend(!0,l,c.metadata())):l=c),g=d.href||l.href||(r(c)?c:null),h=d.title!==w?d.title:l.title||"",n=(k=d.content||l.content)?"html":d.type||l.type,!n&&l.isDom&&((n=c.data("fancybox-type"))||(n=(n=c.prop("class").match(/fancybox\.(\w+)/))?n[1]:null)),r(g)&&(n||(b.isImage(g)?n="image":b.isSWF(g)?n="swf":"#"===g.charAt(0)?n="inline":r(c)&&(n="html",k=c)),"ajax"===n&&(m=g.split(/\s+/,2),g=m.shift(),m=m.shift())),k||("inline"===n?g?k=f(r(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):l.isDom&&(k=c):"html"===n?k=g:n||g||!l.isDom||(n="inline",k=c)),f.extend(l,{href:g,type:n,content:k,title:h,selector:m}),a[e]=l}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==w&&(b.opts.keys=!!d.keys&&f.extend({},b.defaults.keys,d.keys)),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1===b.trigger("onCancel")||(b.hideLoading(),a&&(b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current||b._afterZoomOut(a)))},close:function(a){b.cancel(),!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(b.isOpen&&!0!==a?(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]()):(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d(),b.current&&b.player.isActive&&(b.player.timer=setTimeout(b.next,b.current.playSpeed))},c=function(){d(),p.unbind(".player"),b.player.isActive=!1,b.trigger("onPlayEnd")};!0===a||!b.player.isActive&&!1!==a?b.current&&(b.current.loop||b.current.index=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==w&&(b.cancel(),b._start(a)))},reposition:function(a,d){var l,e=b.current,c=e?e.wrap:null;c&&(l=b._getPosition(d),a&&"scroll"===a.type?(delete l.position,c.stop(!0,!0).animate(l,200)):(c.css(l),e.pos=f.extend({},e.dim,l)))},update:function(a){var d=a&&a.originalEvent&&a.originalEvent.type,e=!d||"orientationchange"===d;e&&(clearTimeout(C),C=null),b.isOpen&&!C&&(C=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),C=null)},e&&!t?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,t&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),b.trigger("onUpdate")),b.update())},hideLoading:function(){p.unbind(".loading"),f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading(),a=f('
    ').click(b.cancel).appendTo("body"),p.bind("keydown.loading",function(a){27===(a.which||a.keyCode)&&(a.preventDefault(),b.cancel())}),b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:.5*d.h+d.y,left:.5*d.w+d.x})),b.trigger("onLoading")},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:q.scrollLeft(),y:q.scrollTop()};return a&&a.length?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=t&&s.innerWidth?s.innerWidth:q.width(),d.h=t&&s.innerHeight?s.innerHeight:q.height()),d},unbindEvents:function(){b.wrap&&u(b.wrap)&&b.wrap.unbind(".fb"),p.unbind(".fb"),q.unbind(".fb")},bindEvents:function(){var d,a=b.current;a&&(q.bind("orientationchange.fb"+(t?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c=e.which||e.keyCode,l=e.target||e.srcElement;if(27===c&&b.coming)return!1;e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||l&&(l.type||f(l).is("[contenteditable]"))||f.each(d,function(d,l){return 1h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();0!==c&&!k&&1g||0>l)&&b.next(0>g?"up":"right"),d.preventDefault())}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){if(f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1))),!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){e&&b.helpers[d]&&f.isFunction(b.helpers[d][a])&&b.helpers[d][a](f.extend(!0,{},b.helpers[d].defaults,e),c)})}p.trigger(a)},isImage:function(a){return r(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return r(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var e,c,d={};if(a=m(a),!(e=b.group[a]||null))return!1;if(d=f.extend(!0,{},b.opts,e),e=d.margin,c=d.padding,"number"===f.type(e)&&(d.margin=[e,e,e,e]),"number"===f.type(c)&&(d.padding=[c,c,c,c]),d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),d.autoSize&&(d.autoWidth=d.autoHeight=!0),"auto"===d.width&&(d.autoWidth=!0),"auto"===d.height&&(d.autoHeight=!0),d.group=b.group,d.index=a,b.coming=d,!1===b.trigger("beforeLoad"))b.coming=null;else{if(c=d.type,e=d.href,!c)return b.coming=null,!(!b.current||!b.router||"jumpto"===b.router)&&(b.current.index=a,b[b.router](b.direction));if(b.isActive=!0,"image"!==c&&"swf"!==c||(d.autoHeight=d.autoWidth=!1,d.scrolling="visible"),"image"===c&&(d.aspectRatio=!0),"iframe"===c&&t&&(d.scrolling="scroll"),d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(t?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body"),f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)}),f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,x(d.padding[a]))}),b.trigger("onReady"),"inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error}),b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null,b.coming.width=this.width/b.opts.pixelRatio,b.coming.height=this.height/b.opts.pixelRatio,b._afterLoad()},a.onerror=function(){this.onload=this.onerror=null,b._error("image")},a.src=b.coming.href,!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading(),b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",t?"auto":a.iframe.scrolling).attr("src",a.href);f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}}),a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1),t||f(this).bind("load.fb",b.update),f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),b._afterLoad()})),a.content=d.appendTo(a.inner),a.iframe.preload||b._afterLoad()},_preloadImages:function(){var f,g,a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,e-1):0;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var e,c,l,g,h,a=b.coming,d=b.current;if(b.hideLoading(),a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{switch(d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),b.unbindEvents(),e=a.content,c=a.type,l=a.scrolling,f.extend(b,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:d}),g=a.href,c){case"inline":case"ajax":case"html":a.selector?e=f("
    ").html(e).find(a.selector):u(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('
    ').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case"image":e=a.tpl.image.replace(/\{href\}/g,g);break;case"swf":e='',h="",f.each(a.swf,function(a,b){e+='',h+=" "+a+'="'+b+'"'}),e+='"}u(e)&&e.parent().is(a.inner)||a.inner.append(e),b.trigger("beforeShow"),a.inner.css("overflow","yes"===l?"scroll":"no"===l?"hidden":l),b._setDimension(),b.reposition(),b.isOpen=!1,b.coming=null,b.bindEvents(),b.isOpened?d.prevMethod&&b.transitions[d.prevMethod]():f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove(),b.transitions[b.isOpened?a.nextMethod:a.openMethod](),b._preloadImages()}},_setDimension:function(){var w,A,u,D,B,G,C,E,I,a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,l=b.skin,g=b.inner,h=b.current,c=h.width,k=h.height,n=h.minWidth,v=h.minHeight,p=h.maxWidth,q=h.maxHeight,t=h.scrolling,r=h.scrollOutside?h.scrollbarWidth:0,y=h.margin,z=m(y[1]+y[3]),s=m(y[0]+y[2]);if(e.add(l).add(g).width("auto").height("auto").removeClass("fancybox-tmp"),y=m(l.outerWidth(!0)-l.width()),w=m(l.outerHeight(!0)-l.height()),A=z+y,u=s+w,D=F(c)?(a.w-A)*m(c)/100:c,B=F(k)?(a.h-u)*m(k)/100:k,"iframe"===h.type){if(I=h.content,h.autoHeight&&1===I.data("ready"))try{I[0].contentWindow.document.location&&(g.width(D).height(9999),G=I.contents().find("body"),r&&G.css("overflow-x","hidden"),B=G.outerHeight(!0))}catch(H){}}else(h.autoWidth||h.autoHeight)&&(g.addClass("fancybox-tmp"),h.autoWidth||g.width(D),h.autoHeight||g.height(B),h.autoWidth&&(D=g.width()),h.autoHeight&&(B=g.height()),g.removeClass("fancybox-tmp"));if(c=m(D),k=m(B),E=D/B,n=m(F(n)?m(n,"w")-A:n),p=m(F(p)?m(p,"w")-A:p),v=m(F(v)?m(v,"h")-u:v),q=m(F(q)?m(q,"h")-u:q),G=p,C=q,h.fitToView&&(p=Math.min(a.w-A,p),q=Math.min(a.h-u,q)),A=a.w-z,s=a.h-s,h.aspectRatio?(c>p&&(c=p,k=m(c/E)),k>q&&(k=q,c=m(k*E)),cA||z>s)&&c>n&&k>v&&!(19p&&(c=p,k=m(c/E)),g.width(c).height(k),e.width(c+y),a=e.width(),z=e.height();else c=Math.max(n,Math.min(c,c-(a-A))),k=Math.max(v,Math.min(k,k-(z-s)));r&&"auto"===t&&kA||z>s)&&c>n&&k>v,c=h.aspectRatio?cv&&k
    ').appendTo(d&&d.lenth?d:"body"),this.fixed=!1,a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a),this.fixed||(q.bind("resize.overlay",f.proxy(this.update,this)),this.update()),a.closeClick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive?b.close():d.close(),!1}),this.overlay.css(a.css).show()},close:function(){q.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),this.el.removeClass("fancybox-lock"),q.scrollTop(this.scrollV).scrollLeft(this.scrollH)),f(".fancybox-overlay").remove().hide(),f.extend(this,{overlay:null,fixed:!1})},update:function(){var b,a="100%";this.overlay.width(a).height("100%"),J?(b=Math.max(H.documentElement.offsetWidth,H.body.offsetWidth),p.width()>b&&(a=p.width())):p.width()>q.width()&&(a=p.width()),this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0),e||this.create(a),a.locked&&this.fixed&&b.fixed&&(b.locked=this.overlay.append(b.wrap),b.fixed=!1),!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){b.locked&&!this.el.hasClass("fancybox-lock")&&(!1!==this.fixPosition&&f("*").filter(function(){return"fixed"===f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin"),this.scrollV=q.scrollTop(),this.scrollH=q.scrollLeft(),this.el.addClass("fancybox-lock"),q.scrollTop(this.scrollV).scrollLeft(this.scrollH)),this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}},b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d=b.current,e=d.title,c=a.type;if(f.isFunction(e)&&(e=e.call(d.element,d)),r(e)&&""!==f.trim(e)){switch(d=f('
    '+e+"
    "),c){case"inside":c=b.skin;break;case"outside":c=b.wrap;break;case"over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),J&&d.width(d.width()),d.wrapInner(''),b.current.margin[2]+=Math.abs(m(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}},f.fn.fancybox=function(a){var d,e=f(this),c=this.selector||"",l=function(g){var l,m,h=f(this).blur(),k=d;g.ctrlKey||g.altKey||g.shiftKey||g.metaKey||h.is(".fancybox-wrap")||(l=a.groupAttr||"data-fancybox-group",m=h.attr(l),m||(l="rel",m=h.get(0)[l]),m&&""!==m&&"nofollow"!==m&&(h=c.length?f(c):e,h=h.filter("["+l+'="'+m+'"]'),k=h.index(this)),a.index=k,!1!==b.open(h,a)&&g.preventDefault())};return a=a||{},d=a.index||0,c&&!1!==a.live?p.undelegate(c,"click.fb-start").delegate(c+":not('.fancybox-item, .fancybox-nav')","click.fb-start",l):e.unbind("click.fb-start").bind("click.fb-start",l),this.filter("[data-fancybox-start=1]").trigger("click"),this},p.ready(function(){var a,d;f.scrollbarWidth===w&&(f.scrollbarWidth=function(){var a=f('
    ').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();return a.remove(),b}),f.support.fixedPosition===w&&(f.support.fixedPosition=function(){var a=f('
    ').appendTo("body"),b=20===a[0].offsetTop||15===a[0].offsetTop;return a.remove(),b}()),f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")}),a=f(s).width(),K.addClass("fancybox-lock-test"),d=f(s).width(),K.removeClass("fancybox-lock-test"),f("").appendTo("head")})}(window,document,jQuery),function($){"use strict";var format=function(url,rez,params){return params=params||"","object"===$.type(params)&&(params=$.param(params,!0)),$.each(rez,function(key,value){url=url.replace("$"+key,value||"")}),params.length&&(url+=(url.indexOf("?")>0?"&":"?")+params),url};$.fancybox.helpers.media={defaults:{youtube:{matcher:/(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"opaque",enablejsapi:1},type:"iframe",url:"//www.youtube.com/embed/$3"},vimeo:{matcher:/(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},type:"iframe",url:"//player.vimeo.com/video/$1"},metacafe:{matcher:/metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/,params:{autoPlay:"yes"},type:"swf",url:function(rez,params,obj){return obj.swf.flashVars="playerVars="+$.param(params,!0),"//www.metacafe.com/fplayer/"+rez[1]+"/.swf"}},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:"swf",url:"//www.dailymotion.com/swf/video/$1"},twitvid:{matcher:/twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i,params:{autoplay:0},type:"iframe",url:"//www.twitvid.com/embed.php?guid=$1"},twitpic:{matcher:/twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i,type:"image",url:"//twitpic.com/show/full/$1/"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},google_maps:{matcher:/maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i,type:"iframe",url:function(rez){ return"//maps.google."+rez[1]+"/"+rez[3]+rez[4]+"&output="+(rez[4].indexOf("layer=c")>0?"svembed":"embed")}}},beforeLoad:function(opts,obj){var what,item,rez,params,url=obj.href||"",type=!1;for(what in opts)if(opts.hasOwnProperty(what)&&(item=opts[what],rez=url.match(item.matcher))){type=item.type,params=$.extend(!0,{},item.params,obj[what]||($.isPlainObject(opts[what])?opts[what].params:null)),url="function"===$.type(item.url)?item.url.call(this,rez,params,obj):format(item.url,rez,params);break}type&&(obj.href=url,obj.type=type,obj.autoHeight=!1)}}}(jQuery),function($,window,document,undefined){function CustomMenu(element,options){this.element=element,this.options=$.extend({},defaults,options),this._defaults=defaults,this._name=pluginName,this.init()}var pluginName="MegaMenu",defaults={propertyName:"value"},menus=[];CustomMenu.prototype={isOpen:!1,timeout:null,init:function(){var that=this;$(this).each(function(index,menu){that.node=menu.element,that.addListeners(menu.element);var $menu=$(menu.element);$menu.addClass("dropdownJavascript"),menus.push(menu.element),$menu.find("ul > li").each(function(index,submenu){$(submenu).find("ul").length>0&&$(submenu).addClass("with-menu")})})},addListeners:function(menu){var that=this;$(menu).mouseover(function(e){that.handleMouseOver.call(that,e)}).mouseout(function(e){that.handleMouseOut.call(that,e)})},handleMouseOver:function(e){var that=this;this.clearTimeout();for(var item=e.target||e.srcElement;"LI"!=item.nodeName&&item!=this.node;)item=item.parentNode;"LI"==item.nodeName&&(this.toOpen=item,this.timeout=setTimeout(function(){that.open.call(that)},this.options.delay))},handleMouseOut:function(){var that=this;this.clearTimeout();var _delayOut=this.options.delay;_delayOut=400,this.timeout=setTimeout(function(){that.close.call(that)},_delayOut)},clearTimeout:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},open:function(){var that=this;this.isOpen=!0;var items=$(this.toOpen).parent().children("li");$(items).each(function(index,item){$(item).find("ul").each(function(index,submenu){if(item!=that.toOpen)$(item).removeClass("dropdownOpen"),that.close(item);else if(!$(item).hasClass("dropdownOpen")){$(item).addClass("dropdownOpen");for(var left=0,node=submenu;node;)left+=Math.abs(node.offsetLeft),node=node.offsetParent;var right=left+submenu.offsetWidth;$(submenu).outerHeight(),$(submenu).offset().top,$(window).scrollTop(),window.innerHeight;$(item).removeClass("dropdownRightToLeft"),left<0&&$(item).addClass("dropdownLeftToRight"),right>document.body.clientWidth&&$(item).addClass("dropdownRightToLeft")}})})},close:function(node){node||(this.isOpen=!1,node=this.node),$(node).find("li").each(function(index,item){$(item).removeClass("dropdownOpen")})}},$.fn[pluginName]=function(options){return this.each(function(){$.data(this,"plugin_"+pluginName)||$.data(this,"plugin_"+pluginName,new CustomMenu(this,options))})}}(jQuery,window,document),function(window,document,undefined){function is(obj,type){return typeof obj===type}function cssToDOM(name){return name.replace(/([a-z])-([a-z])/g,function(str,m1,m2){return m1+m2.toUpperCase()}).replace(/^-/,"")}function contains(str,substr){return!!~(""+str).indexOf(substr)}function createElement(){return"function"!=typeof document.createElement?document.createElement(arguments[0]):isSVG?document.createElementNS.call(document,"http://www.w3.org/2000/svg",arguments[0]):document.createElement.apply(document,arguments)}function getBody(){var body=document.body;return body||(body=createElement(isSVG?"svg":"body"),body.fake=!0),body}function injectElementWithStyles(rule,callback,nodes,testnames){var style,ret,node,docOverflow,mod="modernizr",div=createElement("div"),body=getBody();if(parseInt(nodes,10))for(;nodes--;)node=createElement("div"),node.id=testnames?testnames[nodes]:mod+(nodes+1),div.appendChild(node);return style=createElement("style"),style.type="text/css",style.id="s"+mod,(body.fake?body:div).appendChild(style),body.appendChild(div),style.styleSheet?style.styleSheet.cssText=rule:style.appendChild(document.createTextNode(rule)),div.id=mod,body.fake&&(body.style.background="",body.style.overflow="hidden",docOverflow=docElement.style.overflow,docElement.style.overflow="hidden",docElement.appendChild(body)),ret=callback(div,rule),body.fake?(body.parentNode.removeChild(body),docElement.style.overflow=docOverflow,docElement.offsetHeight):div.parentNode.removeChild(div),!!ret}function fnBind(fn,that){return function(){return fn.apply(that,arguments)}}function testDOMProps(props,obj,elem){var item;for(var i in props)if(props[i]in obj)return!1===elem?props[i]:(item=obj[props[i]],is(item,"function")?fnBind(item,elem||obj):item);return!1}function domToCSS(name){return name.replace(/([A-Z])/g,function(str,m1){return"-"+m1.toLowerCase()}).replace(/^ms-/,"-ms-")}function nativeTestProps(props,value){var i=props.length;if("CSS"in window&&"supports"in window.CSS){for(;i--;)if(window.CSS.supports(domToCSS(props[i]),value))return!0;return!1}if("CSSSupportsRule"in window){for(var conditionText=[];i--;)conditionText.push("("+domToCSS(props[i])+":"+value+")");return conditionText=conditionText.join(" or "),injectElementWithStyles("@supports ("+conditionText+"){ #modernizr { position: absolute; }}",function(node){return"absolute"==getComputedStyle(node,null).position})}return undefined}function testProps(props,prefixed,value,skipValueTest){function cleanElems(){afterInit&&(delete mStyle.style,delete mStyle.modElem)}if(skipValueTest=!is(skipValueTest,"undefined")&&skipValueTest,!is(value,"undefined")){var result=nativeTestProps(props,value);if(!is(result,"undefined"))return result}for(var afterInit,i,propsLength,prop,before,elems=["modernizr","tspan","samp"];!mStyle.style&&elems.length;)afterInit=!0,mStyle.modElem=createElement(elems.shift()),mStyle.style=mStyle.modElem.style;for(propsLength=props.length,i=0;i",parent.insertBefore(p.lastChild,parent.firstChild)}function getElements(){var elements=html5.elements;return"string"==typeof elements?elements.split(" "):elements}function addElements(newElements,ownerDocument){var elements=html5.elements;"string"!=typeof elements&&(elements=elements.join(" ")),"string"!=typeof newElements&&(newElements=newElements.join(" ")),html5.elements=elements+" "+newElements,shivDocument(ownerDocument)}function getExpandoData(ownerDocument){var data=expandoData[ownerDocument[expando]];return data||(data={},expanID++,ownerDocument[expando]=expanID,expandoData[expanID]=data),data}function createElement(nodeName,ownerDocument,data){if(ownerDocument||(ownerDocument=document),supportsUnknownElements)return ownerDocument.createElement(nodeName);data||(data=getExpandoData(ownerDocument));var node;return node=data.cache[nodeName]?data.cache[nodeName].cloneNode():saveClones.test(nodeName)?(data.cache[nodeName]=data.createElem(nodeName)).cloneNode():data.createElem(nodeName),!node.canHaveChildren||reSkip.test(nodeName)||node.tagUrn?node:data.frag.appendChild(node)}function createDocumentFragment(ownerDocument,data){if(ownerDocument||(ownerDocument=document),supportsUnknownElements)return ownerDocument.createDocumentFragment();data=data||getExpandoData(ownerDocument);for(var clone=data.frag.cloneNode(),i=0,elems=getElements(),l=elems.length;i",supportsHtml5Styles="hidden"in a,supportsUnknownElements=1==a.childNodes.length||function(){document.createElement("a");var frag=document.createDocumentFragment();return void 0===frag.cloneNode||void 0===frag.createDocumentFragment||void 0===frag.createElement}()}catch(e){supportsHtml5Styles=!0,supportsUnknownElements=!0}}();var html5={elements:options.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==options.shivCSS,supportsUnknownElements:supportsUnknownElements,shivMethods:!1!==options.shivMethods,type:"default",shivDocument:shivDocument,createElement:createElement,createDocumentFragment:createDocumentFragment,addElements:addElements};window.html5=html5,shivDocument(document),"object"==typeof module&&module.exports&&(module.exports=html5)}(void 0!==window?window:this,document);var omPrefixes="Moz O ms Webkit",domPrefixes=ModernizrProto._config.usePrefixes?omPrefixes.toLowerCase().split(" "):[];ModernizrProto._domPrefixes=domPrefixes;var cssomPrefixes=ModernizrProto._config.usePrefixes?omPrefixes.split(" "):[];ModernizrProto._cssomPrefixes=cssomPrefixes;var atRule=function(prop){var rule,length=prefixes.length,cssrule=window.CSSRule;if(void 0===cssrule)return undefined;if(!prop)return!1;if(prop=prop.replace(/^@/,""),(rule=prop.replace(/-/g,"_").toUpperCase()+"_RULE")in cssrule)return"@"+prop;for(var i=0;i0){var $flyin=$submenu.clone().css("opacity",0).insertAfter(self.$menu),onAnimationEndFn=function(){var $parent=$item.parents(".mk-vm-subviewopen:first");self.$menu.off(self.animEndEventName).removeClass(self.options.animationClasses.classout).addClass("mk-vm-subview"),$item.addClass("mk-vm-subviewopen"),$parent.removeClass("mk-vm-subviewopen").addClass("mk-vm-subview"),$flyin.remove();var $txt=$item.find(".meni-item-text");$txt.css("opacity",.99),setTimeout(function(){$txt.css("opacity",1)},0)};return setTimeout(function(){$flyin.addClass(self.options.animationClasses.classin),self.$menu.addClass(self.options.animationClasses.classout),self.supportAnimations?self.$menu.on(self.animEndEventName,onAnimationEndFn):onAnimationEndFn.call(),self.options.onLevelClick($item,$item.children("a:first").text())}),!1}self.options.onLinkClick($item,event)}),this.$back.on("click.dlmenu",function(event){var $this=$(this),$submenu=$this.parents("ul.sub-menu:first"),$item=$submenu.parent(),$flyin=$submenu.clone().insertAfter(self.$menu),onAnimationEndFn=function(){self.$menu.off(self.animEndEventName).removeClass(self.options.animationClasses.classin),$flyin.remove()};return setTimeout(function(){$flyin.addClass(self.options.animationClasses.classout),self.$menu.addClass(self.options.animationClasses.classin),self.supportAnimations?self.$menu.on(self.animEndEventName,onAnimationEndFn):onAnimationEndFn.call(),$item.removeClass("mk-vm-subviewopen");var $subview=$this.parents(".mk-vm-subview:first");$subview.is("li")&&$subview.addClass("mk-vm-subviewopen"),$subview.removeClass("mk-vm-subview")}),!1})},closeMenu:function(){this.open&&this._closeMenu()},_closeMenu:function(){var self=this,onTransitionEndFn=function(){self.$menu.off(self.transEndEventName),self._resetMenu()};this.$menu.removeClass("mk-vm-menuopen"),this.$menu.addClass("mk-vm-menu-toggle"),this.$trigger.removeClass("mk-vm-active"),this.supportTransitions?this.$menu.on(this.transEndEventName,onTransitionEndFn):onTransitionEndFn.call(),this.open=!1},openMenu:function(){this.open||this._openMenu()},_openMenu:function(){var self=this;$body.off("click").on("click.dlmenu",function(){self._closeMenu()}),this.$menu.addClass("mk-vm-menuopen mk-vm-menu-toggle").on(this.transEndEventName,function(){$(this).removeClass("mk-vm-menu-toggle")}),this.$trigger.addClass("mk-vm-active"),this.open=!0},_resetMenu:function(){this.$menu.removeClass("mk-vm-subview"),this.$menuitems.removeClass("mk-vm-subview mk-vm-subviewopen")}};var logError=function(message){window.console&&window.console.error(message)};$.fn.dlmenu=function(options){if("string"==typeof options){var args=Array.prototype.slice.call(arguments,1);this.each(function(){var instance=$.data(this,"dlmenu");return instance?$.isFunction(instance[options])&&"_"!==options.charAt(0)?void instance[options].apply(instance,args):void logError("no such method '"+options+"' for dlmenu instance"):void logError("cannot call methods on dlmenu prior to initialization; attempted to call method '"+options+"'")})}else this.each(function(){var instance=$.data(this,"dlmenu");instance?instance._init():instance=$.data(this,"dlmenu",new $.DLMenu(options,this))});return this}}(jQuery,window),function($){"use strict";$(".mk-main-navigation .menu-item-has-children").children("a").attr("aria-haspopup","true"),$(".animated-column-item").attr("aria-haspopup","true")}(jQuery),function($){"use strict";var Accordion=function(el){var timeout,that=this,$el=$(el),initial=$el.data("initialindex");this.$el=$el,this.$single=$("."+this.dom.single,$el),this.isExpendable="toggle-action"===$el.data("style"),this.bindClicks(),$(window).on("load",function(){-1!==initial&&that.show(that.$single.eq(initial))}),$(window).on("resize",function(){clearTimeout(timeout),timeout=setTimeout(that.bindClicks.bind(that),500)})};Accordion.prototype.dom={single:"mk-accordion-single",tab:"mk-accordion-tab",pane:"mk-accordion-pane",current:"current",mobileToggle:"mobile-false",mobileBreakPoint:767},Accordion.prototype.bindClicks=function(){if(this.$single.off("click","."+this.dom.tab),!window.matchMedia("(max-width: "+this.dom.mobileBreakPoint+"px)").matches||!this.$el.hasClass(this.dom.mobileToggle)){this.$single.on("click","."+this.dom.tab,this.handleEvent.bind(this));var $current=$("."+this.dom.current,this.$el);"none"===$("."+this.dom.pane,$current).css("display")&&this.show($current)}},Accordion.prototype.handleEvent=function(e){e.preventDefault(),e.stopPropagation();var $single=$(e.delegateTarget);$single.hasClass(this.dom.current)?this.isExpendable&&this.hide($single):this.show($single)},Accordion.prototype.hide=function($single){$single.removeClass(this.dom.current),$("."+this.dom.pane,$single).slideUp()},Accordion.prototype.show=function($single){if(!this.isExpendable){var that=this;this.hide($("."+this.dom.current,that.$el))}$single.addClass(this.dom.current),$("."+this.dom.pane,$single).slideDown()},$(".mk-accordion").each(function(){new Accordion(this)})}(jQuery),function($){"use strict";if("undefined"!=typeof Raphael){var SkillDiagram=function(el){this.el=el};SkillDiagram.prototype={init:function(){this.cacheElements(),this.createDiagram(),this.$skills.each(this.createSkill.bind(this))},cacheElements:function(){this.$el=$(this.el),this.$skills=this.$el.find(".mk-meter-arch"),this.config=this.$el.data(),this.config.radius=this.config.dimension/2},random:function(l,u){return Math.floor(Math.random()*(u-l+1)+l)},createDiagram:function(){var self=this;this.diagram=Raphael(this.el,this.config.dimension,this.config.dimension),this.diagram.setViewBox(0,0,this.config.dimension,this.config.dimension,!0),this.diagram.setSize("90%","90%"),this.diagram.circle(this.config.radius,this.config.radius,80).attr({stroke:"none",fill:this.config.circleColor}),this.title=this.diagram.text(this.config.radius,this.config.radius,this.config.defaultText).attr({font:"22px helvetica",fill:this.config.defaultTextColor}).toFront(),this.diagram.customAttributes.arc=function(value,color,rad){var v=3.6*value,alpha=360==v?359.99:v,r=self.random(91,240),a=(r-alpha)*Math.PI/180,b=r*Math.PI/180;return{path:[["M",self.config.radius+rad*Math.cos(b),self.config.radius-rad*Math.sin(b)],["A",rad,rad,0,+(alpha>180),1,self.config.radius+rad*Math.cos(a),self.config.radius-rad*Math.sin(a)]],stroke:color}}},createSkill:function(id,el){var self=this,$this=$(el),config=$this.data(),newRad=72+27*(id+1);this.diagram.path().attr({"stroke-width":28,arc:[config.percent,config.color,newRad]}).mouseover(function(){self.showSkill(this,config.name,config.percent)}).mouseout(function(){self.hideSkill(this)})},showSkill:function(self,name,percent){var $this=self;"VML"!=Raphael.type&&$this.toFront(),$this.animate({"stroke-width":50,opacity:.9},800,"elastic"),this.title.stop().animate({opacity:0},250,">",function(){this.attr({text:name+"\n"+percent+"%"}).animate({opacity:1},250,"<")}).toFront()},hideSkill:function(self){var $this=self,self=this;$this.stop().animate({"stroke-width":28,opacity:1},1e3,"elastic"),self.title.stop().animate({opacity:0},250,">",function(){self.title.attr({text:self.config.defaultText}).animate({opacity:1},250,"<")})}},$(".mk-skill-diagram").each(function(){new SkillDiagram(this).init()})}}(jQuery),function($){"use strict";function tabDelegation(){var $this=$(this);$this.data().tab&&$this.on("click","a",openInTab)}function openInTab(e){e.preventDefault();var $this=$(this),url=$this.attr("href");window.open(url,"_blank")}$('[data-js="tab-delegation"]').each(tabDelegation)}(jQuery),function($){"use strict";var Toggle=function(el){var that=this,$el=$(el);this.$el=$el,$(window).on("load",function(){$el.toggle(that.open.bind(that),that.close.bind(that))})};Toggle.prototype.dom={pane:"mk-toggle-pane",active:"active-toggle"},Toggle.prototype.open=function(){var $this=this.$el;$this.addClass(this.dom.active),$this.siblings("."+this.dom.pane).slideDown(200)},Toggle.prototype.close=function(){var $this=this.$el;$this.removeClass(this.dom.active),$this.siblings("."+this.dom.pane).slideUp(200)};var $toggle=$(".mk-toggle-title");$toggle.length&&$toggle.each(function(){new Toggle(this)})}(jQuery),window.ajaxInit=function(){mk_lightbox_init(),mk_click_events(),mk_social_share_global(),mk_gallery(),loop_audio_init()},window.ajaxDelayedInit=function(){mk_flexslider_init()},$(document).ready(function(){mk_lightbox_init(),mk_login_form(),mk_backgrounds_parallax(),mk_flexslider_init(),mk_event_countdown(),mk_skill_meter(),mk_milestone(),mk_ajax_search(),mk_hover_events(),mk_portfolio_ajax(),mk_love_post(),product_loop_add_cart(),mk_portfolio_widget(),mk_contact_form(),mk_blog_carousel(),mk_header_searchform(),mk_click_events(),mk_text_typer(),mk_tab_slider_func(),$(window).on("load",function(){mk_unfold_footer(),mk_accordion_toggles_tooltip(),mk_gallery(),mk_theatre_responsive_calculator(),mk_start_tour_resize(),mk_header_social_resize(),mk_page_section_social_video_bg(),loop_audio_init(),mk_one_page_scroller(),setTimeout(function(){mk_mobile_tablet_responsive_calculator()},300),console.log("ready for rock")});var onDebouncedResize=function(){mk_theatre_responsive_calculator(),mk_mobile_tablet_responsive_calculator(),mk_accordion_toggles_tooltip(),mk_start_tour_resize(),mk_header_social_resize(),setTimeout(function(){mk_unfold_footer()},300)},debounceResize=null;$(window).on("resize",function(){null!==debounceResize&&clearTimeout(debounceResize),debounceResize=setTimeout(onDebouncedResize,300)});var onDebouncedScroll=function(){mk_skill_meter(),mk_milestone()},debounceScroll=null;$(window).on("scroll",function(){null!==debounceScroll&&clearTimeout(debounceScroll),debounceScroll=setTimeout(onDebouncedScroll,100)}),MK.utils.isMobile()&&$("body").addClass("no-transform")}),function(){$(".mk-section-video video").each(function(){var mkVideo=this;this.onload=function(){setTimeout(function(){$(mkVideo).animate({opacity:1},300)},1e3)}()})}(),function($){function initialize(){var $gmap=$(".gmap_widget");$gmap.length&&"undefined"!=typeof google&&$gmap.each(run)}function run(){var $mapHolder=$(this),myLatlng=new google.maps.LatLng($mapHolder.data("latitude"),$mapHolder.data("longitude")),mapOptions=$mapHolder.data("options");mapOptions.mapTypeId=google.maps.MapTypeId.ROADMAP,mapOptions.center=myLatlng;var map=new google.maps.Map(this,mapOptions);new google.maps.Marker({position:myLatlng,map:map})}$(window).on("load",initialize)}(jQuery),function($){function run(){var options=$(this).data("options");options.template='
    ',new Instafeed(options).run()}$(window).on("load",function(){var $feeds=$(".mk-instagram-feeds");$feeds.length&&$feeds.each(run)})}(jQuery),function($){$(window).on("load",function(){setTimeout(function(){$(".chrome-flipbox-backface-fix").removeClass("chrome-flipbox-backface-fix")},300)})}(jQuery),function($){$(window).on("load",function(){$(".vc_tta-tab a").on("click",function(){setTimeout(function(){$(window).trigger("resize")},100)})})}(jQuery),function($){$(window).on("load",function(){$("#mk-vm-menu .menu-item-has-children, #mk-vm-menu .mk-vm-back").on("mouseenter",function(){var $header_inner=$(this).closest(".mk-header-inner"),$header_inner_height=$header_inner.outerHeight(),$header_bg=$header_inner.find(".mk-header-bg"),total_height=0;$header_bg.css("height","100%"),setTimeout(function(){$header_inner.children(":visible").each(function(){total_height+=$(this).outerHeight(!0)}),total_height-=$header_bg.height(),total_height<$header_inner_height?$header_bg.css("height","100%"):$header_bg.css("height",total_height+"px")},600)})})}(jQuery),function($){function set_lightbox_href(){var $product_img=$(this).find("img"),$lightbox=$(this).find(".mk-lightbox");setTimeout(function(){var image_url=$product_img.attr("src"),image_suffix=image_url.substr(image_url.lastIndexOf(".")-image_url.length),image_url=image_url.slice(0,image_url.lastIndexOf("-"));$lightbox.attr("href",image_url+image_suffix)},300)}$(window).on("load",function(){var $variations_form=$(".variations_form");if($variations_form.length){var $varitions_selects=$variations_form.find(".variations").find(".value").find("select");$varitions_selects.on("change",function(){var $all_img_container=$(".mk-product-image .mk-woocommerce-main-image");$all_img_container.length&&$($all_img_container).each(set_lightbox_href)}),$varitions_selects.trigger("change")}})}(jQuery),function($){MK.utils.isMobile()&&$(".mk-section-video video").remove()}(jQuery),function($){$(window).on("load",function(){$(document).on("yith-wcan-ajax-filtered yith_infs_added_elem yith-wcan-ajax-reset-filtered",function(){setTimeout(function(){MK.utils.eventManager.publish("ajaxLoaded"),MK.core.initAll(document)},1e3)}),$(document).on("yith-wcan-ajax-filtered yith-wcan-ajax-reset-filtered",function(){setTimeout(function(){$(".woocommerce-ordering").on("change","select.orderby",function(){$(this).closest("form").submit()})},1e3)})})}(jQuery),function(e){var a=window.location,n=a.hash;if(n.length&&n.substring(1).length){if(!e(".vc_row, .mk-main-wrapper-holder, .mk-page-section, #comments").filter("#"+n.substring(1)).length)return;n=n.replace("!loading","");var i=n+"!loading";a.hash=i}}(jQuery);var progressButton={loader:function(form){MK.core.loadDependencies([MK.core.path.plugins+"tweenmax.js"],function(){var $form=form,progressBar=$form.find(".mk-progress-button .mk-progress-inner"),buttonText=$form.find(".mk-progress-button .mk-progress-button-content");(new TimelineLite).to(progressBar,0,{width:"100%",scaleX:0,scaleY:1}).to(buttonText,.3,{y:-5}).to(progressBar,1.5,{scaleX:1,ease:Power2.easeInOut},"-=.1").to(buttonText,.3,{y:0}).to(progressBar,.3,{scaleY:0})})},success:function(form){MK.core.loadDependencies([MK.core.path.plugins+"tweenmax.js"],function(){function hideSuccessMessage(){progressButtonSuccess.reverse()}var $form=form,buttonText=$form.find(".mk-button .mk-progress-button-content, .mk-contact-button .mk-progress-button-content"),successIcon=$form.find(".mk-progress-button .state-success"),progressButtonSuccess=new TimelineLite({onComplete:hideSuccessMessage});progressButtonSuccess.to(buttonText,.3,{paddingRight:20,ease:Power2.easeInOut},"+=1").to(successIcon,.3,{opacity:1}).to(successIcon,2,{opacity:1})})},error:function(form){MK.core.loadDependencies([MK.core.path.plugins+"tweenmax.js"],function(){function hideErrorMessage(){progressButtonError.reverse()}var $form=form,buttonText=$form.find(".mk-button .mk-progress-button-content, .mk-contact-button .mk-progress-button-content"),errorIcon=$form.find(".mk-progress-button .state-error"),progressButtonError=new TimelineLite({onComplete:hideErrorMessage});progressButtonError.to(buttonText,.3,{paddingRight:20},"+=1").to(errorIcon,.3,{opacity:1}).to(errorIcon,2,{opacity:1})})}};$("#mc-embedded-subscribe-form").submit(function(e){var $this=$(this);e.preventDefault(),$.ajax({url:MK.core.path.ajaxUrl,type:"POST",data:{action:"mk_ajax_subscribe",email:$this.find(".mk-subscribe--email").val(),list_id:$this.find(".mk-subscribe--list-id").val(),optin:$this.find(".mk-subscribe--optin").val()}, success:function(res){$this.parent().find(".mk-subscribe--message").html($.parseJSON(res).message)}})}),"undefined"!=typeof exports&&(exports.addClass=addClass,exports.removeClass=removeClass),"undefined"!=typeof exports&&(exports.validateEmail=validateEmail,exports.validateText=validateText),function($){"use strict";function deactivate(){$contactBtn.removeClass("is-active"),$backBtn.removeClass("is-active")}function activate(){$contactBtn.addClass("is-active"),$backBtn.addClass("is-active")}var $wrapper=$(".js-bottom-corner-btns"),$contactBtn=$wrapper.find(".js-bottom-corner-btn--contact"),$backBtn=$wrapper.find(".js-bottom-corner-btn--back");$contactBtn.length;$backBtn.length&&MK.utils.scrollSpy(400,{before:deactivate,after:activate})}(jQuery),function($){"use strict";$(".mk-fullscreen-nav-close, .mk-fullscreen-nav-wrapper, #fullscreen-navigation a").on("click",function(e){$(".mk-fullscreen-nav").removeClass("opened"),$(".mk-dashboard-trigger").removeClass("fullscreen-active"),$("body").removeClass("fullscreen-nav-opened");var anchor=MK.utils.detectAnchor(this),$this=$(this),href=$this.attr("href").split("#")[0],url=window.location.href,isSamePage=-1!==url.indexOf(href);anchor.length?(isSamePage&&e.preventDefault(),MK.utils.scrollToAnchor(anchor)):"#"===$this.attr("href")&&e.preventDefault()}),$(".fullscreen-navigation-ul .menu-sub-level-arrow").on("click",function(){$(this).siblings(".sub-menu").slideToggle()})}(jQuery),function($){"use strict";var $navList=$(".main-navigation-ul"),megaMenu=function(){$navList.MegaMenu({type:"vertical",delay:200})};$(window).on("load",megaMenu)}(jQuery),function($){"use strict";var onePageNavItem=function(){var $this=$(this),link=$this.find("a"),anchor=MK.utils.detectAnchor(link);if(anchor.length){$this.removeClass("current-menu-item current-menu-ancestor current-menu-parent");var activeNav=function(state){return function(){$this[state?"addClass":"removeClass"]("current-menu-item"),window.history.replaceState(void 0,void 0,[state?anchor:" "])}};MK.utils.scrollSpy($(anchor)[0],{before:activeNav(!1),active:activeNav(!0),after:activeNav(!1)})}},$navItems=$(".js-main-nav").find("li");$(window).on("load",function(){setTimeout(function(){$navItems.each(onePageNavItem)},1e3)})}(jQuery),function($){"use strict";function toggleResMenu(e){e.preventDefault();var $this=$(this),$headerInner=$this.parents("header"),$resMenu=$headerInner.find(".mk-responsive-wrap"),searchBox=$(".responsive-searchform .text-input");$("#wpadminbar").height();$body.hasClass("mk-opened-nav")?($this.removeClass("is-active"),$body.removeClass("mk-opened-nav").addClass("mk-closed-nav").trigger("mk-closed-nav"),$resMenu.hide(),$post_nav.removeClass("post-nav-backward")):($this.addClass("is-active"),$body.removeClass("mk-closed-nav").addClass("mk-opened-nav").trigger("mk-opened-nav"),$resMenu.show(),$post_nav.addClass("post-nav-backward")),searchBox.hasClass("input-focused")&&searchBox.removeClass("input-focused")}var $window=$(window),$body=$("body"),$resMenuWrap=$(".mk-responsive-wrap"),$post_nav=$(".mk-post-nav"),$toolbar=$(".mk-header-toolbar"),$resMenuLink=$(".mk-nav-responsive-link"),hasResMenu=$resMenuWrap.length>0,windowHeight=$window.height(),screenHeight=screen.height;if($(".mk-toolbar-resposnive-icon").on("click",function(e){e.preventDefault(),console.log("clicked"),$body.hasClass("toolbar-opened")?($body.removeClass("toolbar-opened").addClass("toolbar-closed"),$toolbar.hide()):($body.removeClass("toolbar-closed").addClass("toolbar-opened"),$toolbar.show())}),hasResMenu){$resMenuLink.each(function(){$(this).on("click",toggleResMenu)});var isVirtualKeyboard=function(){var currentWindowHeight=$window.height(),currentScreenHeight=screen.height,searchBox=$(".responsive-searchform .text-input"),searchBoxIsFocused=!1;return searchBox.on("touchstart touchend",function(e){searchBox.addClass("input-focused")}),searchBoxIsFocused=searchBox.is(":focus")||searchBox.hasClass("input-focused"),!(!$body.hasClass("mk-opened-nav")||!searchBoxIsFocused||currentScreenHeight!=screenHeight||currentWindowHeight==windowHeight)},hideResMenu=function(){MK.utils.isResponsiveMenuState()&&(isVirtualKeyboard()||($body.hasClass("mk-opened-nav")&&$resMenuLink.filter(".is-active").trigger("click"),$resMenuWrap.hide()))};$resMenuWrap.on("click","a",hideResMenu)}}(jQuery),function($){"use strict";var $header=$(".mk-header");$header.length>0&&($header.attr("data-header-style"),$(".sidedash-navigation-ul > li").each(function(){$(this).children("ul").siblings("a").after('')}),$(".mk-nav-arrow").stop(!0).on("click",function(e){e.preventDefault();var $this=$(this);$this.hasClass("mk-nav-sub-closed")?$this.siblings("ul").slideDown(450).end().removeClass("mk-nav-sub-closed").addClass("mk-nav-sub-opened"):$this.siblings("ul").slideUp(450).end().removeClass("mk-nav-sub-opened").addClass("mk-nav-sub-closed")}),$(".mk-dashboard-trigger").on("click",function(e){var $this=$(this),$body=$("body"),$fullscreen_box=$(".mk-fullscreen-nav");$this.hasClass("dashboard-style")?$this.hasClass("dashboard-active")?($this.removeClass("dashboard-active"),$body.removeClass("dashboard-opened")):($this.addClass("dashboard-active"),$body.addClass("dashboard-opened")):$this.hasClass("fullscreen-style")&&($this.hasClass("fullscreen-active")?($this.removeClass("fullscreen-active"),$body.removeClass("fullscreen-nav-opened"),$fullscreen_box.removeClass("opened")):($this.addClass("fullscreen-active"),$body.addClass("fullscreen-nav-opened"),$fullscreen_box.addClass("opened"))),e.preventDefault()}),$("html").on("click",function(){$("body").removeClass("dashboard-opened"),$(".mk-dashboard-trigger").removeClass("dashboard-active")}))}(jQuery),function($){"use strict";var $verticalMenu=$("#mk-vm-menu"),verticalMenu=function(){$verticalMenu.data("vertical-menu")||MK.utils.isResponsiveMenuState()||($verticalMenu.dlmenu(),$verticalMenu.data("vertical-menu",!0))};verticalMenu(),$(window).on("resize",verticalMenu)}(jQuery),function($){"use strict";$(".mk-main-navigation > .main-navigation-ul > .menu-item-language").addClass("no-mega-menu").css("visibility","visible"),$(".mk-main-navigation .menu-item-language > a").addClass("menu-item-link")}(jQuery),function($){"use strict";function changeSkin(e,skin){$header.attr("data-transparent-skin",skin);var contrast="light"===skin?"dark":"light";$header.addClass(skin+"-skin"),$header.removeClass(contrast+"-skin")}var $header=$(".mk-header").first();if($header.length>0){var $window=$(window),$document=$(document),$headerHolder=$header.find(".mk-header-holder"),$paddingWrapper=$header.find(".mk-header-padding-wrapper"),config=$header.data(),isStickyLazy="lazy"===config.stickyStyle,isStickyFixed="fixed"===config.stickyStyle,isStickySlide="slide"===config.stickyStyle;(function(){return 4!==config.headerStyle})()&&MK.utils.eventManager.subscribe("firstElSkinChange",changeSkin),isStickyLazy?2!==config.headerStyle&&function(){var wScrollCurrent=0,wScrollBefore=0,wScrollDiff=0,wHeight=0,dHeight=0,setSizes=function(){dHeight=$document.height(),wHeight=$window.height()},onScroll=function(){wScrollCurrent=MK.val.scroll(),wScrollDiff=wScrollBefore-wScrollCurrent,wScrollCurrent<=0?($headerHolder.removeClass("header--hidden"),$header.removeClass("a-sticky")):wScrollDiff>0&&$headerHolder.hasClass("header--hidden")?($headerHolder.removeClass("header--hidden"),$header.addClass("a-sticky")):wScrollDiff<0&&(wScrollCurrent+wHeight>=dHeight&&$headerHolder.hasClass("header--hidden")?($headerHolder.removeClass("header--hidden"),$header.addClass("a-sticky")):($headerHolder.addClass("header--hidden"),$header.removeClass("a-sticky"))),wScrollBefore=wScrollCurrent};setSizes(),onScroll(),$window.on("resize",MK.utils.throttle(100,setSizes)),$window.on("scroll",MK.utils.throttle(500,onScroll))}():isStickyFixed?function(){var scrollPos,sticked=!1,toggleState=function(){if((scrollPos=MK.val.scroll()+MK.val.adminbarHeight())>MK.val.stickyOffset()&&!MK.utils.isResponsiveMenuState()){if(sticked)return;$header.addClass("a-sticky"),sticked=!0}else{if(!sticked)return;$header.removeClass("a-sticky"),sticked=!1}};toggleState(),$window.on("scroll",MK.utils.throttle(100,toggleState)),$window.on("resize",MK.utils.throttle(100,toggleState))}():isStickySlide&&function(){var sticked=!1,onScroll=function(){if(MK.val.scroll()>MK.val.stickyOffset()){if(sticked)return;$header.addClass("pre-sticky"),$paddingWrapper.addClass("enable-padding"),setTimeout(function(){$header.addClass("a-sticky")},1),sticked=!0}else{if(!sticked)return;$header.removeClass("a-sticky"),$header.removeClass("pre-sticky"),$paddingWrapper.removeClass("enable-padding"),sticked=!1}};onScroll(),$window.on("scroll",MK.utils.throttle(100,onScroll))}()}}(jQuery),function($){"use strict";function normalizeClick(){$(this).on("click",handleClick)}function handleClick(e){"none"!==$(e.currentTarget).find("> ul").css("display")||(e.preventDefault(),e.stopPropagation())}"ontouchstart"in document.documentElement&&$(".mk-main-navigation .menu-item-has-children").each(normalizeClick)}(jQuery),function($){"use strict";MK.ui.preloader={dom:{overlay:".mk-body-loader-overlay"},hide:function(){$(this.dom.overlay).fadeOut(600,"easeInOutExpo",function(){$("body").removeClass("loading")})}}}(jQuery),function($){"use strict";var _ajaxUrl=MK.core.path.ajaxUrl,_instances={};MK.utils.ajaxLoader=function(el){var id="#"+$(el).attr("id");if(void 0!==_instances[id])return _instances[id];this.id=id,this.el=el,this.isLoading=!1,this.xhrCounter=0},MK.utils.ajaxLoader.prototype={init:function(){this.initialized||(this.createInstance(),this.cacheElements(),this.initialized=!0)},cacheElements:function(){this.$container=$(this.el),this.id="#"+this.$container.attr("id"),this.categories=this.$container.data("loop-categories"),this.data={},this.data.action="mk_load_more",this.data.query=this.$container.data("query"),this.data.atts=this.$container.data("loop-atts"),this.data.loop_iterator=this.$container.data("loop-iterator"),this.data.author=this.$container.data("loop-author"),this.data.posts=this.$container.data("loop-posts"),this.data.safe_load_more=this.$container.siblings("#safe_load_more").val(),this.data._wp_http_referer=this.$container.siblings('input[name="_wp_http_referer"]').val(),this.data.paged=1,this.data.maxPages=this.$container.data("max-pages"),this.data.term=this.categories},createInstance:function(){_instances[this.id]=this},load:function(unique){var self=this,seq=++this.xhrCounter;if(this.isLoading=!0,this.$container.siblings(".mk-ajax-loaded-posts").length){var loaded_posts=this.$container.siblings(".mk-ajax-loaded-posts").attr("data-loop-loaded-posts");1!=this.$container.attr("data-pagination-style")&&(self.data.loaded_posts=loaded_posts.split(","))}return $.when($.ajax({url:_ajaxUrl,type:"POST",data:self.data})).done(function(response){self.onDone(response,unique,seq)})},onDone:function(response,unique,seq){if(seq===this.xhrCounter){var self=this;response=$.parseJSON(response),response.unique=parseInt(unique,10),response.id=this.id,this.$container.siblings(".mk-ajax-loaded-posts").length&&this.$container.siblings(".mk-ajax-loaded-posts").attr("data-loop-loaded-posts",response.loaded_posts),this.setData({maxPages:response.maxPages,found_posts:response.found_posts,loop_iterator:response.i}),$(response.content).mk_imagesLoaded().then(function(){MK.utils.eventManager.publish("ajaxLoaded",response),self.isLoading=!1,self.initNewComponents()})}else console.log("XHR request nr "+seq+" aborted")},setData:function(atts){for(var att in atts)"term"===att&&"*"===atts[att]?this.data.term="":this.data[att]=atts[att]},getData:function(att){return this.data[att]},initNewComponents:function(){window.ajaxInit(),setTimeout(window.ajaxDelayedInit,1e3),MK.core.initAll(this.el)}}}(jQuery),MK.component.BackgroundImageSetter=function($){"use strict";function run($layers){$layers.filter(function(){return!this.hasAttribute("mk-img-loaded")}).each(applyBg)}function applyBg(){var $this=$(this),imgs=$this.data("mk-img-set");$this.css("background-image","url("+module.getImage(imgs)+")"),$this.find(".mk-adaptive-image").attr("src",module.getImage(imgs))}function handleResize($layers){updateScreenSize(),hasSwitched()&&(updateDevice(),run($layers))}function getScreenSize(){return{w:$win.width(),h:$win.height()}}function getDevice(){return screen.w>1024?{class:"desktop",id:2}:screen.w>736?{class:"tablet",id:1}:{class:"mobile",id:0}}function getOrientation(){return screen.w>screen.h?"landscape":"portrait"}function updateScreenSize(){screen=getScreenSize()}function updateDevice(){lastOrientation!==orientation&&(orientation=lastOrientation),lastDevice.id>device.id&&(device=lastDevice)}function hasSwitched(){return lastOrientation=getOrientation(),lastDevice=getDevice(),lastOrientation!==orientation||lastDevice.class!==device.class}var module={},$win=$(window),screen=getScreenSize(),orientation=getOrientation(),device=getDevice(),lastOrientation=orientation,lastDevice=device;return module.getImage=function(imgs){if("false"===imgs.responsive)return imgs.landscape.desktop?imgs.landscape.desktop:imgs.landscape.external?imgs.landscape.external:"";var hasOrientation=!!imgs[orientation],imgOriented=imgs[hasOrientation?orientation:Object.keys(imgs)[0]];return imgOriented[device.class]?imgOriented[device.class]:imgOriented.external?imgOriented.external:""},module.init=function($layers){run($layers),$layers.attr("mk-img-loaded","")},module.onResize=function($layers){$win.on("resize",MK.utils.throttle(500,function(){handleResize($layers)}))},module}(jQuery),jQuery(function($){$allLayers=$("[data-mk-img-set]").filter(function(index){return!$(this).hasClass("mk-section-image")&&!$(this).hasClass("background-layer")&&!$(this).hasClass("mk-video-section-touch")}),MK.component.BackgroundImageSetter.onResize($allLayers),MK.component.BackgroundImageSetter.init($allLayers)}),function($){"use strict";var val=MK.val;MK.component.FullHeight=function(el){var $window=$(window),$this=$(el),config=$this.data("fullheight-config"),container=document.getElementById("mk-theme-container"),minH=config&&config.min?config.min:0,winH=null,height=null,update_count=0,testing=MK.utils.getUrlParameter("testing"),offset=null;"IE"===MK.utils.browser.name&&$this.css("height","1px");var update=function(){0===update_count&&(winH=$window.height(),offset=$this.offset().top-1,height=Math.max(minH,winH-val.offsetHeaderHeight(offset)),$this.css("min-height",height),void 0!==testing&&update_count++)};return{init:function(){update(),$window.on("resize",update),$window.on("scroll",update),window.addResizeListener(container,update)}}}}(jQuery),function($){"use strict";var utils=(MK.core,MK.utils);MK.core.path;MK.ui.FullScreenGallery=function(element,settings){this.element=element,this.config=settings,this.isFullScreen=!1},MK.ui.FullScreenGallery.prototype={dom:{fullScrBtn:".slick-full-screen",exitFullScrBtn:".slick-minimize",playBtn:".slick-play",pauseBtn:".slick-pause",shareBtn:".slick-share",socialShare:".slick-social-share",wrapper:".slick-slider-wrapper",slider:".slick-slides",slides:".slick-slide",dots:".slick-dot",active:".slick-active",hiddenClass:"is-hidden",dataId:"slick-index"},tpl:{dot:'
    ',next:' ',prev:' '},init:function(){var self=this;self.cacheElements(),self.getViewportSizes(),self.updateSizes("window"),self.create(),self.updateCacheElements(),self.createPagination(),self.bindEvents()},create:function(){var self=this;this.slick=this.$gallery.slick({dots:!0,arrows:!0,infinite:!0,speed:300,slidesToShow:1,centerMode:!0,centerPadding:"0px",variableWidth:!0,autoplay:!1,autoplaySpeed:3e3,useTransform:!0,prevArrow:self.tpl.prev,nextArrow:self.tpl.next,customPaging:function(slider,i){return self.tpl.dot}})},cacheElements:function(){this.$window=$(window),this.$gallery=$(this.element),this.$fullScrBtn=$(this.dom.fullScrBtn),this.$exitFullScrBtn=$(this.dom.exitFullScrBtn),this.$playBtn=$(this.dom.playBtn),this.$pauseBtn=$(this.dom.pauseBtn),this.$shareBtn=$(this.dom.shareBtn),this.$socialShare=$(this.dom.socialShare),this.$wrapper=$(this.dom.wrapper),this.$slider=$(this.dom.slider),this.$slides=$(this.dom.slides),this.$imgs=this.$slides.find("img"),this.$originalImgs=this.$imgs},updateCacheElements:function(){this.$slides=$(this.dom.slides),this.$imgs=this.$slides.find("img"),this.$dots=$(this.dom.dots)},bindEvents:function(){var self=this;this.$fullScrBtn.on("click",this.toFullScreen.bind(this)),this.$exitFullScrBtn.on("click",this.exitFullScreen.bind(this)),this.$playBtn.on("click",this.play.bind(this)),this.$pauseBtn.on("click",this.pause.bind(this)),this.$shareBtn.on("click",this.toggleShare.bind(this)),this.$socialShare.on("click","a",this.socialShare.bind(this)),this.$window.on("resize",this.onResize.bind(this)),this.$window.on("keydown",function(e){39===e.keyCode&&self.$gallery.slick("slickNext"),37===e.keyCode&&self.$gallery.slick("slickPrev")}),$(document).on("fullscreenchange mozfullscreenchange webkitfullscreenchange msfullcreenchange",this.exitFullScreen.bind(this))},getViewportSizes:function(){this.screen={w:screen.width,h:screen.height},this.window={w:this.$window.width(),h:this.$window.height()}},updateSizes:function(viewport){this.$wrapper.width(this[viewport].w),this.$wrapper.height("100%"),this.$imgs.height("100%")},createPagination:function(){var self=this;this.$dots.each(function(i){var img=self.$originalImgs.eq(i).attr("src");$(this).css({"background-image":"url("+img+")"})})},play:function(e){e.preventDefault(),this.$playBtn.addClass(this.dom.hiddenClass),this.$pauseBtn.removeClass(this.dom.hiddenClass),$(this.element).slick("slickPlay")},pause:function(e){e.preventDefault(),this.$pauseBtn.addClass(this.dom.hiddenClass),this.$playBtn.removeClass(this.dom.hiddenClass),$(this.element).slick("slickPause")},toggleShare:function(e){e.preventDefault(),this.$socialShare.toggleClass(this.dom.hiddenClass)},getCurentId:function(){return this.$slides.filter(this.dom.active).data(this.dom.dataId)},toFullScreen:function(){var self=this;this.$fullScrBtn.addClass(this.dom.hiddenClass),this.$exitFullScrBtn.removeClass(this.dom.hiddenClass),this.$slider.hide().fadeIn(500),utils.launchIntoFullscreen(document.documentElement),this.updateSizes("screen"),$(this.element).slick("slickGoTo",this.getCurentId(),!0),setTimeout(function(){self.isFullScreen=!0},1e3)},exitFullScreen:function(){this.isFullScreen&&(this.$exitFullScrBtn.addClass(this.dom.hiddenClass),this.$fullScrBtn.removeClass(this.dom.hiddenClass),utils.exitFullscreen(),this.updateSizes("window"),$(this.element).slick("slickGoTo",this.getCurentId(),!0),this.isFullScreen=!1)},onResize:function(){this.getViewportSizes(),this.updateSizes(this.isFullScreen?"screen":"window"),$(this.element).slick("refresh"),$(this.element).slick("slickGoTo",this.getCurentId(),!0),this.updateCacheElements(),this.createPagination()},socialShare:function(e){e.preventDefault();var name,$this=$(e.currentTarget),network=$this.data("network"),id=this.config.id,url=this.config.url,title=this.$wrapper.find(".slick-title").text(),picture=this.$slides.filter(this.dom.active).children().first().attr("src");switch(network){case"facebook":url="https://www.facebook.com/sharer/sharer.php?picture="+picture+"&u="+url+"#id="+id,name="Facebook Share";break;case"twitter":url="http://twitter.com/intent/tweet?text="+url+"#id="+id,name="Twitter Share";break;case"pinterest":url="http://pinterest.com/pin/create/bookmarklet/?media="+picture+"&url="+url+"&is_video=false&description="+title,name="Pinterest Share"}window.open(url,name,"height=380 ,width=660, resizable=0, toolbar=0, menubar=0, status=0, location=0, scrollbars=0")}}}(jQuery),function($){"use strict";MK.component.Grid=function(el){var $container=$(el),config=$container.data("grid-config"),isSlideshow=$container.closest('[data-mk-component="SwipeSlideshow"]').length,miniGridConfig={container:el,item:config.item+":not(.is-hidden)",gutter:0},prepareForGrid=function(){var $item=$(this);"none"===$item.css("display")?$item.addClass("is-hidden"):$item.removeClass("is-hidden")},create=function(){function draw(){$container.find(config.item).each(prepareForGrid),minigrid(miniGridConfig)}function redraw(){timer&&clearTimeout(timer),timer=setTimeout(draw,100)}var timer=null;draw(),$(window).off("resize",redraw),$(window).on("resize",redraw),MK.utils.eventManager.subscribe("item-expanded",redraw),MK.utils.eventManager.subscribe("ajaxLoaded",redraw),MK.utils.eventManager.subscribe("staticFilter",redraw)};return{init:function(){isSlideshow||MK.core.loadDependencies([MK.core.path.plugins+"minigrid.js"],create)}}}}(jQuery),function($){"use strict";function createAll(scope){for(var i=0,l=families.length;iscrollCheckPoint()&&!ajaxLoader.isLoading&&loadMore()}function loadMore(){loadingIndicatorStart();var page=ajaxLoader.getData("paged");ajaxLoader.setData({paged:++page}),ajaxLoader.load(unique)}function onLoad(e,response){void 0!==response&&response.id===id&&(ajaxLoader.getData("found_posts")<=0&&ajaxLoader.getData("paged")>=ajaxLoader.getData("maxPages")?loadingIndicatorHide():loadingIndicatorShow(),response.unique===unique&&$container.append(response.content),loadingIndicatorStop())}function loadingIndicatorStart(){isLoadBtn?$loadBtn.addClass("is-active"):isInfiniteScroll&&MK.ui.loader.add(".js-load-more-scroll")}function loadingIndicatorStop(){isLoadBtn?$loadBtn.removeClass("is-active"):isInfiniteScroll&&MK.ui.loader.remove(".js-load-more-scroll")}function loadingIndicatorShow(){isHandlerBinded||(isLoadBtn?$loadBtn.show():isInfiniteScroll&&$loadScroll.show(),bindHandlers())}function loadingIndicatorHide(){isHandlerBinded&&(isLoadBtn?$loadBtn.hide():isInfiniteScroll&&$loadScroll.hide(),unbindHandlers())}function spyScrollCheckPoint(){var containerO=0,containerH=dynamicHeight($superContainer),winH=dynamicHeight(window),setVals=function(){containerO=$superContainer.offset().top};return setVals(),$window.on("resize",function(){requestAnimationFrame(setVals)}),function(){return containerH()+containerO-2*winH()}}var unique=Date.now(),$container=$(this),$superContainer=$container.parent(),$loadBtn=$container.siblings(".js-loadmore-holder").find(".js-loadmore-button"),$loadScroll=$(".js-load-more-scroll"),style=$container.data("pagination-style"),id=($container.data("max-pages"),"#"+$container.attr("id")),ajaxLoader=new MK.utils.ajaxLoader(id),isLoadBtn=2===style,isInfiniteScroll=3===style,scrollCheckPoint=null,isHandlerBinded=!1;ajaxLoader.init(),function(){MK.utils.eventManager.subscribe("ajaxLoaded",onLoad),bindHandlers(),isInfiniteScroll&&(scrollCheckPoint=spyScrollCheckPoint())}()}var scrollY=MK.val.scroll,dynamicHeight=MK.val.dynamicHeight,$window=$(window);$(".js-loop").each(pagination)}(jQuery,window),function($){"use strict";function isHidden(el){return null===el.offsetParent}MK.component.Masonry=function(el){var $window=$(window),$container=$(el),config=$container.data("masonry-config"),$masonryItems=$container.find(config.item),cols=config.cols||8,wall=null,init=function(){MK.core.loadDependencies([MK.core.path.plugins+"freewall.js"],onDepLoad)},onDepLoad=function(){masonry(),$window.on("resize",onResize),MK.utils.eventManager.subscribe("ajaxLoaded",onPostAddition),MK.utils.eventManager.subscribe("staticFilter",resize)},masonry=function(){if(!isHidden(el)){var newCols;newCols=window.matchMedia("(max-width:600px)").matches?2:window.matchMedia("(max-width:850px)").matches?4:cols;var colW=$container.width()/newCols;wall=new Freewall(config.container),wall.reset({selector:config.item+":not(.is-hidden)",gutterX:0,gutterY:0,cellW:colW,cellH:colW}),wall.fillHoles(),wall.fitWidth(),$masonryItems.each(function(){$(this).data("loaded",!0)})}},destroyContainer=function(){$container.removeAttr("style").removeData("wall-height").removeData("wall-width").removeData("min-width").removeData("total-col").removeData("total-row").removeAttr("data-wall-height").removeAttr("data-wall-width").removeAttr("data-min-width").removeAttr("data-total-col").removeAttr("data-total-row")},destroyItem=function(){$(this).removeAttr("style").removeData("delay").removeData("height").removeData("width").removeData("state").removeAttr("data-delay").removeAttr("data-height").removeAttr("data-width").removeAttr("data-state")},destroyAll=function(){wall&&(wall.destroy(),destroyContainer(),$masonryItems.each(destroyItem))},onResize=function(){requestAnimationFrame(resize)},resize=function(){destroyAll(),masonry()},onPostAddition=function(){$masonryItems=$container.find(config.item),$masonryItems.each(function(){var $item=$(this);$item.data("loaded")||$item.css("visibility","hidden")}),$container.mk_imagesLoaded().then(function(){destroyAll(),masonry()})};return{init:init}}}(jQuery),function($){"use strict";MK.component.Pagination=function(el){this.el=el},MK.component.Pagination.prototype={init:function(){this.cacheElements(),this.bindEvents()},cacheElements:function(){this.lastId=1,this.unique=Date.now(),this.$pagination=$(this.el),this.$container=this.$pagination.prev(".js-loop"),this.$pageLinks=this.$pagination.find(".js-pagination-page"),this.$nextLink=this.$pagination.find(".js-pagination-next"),this.$prevLink=this.$pagination.find(".js-pagination-prev"),this.$current=this.$pagination.find(".js-current-page"),this.$maxPages=this.$pagination.find(".pagination-max-pages"),this.containerId="#"+this.$container.attr("id"),this.ajaxLoader=new MK.utils.ajaxLoader("#"+this.$container.attr("id")),this.ajaxLoader.init()},bindEvents:function(){this.$pageLinks.on("click",this.pageClick.bind(this)),this.$nextLink.on("click",this.nextClick.bind(this)),this.$prevLink.on("click",this.prevClick.bind(this)),MK.utils.eventManager.subscribe("ajaxLoaded",this.onLoad.bind(this))},pageClick:function(e){e.preventDefault();var $this=$(e.currentTarget),id=parseFloat($this.attr("data-page-id"));id>this.ajaxLoader.getData("maxPages")||id<1||this.load(id,$this)},nextClick:function(e){e.preventDefault(),this.ajaxLoader.getData("paged")!==this.ajaxLoader.getData("maxPages")&&this.load(++this.lastId,$(e.currentTarget))},prevClick:function(e){e.preventDefault(),1!==this.ajaxLoader.getData("paged")&&this.load(--this.lastId,$(e.currentTarget))},load:function(id,$el){this.lastId=id,this.ajaxLoader.setData({paged:id}),this.ajaxLoader.load(this.unique),this.removeIndicator(),MK.ui.loader.add($el)},onLoad:function(e,response){void 0!==response&&response.id===this.containerId&&(this.updatePagination(),this.lastId=this.ajaxLoader.getData("paged"),response.unique===this.unique&&(this.removeIndicator(),this.scrollPage(),this.$container.html(response.content)))},updatePagination:function(){var self=this,isFirst=1===this.ajaxLoader.getData("paged"),isLast=this.ajaxLoader.getData("paged")===this.ajaxLoader.getData("maxPages");isFirst?this.$prevLink.addClass("is-vis-hidden"):this.$prevLink.removeClass("is-vis-hidden"),isLast?this.$nextLink.addClass("is-vis-hidden"):this.$nextLink.removeClass("is-vis-hidden"),this.$current.html(this.ajaxLoader.getData("paged")),this.$maxPages.html(this.ajaxLoader.getData("maxPages"));this.ajaxLoader.getData("maxPages")>10?this.$pageLinks.each(function(i){var id=self.lastId-5;id=Math.max(id,1),id=Math.min(id,self.ajaxLoader.getData("maxPages")-10+1),id+=i,$(this).html(id).attr("data-page-id",id).show(),0===i&&id>1&&$(this).html("..."),9===i&&idself.ajaxLoader.getData("maxPages")-1?$link.hide():$link.show()}),this.$pageLinks.filter('[data-page-id="'+this.ajaxLoader.getData("paged")+'"]').addClass("current-page").siblings().removeClass("current-page")},scrollPage:function(){var containerOffset=this.$container.offset().top,offset=containerOffset-MK.val.offsetHeaderHeight(containerOffset)-20;MK.utils.scrollTo(offset)},removeIndicator:function(){MK.ui.loader.remove(".js-pagination-page, .js-pagination-next, .js-pagination-prev")}}}(jQuery),function($){"use strict";var val=MK.val;MK.utils;MK.component.Parallax=function(el){var $this=$(el),obj=$this[0],$window=$(window),container=document.getElementById("mk-theme-container"),config=$this.data("parallax-config"),headerHeight=($(config.holder),null),offset=null,elHeight=null,ticking=!1,isMobile=null,clientRect=null,update=function(){if(obj.style.transform=null,obj.style.top=null,obj.style.bottom=null,isMobile=MK.utils.isMobile())return void $this.css("height","");clientRect=$this[0].getBoundingClientRect(),offset=clientRect.top,elHeight=clientRect.height,headerHeight=val.offsetHeaderHeight(offset),offset=offset-headerHeight+val.scroll(),setPosition(),setSize()},h=0,winH=0,proportion=0,height=0,setSize=function(){if($this.css("height",""),winH=$window.height()-headerHeight,h=obj.getBoundingClientRect().height,config.speed<=1&&config.speed>0)0===offset?$this.css({backgroundAttachment:"scroll","will-change":"transform"}):$this.css({height:h+(winH-h)*config.speed,backgroundAttachment:"scroll","will-change":"transform"});else if(config.speed>1&&h<=winH)$this.css({height:winH+2*(winH*config.speed-winH),top:-(winH*config.speed-winH),backgroundAttachment:"scroll","will-change":"transform"});else if(config.speed>1&&h>winH)proportion=h/winH,height=winH+(winH*config.speed-winH)*(1+proportion),$this.css({height:height,top:-(height-winH*config.speed),backgroundAttachment:"scroll","will-change":"transform"});else if(config.speed<0&&h>=winH)height=h*(1-config.speed),$this.css({height:height+(height-h),top:h-height,backgroundAttachment:"scroll","will-change":"transform"});else if(config.speed<0&&hendPoint)return void(ticking=!1);currentPoint=(-offset+scrollY)*config.speed,$this.css({"-webkit-transform":"translateY("+currentPoint+"px) translateZ(0)","-moz-transform":"translateY("+currentPoint+"px) translateZ(0)","-ms-transform":"translateY("+currentPoint+"px) translateZ(0)","-o-transform":"translateY("+currentPoint+"px) translateZ(0)",transform:"translateY("+currentPoint+"px) translateZ(0)"}),ticking=!1},requestTick=function(){ticking||isMobile||(ticking=!0,window.requestAnimationFrame(setPosition))};return{init:function(){MK.utils.isSmoothScroll&&(update(),setTimeout(update,100),$window.on("load",update),$window.on("resize",update),window.addResizeListener(container,update),$window.on("scroll",requestTick))}}}}(jQuery),function($){"use strict";MK.component.Preloader=function(el){this.el=el},MK.component.Preloader.prototype={init:function(){this.cacheElements(),this.bindEvents()},cacheElements:function(){this.$preloader=$(this.el)},bindEvents:function(){this.onLoad()},onLoad:function(){setTimeout(this.hidePreloader.bind(this),300)},hidePreloader:function(){this.$preloader.hide()}}}(jQuery),function($){"use strict";MK.ui.loader={tpl:function(){return'
    '},add:function(item){$(item).append(this.tpl)},remove:function(item){item?$(item).find(".mk-loading-indicator").remove():$(".mk-loading-indicator").remove()}}}(jQuery),function($){if("Edge"===MK.utils.browser.name||"IE"===MK.utils.browser.name){var val=1,$edgeClipper=$(".mk-slider-slide"),$sectionClipper=$(".clipper-true"),$bgLayer=$(".background-layer"),onScroll=function(){val*=-1,$edgeClipper.length&&$edgeClipper.each(redraw),$sectionClipper.length&&$sectionClipper.each(redraw),$bgLayer.length&&$bgLayer.each(redraw)},redraw=function(){$(this).css("margin-top",val/100)};$(window).on("scroll",function(){window.requestAnimationFrame(onScroll)})}}(jQuery),function($){"use strict";var utils=MK.utils,val=MK.val,$topLevelSections=$("#theme-page > .vc_row, #theme-page > .mk-main-wrapper-holder, #theme-page > .mk-page-section");$(document).on("click",".mk-skip-to-next",function(){var $this=$(this),offset=$this.offset().top,nextOffset=utils.nextHigherVal(offset,utils.offsets($topLevelSections));utils.scrollTo(nextOffset-val.offsetHeaderHeight(nextOffset))})}(jQuery),MK.component.ResponsiveImageSetter=function($){"use strict";function run($imgs){$imgs.filter(function(){return!this.hasAttribute("mk-img-src-setted")}).each(setSrcAttr)}function setSrcAttr(){var $img=$(this),set=$img.data("mk-image-src-set");"false"===set.responsive&&isRetina&&set["2x"]?$img.attr("src",set["2x"]):"false"===set.responsive?$img.attr("src",set.default):1===viewportClass&&isRetina&&set["2x"]?$img.attr("src",set["2x"]):0===viewportClass&&set.mobile?$img.attr("src",set.mobile):$img.attr("src",set.default)}function getViewportClass(){return window.matchMedia("(max-width: 736px)").matches?0:1}function handleResize($imgs){if($imgs.length){var currentViewportClass=getViewportClass();currentViewportClass>viewportClass&&(viewportClass=currentViewportClass,run($imgs))}}var module={},viewportClass=getViewportClass(),isRetina=window.devicePixelRatio>=2;return module.init=function($imgs){$imgs.length&&(run($imgs),$imgs.attr("mk-img-src-setted",""))},module.onResize=function($imgs){$(window).on("resize",MK.utils.throttle(500,function(){handleResize($imgs)}))},module.handleAjax=function(){setTimeout(function(){var $newImgs=$("img[data-mk-image-src-set]").filter(function(){return!this.hasAttribute("mk-lazyload")});$newImgs.length&&run($newImgs)},100)},module}(jQuery),jQuery(function($){$allImages=$("img[data-mk-image-src-set]").filter(function(index){var isNotPortfolioImage=!$(this).hasClass("portfolio-image"),isNotBlogImage=0==$(this).closest(".mk-blog-container").length,isNotSwiperImage=!$(this).hasClass("swiper-slide-image"),isNotGalleryImage=!$(this).hasClass("mk-gallery-image");return isNotPortfolioImage&&isNotBlogImage&&isNotSwiperImage&&isNotGalleryImage}),MK.component.ResponsiveImageSetter.onResize($allImages),MK.component.ResponsiveImageSetter.init($allImages),MK.utils.eventManager.subscribe("ajaxLoaded",MK.component.ResponsiveImageSetter.handleAjax),MK.utils.eventManager.subscribe("ajax-preview",MK.component.ResponsiveImageSetter.handleAjax),MK.utils.eventManager.subscribe("quickViewOpen",MK.component.ResponsiveImageSetter.handleAjax)}),function($){"use strict";MK.ui.Slider=function(container,config){var defaults={slide:".mk-slider-slide",nav:".mk-slider-nav",effect:"roulete",ease:"easeOutQuart",slidesPerView:1,slidesToView:1,transitionTime:700,displayTime:3e3,autoplay:!0,hasNav:!0,hasPagination:!0,paginationTpl:"",paginationEl:"#pagination",draggable:!0,fluidHeight:!1,pauseOnHover:!1,lazyload:!1,activeClass:"is-active",edgeSlider:!1,spinnerTpl:'
    ',onInitialize:function(){},onAfterSlide:function(id){},onBeforeSlide:function(id){}};this.state={id:0,moveForward:!0,running:!1,zIFlow:null,stop:!1},this.config=$.extend(defaults,config),this.container=container,this.initPerView=this.config.slidesPerView,this.activeTimer=null,this.autoplay=null,this.timer=null,this.timerRemaining=parseInt(this.config.displayTime),this.config.lazyload=JSON.parse(this.config.lazyload),this.config.edgeSlider=JSON.parse(this.config.edgeSlider),this.imageLoader=null,imagesLoaded.prototype.abort=function(){this.progress=this.complete=function(){}}},MK.ui.Slider.prototype={init:function(){if(this.setPerViewItems(),this.cacheElements(),this.getSlideSize(),this.bindEvents(),this.setSize(),this.setPos(),this.updateId(-1),this.updateId(1),this.val=this.dynamicVal(),this.timeline=this.prepareTimeline(this.config.transitionTime),this.timeline.build(),this.config.hasPagination&&this.buildPagination(),this.config.autoplay&&document.hasFocus()&&this.setTimer(),"function"==typeof this.config.onInitialize&&this.config.onInitialize(this.slides),!0===this.config.fluidHeight&&($(this.slides).height("auto"),$(this.container).css("transition","height 200ms ease-out"),this.setHeight(0)),"toHighest"===this.config.fluidHeight&&this.setHeightToHighest(),$(this.slides).each(this.createTimer),this.config.lazyload&&this.config.edgeSlider){if(0===$(this.slides[this.state.id]).find("video").length){var $slideImg=$(this.slides[this.state.id]).children("[data-mk-img-set]");MK.component.BackgroundImageSetter.init($slideImg)}$(this.config.spinnerTpl).prependTo(this.$slides)}else MK.component.BackgroundImageSetter.init($(this.slides).children("[data-mk-img-set]"))},cacheElements:function(){this.container=this.isNode(this.container)?this.container:document.querySelectorAll(this.container)[0],this.slides=this.container.querySelectorAll(this.config.slide),this.$slides=$(this.slides),this.config.hasNav&&(this.$nav=$(this.config.nav)),this.config.hasPagination&&(this.$pagination=$(this.config.paginationEl))},bindEvents:function(){var $window=$(window);this.config.slidesPerView>1&&$window.on("resize",this.setPerViewItems.bind(this)),this.config.hasNav&&this.eventsNav(),this.config.hasPagination&&this.eventsPag(),this.config.draggable&&this.dragHandler(),this.config.autoplay&&($window.on("focus",this.windowActive.bind(this)),$window.on("blur",this.windowInactive.bind(this))),this.config.pauseOnHover&&($(this.container).on("mouseleave",this.setTimer.bind(this)),$(this.container).on("mouseenter",this.unsetTimer.bind(this))),"toHighest"===this.config.fluidHeight&&$window.on("resize",this.setHeightToHighest.bind(this))},setPerViewItems:function(){window.matchMedia("(max-width: 500px)").matches?this.config.slidesPerView=1:window.matchMedia("(max-width: 767px)").matches&&this.initPerView>=2?this.config.slidesPerView=2:window.matchMedia("(max-width: 1024px)").matches&&this.initPerView>=3?this.config.slidesPerView=3:this.config.slidesPerView=this.initPerView,void 0!==this.slides&&(this.getSlideSize(),this.setSize(),this.setPos(),this.timeline=this.prepareTimeline(this.config.transitionTime),this.timeline.build())},eventsNav:function(){this.$nav.on("click","a",this.handleNav.bind(this))},eventsPag:function(){this.$pagination.on("click","a",this.handlePagination.bind(this))},handleNav:function(e){if(e.preventDefault(),!this.state.running){this.state.running=!0;var $this=$(e.currentTarget),moveForward="next"===$this.data("direction");this.config.autoplay&&(this.unsetTimer(),setTimeout(this.setTimer.bind(this),this.config.transitionTime)),this.state.moveForward=moveForward,this.timeline.build(),this.timeline.play(),this.setActive(this.nextId(moveForward?1:-1)),this.config.fluidHeight&&this.setHeight(this.nextId(moveForward?1:-1))}},handlePagination:function(e){e.preventDefault();var $this=$(e.currentTarget),id=$this.index();this.goTo(id)},reset:function(){this.state.stop=!0,this.state.id=0,this.setPos(),this.unsetTimer(),this.setTimer()},goTo:function(id){if(!this.state.running){this.state.running=!0;var lastId=this.state.id;lastId!==id&&(this.state.moveForward=lastId=0?insertVal:len+val,insertVal=insertVal>=len?0:insertVal},setStyle:function(obj,style){var hasT=style.transform,t={x:hasT?style.transform.translateX:null,y:hasT?style.transform.translateY:null,scale:hasT?style.transform.scale:null,rotate:hasT?style.transform.rotate:null,rotateX:hasT?style.transform.rotateX:null,rotateY:hasT?style.transform.rotateY:null},x=t.x?"translateX("+t.x+"%)":"translateX(0)",y=t.y?"translateY("+t.y+"%)":"translateY(0)",s=t.scale?"scale("+t.scale+")":"scale(1)",r=t.rotate?"rotate("+t.rotate+"deg)":"rotate(0)",rX=t.rotateX?"rotateX("+t.rotateX+"deg)":"",rY=t.rotateY?"rotateY("+t.rotateY+"deg)":"",o=style.opacity,h=style.height,w=style.width,c="translateZ(0)"+x+y+s+r+rX+rY;c.length&&(obj.style.webkitTransform=c,obj.style.msTransform=c,obj.style.transform=c),"number"==typeof o&&(obj.style.opacity=o),h&&(obj.style.height=h+"%"),w&&(obj.style.width=w+"%")},setPos:function(){if(void 0!==this.slides){var id=this.state.id,i=0,len=this.slides.length,animation=this.animation[this.config.effect],axis=animation.axis,animNext=animation.next,animActi=animation.active,animPrev=animation.prev,perView=this.config.slidesPerView,slideId=null,style={};for(style.transform={};i div").outerHeight())}),$(this.container).height(height)},prepareTimeline:function(time){var timeProg,build,move,add,play,reverse,progress,kill,self=this,iteration=0,totalIter=time/(1e3/60),animLoop=[],aL=0,loops=1,ease=this.config.ease,len=this.slides.length,perView=this.config.slidesPerView,animation=this.animation[this.config.effect],animAxis=animation.axis,animNext=animation.next,animActi=animation.active,animPrev=animation.prev,style={},slideId=null,zIFlow=null;return style.transform={},build=function(repeats){var currentEase=ease;if(loops=repeats||loops){loops>1&&(currentEase="linearEase"),kill(),self.setPos();for(var id=self.state.id,moveForward=self.state.moveForward,i=0,axisMove=moveForward?-100:100;i<=perView;i+=1)slideId=(moveForward?i+id:i+id-1)%len,slideId=slideId<0?len+slideId:slideId,style=0===i?moveForward?animPrev:animActi:i===perView?moveForward?animActi:animNext:animActi,zIFlow=self.state.moveForward?animNext.zIndex:animPrev.zIndex,zIFlow&&(self.slides[slideId].style.zIndex="+"===zIFlow?i+1:len-i),style.transform["translate"+animAxis]=axisMove,add(self.slides[slideId],style,currentEase)}},add=function(slide,toStyles,ease){if(void 0===slide)throw"Add at least one slide";var fromStyles=slide.style,style=self.refStyle(toStyles,fromStyles);animLoop.push([slide,style,ease]),aL+=1},move=function(startProg,mode){if(!isTest){var currentTotalIter=totalIter;if(loops>1&&(currentTotalIter=totalIter/5),self.state.running||(self.state.running=!0),startProg&&(iteration=Math.ceil(startProg*currentTotalIter)),timeProg=iteration/currentTotalIter,progress(timeProg),iteration>=currentTotalIter&&"play"===mode||iteration<=0&&"reverse"===mode)return self.state.running=!1,iteration=0,kill(),self.updateId(self.state.moveForward?1:-1),loops-=1,loops>0&&(build(),play()),void(loops||(loops=1,self.timerRemaining=parseInt(self.config.displayTime),self.config.onAfterSlide(self.state.id)));"play"===mode?iteration+=1:iteration-=1,requestAnimationFrame(function(){self.state.stop||move(0,mode)})}},play=function(startProg){var $nextSlide=$(self.slides[self.nextId(self.state.moveForward?1:-1)]);if(self.config.lazyload&&self.config.edgeSlider){var $slideImg=$nextSlide.find("[data-mk-img-set]");$slideImg.length&&MK.component.BackgroundImageSetter.init($slideImg)}self.config.onBeforeSlide(self.nextId(self.state.moveForward?1:-1));var start=startProg||0;iteration=0,self.state.stop=!1,move(start,"play")},reverse=function(startProg){move(startProg||1,"reverse")},progress=function(progVal){var currentStyle,aI=0;for(aI;aI").attr("src",exactImg);self.imageLoader=imagesLoaded($bgImage[0],function(instance){$currentSlide.children(".mk-slider-spinner-wrap").addClass("mk-slider-spinner-wrap-hidden"),setTimeout(function(){$currentSlide.children(".mk-slider-spinner-wrap").hide()},200),$currentSlide.addClass(className)})}else if($currentSlide.find(".mk-section-video").length&&0===$currentSlide.children(".mk-video-section-touch").length)$currentSlide.children(".mk-slider-spinner-wrap").addClass("mk-slider-spinner-wrap-hidden"),setTimeout(function(){$currentSlide.children(".mk-slider-spinner-wrap").hide()},200),$currentSlide.addClass(className);else if($currentSlide.children("[data-mk-img-set]").length){var imgSet=$currentSlide.children("[data-mk-img-set]").data("mk-img-set"),exactImg=MK.component.BackgroundImageSetter.getImage(imgSet),$bgImage=$("").attr("src",exactImg);self.unsetTimer(),self.imageLoader=imagesLoaded($bgImage[0],function(instance){$currentSlide.children(".mk-slider-spinner-wrap").addClass("mk-slider-spinner-wrap-hidden"),setTimeout(function(){$currentSlide.children(".mk-slider-spinner-wrap").hide()},200),self.setTimer(!1,!1,$currentSlide.data("timer")||Number(self.config.displayTime)),$currentSlide.addClass(className)})}else $currentSlide.children(".mk-slider-spinner-wrap").addClass("mk-slider-spinner-wrap-hidden"),setTimeout(function(){$currentSlide.children(".mk-slider-spinner-wrap").hide()},200),self.setTimer(!1,!1,$currentSlide.data("timer")||Number(self.config.displayTime)),$currentSlide.addClass(className);else $currentSlide.addClass(className)},this.config.transitionTime)},createTimer:function(){var $slide=$(this),video=$slide.find("video").get(0);if(video)var interval=setInterval(function(){video.readyState>0&&($slide.data("timer",1e3*video.duration),$slide.attr("data-timer",1e3*video.duration),clearInterval(interval))},100)},setTimer:function(isFirst,isPaused,fixed_time){var create,run,customTimer=this.$slides.eq(this.nextId(this.state.moveForward?1:-1)).data("timer"),trans=parseInt(this.config.transitionTime),interval=customTimer||parseInt(this.config.displayTime),timer=interval+trans,self=this,first=isFirst||!0,fixed_time=fixed_time||0;this.timer=!0,this.lastSetTimer=Date.now(),create=function(){self.autoplay&&clearTimeout(self.autoplay),self.timer&&(self.state.moveForward=!0,self.timeline.build(),self.timeline.play(),self.setActive(self.nextId(1)),self.config.fluidHeight&&self.setHeight(self.nextId(1)),first=!1,self.lastSetTimer=Date.now(),run())},run=function(newInterval){customTimer=self.$slides.eq(self.nextId(self.state.moveForward?1:-1)).data("timer"),interval=customTimer||parseInt(self.config.displayTime),timer=interval+trans;var time=newInterval||timer;self.autoplay=setTimeout(create,time)},fixed_time?run(fixed_time):isPaused?run(this.timerRemaining):run()},unsetTimer:function(){this.timer=!1,this.lastUnsetTimer=Date.now(),this.timerRemaining-=this.lastUnsetTimer-this.lastSetTimer,this.autoplay&&clearTimeout(this.autoplay)},buildPagination:function(){for(var i=0,len=this.slides.length,tpl="";i'+this.config.paginationTpl+"";this.$pagination.html(tpl),this.setActive(0)},getSlideSize:function(){this.slideSize={X:100/this.config.slidesPerView,Y:100/this.config.slidesPerView}},getTransforms:function(style){var match,transform=style.transform||style.webkitTransform||style.mozTransform,regex=/(\w+)\(([^)]*)\)/g,T={};if("string"!=typeof transform)throw"Transform prop is not a string.";if(transform){for(;match=regex.exec(transform);)T[match[1]]=parseFloat(match[2]);return T}},isNode:function(o){return"object"==typeof Node?o instanceof Node:o&&"object"==typeof o&&"number"==typeof o.nodeType&&"string"==typeof o.nodeName},dragHandler:function(){var dragStart,dragMove,dragEnd,progress,self=this,$container=$(this.container),prevBuild=!1,nextBuild=!1,dragging=!1;progress=function(moveX){return moveX/self.val.viewportW()},dragStart=function(moveX,startX){},dragMove=function(moveX){self.state.running||(moveX<-5?(nextBuild?self.timeline.progress(-progress(moveX)):(self.state.moveForward=!0,self.timeline.build(),nextBuild=!0,prevBuild=!1,self.unsetTimer()),dragging=!0):moveX>5&&(prevBuild?self.timeline.progress(progress(moveX)):(self.state.moveForward=!1,self.timeline.build(),prevBuild=!0,nextBuild=!1,self.unsetTimer()),dragging=!0))},dragEnd=function(moveX){if(dragging){var prog=progress(moveX),absProg=prog<0?-prog:prog;absProg>.1?(self.timeline.play(absProg),self.setActive(self.nextId(prog<0?1:-1)),self.config.fluidHeight&&self.setHeight(self.nextId(prog<0?1:-1))):(self.timeline.reverse(absProg),prog<0?self.updateId(-1):self.updateId(1)),prevBuild=!1,nextBuild=!1,dragging=!1,self.config.autoplay&&self.setTimer(!1)}},this.drag($container,dragStart,dragMove,dragEnd)},drag:function($el,startFn,moveFn,stopFn){var touchX,movX,evt,prevent,start,move,stop;prevent=function(e){e.preventDefault()},start=function(e){$el.on("mousemove",prevent),$el.on("touchmove",move),$el.on("mousemove",move),evt="touchstart"===e.type?e.originalEvent.touches[0]:e,touchX=evt.pageX,"function"==typeof startFn&&startFn(movX,touchX)},move=function(e){evt="touchmove"===e.type?e.originalEvent.touches[0]:e,movX=evt.pageX-touchX,"function"==typeof moveFn&&moveFn(movX)},stop=function(e){ $el.off("mousemove",prevent),$el.off("touchmove",move),$el.off("mousemove",move),"function"==typeof stopFn&&stopFn(movX)},$el.on("touchstart",start),$el.on("mousedown",start),$el.on("touchend",stop),$el.on("touchleave",stop),$el.on("touchcancel",stop),$el.on("mouseup",stop),$el.on("mouseleave",stop)},dynamicVal:function(){var update,getViewportW,viewportW,$window=$(window);return update=function(){viewportW=$window.width()},getViewportW=function(){return viewportW},update(),$window.on("load",update),$window.on("resize",update),{viewportW:getViewportW}}},MK.ui.Slider.prototype.animation={slide:{axis:"X",next:{transform:{}},active:{transform:{}},prev:{transform:{}}},vertical_slide:{axis:"Y",next:{transform:{}},active:{transform:{}},prev:{transform:{}}},perspective_flip:{axis:"Y",next:{transform:{rotateX:80}},active:{transform:{rotateX:0}},prev:{transform:{rotateX:0}}},zoom:{axis:"Z",next:{opacity:0,transform:{scale:.9}},active:{opacity:1,transform:{scale:1}},prev:{opacity:0,transform:{scale:1.1}}},fade:{axis:"Z",next:{opacity:0,transform:{}},active:{opacity:1,transform:{}},prev:{opacity:0,transform:{}}},kenburned:{axis:"Z",next:{opacity:0,transform:{}},active:{opacity:1,transform:{}},prev:{opacity:0,transform:{}}},zoom_out:{axis:"Z",next:{zIndex:"+",opacity:1,transform:{translateY:100,scale:1}},active:{opacity:1,transform:{translateY:0,scale:1}},prev:{zIndex:"+",opacity:0,transform:{translateY:0,scale:.5}}},horizontal_curtain:{axis:"Z",next:{zIndex:"+",transform:{translateX:100}},active:{transform:{translateX:0}},prev:{zIndex:"+",transform:{translateX:-70}}},roulete:{axis:"X",next:{opacity:.5,transform:{scale:.5,rotate:10,translateY:20}},active:{opacity:1,transform:{scale:1,rotate:0,translateY:0}},prev:{opacity:.3,transform:{scale:.5,rotate:-10,translateY:20}}}},MK.ui.Slider.prototype.ease={linearEase:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*currentIteration/totalIterations+startValue},easeInQuad:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*(currentIteration/=totalIterations)*currentIteration+startValue},easeOutQuad:function(currentIteration,startValue,changeInValue,totalIterations){return-changeInValue*(currentIteration/=totalIterations)*(currentIteration-2)+startValue},easeInOutQuad:function(currentIteration,startValue,changeInValue,totalIterations){return(currentIteration/=totalIterations/2)<1?changeInValue/2*currentIteration*currentIteration+startValue:-changeInValue/2*(--currentIteration*(currentIteration-2)-1)+startValue},easeInCubic:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*Math.pow(currentIteration/totalIterations,3)+startValue},easeOutCubic:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*(Math.pow(currentIteration/totalIterations-1,3)+1)+startValue},easeInOutCubic:function(currentIteration,startValue,changeInValue,totalIterations){return(currentIteration/=totalIterations/2)<1?changeInValue/2*Math.pow(currentIteration,3)+startValue:changeInValue/2*(Math.pow(currentIteration-2,3)+2)+startValue},easeInQuart:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*Math.pow(currentIteration/totalIterations,4)+startValue},easeOutQuart:function(currentIteration,startValue,changeInValue,totalIterations){return-changeInValue*(Math.pow(currentIteration/totalIterations-1,4)-1)+startValue},easeInOutQuart:function(currentIteration,startValue,changeInValue,totalIterations){return(currentIteration/=totalIterations/2)<1?changeInValue/2*Math.pow(currentIteration,4)+startValue:-changeInValue/2*(Math.pow(currentIteration-2,4)-2)+startValue},easeInQuint:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*Math.pow(currentIteration/totalIterations,5)+startValue},easeOutQuint:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*(Math.pow(currentIteration/totalIterations-1,5)+1)+startValue},easeInOutQuint:function(currentIteration,startValue,changeInValue,totalIterations){return(currentIteration/=totalIterations/2)<1?changeInValue/2*Math.pow(currentIteration,5)+startValue:changeInValue/2*(Math.pow(currentIteration-2,5)+2)+startValue},easeInSine:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*(1-Math.cos(currentIteration/totalIterations*(Math.PI/2)))+startValue},easeOutSine:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*Math.sin(currentIteration/totalIterations*(Math.PI/2))+startValue},easeInOutSine:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue/2*(1-Math.cos(Math.PI*currentIteration/totalIterations))+startValue},easeInExpo:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*Math.pow(2,10*(currentIteration/totalIterations-1))+startValue},easeOutExpo:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*(1-Math.pow(2,-10*currentIteration/totalIterations))+startValue},easeInOutExpo:function(currentIteration,startValue,changeInValue,totalIterations){return(currentIteration/=totalIterations/2)<1?changeInValue/2*Math.pow(2,10*(currentIteration-1))+startValue:changeInValue/2*(2-Math.pow(2,-10*--currentIteration))+startValue},easeInCirc:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*(1-Math.sqrt(1-(currentIteration/=totalIterations)*currentIteration))+startValue},easeOutCirc:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*Math.sqrt(1-(currentIteration=currentIteration/totalIterations-1)*currentIteration)+startValue},easeInOutCirc:function(currentIteration,startValue,changeInValue,totalIterations){return(currentIteration/=totalIterations/2)<1?changeInValue/2*(1-Math.sqrt(1-currentIteration*currentIteration))+startValue:changeInValue/2*(Math.sqrt(1-(currentIteration-=2)*currentIteration)+1)+startValue}}}(jQuery),function($){"use strict";MK.component.SocialShare=function(el){var networks={twitter:"http://twitter.com/intent/tweet?text={title} {url}",pinterest:"http://pinterest.com/pin/create/button/?url={url}&media={image}&description={title}",facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",googleplus:"https://plus.google.com/share?url={url}",linkedin:"http://www.linkedin.com/shareArticle?mini=true&url={url}&title={title}&summary={desc}",digg:"http://digg.com/submit?url={url}&title={title}",reddit:"http://reddit.com/submit?url={url}&title={title}"};this.networks=networks,this.el=el},MK.component.SocialShare.prototype={init:function(){this.cacheElements(),this.bindEvents()},cacheElements:function(){this.$this=$(this.el)},bindEvents:function(){var thisObject=this;$.each(this.networks,function(key,value){thisObject.$tempClass=$("."+key+"-share"),thisObject.$tempClass.click(thisObject.openSharingDialog.bind(self,this,key))})},openSharingDialog:function(url,site,args){var urlWrapper=url,rx=new RegExp("{[a-z]*}","g");for(match=rx.exec(url);null!=match;){var pureAttr=match[0].replace("{","").replace("}",""),attValue=$(args.currentTarget).attr("data-"+pureAttr);void 0!==attValue&&null!==attValue||(attValue=""),attValue=attValue.replace("#","%23"),urlWrapper=urlWrapper.replace(match,attValue),match=rx.exec(url)}window.open(urlWrapper,site+"Window","height=320,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0")}};var $body=$("body");$body.length&&$body.each(function(){new MK.component.SocialShare(this).init()})}(jQuery),function($){"use strict";MK.component.Sortable=function(el){this.el=el},MK.component.Sortable.prototype={init:function(){this.cacheElements(),this.bindEvents()},cacheElements:function(){this.unique=Date.now(),this.$filter=$(this.el),this.config=this.$filter.data("sortable-config"),this.ajaxLoader=new MK.utils.ajaxLoader(this.config.container),this.ajaxLoader.init(),this.$container=$(this.config.container),this.$navItems=this.$filter.find("a"),this.$filterItems=this.$container.find(this.config.item)},bindEvents:function(){this.$navItems.on("click",this.handleClick.bind(this)),MK.utils.eventManager.subscribe("ajaxLoaded",this.onLoad.bind(this))},handleClick:function(e){e.preventDefault();var $item=$(e.currentTarget),term=$item.data("filter");this.$navItems.removeClass("current"),$item.addClass("current"),"ajax"===this.config.mode?this.inDB(term,$item):this.inPage(term)},inDB:function(term,$item){MK.ui.loader.remove(this.$filter),MK.ui.loader.add($item),this.$container.siblings(".mk-ajax-loaded-posts").length&&this.$container.siblings(".mk-ajax-loaded-posts").attr("data-loop-loaded-posts",""),this.ajaxLoader.setData({paged:1,term:term}),this.ajaxLoader.load(this.unique)},inPage:function(term){var $filterItems=this.$container.find(this.config.item);$filterItems.removeClass("is-hidden"),"*"!==term&&$filterItems.not("."+term).addClass("is-hidden"),MK.utils.eventManager.publish("staticFilter")},onLoad:function(e,response){"static"===this.config.mode&&this.$navItems.removeClass("current").first().addClass("current"),void 0!==response&&response.id===this.config.container&&(MK.ui.loader.remove(this.$filter),response.unique===this.unique&&(this.$container.html(response.content),this.ajaxLoader.setData({paged:1})))}}}(jQuery),function($){"use strict";MK.component.Tabs=function(el){var defaults={activeClass:"is-active"};this.config=defaults,this.el=el},MK.component.Tabs.prototype={init:function(){this.cacheElements(),this.bindEvents()},cacheElements:function(){this.$this=$(this.el),this.$tabs=this.$this.find(".mk-tabs-tab"),this.$panes=this.$this.find(".mk-tabs-pane"),this.currentId=0},bindEvents:function(){this.$tabs.on("click",this.switchPane.bind(this))},switchPane:function(evt){evt.preventDefault();var clickedId=$(evt.currentTarget).index();this.hide(this.currentId),this.show(clickedId),this.currentId=clickedId,MK.utils.eventManager.publish("item-expanded")},show:function(id){this.$tabs.eq(id).addClass(this.config.activeClass),this.$panes.eq(id).addClass(this.config.activeClass)},hide:function(id){this.$tabs.eq(id).removeClass(this.config.activeClass),this.$panes.eq(id).removeClass(this.config.activeClass)}}}(jQuery),function($){"use strict";function toggle(e){e.preventDefault(),e.stopPropagation();var $this=$(e.currentTarget);$this.hasClass("mk-toggle-active")?($(".mk-box-to-trigger").fadeOut(200),$this.removeClass("mk-toggle-active")):($(".mk-box-to-trigger").fadeOut(200),$this.parent().find(".mk-box-to-trigger").fadeIn(250),$(".mk-toggle-trigger").removeClass("mk-toggle-active"),$this.addClass("mk-toggle-active"))}function assignToggle(){setTimeout(function(){$(".mk-toggle-trigger").off("click",toggle),$(".mk-toggle-trigger").on("click",toggle)},100)}$(document).on("click",function(e){$(".mk-toggle-trigger").removeClass("mk-toggle-active")}),assignToggle(),MK.utils.eventManager.subscribe("ajaxLoaded",assignToggle),MK.utils.eventManager.subscribe("ajax-preview",assignToggle)}(jQuery),function($){"use strict";$("iframe").each(function(){var $iframe=$(this);"P"===$iframe.parent().get(0).tagName&&$iframe.wrap('
    ')})}(jQuery),function($){"use strict";if(MK.utils.isMobile())return void $(".mk-animate-element").removeClass("mk-animate-element");var $rootLevelEls=$(".js-master-row, .widget"),init=function(){$rootLevelEls.each(spyViewport),$rootLevelEls.each(function(){$(this).find(".mk-animate-element").each(spyViewport)})},spyViewport=function(i){var self=this;MK.utils.scrollSpy(this,{position:"bottom",threshold:200,after:function(){animate.call(self,i)}})},animate=function(i){var $this=$(this);setTimeout(function(){$this.addClass("mk-in-viewport")},100*i)};$(window).on("load",init)}(jQuery),function($){"use strict";function smoothScrollToAnchor(evt){var anchor=MK.utils.detectAnchor(this),$this=$(evt.currentTarget),loc=window.location,currentPage=loc.origin+loc.pathname,href=$this.attr("href"),linkSplit=href?href.split("#"):"",hrefPage=linkSplit[0]?linkSplit[0]:"";linkSplit[1]&&linkSplit[1];anchor.length?(hrefPage!==currentPage&&""!==hrefPage||evt.preventDefault(),MK.utils.scrollToAnchor(anchor)):"#"===$this.attr("href")&&evt.preventDefault()}$(window).on("load",function(){MK.core.initAll(document),MK.utils.scrollToURLHash(),setTimeout(function(){MK.ui.preloader.hide(),$(".mk-preloader").hide(),$("body").removeClass("loading")},150)}),$(document).on("click",".js-smooth-scroll, .js-main-nav a",smoothScrollToAnchor),$(".side_dashboard_menu a").on("click",smoothScrollToAnchor)}(jQuery)}(jQuery),function($){"use strict";var _toBuild=[];MK.component.AdvancedGMaps=function(el){var $this=$(el),container=document.getElementById("mk-theme-container"),data=$this.data("advancedgmaps-config"),apikey=!!data.options.apikey&&"key="+data.options.apikey+"&",map=null,bounds=null,infoWindow=null,position=null,build=function(){data.options.scrollwheel=!1,data.options.mapTypeId=google.maps.MapTypeId[data.options.mapTypeId],data.options.styles=data.style,bounds=new google.maps.LatLngBounds,map=new google.maps.Map(el,data.options),infoWindow=new google.maps.InfoWindow,map.setOptions({panControl:data.options.panControl,draggable:data.options.draggable,zoomControl:data.options.zoomControl,mapTypeControl:data.options.scaleControl,scaleControl:data.options.mapTypeControl});var marker,i;for(map.setTilt(45),i=0;i1?(infoWindow.setContent('

    '+data.places[i].address+"

    "),infoWindow.open(map,marker)):(infoWindow.setContent(""),infoWindow.close())}}(marker,i)),map.fitBounds(bounds));var boundsListener=google.maps.event.addListener(map,"bounds_changed",function(event){this.setZoom(data.options.zoom),google.maps.event.removeListener(boundsListener)}),update=function(){google.maps.event.trigger(map,"resize"),map.setCenter(position)};update();!function(){$(window).on("resize",update),window.addResizeListener(container,update)}()},initAll=function(){for(var i=0,l=_toBuild.length;i .mk-banner-slide",animation:data.animation,smoothHeight:!1,direction:"horizontal",slideshow:!0,slideshowSpeed:data.slideshowSpeed,animationSpeed:data.animationSpeed,pauseOnHover:!0,directionNav:data.directionNav,controlNav:!1,initDelay:2e3,prevText:"",nextText:"",pauseText:"",playText:""})})}}}}(jQuery),function($){"use strict";var zIndex=0;$(".mk-newspaper-wrapper").on("click",".blog-loop-comments",function(event){event.preventDefault();var $this=$(event.currentTarget);$this.parents(".mk-blog-newspaper-item").css("z-index",++zIndex),$this.parents(".newspaper-item-footer").find(".newspaper-social-share").slideUp(200).end().find(".newspaper-comments-list").slideDown(200),setTimeout(function(){MK.utils.eventManager.publish("item-expanded")},300)}),$(".mk-newspaper-wrapper").on("click",".newspaper-item-share",function(event){event.preventDefault();var $this=$(event.currentTarget);$this.parents(".mk-blog-newspaper-item").css("z-index",++zIndex),$this.parents(".newspaper-item-footer").find(".newspaper-comments-list").slideUp(200).end().find(".newspaper-social-share").slideDown(200),setTimeout(function(){MK.utils.eventManager.publish("item-expanded")},300)});var $blog=$(".mk-blog-container"),$imgs=$blog.find("img[data-mk-image-src-set]");$blog.hasClass("mk-blog-container-lazyload")&&$imgs.length?($(window).on("scroll.mk_blog_lazyload",MK.utils.throttle(500,function(){$imgs.each(function(index,elem){MK.utils.isElementInViewport(elem)&&(MK.component.ResponsiveImageSetter.init($(elem)),$imgs=$imgs.not($(elem)))})})),$(window).trigger("scroll.mk_blog_lazyload"),MK.component.ResponsiveImageSetter.onResize($imgs)):(MK.component.ResponsiveImageSetter.init($imgs),MK.component.ResponsiveImageSetter.onResize($imgs))}(jQuery),function($){"use strict";var core=MK.core,path=MK.core.path;MK.component.Category=function(el){var blurImage=function($item){return $item.each(function(){var $_this=$(this),img=$_this.find(".item-thumbnail");img.clone().addClass("blur-effect item-blur-thumbnail").removeClass("item-thumbnail").prependTo(this);var blur_this=$(".blur-effect",this);blur_this.each(function(index,element){!0===img[index].complete?Pixastic.process(blur_this[index],"blurfast",{amount:.5}):blur_this.load(function(){Pixastic.process(blur_this[index],"blurfast",{amount:.5})})})})},masonry=function(){function grid(){minigrid({container:".js-masonry",item:".js-masonry-item",gutter:0})}$(".js-masonry").length&&(grid(),$(window).on("resize",grid))};return{init:function(){core.loadDependencies([path.plugins+"pixastic.js"],function(){blurImage($(".blur-image-effect .mk-loop-item .item-holder "))}),core.loadDependencies([path.plugins+"minigrid.js"],masonry)}}}}(jQuery),function($){"use strict";var core=MK.core;core.path;MK.component.Chart=function(el){return{init:function(){MK.core.loadDependencies([MK.core.path.plugins+"jquery.easyPieChart.js"],function(){$(".mk-chart__chart").each(function(){var $this=$(this),$parent_width=$(this).parent().width(),$chart_size=parseInt($this.attr("data-barSize"));$parent_width<$chart_size&&($chart_size=$parent_width,$this.css("line-height",$chart_size),$this.find("i").css({"line-height":$chart_size+"px"}),$this.css({"line-height":$chart_size+"px"}));var build=function(){$this.easyPieChart({animate:1300,lineCap:"butt",lineWidth:$this.attr("data-lineWidth"),size:$chart_size,barColor:$this.attr("data-barColor"),trackColor:$this.attr("data-trackColor"),scaleColor:"transparent",onStep:function(value){this.$el.find(".chart-percent span").text(Math.ceil(value))}})};MK.utils.scrollSpy(this,{position:"bottom",after:build})})})}}}}(jQuery),function($){"use strict";$(".mk-clients.column-style").each(function(){function recreateGrid(){var i;if($listItems.unwrap(),window.matchMedia("(max-width: 550px)").matches&&fullRowColumnsCount>=1)for(i=0;i');else if(window.matchMedia("(max-width: 767px)").matches&&fullRowColumnsCount>=2)for(i=0;i');else if(window.matchMedia("(max-width: 960px)").matches&&fullRowColumnsCount>=3)for(i=0;i');else for(i=0;i')}var $group=$(this),$listItems=$group.find("li"),listItemsCount=$listItems.length,listStyle=$group.find("ul").attr("style")||"",fullRowColumnsCount=$group.find("ul:first-of-type li").length;recreateGrid(),$(window).on("resize",recreateGrid)})}(jQuery),function($){"use strict";$(".mk-edge-slider").find("video").each(function(){this.pause(),this.currentTime=0}),MK.component.EdgeSlider=function(el){var self=this,$this=$(el),$window=$(window),$wrapper=$this.parent(),config=$this.data("edgeslider-config"),$nav=$(config.nav),$prev=$nav.find(".mk-edge-prev"),$prevTitle=$prev.find(".nav-item-caption"),$prevBg=$prev.find(".edge-nav-bg"),$next=$nav.find(".mk-edge-next"),$nextTitle=$next.find(".nav-item-caption"),$nextBg=$next.find(".edge-nav-bg"),$navBtns=$nav.find("a"),$pagination=$(".swiper-pagination"),$skipBtn=$(".edge-skip-slider"),$opacityLayer=$this.find(".edge-slide-content"),$videos=$this.find("video"),currentSkin=null,currentPoint=null,winH=null,opacity=null,offset=null,callbacks={onInitialize:function(slides){self.$slides=$(slides),self.slideContents=$.map(self.$slides,function(slide){var $slide=$(slide),title=$slide.find(".edge-slide-content .edge-title").first().text();return{skin:$slide.attr("data-header-skin"),title:title,image:$slide.find(".mk-section-image").attr("data-thumb")||$slide.find(".mk-video-section-touch").attr("data-thumb"),bgColor:$slide.find(".mk-section-image").css("background-color")}}),MK.utils.isSmoothScroll&&$this.css("position","fixed"),setNavigationContent(1,self.$slides.length-1),setSkin(0),playVideo(0),setTimeout(function(){$(".edge-slider-loading").fadeOut("100")},1e3)},onBeforeSlide:function(id){},onAfterSlide:function(id){setNavigationContent(nextFrom(id),prevFrom(id)),setSkin(id),stopVideos(),playVideo(id)}},nextFrom=function(id){return id+1===self.$slides.length?0:id+1},prevFrom=function(id){return id-1==-1?self.$slides.length-1:id-1},setNavigationContent=function(nextId,prevId){self.slideContents[prevId]&&($prevTitle.text(self.slideContents[prevId].title),$prevBg.css("background","none"!==self.slideContents[prevId].image?"url("+self.slideContents[prevId].image+")":self.slideContents[prevId].bgColor)),self.slideContents[nextId]&&($nextTitle.text(self.slideContents[nextId].title),$nextBg.css("background","none"!==self.slideContents[nextId].image?"url("+self.slideContents[nextId].image+")":self.slideContents[nextId].bgColor))},setSkin=function(id){currentSkin=self.slideContents[id].skin,$navBtns.attr("data-skin",currentSkin),$pagination.attr("data-skin",currentSkin),$skipBtn.attr("data-skin",currentSkin),self.config.firstEl&&MK.utils.eventManager.publish("firstElSkinChange",currentSkin)},stopVideos=function(){$videos.each(function(){this.pause(),this.currentTime=0})},playVideo=function(id){var video=self.$slides.eq(id).find("video").get(0);video&&(video.play(),console.log("play video in slide nr "+id))},onResize=function(){var height=$wrapper.height();$this.height(height);var width=$wrapper.width();$this.width(width),winH=$window.height(),offset=$this.offset().top,MK.utils.isSmoothScroll&&(MK.utils.isResponsiveMenuState()?($this.css({"-webkit-transform":"translateZ(0)","-moz-transform":"translateZ(0)","-ms-transform":"translateZ(0)","-o-transform":"translateZ(0)",transform:"translateZ(0)",position:"absolute"}),$opacityLayer.css({opacity:1})):onScroll())},onScroll=function(){currentPoint=-MK.val.scroll(),offset+currentPoint<=0&&(opacity=1+(offset+currentPoint)/winH*2,opacity=Math.min(opacity,1),opacity=Math.max(opacity,0),$opacityLayer.css({opacity:opacity})),$this.css({"-webkit-transform":"translateY("+currentPoint+"px) translateZ(0)","-moz-transform":"translateY("+currentPoint+"px) translateZ(0)","-ms-transform":"translateY("+currentPoint+"px) translateZ(0)","-o-transform":"translateY("+currentPoint+"px) translateZ(0)",transform:"translateY("+currentPoint+"px) translateZ(0)",position:"fixed"})};onResize(),$window.on("load",onResize),$window.on("resize",onResize),window.addResizeListener($wrapper.get(0),onResize),MK.utils.isSmoothScroll&&(onScroll(),$window.on("scroll",function(){MK.utils.isResponsiveMenuState()||window.requestAnimationFrame(onScroll)})),this.el=el,this.config=$.extend(config,callbacks),this.slideContents=null,this.config.edgeSlider=!0},MK.component.EdgeSlider.prototype={init:function(){new MK.ui.Slider(this.el,this.config).init()}}}(jQuery),function($){"use strict";$(".mk-faq-wrapper").each(function(){function filterItems(cat){if(""===cat)return void $faq.slideDown(200).removeClass("hidden");$faq.not("."+cat).slideUp(200).addClass("hidden"),$faq.filter("."+cat).slideDown(200).removeClass("hidden")}var $this=$(this),$filter=$this.find(".filter-faq"),$filterItem=$filter.find("a"),$faq=$this.find(".mk-faq-container > div"),currentFilter="";$filterItem.on("click",function(e){var $this=$(this);currentFilter=$this.data("filter"),$filterItem.removeClass("current"),$this.addClass("current"),filterItems(currentFilter),e.preventDefault()})})}(jQuery),jQuery(function($){"use strict";var $gallery=$(".mk-gallery"),$imgs=$gallery.find("img[data-mk-image-src-set]");$gallery.hasClass("mk-gallery-lazyload")&&$imgs.length?($(window).on("scroll.mk_gallery_lazyload",MK.utils.throttle(500,function(){$imgs.each(function(index,elem){MK.utils.isElementInViewport(elem)&&(MK.component.ResponsiveImageSetter.init($(elem)),$imgs=$imgs.not($(elem)))})})),$(window).trigger("scroll.mk_gallery_lazyload"),MK.component.ResponsiveImageSetter.onResize($imgs)):(MK.component.ResponsiveImageSetter.init($imgs),MK.component.ResponsiveImageSetter.onResize($imgs))}),function($){"use strict";$(".js-header-shortcode").each(function(){var $this=$(this),$parent_page_section=$this.parents(".mk-page-section");$parent_page_section.attr("id")&&$this.detach().appendTo($parent_page_section),$this.parent().css("z-index",99999)})}(jQuery),function($){"use strict";function mk_section_intro_effects(){if(MK.utils.isMobile())$(".mk-page-section.intro-true").each(function(){$(this).attr("data-intro-effect","")});else{if(!$.exists(".mk-page-section.intro-true"))return;$(".mk-page-section.intro-true").each(function(){var that=this;MK.core.loadDependencies([MK.core.path.plugins+"jquery.sectiontrans.js",MK.core.path.plugins+"tweenmax.js"],function(){var $this=$(that),$pageCnt=$this.parent().nextAll("div"),windowHeight=$(window).height(),effectName=$this.attr("data-intro-effect"),$header=$(".mk-header"),effect={fade:new TimelineLite({paused:!0}).set($pageCnt,{opacity:0,y:.3*windowHeight}).to($this,1,{opacity:0,ease:Power2.easeInOut}).to($pageCnt,1,{opacity:1,y:0,ease:Power2.easeInOut},"-=.7").set($this,{zIndex:"-1"}),zoom_out:new TimelineLite({paused:!0}).set($pageCnt,{opacity:0,y:.3*windowHeight}).to($this,1.5,{opacity:.8,scale:.8,y:-windowHeight-100,ease:Strong.easeInOut}).to($pageCnt,1.5,{opacity:1,y:0,ease:Strong.easeInOut},"-=1.3"),shuffle:new TimelineLite({paused:!0}).to($this,1.5,{y:-windowHeight/2,ease:Strong.easeInOut}).to($pageCnt.first(),1.5,{paddingTop:windowHeight/2,ease:Strong.easeInOut},"-=1.3")};console.log($pageCnt),$this.sectiontrans({effect:effectName}),$this.hasClass("shuffled")&&(TweenLite.set($this,{y:-windowHeight/2}),TweenLite.set($this.nextAll("div").first(),{paddingTop:windowHeight/2})),$("body").on("page_intro",function(){MK.utils.scroll.disable(),$(this).data("intro",!0),effect[effectName].play(),setTimeout(function(){$header.addClass("pre-sticky"),$header.addClass("a-sticky"),$(".mk-header-padding-wrapper").addClass("enable-padding"),$("body").data("intro",!1),"shuffle"===effectName&&$this.addClass("shuffled")},1e3),setTimeout(MK.utils.scroll.enable,1500)}),$("body").on("page_outro",function(){MK.utils.scroll.disable(),$(this).data("intro",!0),effect[effectName].reverse(),setTimeout(function(){$header.removeClass("pre-sticky"),$header.removeClass("a-sticky"),$(".mk-header-padding-wrapper").removeClass("enable-padding"),$("body").data("intro",!1),$this.hasClass("shuffled")&&$this.removeClass("shuffled")},1e3),setTimeout(MK.utils.scroll.enable,1500)})})})}}function mk_section_adaptive_height(){$(".mk-page-section.mk-adaptive-height").each(function(){var imageHeight=$(this).find(".mk-adaptive-image").height();$(this).css("height",imageHeight)})}function mk_section_half_layout(){$(".mk-page-section.half_boxed").each(function(){var $section=$(this);if($(window).width()>mk_grid_width){var margin=($(window).width()-mk_grid_width)/2,$section_inner=$section.find(".mk-half-layout-inner");$section.hasClass("half_left_layout")&&$section_inner.css({marginRight:margin+"px"}),$section.hasClass("half_right_layout")&&$section_inner.css({marginLeft:margin+"px"})}})}mk_section_intro_effects();var debounceResize=null;$(window).on("resize",function(){null!==debounceResize&&clearTimeout(debounceResize),debounceResize=setTimeout(mk_section_intro_effects,300)}),$(window).on("load resize",mk_section_adaptive_height) ;var $allLayers=$(".mk-page-section .background-layer").filter(function(index){var isLazyLoad="true"===$(this).attr("data-mk-lazyload");return isLazyLoad||MK.component.BackgroundImageSetter.init($(this)),isLazyLoad});$allLayers.length&&($(window).on("scroll.mk_page_section_lazyload",MK.utils.throttle(500,function(){$allLayers.each(function(index,elem){MK.utils.isElementInViewport(elem)&&(MK.component.BackgroundImageSetter.init($(elem)),$allLayers=$allLayers.not($(elem)))})})),$(window).trigger("scroll.mk_page_section_lazyload"),MK.component.BackgroundImageSetter.onResize($allLayers)),$(window).on("load resize",mk_section_half_layout)}(jQuery),function($){"use strict";function mk_page_title_parallax(){MK.utils.isMobile()||"false"===mk_smooth_scroll||$(".mk-effect-wrapper").each(function(){var progressVal,currentPoint,$this=$(this),ticking=!1,scrollY=MK.val.scroll(),$window=$(window),parentHeight=($(window).height(),$this.outerHeight()),endPoint=$this.offset().top+parentHeight,effectLayer=$this.find(".mk-effect-bg-layer"),gradientLayer=effectLayer.find(".mk-effect-gradient-layer"),cntLayer=$this.find(".mk-page-title-box-content"),animation=effectLayer.attr("data-effect"),top=$this.offset().top,height=$this.outerHeight();"parallax"==animation&&function(){var gap=.7*top;effectLayer.css({height:height+gap+"px",top:-gap+"px"})}();var animationSet=function(){if(scrollY=MK.val.scroll(),"parallax"==animation&&(currentPoint=.7*(0+scrollY),effectLayer.get(0).style.transform="translateY("+currentPoint+"px)"),"parallaxZoomOut"==animation){console.log(effectLayer),currentPoint=.7*(0+scrollY),progressVal=1/(endPoint-0)*(scrollY-0);var zoomCalc=1.3-(1.3-1)*progressVal;effectLayer.get(0).style.transform="translateY("+currentPoint+"px) scale("+zoomCalc+")"}"gradient"==animation&&(progressVal=1/(endPoint-0)*(scrollY-0),gradientLayer.css({opacity:2*progressVal})),"gradient"!=animation&&(progressVal=1/(endPoint-0)*(scrollY-0),cntLayer.css({opacity:1-4*progressVal})),ticking=!1};animationSet();var requestTick=function(){ticking||(window.requestAnimationFrame(animationSet),ticking=!0)};$window.off("scroll",requestTick),$window.on("scroll",requestTick)})}var $window=$(window),debounceResize=null;$window.on("load",mk_page_title_parallax),$window.on("resize",function(){null!==debounceResize&&clearTimeout(debounceResize),debounceResize=setTimeout(mk_page_title_parallax,300)})}(jQuery),function($){"use strict";var utils=MK.utils,core=MK.core,path=MK.core.path;MK.component.PhotoAlbum=function(el){this.album=el,this.initialOpen=!1},MK.component.PhotoAlbum.prototype={dom:{gallery:".slick-slider-wrapper",title:".slick-title",galleryContainer:".slick-slides",closeBtn:".slick-close-icon",thumbList:".slick-dots",thumbs:".slick-dots li",imagesData:"photoalbum-images",titleData:"photoalbum-title",idData:"photoalbum-id",urlData:"photoalbum-url",activeClass:"is-active"},tpl:{gallery:"#tpl-photo-album",slide:'
    '},init:function(){this.cacheElements(),this.bindEvents(),this.openByLink()},cacheElements:function(){this.$album=$(this.album),this.imagesSrc=this.$album.data(this.dom.imagesData),this.albumLength=this.imagesSrc.length,this.title=this.$album.data(this.dom.titleData),this.id=this.$album.data(this.dom.idData),this.url=this.$album.data(this.dom.urlData),this.images=[]},bindEvents:function(){this.$album.not('[data-photoalbum-images="[null]"]').on("click",this.albumClick.bind(this)),$(document).on("click",this.dom.closeBtn,this.closeClick.bind(this)),$(window).on("resize",this.thumbsVisibility.bind(this)),$(window).on("resize",this.makeArrows.bind(this))},albumClick:function(e){e.preventDefault(),this.open(),MK.ui.loader.add(this.album)},closeClick:function(e){e.preventDefault(),this.slider&&(this.removeGallery(),this.slider.exitFullScreen())},thumbsVisibility:function(){this.thumbsWidth&&(window.matchMedia("(max-width:"+(this.thumbsWidth+260)+"px)").matches?this.hideThumbs():this.showThumbs())},hideThumbs:function(){this.$thumbList&&this.$thumbList.hide()},showThumbs:function(){this.$thumbList&&this.$thumbList.show()},open:function(){var self=this;core.loadDependencies([path.plugins+"slick.js"],function(){self.createGallery(),self.loadImages()})},createGallery:function(){if(!$(this.dom.gallery).length){var tpl=$(this.tpl.gallery).eq(0).html();$("body").append(tpl)}this.$gallery=$(this.dom.gallery),this.$closeBtn=$(this.dom.closeBtn)},createSlideshow:function(){var self=this;this.slider=new MK.ui.FullScreenGallery(this.dom.galleryContainer,{id:this.id,url:this.url}),this.slider.init(),$(window).trigger("resize"),this.makeArrows(),this.$thumbList=$(this.dom.thumbList),this.$thumbs=$(this.dom.thumbs),this.thumbsWidth=95*this.$thumbs.length,this.thumbsVisibility(),setTimeout(function(){MK.ui.loader.remove(self.album)},100),MK.utils.eventManager.publish("photoAlbum-open")},makeArrows:function(){this.arrowsTimeout&&clearTimeout(this.arrowsTimeout),this.arrowsTimeout=setTimeout(function(){var $prev=$(".slick-prev").find("svg"),$next=$(".slick-next").find("svg");$prev.wrap('
    '),$next.wrap('
    '),matchMedia("(max-width: 1024px)").matches?($prev.attr({width:12,height:22}).find("polyline").attr("points","12,0 0,11 12,22"),$next.attr({width:12,height:22}).find("polyline").attr("points","0,0 12,11 0,22")):($prev.attr({width:33,height:65}).find("polyline").attr("points","0.5,0.5 32.5,32.5 0.5,64.5"),$next.attr({width:33,height:65}).find("polyline").attr("points","0.5,0.5 32.5,32.5 0.5,64.5"))},0)},loadImages:function(){var self=this,n=0;this.images.length?this.onLoad(this.albumLength):this.imagesSrc.forEach(function(src){if(null!==src){var img=new Image;img.onload=function(){self.onLoad(n+=1)},img.src=src,self.images.push(img)}})},onLoad:function(n){n===this.albumLength&&(this.insertImages(),this.showGallery(),this.createSlideshow())},insertImages:function(){var $galleryContainer=this.$gallery.find(this.dom.galleryContainer),$title=$(this.dom.title),slide=this.tpl.slide;$galleryContainer.html(""),$title.html(this.title),this.images.forEach(function(img){var $slide=$(slide);$slide.html(img),$galleryContainer.prepend($slide)})},showGallery:function(){this.$gallery.addClass(this.dom.activeClass),utils.scroll.disable()},removeGallery:function(){var self=this;this.$gallery.removeClass(this.dom.activeClass),setTimeout(function(){self.$gallery.remove()},300),utils.scroll.enable()},openByLink:function(){var id,loc=window.location,hash=loc.hash;hash.length&&hash.substring(1).length&&(id=hash.substring(1),(id=id.replace("!loading",""))!=this.id||this.initialOpen||(this.initialOpen=!0,this.open()))}},MK.component.PhotoAlbumBlur=function(el){var blurImage=function($item){return $item.each(function(){var $_this=$(this),img=$_this.find(".album-cover-image");img.clone().addClass("blur-effect item-blur-thumbnail").removeClass("album-cover-image").prependTo(this);var blur_this=$(".blur-effect",this);blur_this.each(function(index,element){!0===img[index].complete?Pixastic.process(blur_this[index],"blurfast",{amount:.5}):blur_this.load(function(){Pixastic.process(blur_this[index],"blurfast",{amount:.5})})})})};return{init:function(){core.loadDependencies([path.plugins+"pixastic.js"],function(){blurImage($(".mk-album-item figure"))})}}}}(jQuery),jQuery(function($){"use strict";var $portfolio=$(".portfolio-grid"),$imgs=$portfolio.find("img[data-mk-image-src-set]");$portfolio.hasClass("portfolio-grid-lazyload")&&$imgs.length?($(window).on("scroll.mk_portfolio_lazyload",MK.utils.throttle(500,function(){$imgs.each(function(index,elem){MK.utils.isElementInViewport(elem)&&(MK.component.ResponsiveImageSetter.init($(elem)),$imgs=$imgs.not($(elem)))})})),$(window).trigger("scroll.mk_portfolio_lazyload"),MK.component.ResponsiveImageSetter.onResize($imgs)):(MK.component.ResponsiveImageSetter.init($imgs),MK.component.ResponsiveImageSetter.onResize($imgs))}),jQuery(document).ready(function($){"use strict";function get_item_width(style,showItems,id){var item_width;if("classic"==style)item_width=275,items_to_show=4;else{var screen_width=$("#portfolio-carousel-"+id).width(),items_to_show=showItems;item_width=screen_width>=1100?screen_width/items_to_show:screen_width<=1200&&screen_width>=800?screen_width/3:screen_width<=800&&screen_width>=540?screen_width/2:screen_width}return item_width}jQuery(window).on("load",function(){MK.core.loadDependencies([MK.core.path.plugins+"jquery.flexslider.js"],function(){$(".portfolio-carousel .mk-flexslider").each(function(){$(this).flexslider({selector:".mk-flex-slides > li",slideshow:!isTest,animation:"slide",slideshowSpeed:6e3,animationSpeed:400,pauseOnHover:!0,controlNav:!1,smoothHeight:!1,useCSS:!1,directionNav:$(this).data("directionNav"),prevText:"",nextText:"",itemWidth:get_item_width($(this).data("style"),$(this).data("showItems"),$(this).data("id")),itemMargin:0,maxItems:"modern"===$(this).data("style")?$(this).data("showItems"):4,minItems:1,move:1})})})})}),function($){"use strict";var AjaxModal=function(el){this.el=el;var $this=$(el),action=$this.data("action"),id=$this.data("id");this.load(action,id)};AjaxModal.prototype={init:function(html){var self=this;$("body").append(html),this.cacheElements(),this.bindEvents(),this.$modal.addClass("is-active"),MK.core.initAll(self.$modal.get(0)),$(".variations_form").each(function(){$(this).wc_variation_form().find(".variations select:eq(0)").change()}),MK.utils.scroll.disable(),MK.ui.loader.remove(),MK.utils.eventManager.publish("quickViewOpen")},cacheElements:function(){this.$modal=$(".mk-modal"),this.$slider=this.$modal.find(".mk-slider-holder"),this.$container=this.$modal.find(".mk-modal-container"),this.$closeBtn=this.$modal.find(".js-modal-close")},bindEvents:function(){this.$container.on("click",function(e){e.stopPropagation()}),this.$closeBtn.on("click",this.handleClose.bind(this)),this.$modal.on("click",this.handleClose.bind(this))},handleClose:function(e){e.preventDefault(),MK.utils.scroll.enable(),this.close()},close:function(){this.$modal.remove()},load:function(action,id){$.ajax({url:MK.core.path.ajaxUrl,data:{action:action,id:id},success:this.init.bind(this),error:this.error.bind(this)})},error:function(response){console.log(response)}};var createModal=function(e){e.preventDefault();var el=e.currentTarget;MK.ui.loader.add($(el).parents(".product-loop-thumb")),new AjaxModal(el)};$(document).on("click",".js-ajax-modal",createModal)}(jQuery),function($){function handleLoad(){$(".mk-slideshow-box").each(run)}function run(){function autoScroll(){if(!isTest){var $i=$slider.find(".active").index();$slides.eq($i).removeClass("active").fadeOut($transition_time),$slides.length==$i+1&&($i=-1),$slides.eq($i+1).addClass("active").fadeIn($transition_time,function(){setTimeout(autoScroll,$time_between_slides)})}}var $slider=$(this),$slides=$slider.find(".mk-slideshow-box-item"),$transition_time=$slider.data("transitionspeed"),$time_between_slides=$slider.data("slideshowspeed");$slider.find(".mk-slideshow-box-content").children("p").filter(function(){if(""==$.trim($(this).text()))return!0}).remove(),$slides.first().addClass("active").fadeIn($transition_time,function(){setTimeout(autoScroll,$time_between_slides)})}window.addEventListener?window.addEventListener("load",handleLoad,!1):window.attachEvent&&window.attachEvent("onload",handleLoad)}(jQuery),function($){"use strict";$(".mk-subscribe").each(function(){var $this=$(this);$this.find(".mk-subscribe--form").submit(function(e){e.preventDefault(),$.ajax({url:MK.core.path.ajaxUrl,type:"POST",data:{action:"mk_ajax_subscribe",email:$this.find(".mk-subscribe--email").val(),list_id:$this.find(".mk-subscribe--list-id").val(),optin:$this.find(".mk-subscribe--optin").val()},success:function(res){$this.find(".mk-subscribe--message").html($.parseJSON(res).message),console.log($.parseJSON(res).message)}})})})}(jQuery),function($){"use strict";var _instancesCollection={};MK.component.SwipeSlideshow=function(el){var $this=$(el),id=$this.parent().attr("id");this.el=el,this.id=id,this.config=$this.data("swipeslideshow-config"),this.config&&(this.config.hasPagination=!1)},MK.component.SwipeSlideshow.prototype={init:function(){var slider=new MK.ui.Slider(this.el,this.config);slider.init(),_instancesCollection[this.id]=slider}},MK.component.SwipeSlideshowExtraNav=function(el){this.el=el},MK.component.SwipeSlideshowExtraNav.prototype={init:function(){this.cacheElements(),this.bindEvents()},cacheElements:function(){var $this=$(this.el);this.sliderId=$this.data("gallery"),this.slider=_instancesCollection[this.sliderId],this.$thumbs=$("#"+this.sliderId).find(".thumbnails a")},bindEvents:function(){this.$thumbs.on("click",this.clickThumb.bind(this))},clickThumb:function(e){e.preventDefault();var $this=$(e.currentTarget),id=$this.index();this.slider.goTo(id)}},MK.utils.eventManager.subscribe("gallery-update",function(e,config){void 0!==_instancesCollection[config.id]&&_instancesCollection[config.id].reset()});var $swiper=$(".mk-swipe-slideshow"),$imgs=$swiper.find("img[data-mk-image-src-set]");$swiper.hasClass("mk-swipe-slideshow-lazyload")&&$imgs.length?($(window).on("scroll.mk_swipe_slideshow_lazyload",MK.utils.throttle(500,function(){$imgs.each(function(index,elem){MK.utils.isElementInViewport(elem)&&(MK.component.ResponsiveImageSetter.init($(elem)),$imgs=$imgs.not($(elem)))})})),$(window).trigger("scroll.mk_swipe_slideshow_lazyload"),MK.component.ResponsiveImageSetter.onResize($imgs)):(MK.component.ResponsiveImageSetter.init($imgs),MK.component.ResponsiveImageSetter.onResize($imgs))}(jQuery),function($){"use strict";var core=MK.core;core.path;MK.component.Tooltip=function(el){return{init:function(){$(".mk-tooltip").each(function(){$(this).find(".mk-tooltip--link").hover(function(){$(this).siblings(".mk-tooltip--text").stop(!0).animate({opacity:1},400)},function(){$(this).siblings(".mk-tooltip--text").stop(!0).animate({opacity:0},400)})})}}}}(jQuery),function($){"use strict";!function(){$(".mk-flickr-feeds").each(function(){var $this=$(this),apiKey=$this.attr("data-key"),userId=$this.attr("data-userid"),perPage=$this.attr("data-count");$this.attr("data-column"),jQuery.getJSON("https://api.flickr.com/services/rest/?format=json&method=flickr.photos.search&api_key="+apiKey+"&user_id="+userId+"&&per_page="+perPage+"&jsoncallback=?",function(data){jQuery.each(data.photos.photo,function(i,rPhoto){var basePhotoURL="http://farm"+rPhoto.farm+".static.flickr.com/"+rPhoto.server+"/"+rPhoto.id+"_"+rPhoto.secret,thumbPhotoURL=basePhotoURL+"_q.jpg",mediumPhotoURL=basePhotoURL+".jpg",photoStringEnd='title="'+rPhoto.title+'" rel="flickr-feeds" class="mk-lightbox flickr-item a_colitem" href="'+mediumPhotoURL+'">'+rPhoto.title+';',photoString="'+$(content).attr("autoplay","autoplay").wrap("
    ").parent().html()+"
    "})}else playTagVideo($video)}function playSocialHosted($iframe,isLightbox){if(void 0!==isLightbox&&void 0!==isLightbox||(isLightbox=!1),isLightbox)playLightbox({type:"iframe",href:$iframe.attr("src"),helpers:{media:!0}});else{var videoData=getSocialVideoData($iframe.attr("src"));switch(videoData.source){case"youtube":playTagIframeYoutube(videoData.videoId,$iframe);break;case"vimeo":playTagIframeVimeo(videoData.videoId,$iframe);break;default:playTagIframe($iframe)}}}function playLightbox(args){var options={padding:0,margin:lightboxMargin,showCloseButton:1,autoSize:0,width:getVideoboxWidth(),height:getVideoHeight(),tpl:{closeBtn:''}};$.extend(options,args),$.fancybox.open(options)}function playTagVideo($video){$video.get(0).play(),$video.closest(".video-container").find(".video-thumbnail").fadeOut("slow")}function playTagIframe($iframe,videoId){var video_loop="";void 0!==videoId&&void 0!==videoId&&(video_loop="&playlist="+videoId);var src=$iframe.attr("src"),separator=-1===src.indexOf("?")?"?":"&";src+=separator+"autoplay=1",separator=-1===src.indexOf("?")?"?":"&",video_loop=separator+"loop=1"+video_loop,video_loop="1"==$iframe.closest(".video-container").data("loop")?video_loop:"",src+=video_loop,$iframe.attr("src",src).closest(".video-container").find(".video-thumbnail").fadeOut(3e3)}function playTagIframeYoutube(videoId,$iframe){$.getScript("//www.youtube.com/iframe_api",function(data,textStatus,jqxhr){if(200===jqxhr.status){var player,isPlayed=!1;window.onYouTubePlayerAPIReady=function(){player=new YT.Player("video-player-"+$iframe.data("id"),{videoId:videoId,rel:!1,events:{onReady:function(e){e.target.playVideo()},onStateChange:function(e){1!==e.data||isPlayed||($(e.target.a).closest(".video-container").find(".video-thumbnail").fadeOut("slow"),isPlayed=!0),$(e.target.a).closest(".video-container").data("loop")&&e.data===YT.PlayerState.ENDED&&e.target.playVideo()},onError:function(e){playTagIframe($iframe,videoId)}}})}}else playTagIframe($iframe,videoId)})}function playTagIframeVimeo(videoId,$iframe){$.getScript("//player.vimeo.com/api/player.js",function(data,textStatus,jqxhr){if(200===jqxhr.status){var player,isPlayed=!1;player=new Vimeo.Player("video-player-"+$iframe.data("id"),{id:videoId}),player.play().then(function(){isPlayed||($iframe.closest(".video-container").find(".video-thumbnail").fadeOut("slow"),isPlayed=!0)}).catch(function(error){playTagIframe($iframe)}),$iframe.closest(".video-container").data("loop")&&player.setLoop(!0).then(function(loop){}).catch(function(error){playTagIframe($iframe)})}else playTagIframe($iframe)})}function getSocialVideoData(url){var youtubeMatch=url.match(/(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i);if(youtubeMatch&&null!=youtubeMatch)return{source:"youtube",videoId:youtubeMatch[3]};var vimeoMatch=url.match(/(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/i);return vimeoMatch&&null!=vimeoMatch?{source:"vimeo",videoId:vimeoMatch[1]}:{source:!1,videoId:!1}}function getVideoboxWidth(){var $width,wWidth=$(window).width(),wHeight=$(window).height();if(wHeight>=wWidth)$width=wWidth-2*lightboxMargin;else{var wHeightMax=90*wHeight/100;if(wWidth>1280)var $width=wHeightMax/5768*1e4;else var $width=wHeightMax/6120*1e4}return Math.round($width)+"px"}function getVideoHeight(){var $height,wWidth=$(window).width(),wHeight=$(window).height();return $height=wHeight>=wWidth?5670*(wWidth-2*lightboxMargin)/1e4:90*wHeight/100+2*lightboxMargin,Math.round($height)+"px"}var lightboxMargin=60;$(".video-container").each(function(){var $videoContainer=$(this),playSource=$videoContainer.data("source"),playTarget=$videoContainer.data("target"),$iframe=$videoContainer.find("iframe"),$video=$videoContainer.find("video");if($videoContainer.data("autoplay"))switch(playSource){case"social_hosted":playSocialHosted($iframe);break;case"self_hosted":playSelfHosted($video)}else{var $playIcon=$videoContainer.find(".mk-svg-icon");$playIcon.bind("click",function(e){e.preventDefault();var isLightbox="lightbox"==playTarget;switch(isLightbox||$playIcon.hide().next(".preloader-preview-area").show(),playSource){case"social_hosted":playSocialHosted($iframe,isLightbox);break;case"self_hosted":playSelfHosted($video,isLightbox)}})}})}function mk_video_resize_play_icon(){$(".video-thumbnail-overlay").each(function(){var $thumbnailOverlay=$(this),thumbnailWidth=$thumbnailOverlay.width(),$svg=$thumbnailOverlay.find("svg");void 0===$svg.data("width")&&$svg.attr("data-width",$svg.width()),void 0===$svg.data("height")&&$svg.attr("data-height",$svg.height()),4*$svg.data("width")>thumbnailWidth?$svg.css({width:Math.round(parseInt(thumbnailWidth)/4)+"px",height:Math.round(parseInt(thumbnailWidth)/4*$svg.data("height")/$svg.data("width"))+"px"}):$svg.css({width:$svg.data("width")+"px",height:$svg.data("height")+"px"})})}$(window).on("load",mk_video_play),$(window).on("load resize orientationChange",mk_video_resize_play_icon)}(jQuery),function(){function initTest(){options.keyboardSupport&&addEvent("keydown",keydown)}function init(){if(!initDone&&document.body){initDone=!0;var body=document.body,html=document.documentElement,windowHeight=window.innerHeight,scrollHeight=body.scrollHeight;if(root=document.compatMode.indexOf("CSS")>=0?html:body,activeElement=body,initTest(),top!=self)isFrame=!0;else if(scrollHeight>windowHeight&&(body.offsetHeight<=windowHeight||html.offsetHeight<=windowHeight)){var fullPageElem=document.createElement("div");fullPageElem.style.cssText="position:absolute; z-index:-10000; top:0; left:0; right:0; height:"+root.scrollHeight+"px",document.body.appendChild(fullPageElem);var pendingRefresh;refreshSize=function(){pendingRefresh||(pendingRefresh=setTimeout(function(){isExcluded||(fullPageElem.style.height="0",fullPageElem.style.height=root.scrollHeight+"px",pendingRefresh=null)},500))},setTimeout(refreshSize,10),addEvent("resize",refreshSize),window.addResizeListener(document.getElementById("mk-theme-container"),refreshSize);var config={attributes:!0,childList:!0,characterData:!1};if(observer=new MutationObserver(refreshSize),observer.observe(body,config),root.offsetHeight<=windowHeight){var clearfix=document.createElement("div");clearfix.style.clear="both",body.appendChild(clearfix)}}options.fixedBackground||isExcluded||(body.style.backgroundAttachment="scroll",html.style.backgroundAttachment="scroll")}}function cleanup(){observer&&observer.disconnect(),removeEvent(wheelEvent,wheel),removeEvent("mousedown",mousedown),removeEvent("keydown",keydown),removeEvent("resize",refreshSize),removeEvent("load",init)}function scrollArray(elem,left,top){if(directionCheck(left,top),1!=options.accelerationMax){var now=Date.now(),elapsed=now-lastScroll;if(elapsed1&&(factor=Math.min(factor,options.accelerationMax),left*=factor,top*=factor)}lastScroll=Date.now()}if(que.push({x:left,y:top,lastX:left<0?.99:-.99,lastY:top<0?.99:-.99,start:Date.now()}),!pending){var scrollWindow=elem===document.body,step=function(time){for(var now=Date.now(),scrollX=0,scrollY=0,i=0;i=options.animationTime,position=finished?1:elapsed/options.animationTime;options.pulseAlgorithm&&(position=pulse(position));var x=item.x*position-item.lastX>>0,y=item.y*position-item.lastY>>0;scrollX+=x,scrollY+=y,item.lastX+=x,item.lastY+=y,finished&&(que.splice(i,1),i--)}scrollWindow?window.scrollBy(scrollX,scrollY):(scrollX&&(elem.scrollLeft+=scrollX),scrollY&&(elem.scrollTop+=scrollY)),left||top||(que=[]),que.length?requestFrame(step,elem,1e3/options.frameRate+1):pending=!1};requestFrame(step,elem,0),pending=!0}}function wheel(event){initDone||init();var target=event.target,overflowing=overflowingAncestor(target);if(!overflowing||event.defaultPrevented||event.ctrlKey)return!0;if(isNodeName(activeElement,"embed")||isNodeName(target,"embed")&&/\.pdf/i.test(target.src)||isNodeName(activeElement,"object"))return!0;var deltaX=-event.wheelDeltaX||event.deltaX||0,deltaY=-event.wheelDeltaY||event.deltaY||0;if(isMac&&(options.touchpadSupport=!1,event.wheelDeltaX&&isDivisible(event.wheelDeltaX,120)&&(deltaX=event.wheelDeltaX/Math.abs(event.wheelDeltaX)*-120),event.wheelDeltaY&&isDivisible(event.wheelDeltaY,120)&&(deltaY=event.wheelDeltaY/Math.abs(event.wheelDeltaY)*-120)),deltaX||deltaY||(deltaY=-event.wheelDelta||0),1===event.deltaMode&&(deltaX*=40,deltaY*=40),!options.touchpadSupport&&isTouchpad(deltaY))return!0;Math.abs(deltaX)>1.2&&(deltaX*=options.stepSize/120),Math.abs(deltaY)>1.2&&(deltaY*=options.stepSize/120),scrollArray(overflowing,deltaX,deltaY),event.preventDefault(),scheduleClearCache()}function keydown(event){var target=event.target,modifier=event.ctrlKey||event.altKey||event.metaKey||event.shiftKey&&event.keyCode!==key.spacebar;document.body.contains(activeElement)||(activeElement=document.activeElement);var inputNodeNames=/^(textarea|select|embed|object)$/i,buttonTypes=/^(button|submit|radio|checkbox|file|color|image)$/i;if(inputNodeNames.test(target.nodeName)||isNodeName(target,"input")&&!buttonTypes.test(target.type)||isNodeName(activeElement,"video")||isInsideYoutubeVideo(event)||target.isContentEditable||event.defaultPrevented||modifier)return!0;if((isNodeName(target,"button")||isNodeName(target,"input")&&buttonTypes.test(target.type))&&event.keyCode===key.spacebar)return!0;var shift,x=0,y=0,elem=overflowingAncestor(activeElement),clientHeight=elem.clientHeight;switch(elem==document.body&&(clientHeight=window.innerHeight),event.keyCode){case key.up:y=-options.arrowScroll;break;case key.down:y=options.arrowScroll;break;case key.spacebar:shift=event.shiftKey?1:-1,y=-shift*clientHeight*.9;break;case key.pageup:y=.9*-clientHeight;break;case key.pagedown:y=.9*clientHeight;break;case key.home:y=-elem.scrollTop;break;case key.end:var damt=elem.scrollHeight-elem.scrollTop-clientHeight;y=damt>0?damt+10:0;break;case key.left:x=-options.arrowScroll;break;case key.right:x=options.arrowScroll;break;default:return!0}scrollArray(elem,x,y),event.preventDefault(),scheduleClearCache()}function mousedown(event){activeElement=event.target}function scheduleClearCache(){clearTimeout(clearCacheTimer),clearCacheTimer=setInterval(function(){cache={}},1e3)}function setCache(elems,overflowing){for(var i=elems.length;i--;)cache[uniqueID(elems[i])]=overflowing;return overflowing}function overflowingAncestor(el){var elems=[],body=document.body,rootScrollHeight=root.scrollHeight;do{var cached=cache[uniqueID(el)];if(cached)return setCache(elems,cached);if(elems.push(el),rootScrollHeight===el.scrollHeight){var topOverflowsNotHidden=overflowNotHidden(root)&&overflowNotHidden(body),isOverflowCSS=topOverflowsNotHidden||overflowAutoOrScroll(root);if(isFrame&&isContentOverflowing(root)||!isFrame&&isOverflowCSS)return setCache(elems,getScrollRoot())}else if(isContentOverflowing(el)&&overflowAutoOrScroll(el))return setCache(elems,el)}while(el=el.parentElement)}function isContentOverflowing(el){return el.clientHeight+100?1:-1,y=y>0?1:-1,direction.x===x&&direction.y===y||(direction.x=x,direction.y=y,que=[],lastScroll=0)}function isTouchpad(deltaY){if(deltaY)return deltaBuffer.length||(deltaBuffer=[deltaY,deltaY,deltaY]),deltaY=Math.abs(deltaY),deltaBuffer.push(deltaY),deltaBuffer.shift(),clearTimeout(deltaBufferTimer),deltaBufferTimer=setTimeout(function(){window.localStorage&&(localStorage.SS_deltaBuffer=deltaBuffer.join(","))},1e3),!allDeltasDivisableBy(120)&&!allDeltasDivisableBy(100)}function isDivisible(n,divisor){return Math.floor(n/divisor)==n/divisor}function allDeltasDivisableBy(divisor){return isDivisible(deltaBuffer[0],divisor)&&isDivisible(deltaBuffer[1],divisor)&&isDivisible(deltaBuffer[2],divisor)}function isInsideYoutubeVideo(event){var elem=event.target,isControl=!1;if(-1!=document.URL.indexOf("www.youtube.com/watch"))do{if(isControl=elem.classList&&elem.classList.contains("html5-video-controls"))break}while(elem=elem.parentNode);return isControl}function pulse_(x){var val,start,expx;return x*=options.pulseScale,x<1?val=x-(1-Math.exp(-x)):(start=Math.exp(-1),x-=1,expx=1-Math.exp(-x),val=start+expx*(1-start)),val*options.pulseNormalize}function pulse(x){return x>=1?1:x<=0?0:(1==options.pulseNormalize&&(options.pulseNormalize/=pulse_(1)),pulse_(x))}function SmoothScroll(optionsToSet){for(var key in optionsToSet)defaultOptions.hasOwnProperty(key)&&(options[key]=optionsToSet[key])}var activeElement,observer,refreshSize,clearCacheTimer,deltaBufferTimer,defaultOptions={frameRate:150,animationTime:400,stepSize:100,pulseAlgorithm:!0,pulseScale:4,pulseNormalize:1,accelerationDelta:50,accelerationMax:3,keyboardSupport:!0,arrowScroll:50,touchpadSupport:!0,fixedBackground:!0,excluded:""},options=defaultOptions,isExcluded=!1,isFrame=!1,direction={x:0,y:0},initDone=!1,root=document.documentElement,deltaBuffer=[],isMac=/^Mac/.test(navigator.platform),key={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},que=[],pending=!1,lastScroll=Date.now(),uniqueID=function(){var i=0;return function(el){return el.uniqueID||(el.uniqueID=i++)}}(),cache={};window.localStorage&&localStorage.SS_deltaBuffer&&(deltaBuffer=localStorage.SS_deltaBuffer.split(","));var wheelEvent,requestFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(callback,element,delay){window.setTimeout(callback,delay||1e3/60)}}(),MutationObserver=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,getScrollRoot=function(){var SCROLL_ROOT;return function(){if(!SCROLL_ROOT){var dummy=document.createElement("div");dummy.style.cssText="height:10000px;width:1px;",document.body.appendChild(dummy);var bodyScrollTop=document.body.scrollTop;document.documentElement.scrollTop;window.scrollBy(0,3),SCROLL_ROOT=document.body.scrollTop!=bodyScrollTop?document.body:document.documentElement,window.scrollBy(0,-3),document.body.removeChild(dummy)}return SCROLL_ROOT}}(),userAgent=window.navigator.userAgent,isIE=/Trident/.test(userAgent),isEdge=/Edge/.test(userAgent),isChrome=/chrome/i.test(userAgent)&&!isEdge,isMobile=(/safari/i.test(userAgent),/mobile/i.test(userAgent)),isIEWin7=/Windows NT 6.1/i.test(userAgent)&&/rv:11/i.test(userAgent),isEnabledForBrowser=(isChrome||isIEWin7||isIE||isEdge)&&!isMobile;"onwheel"in document.createElement("div")?wheelEvent="wheel":"onmousewheel"in document.createElement("div")&&(wheelEvent="mousewheel"),wheelEvent&&isEnabledForBrowser&&(addEvent(wheelEvent,wheel),addEvent("mousedown",mousedown),addEvent("load",init)),SmoothScroll.destroy=cleanup,window.SmoothScrollOptions&&SmoothScroll(window.SmoothScrollOptions),"function"==typeof define&&define.amd?define(function(){return SmoothScroll}):"object"==typeof exports?module.exports=SmoothScroll:window.SmoothScroll=SmoothScroll}();