var content,viewport,PAGE_TRANSITION_SPEED,$j=jQuery.noConflict(),firstLoad=!0,image_src_regex=/url\(["']?([^'")]+)['"]?\)/,background_color_regex=/\s*background-color:\s*([\w(),#]+)/,opacity_regex=/\s*opacity:\s*([\w().]+)/;function perPageBindings(){"use strict";$j(".mkd_slider_preloader .ajax_loader").hide(),content=$j(".content"),contentMinHeight(),contentMinHeightWithPaspartu(),initMikadoSlider(),initMikadoCarousel(),initMessageHeight(),initToCounter(),initCounter(),initProgressBars(),initListAnimation(),initPieChart(),initPieChartWithIcon(),initParallaxTitle(),loadMore(),prettyPhoto(),initFlexSlider(),fitVideo(),initAccordion(),initAccordionContentLink(),initAccordionHoverStyle(),initMessages(),fitAudio(),initProgressBarsIcon(),initMoreFacts(),placeholderReplace(),initPortfolio(),initPortfolioZIndex(),initPortfolioMasonry(),initPortfolioMasonryFilter(),initPortfolioSlider(),initProductSlider(),initBlogSlider(),initTabs(),initTabsStyle(),initVerticalTabsContentHeight(),initVerticalTabsWidth(),$j(".vertical_split_slider").length||initTestimonials(),initBlog(),initBlogMasonryFullWidth(),backButtonShowHide(),backToTop(),updateShoppingCart(),initProgressBarsVertical(),initImageHover(),checkAnchorOnScroll(),checkHeaderStyleOnScroll(),initVideoBackground(),initVideoBackgroundSize(),initIconWithTextAnimation(),initCoverBoxes(),createContentMenu(),contentMenuScrollTo(),contentMenuCheckLastSection(),createSelectContentMenu(),initButtonHover(),initReadMoreButtonHover(),initSocialIconHover(),initIconHover(),initInteractiveBannersShader(),initInteractiveBannersBorderStyle(),setFooterHeight(),initImageGallerySliderNoSpace(),initPortfolioBlurEffect(),initSocialIconsSidebarEffect(),initVerticalSplitSlider(),initProcessHeightWidth(),initCustomFontResize(),countClientsPerRow(),setContentBottomMargin(),setServiceTableStyles(),createTabIcons(),initMikadoElementAnimationSkrollr(),initBlogMasonryGallery(),stickySidebarWidth(),$j("body").hasClass("woocommerce_installed")&&initProductHeight(),$j(".landing_holder").length&&(initColorFilter(),resetColorFilter(),initLandingTabs(),addRemoveScrolledNotTransparentClass())}function ajaxSetActiveState(e){"use strict";$j(".main_menu a, .mobile_menu a, .vertical_menu a, .popup_menu a").parent().removeClass("active"),0===e.closest(".second").length?e.parent().addClass("active"):e.closest(".second").parent().addClass("active"),0<e.closest(".mobile_menu").length&&e.parent().addClass("active"),0<e.closest(".widget_nav_menu").length&&($j(".widget_nav_menu ul.menu > li").removeClass("current-menu-item"),e.parent().addClass("current-menu-item")),$j(".main_menu a, .mobile_menu a, .vertical_menu a, .popup_menu a").removeClass("current"),e.addClass("current")}function setPageMeta(e){"use strict";var t=e.find(".seo_title").text(),a=e.find(".seo_description").text(),i=e.find(".seo_keywords").text();$j('head meta[name="description"]').attr("content",a),$j('head meta[name="keywords"]').attr("content",i),document.title=t;var n=e.find(".body_classes").text().split(",");$j("body").removeClass();for(var o=0;o<n.length;o++)"page_not_loaded"!==n[o]&&$j("body").addClass(n[o])}function setToolBarEditLink(e){"use strict";var t;0<$j("#wp-admin-bar-edit").length&&(t=$j("#wp-admin-bar-edit a").attr("href").replace(/(post=).*?(&)/,"$1"+e+"$2"),$j("#wp-admin-bar-edit a").attr("href",t))}function balanceNavArrows(){"use strict";var e=$j(".vertical_menu a").length?$j(".vertical_menu a"):$j(".main_menu a"),a=!1;e.each(function(e){var t=$j(this);t.hasClass("current")?a=!0:a?(t.removeClass("up"),t.removeClass("right"),t.addClass("down"),t.addClass("left")):(t.removeClass("down"),t.removeClass("left"),t.addClass("up"),t.addClass("right"))})}function callCallback(e,t,a,i){"use strict";e[t]&&e[t].apply(a,i),$j("header.page_header").hasClass("light")?"dark"!==header_style&&""!==header_style||($j("header").removeClass("light").addClass(header_style),$j("aside.vertical_menu_area").removeClass("light").addClass(header_style)):$j("header.page_header").hasClass("dark")?"light"!==header_style&&""!==header_style||($j("header").removeClass("dark").addClass(header_style),$j("aside.vertical_menu_area").removeClass("dark").addClass(header_style)):"light"===header_style||"dark"===header_style||""===header_style?($j("header.page_header").addClass(header_style),$j("aside.vertical_menu_area").addClass(header_style)):($j("header.page_header").removeClass("left right").addClass(header_style),$j("aside.vertical_menu_area").removeClass("left right").addClass(header_style)),$j(".carousel").length&&checkSliderForHeaderStyle($j(".carousel .active")),$j(".paspartu_outer").removeAttr("style"),$j(".no-touch .carousel").length&&skrollr_slider.refresh()}function slideInNewPage(s,e,l,d,_,c,h){"use strict";var p,u,m,t=$j(e),a=t.find("#mkd_page_id").text();t.find(".content_inner").hasClass("updown")?p="ajax_updown":t.find(".content_inner").hasClass("fade")?p="ajax_fade":t.find(".content_inner").hasClass("updown_fade")?p="ajax_updown_fade":t.find(".content_inner").hasClass("leftright")?p="ajax_leftright":t.find(".content_inner").hasClass("no_animation")?p="ajax_no_animation":$j("body").hasClass("ajax_updown")?p="ajax_updown":$j("body").hasClass("ajax_fade")?p="ajax_fade":$j("body").hasClass("ajax_updown_fade")?p="ajax_updown_fade":$j("body").hasClass("ajax_leftright")&&(p="ajax_leftright"),header_style=t.find("header.page_header").hasClass("light")?"light":t.find("header.page_header").hasClass("dark")?"dark":header_style_admin,u=t.find(".header_bottom").attr("style")?t.find(".header_bottom").attr("style"):"",m=t.find(".header_top").attr("style")?t.find(".header_top").attr("style"):"";var f=t.find("header").hasClass("transparent")?" transparent":"",j=t.find("header").hasClass("header_style_on_scroll")?" header_style_on_scroll":"",g=t.find("aside.vertical_menu_area .vertical_area_background").attr("style")?t.find("aside.vertical_menu_area .vertical_area_background").attr("style"):"",$=!!t.find("footer").hasClass("disable_footer"),v=t.find(".meta"),b=t.find(".content").css({position:"relative"});b.find(".animate_title_text .title h1, .animate_title_text .title .subtitle span, .animate_title_text .breadcrumbs_title .breadcrumb").css({visibility:"hidden"}),s.after("<div class='content_wrapper'></div>"),b.appendTo(".content_wrapper"),$j("header").hasClass("fixed_top_header")&&$j(".content_wrapper").css("margin-top",$j("header.fixed_top_header").outerHeight()),$j(".side_menu_button a").removeClass("opened"),t.filter("script").each(function(){$j.globalEval(this.text||this.textContent||this.innerHTML||"")}),$j(".carousel").length&&$j(".carousel").carousel("pause"),$j("#multiscroll-nav").length&&$j("#multiscroll-nav").remove(),$j(".ajax_loader").fadeIn(),$j("footer").css("padding-top",$j(window).height()),$j("footer.uncover").css("top",0),"ajax_fade"!==p&&"ajax_updown_fade"!==p||($j("header.page_header.ajax_header_animation .drop_down > ul > li").mouseout(),$j("header.page_header.ajax_header_animation").stop().fadeTo(_,0),s.stop().fadeTo(_,0)),b.waitForImages(function(){$j(".flexslider, .slider_small, .portfolio_outer").css("visibility","visible"),$j(".vertical_area_background, .title, .parallax_section_holder").removeClass("preload_background");var a=s.height(),i=Math.max(a,$j(window).height());s.css({position:"relative",height:a});var n=b.height();$j(".paspartu_outer").css("min-height",n);var e,t,o=$j(window).width(),r="#"+h.split("#")[1];$j(".ajax_loader").length&&$j(".ajax_loader").fadeOut(400),$?$j("footer").addClass("disable_footer"):$j("footer").removeClass("disable_footer"),""!==u?$j(".header_bottom").attr("style",u):$j(".header_bottom").removeAttr("style"),""!==m?$j(".header_top").attr("style",m):$j(".header_top").removeAttr("style"),f?$j("header").addClass(f):$j("header").removeClass("transparent"),j?$j("header").addClass(j):$j("header").removeClass("header_style_on_scroll"),""!==g&&null!=background_color_regex.exec(g)?$j("aside.vertical_menu_area .vertical_area_background").css("background-color",background_color_regex.exec(g)[1]):$j("aside.vertical_menu_area .vertical_area_background").css("background-color","inherit"),""!==g&&null!=opacity_regex.exec(g)&&$j("aside.vertical_menu_area .vertical_area_background").css("opacity",opacity_regex.exec(g)[1]),""!==g&&null!=image_src_regex.exec(g)?($j("aside.vertical_menu_area .vertical_area_background").fadeOut(500),e=image_src_regex.exec(g),(t=new Image).src=e[1],$j(t).on("load",function(){$j("aside.vertical_menu_area .vertical_area_background").css("background-image","url("+e[1]+")").fadeIn(500)})):$j("aside.vertical_menu_area .vertical_area_background").hasClass("preload_background")||$j("aside.vertical_menu_area .vertical_area_background").css("background-image","none"),$j("html, body").animate({scrollTop:0},400,function(){var e,t;"ajax_updown"===p||"ajax_updown_fade"===p?(e="down"===l?0-a:i,"down"===l?$j(".content_wrapper").css({top:viewport.height()}):$j(".content_wrapper").css({top:-n}),"ajax_updown_fade"===p?($j("header.page_header.ajax_header_animation .drop_down > ul > li").mouseout(),$j("header.page_header.ajax_header_animation").stop().fadeTo(_,0,function(){$j("header.page_header.ajax_header_animation").stop().fadeTo(_,1)}),s.stop().fadeTo(_,0,function(){$j(this).hide().remove(),setHeightPaspartuForSlider(),setPageMeta(v),$j(".content_wrapper").css({visibility:"visible",opacity:1}).stop().animate({top:0},_,function(){$j(".content_wrapper").find(".content").unwrap(),perPageBindings(),anchorAjaxScroll(r),initElementsAnimation(),initElementsHolderItemAnimation(),initPortfolioSingleInfo(),initTitleAreaAnimation(),initFullScreenTemplate(),showGoogleMap(),$j(".animate_title_text .title h1, .animate_title_text .title .subtitle span, .animate_title_text .breadcrumbs_title .breadcrumb").css({visibility:"visible"}),$j(".blog_holder.masonry").isotope("layout"),$j(".blog_holder.masonry_full_width").isotope("layout"),$j("footer").css("padding-top",0).css("top","auto"),0<$j("nav.content_menu").length&&(content_menu_position=$j("nav.content_menu").offset().top,contentMenuPosition(),contentMenuOnScroll()),initParallax(),callCallback(c,"oncomplete",null,[])})})):s.stop().animate({top:e},_,function(){$j(this).hide().remove(),setHeightPaspartuForSlider(),setPageMeta(v),$j(".content_wrapper").css({visibility:"visible",opacity:1}).stop().animate({top:0},_,function(){$j(".content_wrapper").find(".content").unwrap(),perPageBindings(),anchorAjaxScroll(r),initElementsAnimation(),initElementsHolderItemAnimation(),initPortfolioSingleInfo(),initTitleAreaAnimation(),initFullScreenTemplate(),showGoogleMap(),$j(".animate_title_text .title h1, .animate_title_text .title .subtitle span, .animate_title_text .breadcrumbs_title .breadcrumb").css({visibility:"visible"}),$j(".blog_holder.masonry").isotope("layout"),$j(".blog_holder.masonry_full_width").isotope("layout"),$j("footer").css("padding-top",0).css("top","auto"),0<$j("nav.content_menu").length&&(content_menu_position=$j("nav.content_menu").offset().top,contentMenuPosition(),contentMenuOnScroll()),initParallax(),callCallback(c,"oncomplete",null,[])})})):"ajax_fade"===p?($j("header.page_header.ajax_header_animation .drop_down > ul > li").mouseout(),$j("header.page_header.ajax_header_animation").stop().fadeTo(_,0,function(){$j("header.page_header.ajax_header_animation").stop().fadeTo(_,1)}),s.stop().fadeTo(_,0,function(){$j(this).hide().remove(),setHeightPaspartuForSlider(),setPageMeta(v),$j(".content_wrapper").css({visibility:"visible",opacity:1,display:"none"}).stop().fadeIn(_,function(){$j(".content_wrapper").find(".content").unwrap(),perPageBindings(),anchorAjaxScroll(r),initElementsAnimation(),initElementsHolderItemAnimation(),initPortfolioSingleInfo(),initTitleAreaAnimation(),initFullScreenTemplate(),showGoogleMap(),$j(".animate_title_text .title h1, .animate_title_text .title .subtitle span, .animate_title_text .breadcrumbs_title .breadcrumb").css({visibility:"visible"}),$j(".blog_holder.masonry").isotope("layout"),$j(".blog_holder.masonry_full_width").isotope("layout"),$j("footer").css("padding-top",0).css("top","auto"),0<$j("nav.content_menu").length&&(content_menu_position=$j("nav.content_menu").offset().top,contentMenuPosition(),contentMenuOnScroll()),initParallax(),callCallback(c,"oncomplete",null,[])})})):"ajax_no_animation"===p?(setHeightPaspartuForSlider(),setPageMeta(v),$j(".content_wrapper").css({visibility:"visible",opacity:1,display:"none"}).stop().fadeIn(0,function(){$j(".content_wrapper").find(".content").unwrap(),perPageBindings(),anchorAjaxScroll(r),initElementsAnimation(),initElementsHolderItemAnimation(),initPortfolioSingleInfo(),initTitleAreaAnimation(),initFullScreenTemplate(),showGoogleMap(),$j(".animate_title_text .title h1, .animate_title_text .title .subtitle span, .animate_title_text .breadcrumbs_title .breadcrumb").css({visibility:"visible"}),$j(".blog_holder.masonry").isotope("layout"),$j(".blog_holder.masonry_full_width").isotope("layout"),$j("footer").css("padding-top",0).css("top","auto"),0<$j("nav.content_menu").length&&(content_menu_position=$j("nav.content_menu").offset().top,contentMenuPosition(),contentMenuOnScroll()),initParallax(),callCallback(c,"oncomplete",null,[])})):"ajax_leftright"===p&&(setPageMeta(v),t="left"===d?0-o:o,s.stop().animate({left:t},_,function(){$j(this).hide().remove(),setHeightPaspartuForSlider()}),s.find(".carousel-inner:not(.relative_position)").length&&s.find(".carousel-inner").animate({marginLeft:t},_),"left"===d?$j(".content_wrapper").css({left:o}):$j(".content_wrapper").css({left:-o}),$j(".content_wrapper").find(".carousel-inner:not(.relative_position)").length&&$j(".content_wrapper").find(".carousel-inner").css({left:o}),$j(".content_wrapper").css({visibility:"visible",opacity:1}).stop().animate({left:0},_,function(){$j(".content_wrapper").find(".content").unwrap(),perPageBindings(),anchorAjaxScroll(r),initElementsAnimation(),initElementsHolderItemAnimation(),initPortfolioSingleInfo(),initTitleAreaAnimation(),initFullScreenTemplate(),showGoogleMap(),$j(".animate_title_text .title h1, .animate_title_text .title .subtitle span, .animate_title_text .breadcrumbs_title .breadcrumb").css({visibility:"visible"}),$j(".blog_holder.masonry").isotope("layout"),$j(".blog_holder.masonry_full_width").isotope("layout"),$j("footer").css("padding-top",0).css("top","auto"),0<$j("nav.content_menu").length&&(content_menu_position=$j("nav.content_menu").offset().top,contentMenuPosition(),contentMenuOnScroll()),initParallax(),callCallback(c,"oncomplete",null,[])}),$j(".content_wrapper").find(".carousel-inner:not(.relative_position)").length&&$j(".content_wrapper").find(".carousel-inner").animate({left:0},_))})}),setToolBarEditLink(a)}function anchorAjaxScroll(e){"use strict";var t,a,i,n;void 0!==e&&0<$j('[data-mkd_id="'+e+'"]').length&&(i=1e3<$window_width?$j("header.page_header").hasClass("fixed")&&!$j("body").hasClass("vertical_menu_enabled")?(n=$j("header.page_header").hasClass("scroll_top")?header_top_height:0,!$j("header.page_header").hasClass("transparent")||$j("header.page_header").hasClass("scrolled_not_transparent")?(t=$j("header.page_header").hasClass("centered_logo")?2*min_header_height_scroll+20:min_header_height_scroll,header_height-($j('[data-mkd_id="'+e+'"]').offset().top+n)/4>=t?(a=$j('[data-mkd_id="'+e+'"]').offset().top-header_height-large_menu_item_border)+a/4+a/16+a/64+1:$j('[data-mkd_id="'+e+'"]').offset().top-t-large_menu_item_border):$j('[data-mkd_id="'+e+'"]').offset().top):$j("header.page_header").hasClass("fixed_top_header")&&!$j("body").hasClass("vertical_menu_enabled")?!$j("header.page_header").hasClass("transparent")||$j("header.page_header").hasClass("scrolled_not_transparent")?$j('[data-mkd_id="'+e+'"]').offset().top-header_height-large_menu_item_border:$j('[data-mkd_id="'+e+'"]').offset().top:$j("header.page_header").hasClass("fixed_hiding")&&!$j("body").hasClass("vertical_menu_enabled")?!$j("header.page_header").hasClass("transparent")||$j("header.page_header").hasClass("scrolled_not_transparent")?$j('[data-mkd_id="'+e+'"]').offset().top-(header_height+logo_height/2+20)<=scroll_amount_for_fixed_hiding?$j('[data-mkd_id="'+e+'"]').offset().top-header_height-logo_height/2-20:$j('[data-mkd_id="'+e+'"]').offset().top-min_header_height_fixed_hidden-20:$j('[data-mkd_id="'+e+'"]').offset().top:($j("header.page_header").hasClass("stick")||$j("header.page_header").hasClass("stick_with_left_right_menu")&&!$j("body").hasClass("vertical_menu_enabled"))&&(!$j("header.page_header").hasClass("transparent")||$j("header.page_header").hasClass("scrolled_not_transparent"))?sticky_amount>=$j('[data-mkd_id="'+e+'"]').offset().top?$j('[data-mkd_id="'+e+'"]').offset().top+1:$j('[data-mkd_id="'+e+'"]').offset().top-min_header_height_sticky:$j('[data-mkd_id="'+e+'"]').offset().top:$j('[data-mkd_id="'+e+'"]').offset().top,$j("html, body").animate({scrollTop:Math.round(i)},1500,function(){}))}function setHeightPaspartuForSlider(){"use strict";var e,t,a,i,n;$j(".carousel").length&&(e=$j(".carousel"),t=$j(window).width()<1e3?$j("header.page_header").height():0,a=1e3<$window_width&&!$j("header.page_header").hasClass("transparent")?$j("header.page_header").height():0,i=0<$j(".paspartu_outer:not(.disable_top_paspartu)").length?Math.round($window_width*paspartu_width+a):0,n=0<$j(".paspartu_outer.paspartu_on_bottom_slider").length?Math.round($window_width*paspartu_width):0,e.css({height:$j(window).height()-t-i-n+"px"}),e.find(".mkd_slider_preloader").css({height:$j(window).height()-t-i-n+"px"}),e.find(".mkd_slider_preloader .ajax_loader").css({display:"block"}),e.find(".item").css({height:$j(window).height()-t-i-n+"px"}),$j(".paspartu_outer:not(.disable_top_paspartu):not(.paspartu_on_bottom_slider)").length&&($j("body").hasClass("paspartu_on_top_fixed")||e.closest(".mkd_slider").css("padding-top",Math.round(a+$window_width*paspartu_width))),$j(".paspartu_outer.paspartu_on_bottom_slider").length&&e.closest(".mkd_slider").css("padding-bottom",Math.round($window_width*paspartu_width)))}function onLinkClicked(e){"use strict";var t=void 0===e.attr("href")?e.attr("value").split(mkd_root)[1]:e.attr("href").split(mkd_root)[1];if(!e.hasClass("current"))return loadedPageFlag=!1,loadResource(t)}function loadResource(n){"use strict";var o=$j("nav a[href='"+mkd_root+n+"'], .widget_nav_menu a[href='"+mkd_root+n+"']"),r=$j("body").hasClass("page_not_loaded")?0:PAGE_TRANSITION_SPEED,s=o.hasClass("up")?"up":"down",l=o.hasClass("left")?"left":"right";$j.ajax({url:mkd_root+n,dataType:"html",async:!0,success:function(e,t,a){var i;slideInNewPage(content,e,s,l,r,{oncomplete:function(){ajaxSetActiveState(o),balanceNavArrows(),loadedPageFlag=!0}},n),firstLoad=!1,window.history.pushState?((i=mkd_root+n)!==window.location&&window.history.pushState({path:i},"",i),"undefined"!=typeof _gaq&&_gaq.push(["_trackPageview",mkd_root+n])):document.location.href=mkd_root+"#/"+n},error:function(){},statusCode:{404:function(){alert("Page not found!")}}}),$j("body").hasClass("page_not_loaded")&&$j("body").removeClass("page_not_loaded")}function showActivePage(){"use strict";var e="";if(0<=document.location.href.indexOf("?s=")||0<=document.location.href.indexOf("?animation=")||0<=document.location.href.indexOf("?menu=")||0<=document.location.href.indexOf("?footer="))return $j("body").removeClass("page_not_loaded"),void ajaxSetActiveState($j("nav a[href='"+mkd_root+"']"));document.location.href===mkd_root&&(window.history.pushState||loadResource("")),void 0===document.location.href.split("#/")[1]?(ajaxSetActiveState($j("a.current")),$j("body").removeClass("page_not_loaded")):(e=document.location.href.split("#/")[1],window.history.pushState||loadResource(e))}window.history.pushState&&$j(window).on("popstate",function(){"use strict";var e=(e=location.href).split(mkd_root)[1];firstLoad||loadResource(e)});var disableHashChange=!0;$j(document).ready(function(){"use strict";if(PAGE_TRANSITION_SPEED=1e3,viewport=$j(".content"),content=$j(".content"),balanceNavArrows(),showActivePage(),$j("body").hasClass("woocommerce")||$j("body").hasClass("woocommerce-page"))return!1;$j(document).on("click",'a[target!="_blank"]:not(.no_ajax):not(.no_link)',function(e){if(1===e.ctrlKey)return window.open($j(this).attr("href"),"_blank"),!1;if($j(this).parent().hasClass("load_more"))return!1;if($j(this).parent().parent().hasClass("blog_load_more_button"))return!1;if($j(this).parent().hasClass("comments_number")){var t=$j(this).attr("href").split("#")[1];return $j("html, body").scrollTop($j("#"+t).offset().top),!1}if(window.location.href.split("#")[0]===$j(this).attr("href").split("#")[0])return!1;if(0===$j(this).closest(".no_animation").length){if(0<=document.location.href.indexOf("?s="))return!0;if(0<=$j(this).attr("href").indexOf("wp-admin"))return!0;if(0<=$j(this).attr("href").indexOf("wp-content"))return!0;if(-1!==jQuery.inArray($j(this).attr("href"),no_ajax_pages))return document.location.href=$j(this).attr("href"),!1;if("http://#"===$j(this).attr("href")||"#"===$j(this).attr("href"))return!1;if(disableHashChange=!0,0===$j(this).attr("href").indexOf(mkd_root)){if(!loadedPageFlag)return!1;e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation(),onLinkClicked($j(this))}}})})