var logo_height,logo_width,content_menu_position,content_menu_top,src,next_image,prev_image,$top_header_height,header_style,header_top_height,$j=jQuery.noConflict(),$scroll=0,$window_width=$j(window).width(),$window_height=$j(window).height(),menu_dropdown_height_set=!1,sticky_amount=0,content_menu_top_add=0,loadedPageFlag=!0;"undefined"==typeof header_height&&(header_top_height=35);var skrollr_slider,widgetTopOffset,widgetParentOffset,stickySidebarHeight,paspartu_width,sticky_animate,min_w=1500,video_width_original=1280,video_height_original=720,vid_ratio=1280/720;function headerSize(e){"use strict";var t,i,a,o;$j("header.page_header").hasClass("scroll_top")&&$j("header.page_header").hasClass("has_top")&&$j("header.page_header").hasClass("fixed")&&(0<=e&&e<=header_top_height?($j("header.page_header").css("top",-e),$j("header.page_header").css("margin-top",0),$j(".header_top").show()):header_top_height<e&&($j("header.page_header").css("top",-header_top_height),$j("header.page_header").css("margin-top",header_top_height),$j(".header_top").hide())),sticky_amount="undefined"!=typeof page_scroll_amount_for_sticky?page_scroll_amount_for_sticky:$j(".carousel.full_screen").length?$j(".carousel").height():scroll_amount_for_sticky,$j(".mkd_slider .carousel").length&&($j(".carousel").height()<e?$j(".carousel").addClass("disable_slider_header_style_changing"):($j(".carousel").removeClass("disable_slider_header_style_changing"),checkSliderForHeaderStyle($j(".mkd_slider .carousel .active"),$j(".mkd_slider .carousel").hasClass("header_effect")))),$j("header.page_header").hasClass("regular")&&(0<header_height-logo_height?$j(".mkd_logo a").height(logo_height):$j(".mkd_logo a").height(header_height),$j(".mkd_logo a img").css("height","100%")),$j("header.page_header").hasClass("fixed")&&($top_header_height=$j("header.page_header").hasClass("scroll_top")?header_top_height:0,header_height-(e-$top_header_height)/4>=min_header_height_scroll&&$top_header_height<=e?($j("header.page_header").removeClass("scrolled"),$j("header nav.main_menu > ul > li > a").css("line-height",header_height-(e-$top_header_height)/4+"px"),$j("header .side_menu_button").css("height",header_height+large_menu_item_border-(e-$top_header_height)/4+"px"),$j("header .header_bottom_right_widget_holder").css("height",header_height+large_menu_item_border-(e-$top_header_height)/4+"px"),$j("header .shopping_cart_inner").css("height",header_height+large_menu_item_border-(e-$top_header_height)/4+"px"),$j("header .logo_wrapper").css("height",header_height+large_menu_item_border-(e-$top_header_height)/4+"px"),$j(".side_menu .close_side_menu_holder").css("height",header_height+large_menu_item_border-(e-$top_header_height)/4+"px"),0<header_height-logo_height?$j("header .mkd_logo a").css("height",logo_height+"px"):$j("header .mkd_logo a").css("height",header_height+large_menu_item_border-(e-$top_header_height)/4+"px")):e<$top_header_height?($j("header.page_header").removeClass("scrolled"),$j("header nav.main_menu > ul > li > a").css("line-height",header_height+"px"),$j("header .side_menu_button").css("height",header_height+large_menu_item_border+"px"),$j("header .header_bottom_right_widget_holder").css("height",header_height+large_menu_item_border+"px"),$j("header .shopping_cart_inner").css("height",header_height+large_menu_item_border+"px"),$j("header .logo_wrapper").css("height",header_height+large_menu_item_border+"px"),$j(".side_menu .close_side_menu_holder").css("height",header_height+large_menu_item_border+"px"),0<header_height-logo_height?$j("header .mkd_logo a").css("height",logo_height+"px"):$j("header .mkd_logo a").css("height",header_height+large_menu_item_border+"px")):header_height-(e-$top_header_height)/4<min_header_height_scroll&&($j("header.page_header").addClass("scrolled"),$j("header nav.main_menu > ul > li > a").css("line-height",min_header_height_scroll+"px"),$j("header .side_menu_button").css("height",min_header_height_scroll+large_menu_item_border+"px"),$j("header .header_bottom_right_widget_holder").css("height",min_header_height_scroll+large_menu_item_border+"px"),$j("header .shopping_cart_inner").css("height",min_header_height_scroll+large_menu_item_border+"px"),$j("header .logo_wrapper").css("height",min_header_height_scroll+large_menu_item_border+"px"),$j(".side_menu .close_side_menu_holder").css("height",min_header_height_scroll+large_menu_item_border+"px"),0<min_header_height_scroll-logo_height?$j("header .mkd_logo a").css("height",logo_height+"px"):$j("header .mkd_logo a").css("height",min_header_height_scroll+large_menu_item_border+"px")),header_height-(e-$top_header_height)/4<logo_height&&header_height-(e-$top_header_height)/4>=min_header_height_scroll&&logo_height>min_header_height_scroll&&$top_header_height<=e?$j(".mkd_logo a").height(header_height-(e-$top_header_height)/4):header_height-(e-$top_header_height)/4<logo_height&&header_height-(e-$top_header_height)/4>=min_header_height_scroll&&logo_height>min_header_height_scroll&&e<$top_header_height?$j(".mkd_logo a").height(header_height):header_height-(e-$top_header_height)/4<logo_height&&header_height-(e-$top_header_height)/4<min_header_height_scroll&&logo_height>min_header_height_scroll?$j(".mkd_logo a").height(min_header_height_scroll):(header_height-(e-$top_header_height)/4<logo_height&&header_height-(e-$top_header_height)/4<min_header_height_scroll&&logo_height<min_header_height_scroll||(e-$top_header_height)/4==0&&header_height,$j(".mkd_logo a").height(logo_height))),$j("header.page_header").hasClass("fixed_hiding")&&(e<scroll_amount_for_fixed_hiding?$j("header.page_header").removeClass("scrolled"):$j("header.page_header").addClass("scrolled"),$j(".mkd_logo a").height(logo_height/2),$j(".mkd_logo img").height("100%")),($j("header.page_header").hasClass("stick")||$j("header.page_header").hasClass("stick_with_left_right_menu"))&&(sticky_amount<e?($j("header.page_header").hasClass("sticky")||($top_header_height=$j("header.page_header").hasClass("has_top")?34:0,i=$j("header.page_header").hasClass("menu_bottom")?60:0,a=$j("header.page_header").hasClass("centered_logo")?$j("header.page_header").height():header_height+$top_header_height+large_menu_item_border+i,$j("header.page_header").addClass("sticky"),$j(".side_menu").addClass("sticky"),$j(".content").css("padding-top",a),window.clearTimeout(sticky_animate),sticky_animate=window.setTimeout(function(){$j("header.page_header").addClass("sticky_animate")},100),0<min_header_height_sticky-logo_height/2?$j(".mkd_logo a").height(logo_height/2):$j(".mkd_logo a").height(min_header_height_sticky),$j("header.page_header").hasClass("stick_with_left_right_menu")&&($j("header .mkd_logo a img.sticky").get(0).complete?(t=$j("header .mkd_logo a img.sticky").width(),$j(".logo_wrapper").width(t),$j("nav.main_menu.left_side").attr("style","padding-right:"+t/2+"px !important;"),$j("nav.main_menu.right_side").attr("style","padding-left:"+t/2+"px !important;")):$j("header .mkd_logo a img.sticky").on("load",function(){t=$j("header .mkd_logo a img.sticky").width(),$j(".logo_wrapper").width(t),$j("nav.main_menu.left_side").attr("style","padding-right:"+t/2+"px !important;"),$j("nav.main_menu.right_side").attr("style","padding-left:"+t/2+"px !important;")})),$j("header.page_header").hasClass("menu_bottom")&&initDropDownMenu()),0<min_header_height_sticky-logo_height/2?$j(".mkd_logo a").height(logo_height/2):$j(".mkd_logo a").height(min_header_height_sticky)):($j("header.page_header").hasClass("sticky")&&($j("header").removeClass("sticky_animate"),$j("header").removeClass("sticky"),$j(".side_menu").removeClass("sticky"),$j(".content").css("padding-top","0px"),$j("header.page_header").hasClass("menu_bottom")&&initDropDownMenu()),$j("header.page_header").hasClass("centered_logo")?($j(".mkd_logo a").height(logo_height/2),$j(".mkd_logo img").height("auto")):0<header_height-logo_height/2?$j(".mkd_logo a").height(logo_height/2):$j(".mkd_logo a").height(header_height),$j(".mkd_logo a img").css("height","100%"),$j("header.page_header").hasClass("stick_with_left_right_menu")&&(t=logo_width/2,$j(".logo_wrapper").width(t),$j("nav.main_menu.left_side").attr("style","padding-right:"+t/2+"px !important;"),$j("nav.main_menu.right_side").attr("style","padding-left:"+t/2+"px !important;")))),$j("a.search_icon_bckg_full").length&&(o=$j("header nav.main_menu > ul > li > a").css("line-height"),$j("header .side_menu_button_wrapper .side_menu_button a.search_icon_bckg_full").css("line-height",o)),$j("a.sidearea_icon_bckg_full").length&&(o=$j("header nav.main_menu > ul > li > a").css("line-height"),$j("header .side_menu_button_wrapper .side_menu_button a.sidearea_icon_bckg_full").css("line-height",o))}$j(".widget_sticky-sidebar").length,$j(document).ready(function(){"use strict";$j("header").hasClass("regular")&&(content_menu_top=0),$j("header").hasClass("fixed_top_header")&&(content_menu_top=header_height),$j("header").hasClass("fixed")&&(content_menu_top=min_header_height_scroll),$j("header").hasClass("fixed_hiding")&&(content_menu_top=min_header_height_fixed_hidden+20),$j("header").hasClass("stick")&&(content_menu_top=0),!$j("header.page_header").hasClass("scroll_top")&&$j("header.page_header").hasClass("has_top")&&($j("header.page_header").hasClass("fixed")||$j("header.page_header").hasClass("fixed_hiding"))&&(content_menu_top_add=header_top_height),$j("body").hasClass("vertical_menu_enabled")&&(content_menu_top_add=content_menu_top=0),paspartu_width=$window_width<1024?.02:paspartu_width_init,contentMinHeight(),contentMinHeightWithPaspartu(),setDropDownMenuPosition(),initVerticalMenu(),initVerticalMobileMenu(),initMikadoSlider(),initSideMenu(),initPopupMenu(),initMessageHeight(),initFullScreenTemplate(),initToCounter(),initCounter(),initProgressBars(),initListAnimation(),initPieChart(),initPieChartWithIcon(),initParallaxTitle(),initSideAreaScroll(),initVerticalAreaMenuScroll(),loadMore(),initMobileMenu(),eltdInitSingleProductLightbox(),prettyPhoto(),initnitElementsHolderResponsiveStyle(),$j(".vertical_split_slider").length||initFlexSlider(),initDropDownMenu(),fitVideo(),setServiceTableStyles(),initAccordion(),initAccordionContentLink(),initAccordionHoverStyle(),initMessages(),initProgressBarsIcon(),initMoreFacts(),placeholderReplace(),backButtonShowHide(),backToTop(),showGoogleMap(),initProgressBarsVertical(),initElementsAnimation(),initElementsHolderItemAnimation(),updateShoppingCart(),initHashClick(),checkHeaderStyleOnScroll(),initImageHover(),initIconWithTextAnimation(),initVideoBackground(),initCheckSafariBrowser(),initCheckFirefoxMacBrowser(),initSearchButton(),initCoverBoxes(),createContentMenu(),contentMenuScrollTo(),initButtonHover(),initReadMoreButtonHover(),initSocialIconHover(),initIconHover(),initInteractiveBannersShader(),initInteractiveBannersBorderStyle(),showHideVerticalMenu(),initPortfolioBlurEffect(),setTestimonialsEqualHeight(),preloadBackgrounds(),initProcessHeightWidth(),initCustomFontResize(),createTabIcons(),$j([theme_root+"img/logo.png"]).preload(),$j(".widget #searchform").mousedown(function(){$j(this).addClass("form_focus")}).focusout(function(){$j(this).removeClass("form_focus")}),$scroll=$j(window).scrollTop(),checkTitleToShowOrHide(),checkVerticalMenuTransparency(),982<$j(window).width()?headerSize($scroll):(logoSizeOnSmallScreens(),sideButtonsLineHeightOnMobile()),$j("header .mkd_logo a").css("visibility","visible"),1e3<$j(window).width()&&contentMenuPosition(),contentMenuCheckLastSection()}),$j(window).on("load",function(){"use strict";$j(".touch .main_menu li:has(div.second)").doubleTapToGo(),setDropDownMenuPosition(),initDropDownMenu(),initPortfolio(),logoWidth(),initPortfolioZIndex(),initPortfolioSingleInfo(),$j(".vertical_split_slider").length||initTestimonials(),setTestimonialsEqualHeight(),initVideoBackgroundSize(),initPortfolioMasonry(),initPortfolioMasonryFilter(),initPortfolioSlider(),initProductSlider(),initBlogSlider(),initTabs(),initVerticalTabsContentHeight(),initVerticalTabsWidth(),initTabsStyle(),countClientsPerRow(),initTitleAreaAnimation(),setContentBottomMargin(),setVideoHeightAndWidth(),$j(".side_area_uncovered_from_content").length&&$j(".side_area_uncovered_from_content .side_menu").css({right:"0px"}),0<$j("nav.content_menu").length&&(content_menu_position=$j("nav.content_menu").offset().top,contentMenuPosition(),contentMenuOnScroll(),contentMenuCheckLastSection(),createSelectContentMenu()),initMikadoCarousel(),setFooterHeight(),initImageGallerySliderNoSpace(),initVerticalSplitSlider(),initParallax(),initSocialIconsSidebarEffect(),$j(".widget_sticky-sidebar").length&&(widgetTopOffset=$j(".widget_sticky-sidebar").offset().top,widgetParentOffset=$j(".widget_sticky-sidebar").position().top,stickySidebarHeight=$j("aside.sidebar").height()),600<$j(window).width()&&stickySidebar($scroll,widgetTopOffset,widgetParentOffset,stickySidebarHeight),stickySidebarWidth(),removeStickySidebarClass(),initMikadoElementAnimationSkrollr(),setTimeout(function(){checkAnchorOnScroll(),checkAnchorOnLoad(),$j(".no-touch .carousel").length&&skrollr_slider.refresh()},700)}),$j(window).scroll(function(){"use strict";$scroll=$j(window).scrollTop(),1e3<$j(window).width()&&(headerSize($scroll),contentMenuPosition()),contentMenuCheckLastSection(),600<$j(window).width()&&stickySidebar($scroll,widgetTopOffset,widgetParentOffset,stickySidebarHeight),checkVerticalMenuTransparency(),logoWidth(),$j(".touch .drop_down > ul > li").mouseleave(),$j(".touch .drop_down > ul > li").blur()}),$j(window).resize(function(){"use strict";$window_width=$j(window).width(),$window_height=$j(window).height(),paspartu_width=$window_width<1024?.02:paspartu_width_init,1e3<$j(window).width()?headerSize($scroll):(logoSizeOnSmallScreens(),sideButtonsLineHeightOnMobile()),initMessageHeight(),initTestimonials(),initVideoBackgroundSize(),setContentBottomMargin(),setFooterHeight(),calculateHeights(),contentMinHeight(),contentMinHeightWithPaspartu(),countClientsPerRow(),logoWidth(),initImageGallerySliderNoSpace(),$j(".vertical_split_slider").height($window_height),initParallax(),setTestimonialsEqualHeight(),600<$j(window).width()&&(stickySidebarHeight=$j("aside.sidebar").height(),stickySidebar($scroll,widgetTopOffset,widgetParentOffset,stickySidebarHeight)),stickySidebarWidth(),removeStickySidebarClass(),initBlogSlider(),initMikadoCarousel(),initCustomFontResize(),initDropDownMenu()});var default_header_style,current_scroll,$scrollHeight,headerHeightOffset=0;function stickySidebar(e,t,i,a){"use strict";var o,s,n,r,d,l;$j(".widget_sticky-sidebar").length&&($j(".content_right_from_sidebar").length&&(o=$j("aside.sidebar").parent().innerWidth()),s=$j("body").hasClass("paspartu_on_top_fixed")?Math.round($window_width*paspartu_width):0,$j("header.page_header").hasClass("regular")||$j(window).width()<=1e3?headerHeightOffset=0:$j("header.page_header").hasClass("fixed_top_header")?headerHeightOffset=$j("header.page_header .top_header").height():($j("header.page_header").hasClass("stick")||$j("header.page_header").hasClass("stick_with_left_right_menu"))&&t<sticky_amount?e<=sticky_amount?(headerHeightOffset=0,setTimeout(function(){$j(".sidebar").removeClass("sticky_sidebar_animate_top")},330)):(headerHeightOffset=$j("header.page_header").height(),$j(".sidebar").addClass("sticky_sidebar_animate_top")):headerHeightOffset=$j("header.page_header").height(),t-headerHeightOffset-s<=e?(n=-(i-headerHeightOffset-s),$j(".sidebar").addClass("sticky_sidebar"),$j(".sidebar.sticky_sidebar").css("top",n+"px"),$j(".content_right_from_sidebar").length&&$j(".column2.content_right_from_sidebar").css("padding-left",o+"px"),r=d=0,d=$j(".uncover").length?(r=parseInt($j(".content").css("margin-bottom")),$j(document).height()-$window_height-r):$j("footer").offset().top-$window_height,(l=$window_height-(a+40+n))<e-d?$j(".sidebar.sticky_sidebar").css("margin-top",-(e-d-l)):$j(".sidebar.sticky_sidebar").css("margin-top",0)):($j(".sidebar").removeClass("sticky_sidebar"),$j(".sidebar").css("top","0"),$j(".content_right_from_sidebar").length&&$j(".column2.content_right_from_sidebar").css("padding-left","0")))}function stickySidebarWidth(){"use strict";var e;$j(".widget_sticky-sidebar").length&&(e=$j("aside.sidebar").parent().width(),$j(".sidebar").css("width",e+"px"))}function removeStickySidebarClass(){"use strict";$j(".widget_sticky-sidebar").length&&$j(window).width()<=600&&$j(".sidebar").hasClass("sticky_sidebar")&&($j(".sidebar").removeClass("sticky_sidebar sticky_sidebar_animate_top"),$j(".sidebar").css("width","auto"),$j(".sidebar").css("top","auto"),$j(".content_right_from_sidebar").length&&$j(".column2.content_right_from_sidebar").css("padding-left","0"))}function logoWidth(){"use strict";var e;$j(".left_menu_position").length&&(e=$j("header").hasClass("sticky")?$j("header .mkd_logo a img.sticky").width():$j("header .mkd_logo a img.normal").width(),$j("header .logo_wrapper").css("width",e+"px"))}function logoSizeOnSmallScreens(){"use strict";$j(".mkd_logo a img").css("height","100%"),$j("header.page_header").removeClass("sticky_animate sticky"),$j(".content").css("padding-top","0px")}function sideButtonsLineHeightOnMobile(){"use strict";var e;$j("a.search_icon_bckg_full").length&&(e=$j("header .header_inner_left .mobile_menu_button").css("height"),$j("header .side_menu_button_wrapper .side_menu_button a.search_icon_bckg_full").css("line-height",e)),$j("a.sidearea_icon_bckg_full").length&&(e=$j("header .header_inner_left .mobile_menu_button").css("height"),$j("header .side_menu_button_wrapper .side_menu_button a.sidearea_icon_bckg_full").css("line-height",e))}function contentMinHeight(){"use strict";var e,t;$j("header .header_bottom").length&&(t=void 0!==(e=$j("header .header_bottom").css("background-color")).substring(e.indexOf("(")+1,e.lastIndexOf(")")).split(/,\s*/)[3]||$j("header.page_header").hasClass("transparent")?0:$j("header.page_header").height(),$j("body .content").css("min-height",$window_height-t-$j("footer:not(.uncover)").height()))}function contentMinHeightWithPaspartu(){"use strict";var e,t,i,a,o,s;$j(".paspartu_enabled").length&&(e=0,t=$window_width*paspartu_width,i=$j("footer").height(),$j(".disable_footer").length&&(i=0),$j(".vertical_menu_enabled").length?$j(".paspartu_top").length&&$j(".paspartu_middle_inner").length&&(e+=t):$j(".paspartu_top").length&&(e+=t),!$j(".paspartu_bottom").length&&$j(".disable_bottom_paspartu").length||(e+=t),s=$j(".vertical_menu_enabled").length?$window_height-e-i:(o=void 0!==(a=$j("header .header_bottom").css("background-color")).substring(a.indexOf("(")+1,a.lastIndexOf(")")).split(/,\s*/)[3]||$j("header.page_header").hasClass("transparent")?0:$j("header.page_header").height(),$window_height-o-e-i),$j(".content").length&&$j(".content").css("min-height",s))}function initMikadoSlider(){"use strict";var S,r,t,d,T=/url\(["']?([^'")]+)['"]?\)/;function o(e){return e.match(t)[0].substr(1).split(",").map(function(e){return parseFloat(e)})}default_header_style="",$j("header.page_header").hasClass("light")&&(default_header_style="light"),$j("header.page_header").hasClass("dark")&&(default_header_style="dark"),$j(".carousel").length&&(S={zoom_center:"1.2, 0, 0, 1.2, 0, 0",zoom_top_left:"1.2, 0, 0, 1.2, -150, -150",zoom_top_right:"1.2, 0, 0, 1.2, 150, -150",zoom_bottom_left:"1.2, 0, 0, 1.2, -150, 150",zoom_bottom_right:"1.2, 0, 0, 1.2, 150, 150"},r=jQuery,t=/\([0-9epx\.\, \t\-]+/gi,d=["transform","-webkit-transform"],r.fn.transformAnimate=function(a){var e={transform:"matrix(1,0,0,1,0,0)"};r.extend(e,a),this.css("percentAnim",0);var t,i,s=(t=this,i=null,d.some(function(e){return null!==(i=t.css(e))&&""!==i}),o(i=i&&"none"!==i?i:"matrix(1,0,0,1,0,0)")),n=o(e.transform);return e.step=function(o,e){var t=r(this),i=s.map(function(e,t){return i=e,a=n[t],i+o/100*(a-i);var i,a});!function(e,t){for(var i="matrix("+t.join(",")+")",a=d.length-1;0<=a;--a)e.css(d[a],i)}(t,i),a.step&&a.step.apply(this,[i,e])},this.stop().animate({percentAnim:100},e)},$j(".carousel").each(function(){var s,n,r,d,l,h=$j(this),e=$window_width<1e3?$j("header.page_header").height():0,t=1e3<$window_width&&!$j("header.page_header").hasClass("transparent")&&0===$j("body.paspartu_on_top_fixed").length?$j("header.page_header").height():0,i=0<$j(".paspartu_outer:not(.disable_top_paspartu)").length?Math.round($window_width*paspartu_width+t):0,a=0<$j(".paspartu_outer.paspartu_on_bottom_slider").length?Math.round($window_width*paspartu_width):0,c=[1600,1200,900,650,500,320];h.data("mkd_responsive_breakpoints")&&"set2"===h.data("mkd_responsive_breakpoints")&&(c=[1600,1300,1e3,768,567,320]);var o,_,u,p=h.data("mkd_responsive_graphic_coefficients").split(","),m=h.data("mkd_responsive_title_coefficients").split(","),f=h.data("mkd_responsive_subtitle_coefficients").split(","),$=h.data("mkd_responsive_text_coefficients").split(","),g=h.data("mkd_responsive_button_coefficients").split(",");function j(e,t){var i=t;$window_width>c[0]?i=t:$window_width>c[1]?i=.75*t:$window_width>c[2]?i=.6*t:$window_width>c[3]?i=.55*t:$window_width<=c[3]&&(i=.45*t),e.css({height:i+"px"}),e.find(".mkd_slider_preloader").css({height:i+"px"}),e.find(".mkd_slider_preloader .ajax_loader").css({display:"block"}),e.find(".item").css({height:i+"px"})}function v(e){h.css({height:e+"px"}),h.find(".mkd_slider_preloader").css({height:e+"px"}),h.find(".mkd_slider_preloader .ajax_loader").css({display:"block"}),h.find(".item").css({height:e+"px"})}function w(e,t){window["slider_graphic_width_"+t]=[],window["slider_graphic_height_"+t]=[],window["slider_svg_width_"+t]=[],window["slider_svg_height_"+t]=[],window["slider_title_"+t]=[],window["slider_subtitle_"+t]=[],window["slider_text_"+t]=[],window["slider_text_separator_"+t]=[],window["slider_text_separator_width_"+t]=[],window["slider_button1_"+t]=[],window["slider_button2_"+t]=[],window["slider_top_separator_"+t]=[],window["slider_bottom_separator_"+t]=[],window["slider_graphic_width_"+t].push(parseFloat(e.find(".thumb img").data("width"))),window["slider_graphic_height_"+t].push(parseFloat(e.find(".thumb img").data("height"))),window["slider_svg_width_"+t].push(parseFloat(e.find(".mkd_slide-svg-holder svg").attr("width"))),window["slider_svg_height_"+t].push(parseFloat(e.find(".mkd_slide-svg-holder svg").attr("height"))),window["slider_title_"+t].push(parseFloat(e.find(".mkd_slide_title").css("font-size"))),window["slider_subtitle_"+t].push(parseFloat(e.find(".mkd_slide_subtitle").css("font-size"))),window["slider_text_"+t].push(parseFloat(e.find(".mkd_slide_text").css("font-size"))),window["slider_button1_"+t].push(parseFloat(e.find(".qbutton:eq(0)").css("font-size"))),window["slider_button2_"+t].push(parseFloat(e.find(".qbutton:eq(1)").css("font-size"))),window["slider_text_separator_"+t].push(parseFloat(e.find(".separator_content").css("font-size"))),window["slider_title_"+t].push(parseFloat(e.find(".mkd_slide_title").css("line-height"))),window["slider_subtitle_"+t].push(parseFloat(e.find(".mkd_slide_subtitle").css("line-height"))),window["slider_text_"+t].push(parseFloat(e.find(".mkd_slide_text").css("line-height"))),window["slider_button1_"+t].push(parseFloat(e.find(".qbutton:eq(0)").css("line-height"))),window["slider_button2_"+t].push(parseFloat(e.find(".qbutton:eq(1)").css("line-height"))),window["slider_text_separator_"+t].push(parseFloat(e.find(".separator_content").css("line-height"))),window["slider_title_"+t].push(parseFloat(e.find(".mkd_slide_title").css("letter-spacing"))),window["slider_subtitle_"+t].push(parseFloat(e.find(".mkd_slide_subtitle").css("letter-spacing"))),window["slider_text_"+t].push(parseFloat(e.find(".mkd_slide_text").css("letter-spacing"))),window["slider_button1_"+t].push(parseFloat(e.find(".qbutton:eq(0)").css("letter-spacing"))),window["slider_button2_"+t].push(parseFloat(e.find(".qbutton:eq(1)").css("letter-spacing"))),window["slider_text_separator_"+t].push(parseFloat(e.find(".separator_content").css("letter-spacing"))),window["slider_title_"+t].push(parseFloat(e.find(".mkd_slide_title").css("margin-bottom"))),window["slider_subtitle_"+t].push(parseFloat(e.find(".mkd_slide_subtitle").css("margin-bottom"))),window["slider_button1_"+t].push(parseFloat(e.find(".qbutton:eq(0)").css("height"))),window["slider_button2_"+t].push(parseFloat(e.find(".qbutton:eq(1)").css("height"))),0!==parseFloat(e.find(".qbutton:eq(0)").css("width"))?window["slider_button1_"+t].push(parseFloat(e.find(".qbutton:eq(0)").css("width"))):window["slider_button1_"+t].push(0),0!==parseFloat(e.find(".qbutton:eq(1)").css("width"))?window["slider_button2_"+t].push(parseFloat(e.find(".qbutton:eq(1)").css("width"))):window["slider_button2_"+t].push(0),window["slider_button1_"+t].push(parseFloat(e.find(".qbutton:eq(0)").css("padding-left"))),window["slider_button2_"+t].push(parseFloat(e.find(".qbutton:eq(1)").css("padding-left"))),window["slider_top_separator_"+t].push(parseFloat(e.find(".separator_top").css("margin-top"))),window["slider_top_separator_"+t].push(parseFloat(e.find(".separator_top").css("margin-bottom"))),window["slider_bottom_separator_"+t].push(parseFloat(e.find(".separator_bottom").css("margin-top"))),window["slider_bottom_separator_"+t].push(parseFloat(e.find(".separator_bottom").css("margin-bottom"))),window["slider_text_separator_width_"+t].push(parseFloat(e.find(".mkd_line_before").css("width")))}function b(e,t){l=$window_width>c[0]?(s=p[0],n=m[0],r=f[0],d=$[0],g[0]):$window_width>c[1]?(s=p[1],n=m[1],r=f[1],d=$[1],g[1]):$window_width>c[2]?(s=p[2],n=m[2],r=f[2],d=$[2],g[2]):$window_width>c[3]?(s=p[3],n=m[3],r=f[3],d=$[3],g[3]):$window_width>c[4]?(s=p[4],n=m[4],r=f[4],d=$[4],g[4]):$window_width>c[5]?(s=p[5],n=m[5],r=f[5],d=$[5],g[5]):(s=p[6],n=m[6],r=f[6],d=$[6],g[6]);var i=n,a=r,o=d;$window_width<=c[0]&&(i=n/2,a=r/2,o=d/2),e.find(".thumb").css({width:Math.round(window["slider_graphic_width_"+t][0]*s)+"px"}).css({height:Math.round(window["slider_graphic_height_"+t][0]*s)+"px"}),e.find(".mkd_slide-svg-holder svg").css({width:Math.round(window["slider_svg_width_"+t][0]*s)+"px"}).css({height:Math.round(window["slider_svg_height_"+t][0]*s)+"px"}),e.find(".mkd_slide_title").css({"font-size":Math.round(window["slider_title_"+t][0]*n)+"px"}),e.find(".mkd_slide_title").css({"line-height":Math.round(window["slider_title_"+t][1]*n)+"px"}),e.find(".mkd_slide_title").css({"letter-spacing":Math.round(window["slider_title_"+t][2]*i)+"px"}),e.find(".mkd_slide_title").css({"margin-bottom":Math.round(window["slider_title_"+t][3]*n)+"px"}),e.find(".mkd_slide_subtitle").css({"font-size":Math.round(window["slider_subtitle_"+t][0]*r)+"px"}),e.find(".mkd_slide_subtitle").css({"line-height":Math.round(window["slider_subtitle_"+t][1]*r)+"px"}),e.find(".mkd_slide_subtitle").css({"letter-spacing":Math.round(window["slider_subtitle_"+t][2]*a)+"px"}),e.find(".mkd_slide_subtitle").css({"margin-bottom":Math.round(window["slider_subtitle_"+t][3]*r)+"px"}),e.find(".mkd_slide_text").css({"font-size":Math.round(window["slider_text_"+t][0]*d)+"px"}),e.find(".mkd_slide_text").css({"line-height":Math.round(window["slider_text_"+t][1]*d)+"px"}),e.find(".mkd_slide_text").css({"letter-spacing":Math.round(window["slider_text_"+t][2]*o)+"px"}),e.find(".separator_content").css({"font-size":Math.round(window["slider_text_separator_"+t][0]*d)+"px"}),e.find(".separator_content").css({"line-height":Math.round(window["slider_text_separator_"+t][1]*d)+"px"}),e.find(".separator_content").css({"letter-spacing":Math.round(window["slider_text_separator_"+t][2]*o)+"px"}),e.find(".mkd_line_before").css({width:Math.round(window["slider_text_separator_width_"+t][0]*d)+"px"}),e.find(".mkd_line_after").css({width:Math.round(window["slider_text_separator_width_"+t][0]*d)+"px"}),e.find(".qbutton:eq(0)").css({"font-size":Math.round(window["slider_button1_"+t][0]*l)+"px"}),e.find(".qbutton:eq(1)").css({"font-size":Math.round(window["slider_button2_"+t][0]*l)+"px"}),e.find(".qbutton:eq(0)").css({"line-height":Math.round(window["slider_button1_"+t][1]*l)+"px"}),e.find(".qbutton:eq(1)").css({"line-height":Math.round(window["slider_button2_"+t][1]*l)+"px"}),e.find(".qbutton:eq(0)").css({"letter-spacing":Math.round(window["slider_button1_"+t][2]*l)+"px"}),e.find(".qbutton:eq(1)").css({"letter-spacing":Math.round(window["slider_button2_"+t][2]*l)+"px"}),e.find(".qbutton:eq(0)").css({height:Math.round(window["slider_button1_"+t][3]*l)+"px"}),e.find(".qbutton:eq(1)").css({height:Math.round(window["slider_button2_"+t][3]*l)+"px"}),0!==window["slider_button1_"+t][4]?e.find(".qbutton:eq(0)").css({width:Math.round(window["slider_button1_"+t][4]*l)+"px"}):e.find(".qbutton:eq(0)").css({width:"auto"}),0!==window["slider_button2_"+t][4]?e.find(".qbutton:eq(1)").css({width:Math.round(window["slider_button2_"+t][4]*l)+"px"}):e.find(".qbutton:eq(1)").css({width:"auto"}),e.find(".qbutton:eq(0)").css({"padding-left":Math.round(window["slider_button1_"+t][5]*l)+"px"}),e.find(".qbutton:eq(1)").css({"padding-left":Math.round(window["slider_button2_"+t][5]*l)+"px"}),e.find(".qbutton:eq(0)").css({"padding-right":Math.round(window["slider_button1_"+t][5]*l)+"px"}),e.find(".qbutton:eq(1)").css({"padding-right":Math.round(window["slider_button2_"+t][5]*l)+"px"}),e.find(".separator_top").css({"margin-top":Math.round(window["slider_top_separator_"+t][0]*n)+"px"}),e.find(".separator_top").css({"margin-bottom":Math.round(window["slider_top_separator_"+t][1]*n)+"px"}),e.find(".separator_bottom").css({"margin-top":Math.round(window["slider_bottom_separator_"+t][0]*n)+"px"}),e.find(".separator_bottom").css({"margin-bottom":Math.round(window["slider_bottom_separator_"+t][1]*n)+"px"})}h.hasClass("full_screen")?(h.css({height:$j(window).height()-e-i-a+"px"}),h.find(".mkd_slider_preloader").css({height:$j(window).height()-e-i-a+"px"}),h.find(".mkd_slider_preloader .ajax_loader").css({display:"block"}),h.find(".item").css({height:$j(window).height()-e-i-a+"px"}),$j(".paspartu_outer:not(.disable_top_paspartu)").length&&($j("body").hasClass("paspartu_on_top_fixed")||h.closest(".mkd_slider").css("padding-top",Math.round(t+$window_width*paspartu_width))),$j(".paspartu_outer.paspartu_on_bottom_slider").length&&h.closest(".mkd_slider").css("padding-bottom",Math.round($window_width*paspartu_width)),$j(window).resize(function(){e=$j(window).width()<1e3?$j("header.page_header").height():0,t=1e3<$window_width&&!$j("header.page_header").hasClass("transparent")&&0===$j("body.paspartu_on_top_fixed").length?$j("header.page_header").height():0,i=0<$j(".paspartu_outer:not(.disable_top_paspartu)").length?Math.round($window_width*paspartu_width+t):0,a=0<$j(".paspartu_outer.paspartu_on_bottom_slider").length?Math.round($window_width*paspartu_width):0,h.css({height:$j(window).height()-e-i-a+"px"}),h.find(".mkd_slider_preloader .ajax_loader").css({display:"block"}),h.find(".item").css({height:$j(window).height()-e-i-a+"px"}),$j(".paspartu_outer:not(.disable_top_paspartu)").length&&($j("body").hasClass("paspartu_on_top_fixed")||h.closest(".mkd_slider").css("padding-top",Math.round(t+$window_width*paspartu_width))),$j(".paspartu_outer.paspartu_on_bottom_slider").length&&h.closest(".mkd_slider").css("padding-bottom",Math.round($window_width*paspartu_width)),h.find(".item").each(function(e){b($j(this),e)})})):h.hasClass("responsive_height")?(o=h.data("height"),h.find(".mkd_slider_preloader").css({height:h.height()-e-i-a+"px",display:"block"}),$j(".paspartu_outer:not(.disable_top_paspartu)").length&&($j("body").hasClass("paspartu_on_top_fixed")||h.closest(".mkd_slider").css("padding-top",Math.round(t+$window_width*paspartu_width))),$j(".paspartu_outer.paspartu_on_bottom_slider").length&&h.closest(".mkd_slider").css("padding-bottom",Math.round($window_width*paspartu_width)),j(h,o),$j(window).resize(function(){$j(".paspartu_outer:not(.disable_top_paspartu)").length&&(t=1e3<$window_width&&!$j("header.page_header").hasClass("transparent")?$j("header.page_header").height():0,$j("body").hasClass("paspartu_on_top_fixed")||h.closest(".mkd_slider").css("padding-top",Math.round(t+$window_width*paspartu_width))),$j(".paspartu_outer.paspartu_on_bottom_slider").length&&h.closest(".mkd_slider").css("padding-bottom",Math.round($window_width*paspartu_width)),j(h,o),h.find(".item").each(function(e){b($j(this),e)})})):(o=h.data("height"),h.find(".mkd_slider_preloader").css({height:h.height()-e+"px",display:"block"}),h.find(".mkd_slider_preloader .ajax_loader").css({display:"block"}),$j(".paspartu_outer:not(.disable_top_paspartu)").length&&($j("body").hasClass("paspartu_on_top_fixed")||h.closest(".mkd_slider").css("padding-top",Math.round(t+$window_width*paspartu_width))),$j(".paspartu_outer.paspartu_on_bottom_slider").length&&h.closest(".mkd_slider").css("padding-bottom",Math.round($window_width*paspartu_width)),h.find(".item").each(function(e){w($j(this),e),b($j(this),e)}),$window_width<1e3?j(h,o):v(o),$j(window).resize(function(){$j(".paspartu_outer:not(.disable_top_paspartu)").length&&(t=1e3<$window_width&&!$j("header.page_header").hasClass("transparent")?$j("header.page_header").height():0,$j("body").hasClass("paspartu_on_top_fixed")||h.closest(".mkd_slider").css("padding-top",Math.round(t+$window_width*paspartu_width))),$j(".paspartu_outer.paspartu_on_bottom_slider").length&&h.closest(".mkd_slider").css("padding-bottom",Math.round($window_width*paspartu_width)),$window_width<1e3?(j(h,o),h.find(".item").each(function(e){b($j(this),e)})):(v(o),h.find(".item").each(function(e){var t,i;t=$j(this),i=e,t.find(".thumb").css({width:Math.round(window["slider_graphic_width_"+i][0])+"px"}).css({height:Math.round(window["slider_graphic_height_"+i][0])+"px"}),t.find(".mkd_slide-svg-holder svg").css({width:Math.round(window["slider_svg_width_"+i][0])+"px"}).css({height:Math.round(window["slider_svg_height_"+i][0])+"px"}),t.find(".mkd_slide_title").css({"font-size":Math.round(window["slider_title_"+i][0])+"px"}),t.find(".mkd_slide_title").css({"line-height":Math.round(window["slider_title_"+i][1])+"px"}),t.find(".mkd_slide_title").css({"letter-spacing":Math.round(window["slider_title_"+i][2])+"px"}),t.find(".mkd_slide_title").css({"margin-bottom":Math.round(window["slider_title_"+i][3])+"px"}),t.find(".mkd_slide_subtitle").css({"font-size":Math.round(window["slider_subtitle_"+i][0])+"px"}),t.find(".mkd_slide_subtitle").css({"line-height":Math.round(window["slider_subtitle_"+i][1])+"px"}),t.find(".mkd_slide_subtitle").css({"letter-spacing":Math.round(window["slider_subtitle_"+i][2])+"px"}),t.find(".mkd_slide_subtitle").css({"margin-bottom":Math.round(window["slider_subtitle_"+i][3])+"px"}),t.find(".mkd_slide_text").css({"font-size":Math.round(window["slider_text_"+i][0])+"px"}),t.find(".mkd_slide_text").css({"line-height":Math.round(window["slider_text_"+i][1])+"px"}),t.find(".mkd_slide_text").css({"letter-spacing":Math.round(window["slider_text_"+i][2])+"px"}),t.find(".qbutton:eq(0)").css({"font-size":Math.round(window["slider_button1_"+i][0])+"px"}),t.find(".qbutton:eq(1)").css({"font-size":Math.round(window["slider_button2_"+i][0])+"px"}),t.find(".qbutton:eq(0)").css({"line-height":Math.round(window["slider_button1_"+i][1])+"px"}),t.find(".qbutton:eq(1)").css({"line-height":Math.round(window["slider_button2_"+i][1])+"px"}),t.find(".qbutton:eq(0)").css({"letter-spacing":Math.round(window["slider_button1_"+i][2])+"px"}),t.find(".qbutton:eq(1)").css({"letter-spacing":Math.round(window["slider_button2_"+i][2])+"px"}),t.find(".qbutton:eq(0)").css({height:Math.round(window["slider_button1_"+i][3])+"px"}),t.find(".qbutton:eq(1)").css({height:Math.round(window["slider_button2_"+i][3])+"px"}),0!==window["slider_button1_"+i][4]?t.find(".qbutton:eq(0)").css({width:Math.round(window["slider_button1_"+i][4])+"px"}):t.find(".qbutton:eq(0)").css({width:"auto"}),0!==window["slider_button2_"+i][4]?t.find(".qbutton:eq(1)").css({width:Math.round(window["slider_button2_"+i][4])+"px"}):t.find(".qbutton:eq(1)").css({width:"auto"}),t.find(".qbutton:eq(0)").css({"padding-left":Math.round(window["slider_button1_"+i][5])+"px"}),t.find(".qbutton:eq(1)").css({"padding-left":Math.round(window["slider_button2_"+i][5])+"px"}),t.find(".qbutton:eq(0)").css({"padding-right":Math.round(window["slider_button1_"+i][5])+"px"}),t.find(".qbutton:eq(1)").css({"padding-right":Math.round(window["slider_button2_"+i][5])+"px"}),t.find(".separator_top").css({"margin-top":Math.round(window["slider_top_separator_"+i][0])+"px"}),t.find(".separator_top").css({"margin-bottom":Math.round(window["slider_top_separator_"+i][1])+"px"}),t.find(".separator_bottom").css({"margin-top":Math.round(window["slider_bottom_separator_"+i][0])+"px"}),t.find(".separator_bottom").css({"margin-bottom":Math.round(window["slider_bottom_separator_"+i][1])+"px"})}))})),$j("body:not(.boxed):not(.vertical_menu_transparency):not(.vertical_menu_background_opacity):not(.vertical_menu_hidden):not(.page-template-landing_page-php)").hasClass("vertical_menu_enabled")&&1e3<$window_width&&(u=290,$j(".vertical_menu_width_350").length&&(u=350),$j(".vertical_menu_width_400").length&&(u=400),_=$j("body").hasClass("paspartu_enabled")?2*Math.round($window_width*paspartu_width):0,h.find(".carousel-inner").width($window_width-u-_),$j(window).resize(function(){1e3<$j(window).width()?(_=$j("body").hasClass("paspartu_enabled")?2*Math.round($window_width*paspartu_width):0,h.find(".carousel-inner").width($window_width-u-_)):h.find(".carousel-inner").css("width","100%")})),$j("body:not(.boxed):not(.vertical_menu_transparency):not(.vertical_menu_background_opacity):not(.page-template-landing_page-php)").hasClass("vertical_menu_hidden")&&1e3<$window_width&&(_=$j("body").hasClass("paspartu_enabled")?2*Math.round($window_width*paspartu_width):0,h.find(".carousel-inner").width($window_width-40-_),$j(window).resize(function(){1e3<$j(window).width()?(_=$j("body").hasClass("paspartu_enabled")?2*Math.round($window_width*paspartu_width):0,h.find(".carousel-inner").width($window_width-40-_)):h.find(".carousel-inner").css("width","100%")})),$j(window).scroll(function(){h.hasClass("full_screen")&&$window_height<$scroll&&1e3<$window_width||!h.hasClass("full_screen")&&$scroll>h.height()&&1e3<$window_width?h.find(".carousel-inner, .carousel-indicators, button").hide():h.find(".carousel-inner, .carousel-indicators, button").show()});var k=h.data("slide_animation");""===k&&(k=6e3);var C,y=$j("div.item").length;function x(e,t){1===e?(h.find(".left.carousel-control .prev").html(t),h.find(".right.carousel-control .next").html(e+1)):e===t?(h.find(".left.carousel-control .prev").html(e-1),h.find(".right.carousel-control .next").html(1)):(h.find(".left.carousel-control .prev").html(e-1),h.find(".right.carousel-control .next").html(e+1))}function M(){h.find(".carousel-inner .item:first-child").addClass("active"),checkSliderForHeaderStyle($j(".carousel .active"),h.hasClass("header_effect")),h.hasClass("slider_numbers")&&x(1,y),h.hasClass("slider_thumbs")&&(x(1,y),h.find(".active").next("div").find(".image").length?(src=T.exec(h.find(".active").next("div").find(".image").attr("style")),(next_image=new Image).src=src[1]):((next_image=h.find(".active").next("div").find("> .video").clone()).find(".video-overlay").remove(),next_image.find(".video-wrap").width(170).height(95),next_image.find(".mejs-container").width(170).height(95),next_image.find("video").width(170).height(95)),h.find(".right.carousel-control .img").html(next_image).find("img, div.video").addClass("old"),h.find(".carousel-inner .item:last-child .image").length?(src=T.exec(h.find(".carousel-inner .item:last-child .image").attr("style")),(prev_image=new Image).src=src[1]):((prev_image=h.find(".carousel-inner .item:last-child > .video").clone()).find(".video-overlay").remove(),prev_image.find(".video-wrap").width(170).height(95),prev_image.find(".mejs-container").width(170).height(95),prev_image.find("video").width(170).height(95)),h.find(".left.carousel-control .img").html(prev_image).find("img, div.video").addClass("old")),h.hasClass("mkd_auto_start")?(h.carousel({interval:k,pause:!1}),h.find(".slide_buttons_holder .qbutton").mouseenter(function(){h.carousel("pause")}).mouseleave(function(){h.carousel("cycle")})):h.carousel({interval:0,pause:!1}),h.find(".item video").length&&initVideoBackgroundSize(),(h.hasClass("responsive_height")||h.hasClass("full_screen"))&&h.find(".item").each(function(e){w($j(this),e),b($j(this),e)}),$j(".carousel-inner .item:first-child").hasClass("animate_image")&&1e3<$window_width&&h.find(".carousel-inner .item.animate_image:first-child .image").transformAnimate({transform:"matrix("+S[$j(".carousel-inner .item:first-child").data("animate_image")]+")",duration:3e4}),$j(".slider_content_outer.content_bottom_left, .slider_content_outer.content_bottom_right").each(function(){var e,t,i;void 0!==$j(this).find(".slider_content").data("resize")&&(e=$j(this).find(".slider_content"),t=e.width(),i=e.data("resize"),$j(window).width()<1350&&1e3<$j(window).width()?e.css({width:i+"px"}):e.css({width:t+"px"}),$j(window).resize(function(){$j(window).width()<1350&&1e3<$j(window).width()?e.css({width:i+"px"}):e.css({width:t+"px"})}))})}$j("html").hasClass("touch")?0<h.find(".item:first-child .mobile-video-image").length?(src=T.exec(h.find(".item:first-child .mobile-video-image").attr("style")))&&((C=new Image).src=src[1],$j(C).on("load",function(){$j(".mkd_slider_preloader").fadeOut(500),M()})):(src=T.exec(h.find(".item:first-child .image").attr("style")))&&((C=new Image).src=src[1],$j(C).on("load",function(){$j(".mkd_slider_preloader").fadeOut(500),M()})):0<h.find(".item:first-child video").length?h.find(".item:first-child video").get(0).addEventListener("loadeddata",function(){$j(".mkd_slider_preloader").fadeOut(500),M()}):(src=T.exec(h.find(".item:first-child .image").attr("style")))&&((C=new Image).src=src[1],$j(C).on("load",function(){$j(".mkd_slider_preloader").fadeOut(500),M()})),h.on("slide.bs.carousel",function(){h.addClass("in_progress"),h.find(".active .slider_content_outer").fadeTo(250,0)}),h.on("slid.bs.carousel",function(){h.removeClass("in_progress"),h.find(".active .slider_content_outer").fadeTo(0,1),h.hasClass("slider_numbers")&&x($j("div.item").index($j("div.item.active")[0])+1,y),$j("div.item.animate_image .image").stop().css({transform:"","-webkit-transform":""}),$j("div.item.active").hasClass("animate_image")&&1e3<$window_width&&$j("div.item.animate_image.active .image").transformAnimate({transform:"matrix("+S[$j("div.item.animate_image.active").data("animate_image")]+")",duration:3e4}),h.hasClass("slider_thumbs")&&(x($j("div.item").index($j("div.item.active")[0])+1,y),h.find(".active").prev("div.item").length?h.find(".active").prev("div").find(".image").length?(src=T.exec(h.find(".active").prev("div").find(".image").attr("style")),(prev_image=new Image).src=src[1]):((prev_image=h.find(".active").prev("div").find("> .video").clone()).find(".video-overlay").remove(),prev_image.find(".video-wrap").width(170).height(95),prev_image.find(".mejs-container").width(170).height(95),prev_image.find("video").width(170).height(95)):h.find(".carousel-inner .item:last-child .image").length?(src=T.exec(h.find(".carousel-inner .item:last-child .image").attr("style")),(prev_image=new Image).src=src[1]):((prev_image=h.find(".carousel-inner .item:last-child > .video").clone()).find(".video-overlay").remove(),prev_image.find(".video-wrap").width(170).height(95),prev_image.find(".mejs-container").width(170).height(95),prev_image.find("video").width(170).height(95)),h.find(".left.carousel-control .img .old").fadeOut(300,function(){$j(this).remove()}),h.find(".left.carousel-control .img").append(prev_image).find("img, div.video").fadeIn(300).addClass("old"),h.find(".active").next("div.item").length?h.find(".active").next("div").find(".image").length?(src=T.exec(h.find(".active").next("div").find(".image").attr("style")),(next_image=new Image).src=src[1]):((next_image=h.find(".active").next("div").find("> .video").clone()).find(".video-overlay").remove(),next_image.find(".video-wrap").width(170).height(95),next_image.find(".mejs-container").width(170).height(95),next_image.find("video").width(170).height(95)):h.find(".carousel-inner .item:first-child .image").length?(src=T.exec(h.find(".carousel-inner .item:first-child .image").attr("style")),(next_image=new Image).src=src[1]):((next_image=h.find(".carousel-inner .item:first-child > .video").clone()).find(".video-overlay").remove(),next_image.find(".video-wrap").width(170).height(95),next_image.find(".mejs-container").width(170).height(95),next_image.find("video").width(170).height(95)),h.find(".right.carousel-control .img .old").fadeOut(300,function(){$j(this).remove()}),h.find(".right.carousel-control .img").append(next_image).find("img, div.video").fadeIn(300).addClass("old"))}),h.swipe({swipeLeft:function(e,t,i,a,o){h.carousel("next")},swipeRight:function(e,t,i,a,o){h.carousel("prev")},threshold:20})}),$j(".no-touch .carousel").length&&(skrollr_slider=skrollr.init({smoothScrolling:!1,forceHeight:!1})).refresh())}function checkSliderForHeaderStyle(e,t){"use strict";var i;0<$j(".mkd_slider .carousel").not(".disable_slider_header_style_changing").length&&(i="",e.hasClass("light")&&(i="light"),e.hasClass("dark")&&(i="dark"),""!==i?(t&&($j("header.page_header").removeClass("dark light").addClass(i),$j("aside.vertical_menu_area").removeClass("dark light").addClass(i)),$j(".carousel .carousel-control, .carousel .carousel-indicators").removeClass("dark light").addClass(i)):(t&&($j("header.page_header").removeClass("dark light").addClass(default_header_style),$j("aside.vertical_menu_area").removeClass("dark light").addClass(default_header_style)),$j(".carousel .carousel-control, .carousel .carousel-indicators").removeClass("dark light").addClass(default_header_style)))}function calculateHeights(){"use strict";$j(".portfolio_slides").length&&$j(".portfolio_slides").each(function(){$j(this).parents(".caroufredsel_wrapper").css({height:$j(this).find("li.item").outerHeight()-3+"px"})}),$j(".mkd_carousels .slides").length&&$j(".mkd_carousels .slides").each(function(){$j(this).parents(".caroufredsel_wrapper").css({height:$j(this).find("li.item").outerHeight()+"px"})}),$j(".blog_slides").length&&$j(".blog_slides").each(function(){$j(this).parents(".caroufredsel_wrapper").css({height:$j(this).find("li.item").outerHeight()-3+"px"})}),$j(".product_slider .products").length&&$j(".product_slider .products").each(function(){$j(this).parents(".caroufredsel_wrapper").css({height:$j(this).find("li").outerHeight()-3+"px"})})}function responsiveNumberSlidesCarousel(e,t){"use strict";var i=window.innerWidth;return 1200<=i?e:i<1200&&1e3<=i?5===parseInt(t)?4:e:i<1e3&&800<=i?3:i<800&&500<=i?2:i<500?1:void 0}function initMikadoCarousel(){"use strict";$j(".mkd_carousels").length&&($j(".mkd_carousels").each(function(){var e,t,i=1!==$j(this).parents(".grid_section").length&&1===$j(this).parents(".page-template-full_width").length,a=void 0!==$j(this).data("number_of_items")?(e=$j(this).data("number_of_items"),!0):!(e=5),o=1===$j(this).parents(".grid_section").length?216:380,s=e;if(i)switch(e){case 3:t=660;break;case 4:t=500;break;case 5:default:t=380}else switch(e){case 3:t=380;break;case 4:t=275;break;case 5:t=216;break;default:t=380}o=a?t:o;$j(this).find(".slides").carouFredSel({circular:!0,responsive:!0,scroll:{items:1,duration:1e3,pauseOnHover:!1},prev:{button:function(){return $j(this).parent().siblings(".caroufredsel-direction-nav").find(".mkd_carousel_prev")}},next:{button:function(){return $j(this).parent().siblings(".caroufredsel-direction-nav").find(".mkd_carousel_next")}},items:{width:o,visible:{min:responsiveNumberSlidesCarousel(s,e),max:s}},auto:!0,mousewheel:!1,swipe:{onMouse:!0,onTouch:!0}}).animate({opacity:1},1e3)}),calculateHeights())}function initPortfolioSlider(){"use strict";$j(".portfolio_slider").length&&($j(".portfolio_slider").each(function(){var e,t=void 0!==$j(this).data("portfolios_shown")?$j(this).data("portfolios_shown"):"auto",i=1===$j(this).parents(".grid_section").length?3:t;switch(t){case 3:e=667;break;case 4:e=500;break;case 5:e=400;break;case 6:e=334;break;default:e=500}var a=1===$j(this).parents(".grid_section").length?353:e;$j(this).find(".portfolio_slides").carouFredSel({circular:!0,responsive:!0,scroll:1,prev:{button:function(){return $j(this).parent().siblings(".caroufredsel-direction-nav").find(".caroufredsel-prev")}},next:{button:function(){return $j(this).parent().siblings(".caroufredsel-direction-nav").find(".caroufredsel-next")}},items:{width:a,visible:{min:1,max:i}},auto:!1,mousewheel:!1,swipe:{onMouse:!0,onTouch:!0}}).animate({opacity:1},1e3)}),calculateHeights(),$j(".portfolio_slider .flex-direction-nav a").on("click",function(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}))}function initProductSlider(){"use strict";$j(".product_slider").length&&($j(".product_slider").each(function(){var e,t=void 0!==$j(this).data("products_shown")?$j(this).data("products_shown"):"auto",i=1===$j(this).parents(".grid_section").length?3:t;switch(t){case 3:e=667;break;case 4:e=500;break;case 5:e=400;break;case 6:e=334;break;default:e=500}var a=1===$j(this).parents(".grid_section").length?353:e;$j(this).find("ul.products").carouFredSel({circular:!0,responsive:!0,scroll:1,prev:{button:function(){return $j(this).parent().parent().siblings(".caroufredsel-direction-nav").find(".caroufredsel-prev")}},next:{button:function(){return $j(this).parent().parent().siblings(".caroufredsel-direction-nav").find(".caroufredsel-next")}},pagination:function(){return $j(this).parent().parent().siblings(".product_slider_pager")},items:{width:a,visible:{min:1,max:i}},auto:!1,mousewheel:!1,swipe:{onMouse:!0,onTouch:!0}}).animate({opacity:1},1e3)}),calculateHeights(),$j(".product_slider .flex-direction-nav a").on("click",function(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}))}function responsiveNumberSlides(e){"use strict";var t=window.innerWidth;return 1200<t?e:t<1200&&800<=t?3:t<800&&500<t?2:t<=500?1:void 0}function initBlogSlider(){"use strict";$j(".blog_slider").length&&($j(".blog_slider").each(function(){var e,t=void 0!==$j(this).data("blogs_shown")?$j(this).data("blogs_shown"):"auto",i=1===$j(this).parents(".grid_section").length?3:t;switch(t){case 3:e=667;break;case 4:e=500;break;case 5:e=400;break;case 6:e=334;break;default:e=500}var a=1===$j(this).parents(".grid_section").length?353:e;$j(this).find(".blog_slides").carouFredSel({circular:!0,responsive:!0,scroll:1,prev:{button:function(){return $j(this).parent().siblings(".caroufredsel-direction-nav").find(".caroufredsel-prev")}},next:{button:function(){return $j(this).parent().siblings(".caroufredsel-direction-nav").find(".caroufredsel-next")}},pagination:function(){return $j(this).parent().siblings(".blog_slider_pager")},items:{width:a,visible:{min:responsiveNumberSlides(i),max:i}},auto:!1,mousewheel:!1,swipe:{onMouse:!0,onTouch:!0}}).animate({opacity:1},1e3)}),calculateHeights(),$j(".blog_slider .flex-direction-nav a").on("click",function(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}))}function initSideMenu(){"use strict";$j("body").hasClass("side_menu_slide_with_content")&&$j(".side_menu_button_wrapper a.side_menu_button_link, a.close_side_menu").on("click",function(e){e.preventDefault(),$j(".side_menu_button_wrapper a.side_menu_button_link").hasClass("opened")?($j("body").removeClass("side_menu_open"),$j(".side_menu_button_wrapper a.side_menu_button_link").removeClass("opened"),$j("body").removeClass("side_menu_open")):($j(this).addClass("opened"),$j("body").addClass("side_menu_open"),current_scroll=$j(window).scrollTop(),$j(window).scroll(function(){400<Math.abs($scroll-current_scroll)&&($j("body").removeClass("side_menu_open"),$j(".side_menu_button_wrapper a").removeClass("opened"))})),e.stopPropagation(),$j(".wrapper").on("click",function(){e.preventDefault(),$j("body").removeClass("side_menu_open"),$j(".side_menu_button_wrapper a.side_menu_button_link").removeClass("opened"),$j("body").removeClass("side_menu_open")})}),$j("body").hasClass("side_menu_slide_from_right")&&($j(".wrapper").prepend('<div class="cover"/>'),$j(".side_menu_button_wrapper a.side_menu_button_link, a.close_side_menu").on("click",function(e){e.preventDefault(),$j(".side_menu_button_wrapper a.side_menu_button_link").hasClass("opened")?($j(".side_menu_button_wrapper a.side_menu_button_link").removeClass("opened"),$j("body").removeClass("right_side_menu_opened")):($j(this).addClass("opened"),$j("body").addClass("right_side_menu_opened"),$j(" .wrapper .cover").on("click",function(){$j(".side_menu_button_wrapper a.side_menu_button_link").removeClass("opened"),$j("body").removeClass("right_side_menu_opened"),$j(".side_menu_button_wrapper a").removeClass("opened")}),current_scroll=$j(window).scrollTop(),$j(window).scroll(function(){400<Math.abs($scroll-current_scroll)&&($j("body").removeClass("right_side_menu_opened"),$j(".side_menu_button_wrapper a").removeClass("opened"))}))})),$j("body").hasClass("side_area_uncovered_from_content")&&$j(".side_menu_button_wrapper a.side_menu_button_link,  a.close_side_menu").on("click",function(e){var t;e.preventDefault(),$j(".side_menu_button_wrapper a.side_menu_button_link").hasClass("opened")?($j(".side_menu_button_wrapper a.side_menu_button_link").removeClass("opened"),$j("body").removeClass("right_side_menu_opened"),t=setTimeout(function(){$j(".side_menu").css({visibility:"hidden"}),clearTimeout(t)},400)):($j(".side_menu").css({visibility:"visible"}),$j(this).addClass("opened"),$j("body").addClass("right_side_menu_opened"),current_scroll=$j(window).scrollTop(),$j(window).scroll(function(){var e;400<Math.abs($scroll-current_scroll)&&($j("body").removeClass("right_side_menu_opened"),$j(".side_menu_button_wrapper a").removeClass("opened"),e=setTimeout(function(){$j(".side_menu").css({visibility:"hidden"}),clearTimeout(e)},400))}))})}function setDropDownMenuPosition(){"use strict";var n=$j(".drop_down > ul > li.narrow");n.each(function(e){var t,i=$j(window).width()-16,a=$j(n[e]).offset().left,o=$j(n[e]).find(".second .inner ul").width(),s=0,s=$j("body").hasClass("boxed")?1150-(a-(i-1150)/2)+24:i-a+24;0<$j(n[e]).find("li.sub").length&&(t=s-o),(s<o||t<o)&&($j(n[e]).find(".second").addClass("right"),$j(n[e]).find(".second .inner ul").addClass("right"))})}function initDropDownMenu(){"use strict";var _=$j(".drop_down > ul > li");_.each(function(e){var t,i,a,o,s,n,r,d,l,h,c;0<$j(_[e]).find(".second").length&&($j(_[e]).hasClass("wide")&&(t=$j(this).find(".inner > ul"),i=parseInt(t.css("padding-left").slice(0,-2))+parseInt(t.css("padding-right").slice(0,-2)),$j(this).hasClass("left_position")||$j(this).hasClass("right_position")||$j(this).find(".second").css("left",0),a=0,$j(this).find(".second > .inner > ul > li").each(function(){$j(this).waitForImages(function(){var e=$j(this).height();a<e&&(a=e)})}),$j(this).find(".second > .inner > ul > li").height(a),o=4<$j(this).find(".second > .inner > ul > li").length?4:$j(this).find(".second > .inner > ul > li").length,!$j("body").hasClass("header_general_padding")||$j(this).hasClass("left_position")||$j(this).hasClass("right_position")?(n=o*$j(this).find(".second > .inner > ul > li").outerWidth(),$j(this).find(".second > .inner > ul").width(n),$j(this).hasClass("wide_background")?$j(this).hasClass("left_position")||$j(this).hasClass("right_position")||(s=$j(this).offset().left,$j(this).find(".second").css("left",-s),$j(this).find(".second").css("width",$j(window).width())):$j(this).hasClass("left_position")||$j(this).hasClass("right_position")||(s=($j(window).width()-2*($j(window).width()-$j(this).find(".second").offset().left))/2+(n+i)/2,$j(this).find(".second").css("left",-s))):(d=(r=$j(this).parents(".header_bottom > .container > .container_inner").width())/o,l=$j(this).parents(".header_bottom > .container > .container_inner").offset().left,h=-($j(this).offset().left-l),$j(this).find(".second > .inner > ul > li").css("box-sizing","border-box"),$j(this).find(".second > .inner > ul").width(r),$j(this).find(".second > .inner > ul > li").outerWidth(d),$j(this).find(".second").css("left",h))),menu_dropdown_height_set||($j(_[e]).data("original_height",$j(_[e]).find(".second").height()+"px"),$j(_[e]).find(".second").height(0)),navigator.userAgent.match(/(iPod|iPhone|iPad)/)?$j(_[e]).on("touchstart mouseenter",function(){$j(_[e]).find(".second").css({height:$j(_[e]).data("original_height"),overflow:"visible",visibility:"visible",opacity:"1"})}).on("mouseleave",function(){$j(_[e]).find(".second").css({height:"0px",overflow:"hidden",visibility:"hidden",opacity:"0"})}):$j(".drop_down.animate_height ").length?$j(_[e]).mouseenter(function(){$j(_[e]).find(".second").css({visibility:"visible",height:"0px",opacity:"0",display:"block"}),$j(_[e]).find(".second").stop().animate({height:$j(_[e]).data("original_height"),opacity:1},200,function(){$j(_[e]).find(".second").css("overflow","visible")})}).mouseleave(function(){$j(_[e]).find(".second").stop().animate({height:"0px"},0,function(){$j(_[e]).find(".second").css({overflow:"hidden",visivility:"hidden",display:"none"})})}):(c={interval:0,over:function(){setTimeout(function(){$j(_[e]).find(".second").addClass("drop_down_start"),$j(_[e]).find(".second").stop().css({height:$j(_[e]).data("original_height")})},150)},timeout:150,out:function(){$j(_[e]).find(".second").stop().css({height:"0px"}),$j(_[e]).find(".second").removeClass("drop_down_start")}},$j(_[e]).hoverIntent(c)))}),$j(".drop_down ul li.wide ul li a").on("click",function(){var e=$j(this);setTimeout(function(){e.mouseleave()},500)}),menu_dropdown_height_set=!0}function initVerticalMenu(){"use strict";var t,o,i,s,n;$j(".no-touch .vertical_menu").hasClass("click")?(s=$j(".no-touch .vertical_menu_toggle > ul > li > a"),n=$j(".no-touch .vertical_menu_toggle ul li ul li a"),s.each(function(e){$j(s[e]).parent().hasClass("has_sub")&&$j(s[e]).on("click",function(e){return e.preventDefault(),$j(this).parent().hasClass("open")||$j(this).parent().hasClass("current-menu-ancestor")?($j(this).parent().removeClass("open"),$j(this).parent().find(".second").slideUp("fast",function(){$j(this).parent().removeClass("current-menu-ancestor"),$j(".vertical_menu_area.with_scroll").getNiceScroll().resize()})):($j(".no-touch .vertical_menu_toggle > ul > li").removeClass("open current-menu-ancestor"),$j(".no-touch .vertical_menu_toggle > ul > li").find(".second").slideUp("fast"),$j(this).parent().addClass("open"),$j(this).parent().find(".second").slideDown("slow",function(){$j(".vertical_menu_area.with_scroll").getNiceScroll().resize()})),!1})}),n.each(function(e){$j(n[e]).parent().hasClass("menu-item-has-children")&&$j(n[e]).on("click",function(e){return e.preventDefault(),$j(this).parent().hasClass("open")||$j(this).parent().hasClass("current_page_parent")?($j(this).parent().removeClass("open"),$j(this).parent().find("ul").slideUp("fast",function(){$j(this).parent().removeClass("current_page_parent"),$j(".vertical_menu_area.with_scroll").getNiceScroll().resize()})):($j(".no-touch .vertical_menu_toggle ul li ul li").removeClass("open current_page_parent"),$j(".no-touch .vertical_menu_toggle ul li ul li").find("ul").slideUp("fast"),$j(this).parent().addClass("open"),$j(this).parent().find("ul").slideDown("slow",function(){$j(".vertical_menu_area.with_scroll").getNiceScroll().resize()})),!1})})):$j(".vertical_menu").hasClass("vertical_menu_side")?(i=$j("body").hasClass("vertical_menu_right")?(o={right:"0%"},{right:"-150%"}):(o={left:"0%"},{left:"-150%"}),s=$j(".vertical_menu_side > ul > li > a"),n=$j(".vertical_menu_side ul li ul li a"),s.each(function(e){var t,i,a;$j(s[e]).parent().hasClass("has_sub")&&(t=$j(this).attr("href"),i=$j(this).text(),a=$j("<li />",{class:"prev_level"}),$j("<a />",{href:t,html:'<i class="mkd_menu_arrow fa fa-angle-left"></i>'+i}).appendTo(a),$j(this).parent().find(".second > div > ul").prepend(a),$j(s[e]).on("click",function(e){return e.preventDefault(),$j(".vertical_menu_side > ul > li").removeClass("open current-menu-ancestor"),$j(this).parent().addClass("open"),$j(this).parent().hasClass("prev_level")||$j(this).parent().find(".second").css("display","block").animate(o,500,function(){$j(".vertical_menu_area.with_scroll").getNiceScroll().resize()}),!1}))}),$j(".vertical_menu_side ul li ul > li.prev_level > a").on("click",function(e){return e.preventDefault(),$j(this).closest(".second").animate(i,500,function(){$j(this).css("display","none"),$j(".vertical_menu_area.with_scroll").getNiceScroll().resize()}),!1}),n.each(function(e){var t,i,a;$j(n[e]).parent().hasClass("menu-item-has-children")&&(t=$j(this).attr("href"),i=$j(this).text(),a=$j("<li />",{class:"prev_level"}),$j("<a />",{href:t,html:'<i class="mkd_menu_arrow fa fa-angle-left"></i>'+i}).appendTo(a),$j(this).next("ul").prepend(a),$j(n[e]).on("click",function(e){return e.preventDefault(),$j(".vertical_menu_toggle ul li ul li").removeClass("open current_page_parent"),$j(this).parent().addClass("open"),$j(this).parent().hasClass("prev_level")||$j(this).next("ul").css("display","block").animate(o,500,function(){$j(".vertical_menu_area.with_scroll").getNiceScroll().resize()}),!1}))}),$j(".vertical_menu_side ul li ul li ul li.prev_level a").on("click",function(e){return e.preventDefault(),$j(this).closest("ul").animate(i,500,function(){$j(this).css("display","none"),$j(".vertical_menu_area.with_scroll").getNiceScroll().resize()}),!1})):$j(".vertical_menu").hasClass("vertical_menu_to_content")?(s=$j(".no-touch .vertical_menu_to_content > ul > li"),n=$j(".no-touch .vertical_menu_to_content ul li ul li"),s.each(function(e){$j(s[e]).hasClass("has_sub")&&(t=$j(s[e]).find(".inner > ul > li").length,$j(s[e]).hoverIntent({over:function(){$j(s[e]).addClass("open"),$j(s[e]).find(".second").addClass("vertical_menu_start")},out:function(){$j(s[e]).removeClass("open"),$j(s[e]).find(".second").removeClass("vertical_menu_start")},timeout:300}))}),n.each(function(e){$j(n[e]).hasClass("menu-item-has-children")&&(t=$j(n[e]).find("ul > li").length,$j(n[e]).hoverIntent({over:function(){$j(n[e]).addClass("open"),$j(n[e]).find("ul").addClass("vertical_submenu_start")},out:function(){$j(n[e]).removeClass("open"),$j(n[e]).find("ul").removeClass("vertical_submenu_start")},timeout:300}))})):(s=$j(".no-touch .vertical_menu_toggle > ul > li"),n=$j(".no-touch .vertical_menu_toggle ul li ul li"),s.each(function(e){$j(s[e]).hasClass("has_sub")&&(t=$j(s[e]).find(".inner > ul > li").length,$j(s[e]).hoverIntent({over:function(){$j(s[e]).addClass("open"),$j(s[e]).find(".second").slideDown(40*t,"easeInOutSine",function(){$j(".vertical_menu_area.with_scroll").getNiceScroll().resize()})},out:function(){$j(s[e]).removeClass("open"),$j(s[e]).find(".second").slideUp(40*t,"easeInOutSine")},timeout:1e3}))}),n.each(function(e){$j(n[e]).hasClass("menu-item-has-children")&&(t=$j(n[e]).find("ul > li").length,$j(n[e]).hoverIntent({over:function(){$j(n[e]).addClass("open"),$j(n[e]).find("ul").slideDown(40*t,"easeInOutSine",function(){$j(".vertical_menu_area.with_scroll").getNiceScroll().resize()})},out:function(){$j(n[e]).removeClass("open"),$j(n[e]).find("ul").slideUp(40*t,"easeInOutSine")},timeout:1e3}))}))}function initVerticalMobileMenu(){"use strict";var t,i;$j(".touch .vertical_menu").hasClass("vertical_menu_to_content")?(t=$j(".touch .vertical_menu_to_content > ul > li"),i=$j(".touch .vertical_menu_to_content ul li ul li"),t.each(function(e){$j(t[e]).hasClass("has_sub")&&($j(t[e]).find(".inner > ul > li").length,$j(t[e]).hoverIntent({over:function(){$j(t[e]).addClass("open"),$j(t[e]).find(".second").addClass("vertical_menu_start")},out:function(){$j(t[e]).removeClass("open"),$j(t[e]).find(".second").removeClass("vertical_menu_start")},timeout:300}))}),i.each(function(e){$j(i[e]).hasClass("menu-item-has-children")&&($j(i[e]).find("ul > li").length,$j(i[e]).hoverIntent({over:function(){$j(i[e]).addClass("open"),$j(i[e]).find("ul").addClass("vertical_submenu_start")},out:function(){$j(i[e]).removeClass("open"),$j(i[e]).find("ul").removeClass("vertical_submenu_start")},timeout:300}))})):($j(".touch .vertical_menu_toggle > ul > li.has_sub > a").on("tap click",function(e){e.stopPropagation(),e.preventDefault(),$j(this).next("div.second").is(":visible")?($j(this).parents(".touch .vertical_menu_toggle > ul > li.has_sub").removeClass("open"),$j(this).next("div.second").slideUp(200)):($j(this).parents(".touch .vertical_menu_toggle > ul > li.has_sub").addClass("open"),$j(this).next("div.second").slideDown(200))}),$j(".touch .vertical_menu_toggle ul li ul li.sub > a").on("tap click",function(e){e.stopPropagation(),e.preventDefault(),$j(this).next("ul").is(":visible")?($j(this).parents(".touch .vertical_menu_toggle ul li ul li").removeClass("open"),$j(this).next("ul").slideUp(200)):($j(this).parents(".touch .vertical_menu_toggle ul li ul li").addClass("open"),$j(this).next("ul").slideDown(200))}))}function checkVerticalMenuTransparency(){"use strict";0!==$scroll?($j("body.vertical_menu_transparency").removeClass("vertical_menu_transparency_on"),$j("body.vertical_menu_transparency").addClass("vertical_menu_transparency_off"),$j("body.vertical_menu_background_opacity_over_slider").removeClass("vertical_menu_background_opacity_over_slider_on"),$j("body.vertical_menu_background_opacity_over_slider").addClass("vertical_menu_background_opacity_over_slider_off")):($j("body.vertical_menu_transparency").addClass("vertical_menu_transparency_on"),$j("body.vertical_menu_transparency").removeClass("vertical_menu_transparency_off"),$j("body.vertical_menu_background_opacity_over_slider").addClass("vertical_menu_background_opacity_over_slider_on"),$j("body.vertical_menu_background_opacity_over_slider").removeClass("vertical_menu_background_opacity_over_slider_off")),0==$j(".content.has_slider").length&&($j("body.vertical_menu_background_opacity_over_slider").removeClass("vertical_menu_background_opacity_over_slider_on"),$j("body.vertical_menu_background_opacity_over_slider").addClass("vertical_menu_background_opacity_over_slider_off"))}function showHideVerticalMenu(){"use strict";var t,i,a;$j(".vertical_menu_hidden").length&&(t=$j("aside.vertical_menu_area"),i=$j(".vertical_menu_area_bottom_logo"),a=!0,$j(document).on("click",".vertical_menu_hidden_button, .vertical_menu_area_bottom_logo a, .vertical_menu_hidden .active nav.vertical_menu.vertical_menu_side ul li:not(.has_sub):not(.menu-item-has-children):not(.prev_level) a:not([href='#']), .vertical_menu_hidden .active nav.vertical_menu.on('click',  ul li:not(.has_sub):not(.menu-item-has-children) a:not([href='#']),  .vertical_menu_hidden .active nav.vertical_menu_toggle:not(.on('click', ) ul li a:not([href='#'])",function(e){$j(this).closest(".vertical_menu").length||e.preventDefault(),a?(a=!1,current_scroll=$j(window).scrollTop(),t.addClass("active"),i.addClass("active"),t.find(".menu_icon_wrapper").width(t.find(".menu_icon_wrapper i").width()-3)):(a=!0,t.removeClass("active"),i.removeClass("active"),t.find(".menu_icon_wrapper").width(""))}),$j(window).scroll(function(){400<Math.abs($scroll-current_scroll)&&(a=!0,t.removeClass("active"),i.removeClass("active"))}),$j(t).outclick({callback:function(){a=!0,t.removeClass("active"),i.removeClass("active"),t.find(".menu_icon_wrapper").width("")}}))}function initToCounter(){"use strict";$j(".counter.zero").length&&$j(".counter.zero").each(function(){$j(this).hasClass("executed")||($j(this).addClass("executed"),$j(this).appear(function(){$j(this).parent().css("opacity","1");var e=parseFloat($j(this).text());$j(this).countTo({from:0,to:e,speed:1500,refreshInterval:100})},{accX:0,accY:element_appear_amount}))})}function initCounter(){"use strict";$j(".counter.random").length&&$j(".counter.random").each(function(){$j(this).hasClass("executed")||($j(this).addClass("executed"),$j(this).appear(function(){$j(this).parent().css("opacity","1"),$j(this).absoluteCounter({speed:2e3,fadeInDelay:1e3})},{accX:0,accY:element_appear_amount}))})}function initProgressBars(){"use strict";var t;$j(".mkd_progress_bar").length&&(t=$j(".vertical_split_slider").length?0:element_appear_amount,$j(".mkd_progress_bar").each(function(){var e;$j(this).parents(".vertical_split_slider").length?(initToCounterHorizontalProgressBar($j(this)),e=$j(this).find(".progress_content").data("percentage"),$j(this).find(".progress_content").css("width","0%"),$j(this).find(".progress_content").animate({width:e+"%"},1500),$j(this).find(".progress_number").css("left","0%"),$j(this).find(".progress_number").animate({left:e+"%"},1500)):$j(this).appear(function(){var e;initToCounterHorizontalProgressBar($j(this)),0!==$j(this).find(".floating.floating_inside")&&(e=$j(this).find(".progress_content_outer").height(),e+=parseFloat($j(this).find(".progress_title_holder").css("padding-bottom")),e+=parseFloat($j(this).find(".progress_title_holder").css("margin-bottom")),$j(this).find(".floating_inside").css("margin-bottom",-e+"px"));var t=$j(this).find(".progress_content").data("percentage");$j(this).find(".progress_content").css("width","0%"),$j(this).find(".progress_content").animate({width:t+"%"},1500),$j(this).find(".progress_number").css("left","0%"),$j(this).find(".progress_number").animate({left:t+"%"},1500)},{accX:0,accY:t})}))}function initToCounterHorizontalProgressBar(e){"use strict";var t=parseFloat(e.find(".progress_content").data("percentage"));e.find(".progress_number span.percent").length&&e.find(".progress_number span.percent").each(function(){$j(this).parents(".progress_number_wrapper").css("opacity","1"),$j(this).countTo({from:0,to:t,speed:1500,refreshInterval:50})})}function initListAnimation(){"use strict";0<$j(".animate_list").length&&0===$j(".no_animation_on_touch").length&&$j(".animate_list").each(function(){$j(this).appear(function(){$j(this).find("li").each(function(e){var t=$j(this);setTimeout(function(){t.animate({opacity:1,top:0},1500)},100*e)})},{accX:0,accY:element_appear_amount})})}function initPieChart(){"use strict";$j(".mkd_percentage").length&&$j(".mkd_percentage").each(function(){var e=piechartcolor;""!==$j(this).data("active")&&(e=$j(this).data("active"));var t="#f6f6f5";""!==$j(this).data("noactive")&&(t=$j(this).data("noactive"));var i=10;""!==$j(this).data("linewidth")&&(i=$j(this).data("linewidth"));var a,o=145;""!==$j(this).data("size")&&(o=$j(this).data("size")),""!==$j(this).data("alignment")&&("left"===(a=$j(this).data("alignment"))?$j(this).css("margin-left","0"):"right"===a&&$j(this).css("margin-right","0")),$j(this).appear(function(){initToCounterPieChart($j(this)),$j(this).parent().css("opacity","1"),$j(this).easyPieChart({barColor:e,trackColor:t,scaleColor:!1,lineCap:"butt",lineWidth:i,animate:1500,size:o})},{accX:0,accY:element_appear_amount})})}function initPieChartWithIcon(o){"use strict";void 0===o&&(o=!1),$j(".mkd_percentage_with_icon").length&&$j(".mkd_percentage_with_icon").each(function(){var e=piechartcolor;""!==$j(this).data("active")&&(e=$j(this).data("active"));var t="#f6f6f5";""!==$j(this).data("noactive")&&(t=$j(this).data("noactive"));var i=10;""!==$j(this).data("linewidth")&&(i=$j(this).data("linewidth"));var a=145;""!==$j(this).data("size")&&(a=$j(this).data("size")),$j(this).parents(".more_facts_holder").length&&!1===o||$j(this).appear(function(){$j(this).parent().css("opacity","1"),$j(this).css("opacity","1"),$j(this).easyPieChart({barColor:e,trackColor:t,scaleColor:!1,lineCap:"butt",lineWidth:i,animate:1500,size:a})},{accX:0,accY:element_appear_amount})})}function initToCounterPieChart(e){"use strict";$j(e).css("opacity","1");var t=parseFloat($j(e).find(".tocounter").text());$j(e).find(".tocounter").countTo({from:0,to:t,speed:1500,refreshInterval:50})}function initPortfolio(){"use strict";$j(".projects_holder_outer:not(.masonry_with_space)").length&&$j(".projects_holder_outer").each(function(){$j(".filter_holder .filter").on("click",function(){var e=$j(this).text();$j(".filter_holder").find(".label span").each(function(){$j(this).text(e)})});var i,e=$j(this).find(".projects_holder");e.hasClass("v1")?i=new Array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25):e.hasClass("v2")?i=new Array(1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20):e.hasClass("v3")?i=new Array(1,2,3,2,3,4,3,4,5,4,5,6,5,6,7,6,7,8,7,8,9,8,9,10,9,10,11,10,11,12,11,12,13,12,13,14,13,14,15,14,15,16,15,16,17,16,17,18,17,18,19,18,19,20,19,20,21,20,21,22):e.hasClass("v4")?i=new Array(1,2,3,4,2,3,4,5,3,4,5,6,4,5,6,7,5,6,7,8,6,7,8,9,7,8,9,10,8,9,10,11,9,10,11,12,10,11,12,13,11,12,13,14,12,13,14,15,13,14,15,16,14,15,16,17,15,16,17,18,16,17,18,19,17,18,19,20,18,19,20,21):e.hasClass("v5")?i=new Array(1,2,3,4,5,2,3,4,5,6,3,4,5,6,7,4,5,6,7,8,5,6,7,8,9,6,7,8,9,10,7,8,9,10,11,8,9,10,11,12,9,10,11,12,13,10,11,12,13,14,11,12,13,14,15,12,13,14,15,16,13,14,15,16,17,14,15,16,17,18,15,16,17,18,19,20,16,17,18,19,20,17,18,19,20,21,18,19,20,21,22,19,20,21,22,23):e.hasClass("v6")&&(i=new Array(1,2,3,4,5,6,2,3,4,5,6,7,3,4,5,6,7,8,4,5,6,7,8,9,5,6,7,8,9,10,6,7,8,9,10,11,7,8,9,10,11,12,8,9,10,11,12,13,9,10,11,12,13,14,10,11,12,13,14,15,11,12,13,14,15,16,12,13,14,15,16,17,13,14,15,16,17,18,14,15,16,17,18,19,15,16,17,18,19,20,16,17,18,19,20,21,17,18,19,20,21,22)),e.mixitup({showOnLoad:"all",transitionSpeed:600,minHeight:150,onMixLoad:function(){$j(".projects_holder").addClass("hideItems"),$j(".projects_holder article").css("visibility","visible"),e.hasClass("portfolio_one_by_one")&&e.find("article").each(function(e){var t=$j(this);$j(".vertical_split_slider").length;setTimeout(function(){t.addClass("show")},100*e)}),e.hasClass("slide_from_left")&&e.find("article").each(function(e){var t=$j(this);setTimeout(function(){t.addClass("show")},200*Math.random())}),e.hasClass("slide_from_top")&&e.find("article").each(function(e){var t=$j(this);setTimeout(function(){t.addClass("show")},50*i[e])}),e.hasClass("diagonal_fade")&&e.find("article").each(function(e){var t=$j(this);setTimeout(function(){t.addClass("show")},50*i[e])})},onMixEnd:function(){initParallax()}})})}function initPortfolioZIndex(){"use strict";$j(".projects_holder_outer.portfolio_no_space").length&&$j(".no_space.hover_text article").each(function(e){$j(this).css("z-index",e+10)})}function initPortfolioMasonry(){"use strict";$j(".projects_masonry_holder, .masonry_with_space").length&&($j(".projects_masonry_holder, .masonry_with_space .projects_holder").each(function(){var e=$j(this);e.waitForImages(function(){e.animate({opacity:1}),$j(".projects_masonry_holder").length&&resizeMasonry($j(".portfolio_masonry_grid_sizer").width()),e.isotope({itemSelector:".portfolio_masonry_item, .masonry_with_space .mix",masonry:{columnWidth:".portfolio_masonry_grid_sizer"}}),e.hasClass("portfolio_one_by_one")&&e.find("article").each(function(e){var t=$j(this);setTimeout(function(){t.addClass("show")},100*e)}),e.hasClass("portfolio_fade_from_bottom")&&e.find("article").each(function(e){$j(this).appear(function(){$j(this).addClass("show")},{accX:0,accY:element_appear_amount})})})}),setPortfolioMasZIndex(),$j(".projects_masonry_holder").length&&(setPortfolioMasZIndex(),$j(window).resize(function(){resizeMasonry($j(".portfolio_masonry_grid_sizer").width()),$j(".projects_masonry_holder, .masonry_with_space").isotope("reloadItems"),setPortfolioMasZIndex()})))}function resizeMasonry(e){"use strict";var t=$j(".portfolio_main_holder .portfolio_masonry_item.default"),i=$j(".portfolio_main_holder .portfolio_masonry_item.large_width"),a=$j(".portfolio_main_holder .portfolio_masonry_item.large_height"),o=$j(".portfolio_main_holder .portfolio_masonry_item.large_width_height");t.css("height",e),i.css("height",e),a.css("height",2*e),o.css("height",Math.round(2*e))}function setPortfolioMasZIndex(){"use strict";var e={},o={};$j(".projects_masonry_holder article").each(function(){e[$j(this).index()]=getPortfolioXPos($j(this).css("left"))});var t=$j.map(e,function(e){return e});(t=cleanPortfolioMasXArray(t)).sort(function(e,t){return e-t});for(var i=0;i<t.length;i++)o[t[i]]=10*i;$j.each(e,function(e,t){var i,a=t;$j.each(o,function(e,t){a===e&&(i=t)}),$j(".projects_masonry_holder article:eq("+e+")").css("z-index",i)})}function getPortfolioXPos(e){"use strict";return e.substr(0,e.length-2)}function cleanPortfolioMasXArray(e){"use strict";for(var t=e.length,i=[],a=Array(),o=0;o<t;o++)a[e[o]]=0;return a.forEach(function(e){i.push(e)}),i}function initPortfolioMasonryFilter(){"use strict";var t=null;$j(".filter:first").addClass("current"),$j(".filter").on("click",function(){clearTimeout(t),$j(".isotope, .isotope .isotope-item").css("transition-duration","0.8s"),t=setTimeout(function(){$j(".isotope, .isotope .isotope-item").css("transition-duration","0s")},700);var e=$j(this).attr("data-filter");return $j(".projects_masonry_holder, .masonry_with_space .projects_holder").isotope({filter:e}),$j(".filter").removeClass("current"),$j(this).addClass("current"),setTimeout(setPortfolioMasZIndex(),700),!1})}function loadMore(){"use strict";var d=1;$j(".load_more a").on("click",function(e){e.preventDefault();var t=$j(this).attr("href"),i=".projects_holder",a=".portfolio_paging .load_more a",o=$j(a).attr("href"),s=$j(".projects_holder .filler").length,n=$j(".portfolio_paging"),r=$j(".portfolio_paging_loading");n.hide(),r.show(),$j.get(t+"",function(e){$j(".projects_holder .filler").slice(-s).remove();var t=$j(i,e).wrapInner("").html();o=$j(a,e).attr("href"),$j(i,e).waitForImages(function(){var e;$j("article.mix:last").after(t),$j(".projects_holder article").css("visibility","visible"),$j("article:not(.show)").each(function(e){$j(this).addClass("show")}),$j(".masonry_with_space").length?$j(".masonry_with_space .projects_holder").isotope("reloadItems").isotope():(e=$j("article.mix:first").height(),$j("article.mix").css("min-height",e),$j(".projects_holder").mixitup("remix","all")),setTimeout(function(){prettyPhoto(),initParallax()},800),$j(".load_more").data("rel")>d?$j(".load_more a").attr("href",o):$j(".load_more").remove(),$j(".projects_holder .portfolio_paging:last").remove(),$j("article.mix").css("min-height",0),n.show(),r.hide()})}),d++})}function prettyPhoto(){"use strict";var e=getIconClassesForNavigation(directionNavArrows),t='<div class="pp_pic_holder"> <div class="ppt">&nbsp;</div> <div class="pp_top"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> <div class="pp_content_container"> <div class="pp_left"> <div class="pp_right"> <div class="pp_content"> <div class="pp_loaderIcon"></div> <div class="pp_fade"> <a href="#" class="pp_expand" title="Expand the image">Expand</a> <div class="pp_hoverContainer"> <a class="pp_next" href="#"><span class="'+e.rightIconClass+'"></span></a> <a class="pp_previous" href="#"><span class="'+e.leftIconClass+'"></span></a> </div> <div id="pp_full_res"></div> <div class="pp_details"> <div class="pp_nav"> <a href="#" class="pp_arrow_previous">Previous</a> <p class="currentTextHolder">0/0</p> <a href="#" class="pp_arrow_next">Next</a> </div> <p class="pp_description"></p> {pp_social} <a class="pp_close" href="#">Close</a> </div> </div> </div> </div> </div> </div> <div class="pp_bottom"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> </div> <div class="pp_overlay"></div>';$j("a[data-rel]").each(function(){$j(this).attr("rel",$j(this).data("rel"))}),$j("a[rel^='prettyPhoto']").prettyPhoto({animation_speed:"normal",slideshow:!1,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,horizontal_padding:0,default_width:960,default_height:540,counter_separator_label:"/",theme:"pp_default",hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,overlay_gallery:!1,keyboard_shortcuts:!0,deeplinking:!1,custom_markup:"",social_tools:!1,markup:t})}function checkTitleToShowOrHide(){"use strict";var e;$j(".title_outer.animate_title_area").length&&(e=$j(".title_outer").data("height"),$scroll>$j(".title").height()&&$j(".title_outer").css({height:e,opacity:"1",overflow:"visible"}))}function initTitleAreaAnimation(){"use strict";var e;$j(".title_outer.animate_title_area").length&&(e=$j(".title_outer").data("height"),$j(".title_outer").hasClass("with_image")&&(e=$j(".image.responsive").height()),$scroll<$j(".title").height()&&$j(".title_outer").animate({height:e,opacity:1},500,function(){$j(this).css({overflow:"visible"}),initPortfolioSingleInfo(),0<$j("nav.content_menu").length&&(content_menu_position=$j("nav.content_menu").offset().top,contentMenuPosition(),contentMenuOnScroll())}))}function initParallaxTitle(){"use strict";var t,i,e;0<$j(".title").length&&0===$j(".touch").length&&($j(".title.has_fixed_background").length&&(t=parseInt($j(".title.has_fixed_background").css("background-size").match(/\d+/)),i=$j(".title.has_fixed_background").height()/1e4*7,e=-$scroll*i,$j(".title.has_fixed_background").css({"background-position":"center "+(e+add_for_admin_bar)+"px"}),$j(".title.has_fixed_background").hasClass("zoom_out")&&$j(".title.has_fixed_background").css({"background-size":t-$scroll+"px auto"})),$j(window).on("scroll",function(){var e;$j(".title.has_fixed_background").length&&(e=-$scroll*i,$j(".title.has_fixed_background").css({"background-position":"center "+(e+add_for_admin_bar)+"px"}),$j(".title.has_fixed_background").hasClass("zoom_out")&&$j(".title.has_fixed_background").css({"background-size":t-$scroll+"px auto"}))}))}function initParallax(){"use strict";$j(".parallax_section_holder").length&&$j(".parallax_section_holder").each(function(){$j(this).hasClass("full_screen_height_parallax")&&($j(this).height($window_height),$j(this).find(".parallax_content_outer").css("padding",0));var e=.4*$j(this).data("speed");$j(this).parallax("50%",e)})}function initSideAreaScroll(){"use strict";$j(".side_menu").length&&$j(".side_menu").niceScroll({scrollspeed:60,mousescrollstep:40,cursorwidth:0,cursorborder:0,cursorborderradius:0,cursorcolor:"transparent",autohidemode:!1,horizrailenabled:!1})}function initVerticalAreaMenuScroll(){"use strict";$j(".vertical_menu_area.with_scroll").length&&$j(".vertical_menu_area.with_scroll").niceScroll({scrollspeed:60,mousescrollstep:40,cursorwidth:0,cursorborder:0,cursorborderradius:0,cursorcolor:"transparent",autohidemode:!1,horizrailenabled:!1})}function initMobileMenu(){"use strict";$j(".mobile_menu_button > span").on("tap click",function(e){e.preventDefault(),$j(".mobile_menu > ul").is(":visible")?$j(".mobile_menu > ul").slideUp(200):$j(".mobile_menu > ul").slideDown(200)}),$j(".mobile_menu > ul > li.has_sub > span.mobile_arrow, .mobile_menu > ul > li.has_sub > h3, .mobile_menu > ul > li.has_sub > a[href*='#']").on("tap click",function(e){e.preventDefault(),$j(this).closest("li.has_sub").find("> ul.sub_menu").is(":visible")?($j(this).closest("li.has_sub").find("> ul.sub_menu").slideUp(200),$j(this).closest("li.has_sub").removeClass("open_sub")):($j(this).closest("li.has_sub").addClass("open_sub"),$j(this).closest("li.has_sub").find("> ul.sub_menu").slideDown(200))}),$j(".mobile_menu > ul > li.has_sub > ul.sub_menu > li.has_sub > span.mobile_arrow, .mobile_menu > ul > li.has_sub > ul.sub_menu > li.has_sub > h3, .mobile_menu > ul > li.has_sub > ul.sub_menu > li.has_sub > a[href*='#']").on("tap click",function(e){e.preventDefault(),$j(this).parent().find("ul.sub_menu").is(":visible")?($j(this).parent().find("ul.sub_menu").slideUp(200),$j(this).parent().removeClass("open_sub")):($j(this).parent().addClass("open_sub"),$j(this).parent().find("ul.sub_menu").slideDown(200))}),$j(".mobile_menu ul li > a, .mkd_logo a").on("click",function(){"http://#"!==$j(this).attr("href")&&"#"!==$j(this).attr("href")&&$j(".mobile_menu > ul").slideUp()})}function initFlexSlider(){"use strict";$j(".flexslider").each(function(){var e=600;void 0!==$j(this).data("interval")&&!1!==$j(this).data("interval")&&(e=1e3*parseFloat($j(this).data("interval")));var t=!0;0===e&&(t=!1);var i="slide";void 0!==$j(this).data("flex_fx")&&!1!==$j(this).data("flex_fx")&&(i=$j(this).data("flex_fx"));var a=!0;void 0!==$j(this).data("disable-navigation-arrows")&&(a="yes"!==$j(this).data("disable-navigation-arrows"));var o=!1;void 0!==$j(this).data("show-navigation-controls")&&(o="no"!==$j(this).data("show-navigation-controls"));var s=getIconClassesForNavigation(directionNavArrows);$j(this).flexslider({animationLoop:!0,controlNav:o,directionNav:a,useCSS:!1,pauseOnAction:!0,pauseOnHover:!0,slideshow:t,animation:i,prevText:'<span class="'+s.leftIconClass+'"></span>',nextText:'<span class="'+s.rightIconClass+'"></span>',animationSpeed:4e3,slideshowSpeed:e,start:function(){setTimeout(function(){$j(".flexslider").fitVids()},100)}}),$j(".flex-direction-nav a").on("click",function(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()})})}function fitVideo(){"use strict";$j(".portfolio_images").fitVids(),$j(".video_holder").fitVids(),$j(".format-video .post_image").fitVids(),$j(".format-video .mkd_masonry_blog_post_image").fitVids()}function initPortfolioSingleInfo(){"use strict";var e,t,i,a,o,s;0<$j(".portfolio_single_follow").length&&(e=$j(".portfolio_single_follow"),t=$j(".portfolio_single .column1").height(),i=e.offset(),$scrollHeight=$j(".portfolio_container").height(),a=$j(".portfolio_container").offset(),o=$j(window),s=parseInt($j("header.page_header").css("height"),10),o.scroll(function(){s=parseInt($j("header.page_header").css("height"),10),960<$window_width&&t>e.height()?o.scrollTop()+s>i.top?o.scrollTop()+s+e.height()<a.top+$scrollHeight?e.stop().animate({marginTop:o.scrollTop()-i.top+s}):e.stop().animate({marginTop:$scrollHeight-e.height()}):e.stop().animate({marginTop:0}):e.css("margin-top",0)}))}function initTabs(){"use strict";var e,t;$j(".mkd_tabs").length&&($j(".mkd_tabs").appear(function(){$j(".mkd_tabs").css("visibility","visible")},{accX:0,accY:element_appear_amount}),t=(e=$j(".tabs-nav")).children("li"),e.each(function(){var e=$j(this);e.next().children(".tab-content").stop(!0,!0).hide().first().show(),e.children("li").first().addClass("active").stop(!0,!0).show()}),t.on("click",function(e){var t=$j(this);t.siblings().removeClass("active").end().addClass("active"),t.parent().next().children(".tab-content").stop(!0,!0).hide().siblings(t.find("a").attr("href")).fadeIn(),e.preventDefault(),t.find(".portfolio_slider")&&initPortfolioSlider(),t.find(".product_slider")&&initProductSlider(),t.find(".blog_slider")&&initBlogSlider()}))}function initAccordion(){"use strict";$j(".mkd_accordion_holder").length&&($j(".mkd_accordion_holder").appear(function(){$j(".mkd_accordion_holder").css("visibility","visible")},{accX:0,accY:element_appear_amount}),$j(".accordion").length&&($j(".accordion").accordion({animate:"swing",collapsible:!0,active:!1,icons:"",heightStyle:"content"}),$j(".accordion").each(function(){var e=parseInt($j(this).data("active-tab"));""!==e&&(--e,$j(this).accordion("option","active",e));var t=parseInt($j(this).data("border-radius")),i=parseInt($j(this).data("section-border-radius")),a=$j(this).data("section-height");""!==t&&$j(this).find(".accordion_mark").css("border-radius",t+"px"),""!==i&&($j(this).find(".title-holder").css("border-radius",i+"px"),$j(this).find(".accordion_mark").css("border-radius",i+"px")),""!==a&&($j(this).find(".title-holder").css("height",a+"px"),$j(this).find(".title-holder").css("line-height",a+"px"),$j(this).find(".accordion_mark").css("height",a-2+"px"),$j(this).find(".accordion_mark").css("line-height",a-2+"px"));var o="yes"===$j(this).data("collapsible");$j(this).accordion("option","collapsible",o),$j(this).accordion("option","collapsible",o)})),$j(".toggle").addClass("accordion ui-accordion ui-accordion-icons ui-widget ui-helper-reset").find(".title-holder").addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-top ui-corner-bottom").on("mouseenter mouseleave",function(){$j(this).toggleClass("ui-state-hover")}).on("click",function(){return $j(this).toggleClass("ui-accordion-header-active ui-state-active ui-state-default ui-corner-bottom").next().toggleClass("ui-accordion-content-active").slideToggle(400),!1}).next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").hide(),$j(".toggle").each(function(){var e=parseInt($j(this).data("active-tab"));""!==e&&1<=e&&(--e,$j(this).find(".ui-accordion-content").eq(e).show(),$j(this).find(".ui-accordion-header").eq(e).addClass("ui-state-active"))}))}function initAccordionContentLink(){"use strict";$j(".accordion").length&&$j(".accordion_holder .accordion_inner .accordion_content a").on("click",function(){return"_blank"===$j(this).attr("target")?window.open($j(this).attr("href"),"_blank"):window.open($j(this).attr("href"),"_self"),!1})}function initAccordionHoverStyle(){"use strict";$j(".mkd_accordion_holder").length&&$j(".mkd_accordion_holder .title-holder").each(function(){var e,t,i,a,o,s,n,r,d="";$j(this).parent(".mkd_accordion_holder").hasClass("boxed")&&(d="boxed"),void 0!==$j(this).data("title-hover-color")&&!1!==$j(this).data("title-hover-color")&&(e=$j(this).data("title-color"),t=$j(this).data("title-hover-color"),$j(this).on("mouseenter",function(){$j(this).css("color",t)}).on("mouseleave",function(){$j(this).css("color",e)})),void 0!==$j(this).data("mark-icon-hover-color")&&!1!==$j(this).data("mark-icon-hover-color")&&(i=$j(this).data("mark-icon-color"),a=$j(this).data("mark-icon-hover-color"),$j(this).on("mouseenter",function(){$j(this).find(".accordion_mark_icon").css("color",a)}).on("mouseleave",function(){$j(this).find(".accordion_mark_icon").css("color",i)})),void 0!==$j(this).data("background-hover-color")&&!1!==$j(this).data("background-hover-color")&&"boxed"===d&&(o=$j(this).data("background-color"),s=$j(this).data("background-hover-color"),$j(this).on("mouseenter",function(){$j(this).css("background-color",s)}).on("mouseleave",function(){$j(this).css("background-color",o)})),void 0!==$j(this).data("border-hover-color")&&!1!==$j(this).data("border-hover-color")&&"boxed"===d&&(n=$j(this).data("border-hover-color"),r=$j(this).data("border-color"),$j(this).on("mouseenter",function(){$j(this).css("border-color",n)}).on("mouseleave",function(){$j(this).css("border-color",r)}))})}function initTestimonials(){"use strict";$j(".testimonials_carousel").length&&$j(".testimonials_carousel").each(function(){$j(this).appear(function(){$j(this).css("visibility","visible")},{accX:0,accY:element_appear_amount});var e=600;void 0!==$j(this).data("auto-rotate-slides")&&!1!==$j(this).data("auto-rotate-slides")&&(e=1e3*parseFloat($j(this).data("auto-rotate-slides")));var t=!0;0===e&&(t=!1);var i=!0;void 0!==$j(this).data("show-navigation")&&(i="no"!==$j(this).data("show-navigation"));var a=!0;void 0!==$j(this).data("show-navigation-arrows")&&(a="no"!==$j(this).data("show-navigation-arrows"));var o=4e3;void 0!==$j(this).data("animation-speed")&&!1!==$j(this).data("animation-speed")&&(o=$j(this).data("animation-speed"));var s=getIconClassesForNavigation(directionNavArrowsTestimonials);$j(this).flexslider({animationLoop:!0,controlNav:i,directionNav:a,useCSS:!1,pauseOnAction:!0,pauseOnHover:!1,slideshow:t,animation:"fade",itemMargin:25,minItems:1,maxItems:1,prevText:'<span class="'+s.leftIconClass+'"></span>',nextText:'<span class="'+s.rightIconClass+'"></span>',animationSpeed:o,slideshowSpeed:e,start:function(e){initParallax()}})})}function setTestimonialsEqualHeight(){"use strict";var e,t;$j(".testimonials .slides li.absolute_position").length&&(e=[],$j(".testimonials .slides li.absolute_position").each(function(){$j(this).css("min-height","0"),$j(this).css("max-height","none"),$j(this).css("height","auto"),e.push($j(this).height())}),t=Math.max.apply(Math,e),$j(".testimonials .slides li.absolute_position").each(function(){$j(this).css("height",t+"px")}))}function initMessages(){"use strict";$j(".mkd_message").length&&$j(".mkd_message").each(function(){$j(this).find(".close").on("click",function(e){e.preventDefault(),$j(this).parent().parent().fadeOut(500)})})}function initElementsAnimation(){"use strict";0<$j(".element_from_fade").length&&0===$j(".no_animation_on_touch").length&&$j(".element_from_fade").each(function(){var e=$j(this);e.appear(function(){e.addClass("element_from_fade_on")},{accX:0,accY:element_appear_amount})}),0<$j(".element_from_left").length&&0===$j(".no_animation_on_touch").length&&$j(".element_from_left").each(function(){var e=$j(this);e.appear(function(){e.addClass("element_from_left_on")},{accX:0,accY:element_appear_amount})}),0<$j(".element_from_right").length&&0===$j(".no_animation_on_touch").length&&$j(".element_from_right").each(function(){var e=$j(this);e.appear(function(){e.addClass("element_from_right_on")},{accX:0,accY:element_appear_amount})}),0<$j(".element_from_top").length&&0===$j(".no_animation_on_touch").length&&$j(".element_from_top").each(function(){var e=$j(this);e.appear(function(){e.addClass("element_from_top_on")},{accX:0,accY:element_appear_amount})}),0<$j(".element_from_bottom").length&&0===$j(".no_animation_on_touch").length&&$j(".element_from_bottom").each(function(){var e=$j(this);e.appear(function(){e.addClass("element_from_bottom_on")},{accX:0,accY:element_appear_amount})}),0<$j(".element_transform").length&&0===$j(".no_animation_on_touch").length&&$j(".element_transform").each(function(){var e=$j(this);e.appear(function(){e.addClass("element_transform_on")},{accX:0,accY:element_appear_amount})})}function initElementsHolderItemAnimation(){"use strict";0<$j(".flip_in").length&&0===$j(".no_animation_on_touch").length&&$j(".flip_in").each(function(){var e=$j(this);e.appear(function(){e.addClass("flip_in_on")},{accX:0,accY:element_appear_amount})}),0<$j(".grow_in").length&&0===$j(".no_animation_on_touch").length&&$j(".grow_in").each(function(){var e=$j(this);e.appear(function(){e.addClass("grow_in_on")},{accX:0,accY:element_appear_amount})}),0<$j(".x_rotate").length&&0===$j(".no_animation_on_touch").length&&$j(".x_rotate").each(function(){var e=$j(this);e.appear(function(){e.addClass("x_rotate_on")},{accX:0,accY:element_appear_amount})}),0<$j(".z_rotate").length&&0===$j(".no_animation_on_touch").length&&$j(".z_rotate").each(function(){var e=$j(this);e.appear(function(){e.addClass("z_rotate_on")},{accX:0,accY:element_appear_amount})}),0<$j(".y_translate").length&&0===$j(".no_animation_on_touch").length&&$j(".y_translate").each(function(){var e=$j(this);e.appear(function(){e.addClass("y_translate_on")},{accX:0,accY:element_appear_amount})}),0<$j(".fade_in").length&&0===$j(".no_animation_on_touch").length&&$j(".fade_in").each(function(){var e=$j(this);e.appear(function(){e.addClass("fade_in_on")},{accX:0,accY:element_appear_amount})}),0<$j(".fade_in_down").length&&0===$j(".no_animation_on_touch").length&&$j(".fade_in_down").each(function(){var e=$j(this);e.appear(function(){e.addClass("fade_in_down_on")},{accX:0,accY:element_appear_amount})}),0<$j(".fade_in_left_x_rotate").length&&0===$j(".no_animation_on_touch").length&&$j(".fade_in_left_x_rotate").each(function(){var e=$j(this);e.appear(function(){e.addClass("fade_in_left_x_rotate_on")},{accX:0,accY:element_appear_amount})})}(function(){"use strict";var i;function e(){this.objects=[]}e.prototype.name="Outclick",e.prototype.check=function(e,t){return!e.is(t.target)&&0===e.has(t.target).length},e.prototype.trigger=function(i){var a=this,o=!1;return $j.each(this.objects,function(e,t){if(a.check(t.container,i)&&(t.related.length<1?o=!0:$j.each(t.related,function(e,t){return o=!!a.check(t,i)}),o))return t.callback.call(t.container)})},i=new e,$j.fn.outclick=function(e){var t=this;return null===e&&(e={}),e.related||(e.related=[]),e.callback||(e.callback=function(){return t.hide()}),i.objects.push({container:this,related:e.related,callback:e.callback})},$j(document).mouseup(function(e){return i.trigger(e)})}).call(this),function(r){"use strict";r.fn.countTo=function(o){o=r.extend({},r.fn.countTo.defaults,o||{});var s=Math.ceil(o.speed/o.refreshInterval),n=(o.to-o.from)/s;return r(this).each(function(){var e=this,t=0,i=o.from,a=setInterval(function(){i+=n,t++,r(e).html(i.toFixed(o.decimals)),"function"==typeof o.onUpdate&&o.onUpdate.call(e,i);s<=t&&(clearInterval(a),i=o.to,"function"==typeof o.onComplete&&o.onComplete.call(e,i))},o.refreshInterval)})},r.fn.countTo.defaults={from:0,to:100,speed:1e3,refreshInterval:100,decimals:0,onUpdate:null,onComplete:null}}(jQuery),function(d){var l=d(window),h=l.height();l.resize(function(){h=l.height()}),d.fn.parallax=function(a,o,e){var s,n,r=d(this);function t(){var i=l.scrollTop();r.each(function(){var e=d(this),t=e.offset().top;t+s(e)<i||i+h<t||r.css("backgroundPosition",a+" "+Math.round((n-i)*o)+"px")})}r.each(function(){n=r.offset().top}),s=e?function(e){return e.outerHeight(!0)}:function(e){return e.height()},(arguments.length<1||null===a)&&(a="50%"),(arguments.length<2||null===o)&&(o=.1),(arguments.length<3||null===e)&&(e=!0),l.on("scroll",t).resize(t),t()}}(jQuery),$j.fn.preload=function(){"use strict";this.each(function(){$j("<img/>")[0].src=this})};var timeOuts=[];function initProgressBarsIcon(){"use strict";$j(".mkd_progress_bars_icons_holder").length&&$j(".mkd_progress_bars_icons_holder").each(function(){var e=$j(this);e.appear(function(){e.find(".mkd_progress_bars_icons").css("opacity","1"),e.find(".mkd_progress_bars_icons").each(function(){var i=$j(this).find(".mkd_progress_bars_icons_inner").data("number"),e=$j(this).find(".mkd_progress_bars_icons_inner").data("size");""!==e&&($j(this).find(".mkd_progress_bars_icons_inner.custom_size .bar").css({width:e+"px",height:e+"px"}),$j(this).find(".mkd_progress_bars_icons_inner.custom_size .bar .mkd_icon_stack").css({"font-size":e/2+"px"}));var a=$j(this).find(".bar");a.each(function(e){var t;e<i&&(t=150*(e+1),timeOuts[e]=setTimeout(function(){$j(a[e]).addClass("active")},t))})})},{accX:0,accY:element_appear_amount})})}function initMoreFacts(){"use strict";$j(".more_facts_holder").length&&$j(".more_facts_holder").each(function(){var e=$j(this),t="More Facts";""!==e.find(".more_facts_button").data("morefacts")&&(t=e.find(".more_facts_button").data("morefacts"));var i="Less Facts";""!==e.find(".more_facts_button").data("lessfacts")&&(i=e.find(".more_facts_button").data("lessfacts"));var a=e.find(".more_facts_inner").height()+70,o=0<a&&a<601?500:600<a&&a<1201?800:1500;e.find(".more_facts_inner_holder").css({height:"0px",display:"none",opacity:"0"}),e.find(".more_facts_button").on("mouseenter",function(){$j(this).css("color",$j(this).data("hovercolor"))}).on("mouseleave",function(){e.find(".more_facts_inner_holder").is(":visible")||$j(this).css("color",$j(this).data("color"))}),e.find(".more_facts_button").on("click",function(){e.find(".more_facts_inner_holder").is(":visible")?(e.find(".more_facts_fake_arrow").fadeOut(o),$j(this).parent().parent().find(".more_facts_inner_holder").stop().animate({height:"0px"},o,function(){$j(this).css({display:"none",opacity:"0"}),e.find(".more_facts_button").is(":hover")||e.find(".more_facts_button").css("color",e.find(".more_facts_button").data("color")),e.removeClass("more_fact_opened"),$j(".parallax_section_holder").length&&initParallax()}),$j(this).find(".more_facts_button_text").text(t),$j(this).find(".more_facts_button_arrow").removeClass("rotate_arrow")):(e.find(".more_facts_fake_arrow").fadeIn(o),e.addClass("more_fact_opened"),$j(this).parent().parent().find(".more_facts_inner_holder").css({display:"block",opacity:"1"}).stop().animate({height:a+30},o,function(){$j(".parallax_section_holder").length&&initParallax()}),$j(this).find(".more_facts_button_text").text(i),$j(this).find(".more_facts_button_arrow").addClass("rotate_arrow"),initPieChartWithIcon(!0))})})}function placeholderReplace(){"use strict";$j("#contact-form [placeholder]").focus(function(){var e=$j(this);e.val()===e.attr("placeholder")&&(this.originalType&&(this.type=this.originalType,delete this.originalType),e.val(""),e.removeClass("placeholder"))}).blur(function(){var e=$j(this);""===e.val()&&("password"===this.type&&(this.originalType=this.type,this.type="text"),e.addClass("placeholder"),e.val(e.attr("placeholder")))}).blur(),$j("#contact-form [placeholder]").parents("form").submit(function(){$j(this).find("[placeholder]").each(function(){var e=$j(this);e.val()===e.attr("placeholder")&&e.val("")})})}function totop_button(e){"use strict";var t=$j("#back_to_top");t.removeClass("off on"),"on"===e?t.addClass("on"):t.addClass("off")}function backButtonShowHide(){"use strict";$j(window).scroll(function(){var e=$j(this).scrollTop(),t=$j(this).height(),i=0<e?e+t/2:1;totop_button(i<1e3?"off":"on")})}function backToTop(){"use strict";$j(document).on("click","#back_to_top, .back_to_top_icon",function(e){e.preventDefault(),$j("body,html").animate({scrollTop:0},$j(window).scrollTop()/3,"linear")})}function initMessageHeight(){"use strict";$j(".mkd_message.with_icon").length&&$j(".mkd_message.with_icon").each(function(){$j(this).find(".message_text_holder").height()>$j(this).find(".mkd_message_icon_holder").height()?$j(this).find(".mkd_message_icon_holder").height($j(this).find(".message_text").height()):$j(this).find(".message_text").height($j(this).find(".mkd_message_icon_holder").height())})}function initImageHover(){"use strict";$j(".image_hover").length&&$j(".image_hover").each(function(){$j(this).appear(function(){var e=$j(this).attr("data-transition-delay"),t=300+parseFloat(e),i=$j(this);setTimeout(function(){i.addClass("show")},parseFloat(e)),setTimeout(function(){i.removeClass("show")},t)},{accX:0,accY:element_appear_amount})})}function initProgressBarsVertical(){"use strict";$j(".mkd_progress_bars_vertical").length&&$j(".mkd_progress_bars_vertical").each(function(){$j(this).appear(function(){initToCounterVerticalProgressBar($j(this));var e=$j(this).find(".progress_content").data("percentage");$j(this).find(".progress_content").css("height","0%"),$j(this).find(".progress_content").animate({height:e+"%"},1500)},{accX:0,accY:element_appear_amount})})}function initToCounterVerticalProgressBar(e){"use strict";e.find(".progress_number span").length&&e.find(".progress_number span").each(function(){var e=parseFloat($j(this).text());$j(this).countTo({from:0,to:e,speed:1500,refreshInterval:50})})}function checkAnchorOnLoad(){"use strict";var e,t,i,a,o=window.location.hash;""!==o&&0<$j('[data-mkd_id="'+o+'"]').length&&(i=$j("header.page_header").hasClass("fixed")&&!$j("body").hasClass("vertical_menu_enabled")?(a=$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")?(e=$j("header.page_header").hasClass("centered_logo")?2*min_header_height_scroll+20:min_header_height_scroll,header_height-($j('[data-mkd_id="'+o+'"]').offset().top+a)/4>=e?(t=$j('[data-mkd_id="'+o+'"]').offset().top-header_height-large_menu_item_border)+t/4+t/16+t/64+1:$j('[data-mkd_id="'+o+'"]').offset().top-e-large_menu_item_border):$j('[data-mkd_id="'+o+'"]').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="'+o+'"]').offset().top-header_height-large_menu_item_border:$j('[data-mkd_id="'+o+'"]').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="'+o+'"]').offset().top-(header_height+logo_height/2+20)<=scroll_amount_for_fixed_hiding?$j('[data-mkd_id="'+o+'"]').offset().top-header_height-logo_height/2-20:$j('[data-mkd_id="'+o+'"]').offset().top-min_header_height_fixed_hidden-20:$j('[data-mkd_id="'+o+'"]').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="'+o+'"]').offset().top?$j('[data-mkd_id="'+o+'"]').offset().top+1:$j('[data-mkd_id="'+o+'"]').offset().top-min_header_height_sticky:$j('[data-mkd_id="'+o+'"]').offset().top,$j("html, body").animate({scrollTop:Math.round(i)},1500,function(){})),$j(".main_menu a, .vertical_menu a, .popup_menu a, .mobile_menu a").each(function(){var e=$j(this).prop("hash");""!==e&&0<$j('[data-mkd_id="'+e+'"]').length&&$j('[data-mkd_id="'+e+'"]').offset().top>=$window_height&&0===$scroll&&($j(this).parent().removeClass("active"),$j(this).removeClass("current"))})}function changeActiveState(e){"use strict";$j(".main_menu a").parent().removeClass("active"),$j(".main_menu a").each(function(){$j(this).prop("hash")===e&&(0===$j(this).closest(".second").length?$j(this).parent().addClass("active"):$j(this).closest(".second").parent().addClass("active"),$j(".main_menu a").removeClass("current"),$j(this).addClass("current"))}),$j(".vertical_menu a").parent().removeClass("active"),$j(".vertical_menu a").each(function(){$j(this).prop("hash")===e&&(0===$j(this).closest(".second").length?$j(this).parent().addClass("active"):$j(this).closest(".second").parent().addClass("active"),$j(".vertical_menu a").removeClass("current"),$j(this).addClass("current"))}),$j(".popup_menu a").parent().removeClass("active"),$j(".popup_menu a").each(function(){$j(this).prop("hash")===e&&(0===$j(this).closest(".second").length?$j(this).parent().addClass("active"):$j(this).closest(".second").parent().addClass("active"),$j(".popup_menu a").removeClass("current"),$j(this).addClass("current"))}),$j(".mobile_menu a").parent().removeClass("active"),$j(".mobile_menu a").each(function(){$j(this).prop("hash")===e&&(0===$j(this).closest(".sub_menu").length?$j(this).parent().addClass("active"):$j(this).closest(".sub_menu").parent().addClass("active"),$j(".mobile_menu a").removeClass("current"),$j(this).addClass("current"))})}function checkAnchorOnScroll(){"use strict";$j("[data-mkd_id]").length&&($j("[data-mkd_id]").waypoint(function(e){"down"===e&&changeActiveState($j(this).data("mkd_id"))},{offset:"50%"}),$j("[data-mkd_id]").waypoint(function(e){"up"===e&&changeActiveState($j(this).data("mkd_id"))},{offset:function(){return-($j(this).outerHeight()-150)}}))}function initHashClick(){"use strict";var o,s,n=$j("html, body");$j(document).on("click",".main_menu a, .vertical_menu a, .popup_menu a, .qbutton, .anchor, .widget li.anchor a",function(){var e,t,i=$j(this),a=$j(this).prop("hash");if(!0===loadedPageFlag&&(""!==a&&""===$j(this).attr("href").split("#")[0]||""!==a&&""!==$j(this).attr("href").split("#")[0]&&a===window.location.hash||""!==a&&$j(this).attr("href").split("#")[0]===window.location.href.split("#")[0]))return o=$j("header.page_header").hasClass("fixed")&&!$j("body").hasClass("vertical_menu_enabled")?(s=$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")?(e=$j("header.page_header").hasClass("centered_logo")?2*min_header_height_scroll+20:min_header_height_scroll,header_height-($j('[data-mkd_id="'+a+'"]').offset().top+s)/4>=e?(t=$j('[data-mkd_id="'+a+'"]').offset().top-header_height-large_menu_item_border)+t/4+t/16+t/64+1:$j('[data-mkd_id="'+a+'"]').offset().top-e-large_menu_item_border):$j('[data-mkd_id="'+a+'"]').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="'+a+'"]').offset().top-header_height-large_menu_item_border:$j('[data-mkd_id="'+a+'"]').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="'+a+'"]').offset().top-(header_height+logo_height/2+20)<=scroll_amount_for_fixed_hiding?$j('[data-mkd_id="'+a+'"]').offset().top-header_height-logo_height/2-20:$j('[data-mkd_id="'+a+'"]').offset().top-min_header_height_fixed_hidden-20:$j('[data-mkd_id="'+a+'"]').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="'+a+'"]').offset().top?$j('[data-mkd_id="'+a+'"]').offset().top+1:$j('[data-mkd_id="'+a+'"]').offset().top-min_header_height_sticky:$j('[data-mkd_id="'+a+'"]').offset().top,0<$j('[data-mkd_id="'+a+'"]').length&&n.stop().animate({scrollTop:Math.round(o)},1500,function(){anchorActiveState(i)}),history.pushState&&history.pushState(null,null,a),!1}),$j(document).on("click",".mobile_menu a",function(){var e=$j(this),t=$j(this).prop("hash");if(""!==t&&""===$j(this).attr("href").split("#")[0]||""!==t&&""!==$j(this).attr("href").split("#")[0]&&t===window.location.hash||""!==t&&$j(this).attr("href").split("#")[0]===window.location.href.split("#")[0])return 0<$j('[data-mkd_id="'+t+'"]').length&&n.animate({scrollTop:Math.round($j('[data-mkd_id="'+t+'"]').offset().top-$j(".mobile_menu").height())},500,function(){anchorActiveState(e)}),history.pushState&&history.pushState(null,null,t),!1})}function countClientsPerRow(){"use strict";$j(".mkd_clients").length&&$j(".mkd_clients").each(function(){var e,t=$j(this),i=t.height(),a=t.width(),o=t.find(".mkd_client_holder").width(),s=t.find(".mkd_client_holder").length;t.find(".mkd_client_holder").each(function(){e=e>$j(this).height()?e:$j(this).height()}),e+=35;Math.ceil(i/e);var n=Math.ceil(a/o),r=s-n*Math.floor(s/n);0===r&&(r=n),t.find(".mkd_client_holder").removeClass("border-bottom-none");var d=s-r-1;t.find(".mkd_client_holder:gt("+d+")").addClass("border-bottom-none")})}function anchorActiveState(e){"use strict";0<e.closest(".main_menu").length&&$j(".main_menu a").parent().removeClass("active"),0<e.closest(".popup_menu").length&&$j(".popup_menu a").parent().removeClass("active"),0<e.closest(".vertical_menu").length&&$j(".vertical_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&&($j(".mobile_menu a").parent().removeClass("active"),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(".mobile_menu a, .main_menu a, .vertical_menu a, .popup_menu a").removeClass("current"),e.addClass("current")}function initVideoBackground(){"use strict";$j(".video-wrap .video").mediaelementplayer({enableKeyboard:!1,iPadUseNativeControls:!1,pauseOtherPlayers:!1,iPhoneUseNativeControls:!1,AndroidUseNativeControls:!1}),navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/)&&(initVideoBackgroundSize(),$j(".mobile-video-image").show(),$j(".video-wrap").remove())}function initVideoBackgroundSize(){"use strict";$j(".section .video-wrap").each(function(e){var t=$j(this).closest(".section").outerWidth();$j(this).width(t);var i=$j(this).closest(".section").outerHeight();min_w=vid_ratio*(i+20),$j(this).height(i);var a=t/video_width_original,o=(i-header_height)/video_height_original,s=o<a?a:o;s*video_width_original<min_w&&(s=min_w/video_width_original),$j(this).find("video, .mejs-overlay, .mejs-poster").width(Math.ceil(s*video_width_original+2)),$j(this).find("video, .mejs-overlay, .mejs-poster").height(Math.ceil(s*video_height_original+2)),$j(this).scrollLeft(($j(this).find("video").width()-t)/2),$j(this).find(".mejs-overlay, .mejs-poster").scrollTop(($j(this).find("video").height()-i)/2),$j(this).scrollTop(($j(this).find("video").height()-i)/2)}),$j(".carousel .item .video .video-wrap").each(function(e){var t=$j(window).width();$j(this).width(t);var i=$j(window).width()<1e3?$j("header.page_header").height()-6:0,a=$j(this).closest(".carousel.slide").height()-i;min_w=vid_ratio*(20+a),$j(this).height(a);var o=t/video_width_original,s=(a-header_height)/video_height_original,n=s<o?o:s;n*video_width_original<min_w&&(n=min_w/video_width_original),$j(this).find("video, .mejs-overlay, .mejs-poster").width(Math.ceil(n*video_width_original+2)),$j(this).find("video, .mejs-overlay, .mejs-poster").height(Math.ceil(n*video_height_original+2)),$j(this).scrollLeft(($j(this).find("video").width()-t)/2),$j(this).find(".mejs-overlay, .mejs-poster").scrollTop(($j(this).find("video").height()-a)/2),$j(this).scrollTop(($j(this).find("video").height()-a)/2)}),$j(".portfolio_single .video .video-wrap, .blog_holder .video .video-wrap").each(function(e){var t=$j(this),i=$j(this).closest(".video").outerWidth();$j(this).width(i);var a=9*i/16;navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/)&&(t.parent().width(i),t.parent().height(a)),min_w=vid_ratio*(20+a),$j(this).height(a);var o=i/video_width_original,s=(a-header_height)/video_height_original,n=s<o?o:s;n*video_width_original<min_w&&(n=min_w/video_width_original),$j(this).find("video, .mejs-overlay, .mejs-poster").width(Math.ceil(n*video_width_original+2)),$j(this).find("video, .mejs-overlay, .mejs-poster").height(Math.ceil(n*video_height_original+2)),$j(this).scrollLeft(($j(this).find("video").width()-i)/2),$j(this).find(".mejs-overlay, .mejs-poster").scrollTop(($j(this).find("video").height()-a)/2),$j(this).scrollTop(($j(this).find("video").height()-a)/2)})}function initIconWithTextAnimation(){"use strict";0<$j(".mkd_icon_animation").length&&0===$j(".no_animation_on_touch").length&&$j(".mkd_icon_animation").each(function(){$j(this).appear(function(){$j(this).addClass("mkd_show_animation")},{accX:0,accY:element_appear_amount})})}function initCheckSafariBrowser(){"use strict";-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&$j("body").addClass("safari_browser")}function initCheckFirefoxMacBrowser(){"use strict";var e=navigator.userAgent.toLowerCase(),t=navigator.appVersion.toLowerCase();-1<e.indexOf("firefox")&&-1<t.indexOf("mac")&&$j("body").addClass("firefox_mac_browser")}function initSearchButton(){"use strict";$j(".search_slides_from_header_bottom").length&&($j(".search_slides_from_header_bottom").on("click",function(e){var t;e.preventDefault(),$j("html").hasClass("touch")?(0===$j(".mkd_search_form_2").height()?($j('.mkd_search_form_2 input[type="text"]').onfocus=function(){window.scrollTo(0,0),document.body.scrollTop=0},$j('.mkd_search_form_2 input[type="text"]').onclick=function(){window.scrollTo(0,0),document.body.scrollTop=0},$j(".mkd_search_form_2").css("height","50px")):$j(".mkd_search_form_2").css("height","0"),$j(window).scroll(function(){0!==$j(".mkd_search_form_2").height()&&50<$scroll&&$j(".mkd_search_form_2").css("height","0")})):($j(".mkd_search_form_2").hasClass("animated")?($j(".mkd_search_form_2").removeClass("animated"),$j(".mkd_search_form_2").css("bottom","0")):($j('.mkd_search_form input[type="text"]').focus(),$j(".mkd_search_form_2").addClass("animated"),t=$j(".mkd_search_form_2").height(),$j(".mkd_search_form_2").css("bottom",-t)),$j(".mkd_search_form_2").addClass("disabled"),$j('.mkd_search_form_2 input[type="submit"]').attr("disabled","disabled"),""!==$j(".mkd_search_form_2 .mkd_search_field").val()&&" "!==$j(".mkd_search_form_2 .mkd_search_field").val()?($j('.mkd_search_form_2 input[type="submit"]').removeAttr("disabled"),$j(".mkd_search_form_2").removeClass("disabled")):($j(".mkd_search_form_2").addClass("disabled"),$j('.mkd_search_form_2 input[type="submit"]').attr("disabled","disabled")),$j(".mkd_search_form_2 .mkd_search_field").keyup(function(){""!==$j(this).val()&&parseInt(0!==$j(this).val())?($j('.mkd_search_form_2 input[type="submit"]').removeAttr("disabled"),$j(".mkd_search_form_2").removeClass("disabled")):($j('.mkd_search_form_2 input[type="submit"]').attr("disabled","disabled"),$j(".mkd_search_form_2").addClass("disabled"))}),$j(".content, footer").on("click",function(e){e.preventDefault(),$j(".mkd_search_form_2").removeClass("animated"),$j(".mkd_search_form_2").css("bottom","0")}))}),$j(".mkd_search_submit").length&&$j(".mkd_search_submit").on("click",function(e){e.preventDefault(),e.stopPropagation(),$j(this).parents("form").first().submit()})),$j(".search_covers_header").length&&$j(".search_covers_header").on("click",function(e){var t;e.preventDefault(),t=$j(".search_covers_only_bottom").length?$j(".header_bottom").height():$j(".fixed_top_header").length?$j(".top_header").height():$j(".header_top_bottom_holder").height(),$j(".mkd_search_form_3 .form_holder_outer").height(t),$j(".search_covers_only_bottom").length&&($j(".mkd_search_form_3").css("bottom",0),$j(".mkd_search_form_3").css("top","auto")),$j(".mkd_search_form_3").stop(!0).fadeIn(600,"easeOutExpo"),$j('.mkd_search_form_3 input[type="text"]').focus(),$j(window).scroll(function(){t=$j(".search_covers_only_bottom").length?$j(".header_bottom").height():$j(".fixed_top_header").length?$j(".top_header").height():$j(".header_top_bottom_holder").height(),$j(".mkd_search_form_3 .form_holder_outer").height(t)}),$j(".mkd_search_close, .content, footer").on("click",function(e){e.preventDefault(),$j(".mkd_search_form_3").stop(!0).fadeOut(450,"easeOutExpo")}),$j(".mkd_search_form_3").blur(function(e){$j(".mkd_search_form_3").stop(!0).fadeOut(450,"easeOutExpo")})}),$j(".fullscreen_search").length&&($j(".fullscreen_search_holder.from_circle").length&&($j(".fullscreen_search").on("click",function(e){e.preventDefault(),$j(".fullscreen_search_overlay").hasClass("animate")?($j(".fullscreen_search_overlay").removeClass("animate"),$j(".fullscreen_search_holder").css("opacity","0"),$j(".fullscreen_search_close").css("opacity","0"),$j(".fullscreen_search_close").css("visibility","hidden"),$j(".fullscreen_search").css("opacity","1"),$j(".fullscreen_search_holder").css("display","none")):($j(".fullscreen_search_overlay").addClass("animate"),$j(".fullscreen_search_holder").css("display","block"),setTimeout(function(){$j(".fullscreen_search_holder").css("opacity","1"),$j(".fullscreen_search_close").css("opacity","1"),$j(".fullscreen_search_close").css("visibility","visible"),$j(".fullscreen_search").css("opacity","0")},200),$j("body").hasClass("page-template-full_screen-php")||disable_scroll())}),$j(".fullscreen_search_close").on("click",function(e){e.preventDefault(),$j(".fullscreen_search_overlay").removeClass("animate"),$j(".fullscreen_search_holder").css("opacity","0"),$j(".fullscreen_search_close").css("opacity","0"),$j(".fullscreen_search_close").css("visibility","hidden"),$j(".fullscreen_search").css("opacity","1"),$j(".fullscreen_search_holder").css("display","none"),$j("body").hasClass("page-template-full_screen-php")||enable_scroll()})),$j(".fullscreen_search_holder.fade").length&&($j(".fullscreen_search").on("click",function(e){e.preventDefault(),$j(".fullscreen_search_holder").hasClass("animate")?($j("body").removeClass("fullscreen_search_opened"),$j(".fullscreen_search_holder").removeClass("animate"),$j("body").removeClass("search_fade_out"),$j("body").removeClass("search_fade_in"),$j("body").hasClass("page-template-full_screen-php")||enable_scroll()):($j("body").addClass("fullscreen_search_opened"),$j("body").removeClass("search_fade_out"),$j("body").addClass("search_fade_in"),$j(".fullscreen_search_holder").addClass("animate"),$j("body").hasClass("page-template-full_screen-php")||disable_scroll())}),$j(".fullscreen_search_close").on("click",function(e){e.preventDefault(),$j("body").removeClass("fullscreen_search_opened"),$j(".fullscreen_search_holder").removeClass("animate"),$j("body").removeClass("search_fade_in"),$j("body").addClass("search_fade_out"),$j("body").hasClass("page-template-full_screen-php")||enable_scroll()})),$j(".fullscreen_search_holder .search_field").focus(function(){$j(".fullscreen_search_holder .field_holder .line").css("width","100%")}),$j(".fullscreen_search_holder .search_field").blur(function(){$j(".fullscreen_search_holder .field_holder .line").css("width","0")}),$j(window).scroll(function(){var e=$j(".page_header .header_bottom").height();$j(".page_header").hasClass("sticky")?($j(".fullscreen_search_holder .side_menu_button").css("height",e),$j(".fullscreen_search_holder .close_container").css("top","0")):$j(".page_header").hasClass("fixed")?$j(".fullscreen_search_holder .side_menu_button").css("height",e):($j(".fullscreen_search_holder .side_menu_button").css("height",""),$j(".fullscreen_search_holder .close_container").css("top",""))})),$j(".search_slides_from_window_top").length&&$j(".search_slides_from_window_top ").on("click",function(e){var t;e.preventDefault(),$j("html").hasClass("touch")?(0===$j(".mkd_search_form").height()?($j('.mkd_search_form input[type="text"]').onfocus=function(){window.scrollTo(0,0),document.body.scrollTop=0},$j('.mkd_search_form input[type="text"]').onclick=function(){window.scrollTo(0,0),document.body.scrollTop=0},$j(".header_top_bottom_holder").css("top","50px"),$j(".mkd_search_form").css("height","50px"),$j(".content_inner").css("margin-top","50px"),$scroll<34&&$j("header.page_header").css("top","0")):($j(".mkd_search_form").css("height","0"),$j(".header_top_bottom_holder").css("top","0"),$j(".content_inner").css("margin-top","0"),$scroll<34&&$j("header.page_header").css("top",-$scroll)),$j(window).scroll(function(){0!==$j(".mkd_search_form").height()&&50<$scroll&&($j(".mkd_search_form").css("height","0"),$j(".header_top_bottom_holder").css("top","0"),$j(".content_inner").css("margin-top","0"))}),$j(".mkd_search_close").on("click",function(e){e.preventDefault(),$j(".mkd_search_form").css("height","0"),$j(".header_top_bottom_holder").css("top","0"),$j(".content_inner").css("margin-top","0"),$scroll<34&&$j("header.page_header").css("top",-$scroll)})):(t=$j(".title").hasClass("has_fixed_background")?parseInt($j(".title.has_fixed_background").css("backgroundPosition").split(" ")[1]):0,0===$j(".mkd_search_form").height()?($j('.mkd_search_form input[type="text"]').focus(),$j(".header_top_bottom_holder").stop().animate({top:"50px"},150),$j(".mkd_search_form").stop().animate({height:"50px"},150),$j(".content_inner").stop().animate({marginTop:"50px"},150),$scroll<34&&$j("header.page_header").stop().animate({top:0},150),$j(".title.has_fixed_background").animate({"background-position-y":t+50+"px"},150)):($j(".mkd_search_form").stop().animate({height:"0"},150),$j(".header_top_bottom_holder").stop().animate({top:"0px"},150),$j(".content_inner").stop().animate({marginTop:"0"},150),$scroll<34&&$j("header.page_header").stop().animate({top:-$scroll},150),$j(".title.has_fixed_background").animate({"background-position-y":t-50+"px"},150)),$j(window).scroll(function(){0!==$j(".mkd_search_form").height()&&50<$scroll&&($j(".mkd_search_form").stop().animate({height:"0"},150),$j(".header_top_bottom_holder").stop().animate({top:"0px"},150),$j(".content_inner").stop().animate({marginTop:"0"},150),$j(".title.has_fixed_background").css("backgroundPosition","center "+t+"px"))}),$j(".mkd_search_close").on("click",function(e){e.preventDefault(),$j(".mkd_search_form").stop().animate({height:"0"},150),$j(".content_inner").stop().animate({marginTop:"0"},150),$j(".header_top_bottom_holder").stop().animate({top:"0px"},150),$scroll<34&&$j("header.page_header").stop().animate({top:-$scroll},150),$j(".title.has_fixed_background").animate({"background-position-y":t+"px"},150)}))})}function updateShoppingCart(){"use strict";$j("body").on("added_to_cart",function(e,t,i){var a=$j(".shopping_cart_header");{var o,s,n;t["div.widget_shopping_cart_content"]&&(o=jQuery(t["div.widget_shopping_cart_content"]),s=o.find(".cart_list"),n=o.find(".total").contents(":not(strong)").text(),a.find(".shopping_cart_dropdown_inner").html("").append(s),a.find(".total span").html("").append(n))}})}function setContentBottomMargin(){"use strict";$j(".uncover").length&&$j(".content").css("margin-bottom",$j(".footer_inner").height())}function setFooterHeight(){"use strict";600<$window_width&&($j(".footer_top > div").hasClass("container")?$j(".footer_top .mkd_column").css("min-height",0).css("min-height",$j(".footer_top > .container > .container_inner > div ").innerHeight()):$j(".footer_top .mkd_column").css("min-height",0).css("min-height",$j(".footer_top > div").innerHeight()))}function showGoogleMap(){"use strict";$j(".mkd_google_map").length&&$j(".mkd_google_map").each(function(){var e,t,i,a,o,s,n,r,d,l,h;void 0!==$j(this).data("custom-map-style")&&(e=$j(this).data("custom-map-style")),void 0!==$j(this).data("color-overlay")&&!1!==$j(this).data("color-overlay")&&(t=$j(this).data("color-overlay")),void 0!==$j(this).data("saturation")&&!1!==$j(this).data("saturation")&&(i=$j(this).data("saturation")),void 0!==$j(this).data("lightness")&&!1!==$j(this).data("lightness")&&(a=$j(this).data("lightness")),void 0!==$j(this).data("zoom")&&!1!==$j(this).data("zoom")&&(o=$j(this).data("zoom")),void 0!==$j(this).data("pin")&&!1!==$j(this).data("pin")&&(s=$j(this).data("pin")),void 0!==$j(this).data("map-height")&&!1!==$j(this).data("map-height")&&(n=$j(this).data("map-height")),void 0!==$j(this).data("unique-id")&&!1!==$j(this).data("unique-id")&&(r=$j(this).data("unique-id")),void 0!==$j(this).data("google-maps-scroll-wheel")&&(d=$j(this).data("google-maps-scroll-wheel")),void 0!==$j(this).data("addresses")&&!1!==$j(this).data("addresses")&&(l=$j(this).data("addresses")),void 0!==$j(this).data("show-address-info-box")&&!1!==$j(this).data("show-address-info-box")&&(h=$j(this).data("show-address-info-box")),initializeGoogleMap(e,t,i,a,d,o,"map_canvas_"+r,n,s,"map_"+r,"geocoder_"+r,l,h)})}function initializeGoogleMap(e,t,i,a,o,s,n,r,d,l,h,c,_){"use strict";var u=[{stylers:[{hue:t},{saturation:i},{lightness:a},{gamma:1}]}],p=e?"mkd_style":google.maps.MapTypeId.ROADMAP,m=new google.maps.StyledMapType(u,{name:"Mikado Google Map"});h=new google.maps.Geocoder;var f,$={zoom:s,scrollwheel:o,center:new google.maps.LatLng(-34.397,150.644),zoomControl:!0,zoomControlOptions:{style:google.maps.ZoomControlStyle.SMALL,position:google.maps.ControlPosition.RIGHT_CENTER},scaleControl:!1,scaleControlOptions:{position:google.maps.ControlPosition.LEFT_CENTER},streetViewControl:!1,streetViewControlOptions:{position:google.maps.ControlPosition.LEFT_CENTER},panControl:!1,panControlOptions:{position:google.maps.ControlPosition.LEFT_CENTER},mapTypeControl:!1,mapTypeControlOptions:{mapTypeIds:[google.maps.MapTypeId.ROADMAP,"mkd_style"],style:google.maps.MapTypeControlStyle.HORIZONTAL_BAR,position:google.maps.ControlPosition.LEFT_CENTER},mapTypeId:p};for((l=new google.maps.Map(document.getElementById(n),$)).mapTypes.set("mkd_style",m),f=0;f<c.length;++f)initializeGoogleAddress(c[f],d,l,h,_);document.getElementById(n).style.height=r+"px"}function initializeGoogleAddress(a,o,s,e,n){"use strict";var t,r;""!==a&&(t='<div id="content"><div id="siteNotice"></div><div id="bodyContent"><p>'+a+"</p></div></div>",r=new google.maps.InfoWindow({content:t}),e.geocode({address:a},function(e,t){var i;t===google.maps.GeocoderStatus.OK&&(s.setCenter(e[0].geometry.location),i=new google.maps.Marker({map:s,position:e[0].geometry.location,icon:o,title:a.store_title}),google.maps.event.addListener(i,"click",function(){r.open(s,i)}),"yes"===n&&google.maps.event.addDomListener(window,"load",function(){r.open(s,i)}),google.maps.event.addDomListener(window,"resize",function(){s.setCenter(e[0].geometry.location)}))}))}function initCoverBoxes(){"use strict";$j(".cover_boxes").length&&$j(".cover_boxes").each(function(){var e=0,t=1;void 0!==$j(this).data("active-element")&&!1!==$j(this).data("active-element")&&(e=(t=parseFloat($j(this).data("active-element")))-1);var i=3;void 0!==$j(this).data("active-element")&&2===parseInt($j(this).data("active-element"))&&(i=2),e=i<t?0:e,$j(this).find("li").eq(e).addClass("act");var a=$j(this);$j(this).find("li").each(function(){$j(this).on("mouseenter mouseleave",function(){$j(a).find("li").removeClass("act"),$j(this).addClass("act")})})})}function createContentMenu(){"use strict";$j(".content_menu").each(function(){var s;""!==$j(this).css("background-color")&&(s=$j(this).css("background-color"));var n=$j(this).find("ul.menu"),e=$j(this).siblings(".in_content_menu");e.length&&e.each(function(){var e=$j(this).data("mkd_id"),t=$j(this).data("mkd_title"),i=$j(this).data("icon_html"),a=$j("<li />"),o=$j("<a />",{href:e,html:"<span>"+t+"</span>"});$j("<div />",""!==s?{class:"arrow",style:"border-color: "+s+" transparent transparent transparent"}:{class:"arrow"});o.prepend(i),a.append(o),a.appendTo(n)})})}function createSelectContentMenu(){"use strict";$j(".content_menu").each(function(){var a=$j(this),s=$j("<ul></ul>");s.appendTo($j(this).find(".nav_select_menu")),$j(this).find("ul.menu li a").each(function(){var e=$j(this).attr("href"),t=$j(this).text(),i=$j(this).find("i").clone();2===$j(this).parents("li").length&&(t="&nbsp;&nbsp;&nbsp;"+t),3===$j(this).parents("li").length&&(t="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+t),3<$j(this).parents("li").length&&(t="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+t);var a=$j("<li />"),o=$j("<a />",{href:e,html:t});i.prependTo(o),o.appendTo(a),a.appendTo(s)}),a.find(".nav_select_button").on("click",function(){return a.find(".nav_select_menu ul").is(":visible")?a.find(".nav_select_menu ul").slideUp():a.find(".nav_select_menu ul").slideDown(),!1}),a.find(".nav_select_menu ul li a").on("click",function(){var e=$j(this),t=e.attr("href"),i=$j('[data-mkd_id="'+t+'"]').offset().top-$j(".nav_select_menu ul").outerHeight();return a.find(".nav_select_menu ul").slideUp(),$j("html,body").stop().animate({scrollTop:i},1500,function(){$j("nav.content_menu ul li").removeClass("active"),e.parent().addClass("active")}),!1})})}function contentMenuPosition(){"use strict";var e,t,i;$j("nav.content_menu").length&&(e=sticky_amount<content_menu_position?min_header_height_sticky:0,t=content_menu_position>scroll_amount_for_fixed_hiding?min_header_height_fixed_hidden+20:header_height+min_header_height_fixed_hidden+20,i=$j("nav.content_menu").height(),content_menu_position-e-content_menu_top_add-$scroll<=0&&($j("header").hasClass("stick")||$j("header").hasClass("stick_with_left_right_menu"))?(!(content_menu_position<sticky_amount)||sticky_amount<$scroll?$j("nav.content_menu").css({position:"fixed",top:min_header_height_sticky+content_menu_top_add}).addClass("fixed"):$j("nav.content_menu").css({position:"fixed",top:0,transition:"none"}).addClass("fixed"),$j("header.sticky").addClass("no_shadow"),$j(".content > .content_inner > .container > .container_inner").css("margin-top",i),$j(".content > .content_inner > .full_width").css("margin-top",i)):content_menu_position-t-content_menu_top_add-$scroll<=0&&$j("header").hasClass("fixed_hiding")?(!(content_menu_position<scroll_amount_for_fixed_hiding)||$scroll>scroll_amount_for_fixed_hiding?$j("nav.content_menu").css({position:"fixed",top:min_header_height_fixed_hidden+20+content_menu_top_add}).addClass("fixed"):$j("nav.content_menu").css({position:"fixed",top:header_height+min_header_height_fixed_hidden+20+content_menu_top_add}).addClass("fixed"),$j(".content > .content_inner > .container > .container_inner").css("margin-top",i),$j(".content > .content_inner > .full_width").css("margin-top",i)):content_menu_position-content_menu_top-content_menu_top_add-$scroll<=0&&!$j("header").hasClass("stick")&&!$j("header").hasClass("fixed_hidden")?($j("nav.content_menu").css({position:"fixed",top:content_menu_top+content_menu_top_add}).addClass("fixed"),$j(".content > .content_inner > .container > .container_inner").css("margin-top",i),$j(".content > .content_inner > .full_width").css("margin-top",i)):($j("nav.content_menu").css({position:"relative",top:"0px"}).removeClass("fixed"),$j("header.sticky").removeClass("no_shadow"),$j(".content > .content_inner > .container > .container_inner").css("margin-top","0px"),$j(".content > .content_inner > .full_width").css("margin-top","0px")))}function contentMenuOnScroll(){"use strict";$j("nav.content_menu").length&&($j(".content .in_content_menu").waypoint(function(e){var t;"down"===e&&(t=$j(this).data("mkd_id"),$j("nav.content_menu.fixed li a").each(function(){$j(this).attr("href")===t?$j(this).parent().addClass("active"):$j(this).parent().removeClass("active")}))},{offset:"80%"}),$j(".content .in_content_menu").waypoint(function(e){var t;"up"===e&&(t=$j(this).data("mkd_id"),$j("nav.content_menu.fixed li a").each(function(){$j(this).attr("href")===t?$j(this).parent().addClass("active"):$j(this).parent().removeClass("active")}))},{offset:function(){return-($j(this).outerHeight()-250)}}))}var scrollPos=0;function contentMenuCheckLastSection(){"use strict";var e,t,i;$j(".content .in_content_menu").length&&(e=$scroll,t=$j(".content .in_content_menu:last").offset().top+$j(".content .in_content_menu:last").height(),i=$j(".content .in_content_menu:first").offset().top-$window_height/2,scrollPos<e?t<$scroll&&$j("nav.content_menu.fixed li").removeClass("active"):$scroll<i&&$j("nav.content_menu li:first, nav.content_menu ul.menu li:first").removeClass("active"),scrollPos=e)}function contentMenuScrollTo(){"use strict";var o,s=$j("html, body");$j("nav.content_menu ul.menu li a").on("click",function(e){e.preventDefault();var t,i=$j(this),a=i.attr("href");return $j(this).parent().hasClass("active")||(o=$j("header.page_header").hasClass("fixed")&&!$j("body").hasClass("vertical_menu_enabled")?$j("header.page_header").hasClass("transparent")?$j('[data-mkd_id="'+a+'"]').offset().top:header_height-($j('[data-mkd_id="'+a+'"]').offset().top+content_menu_top_add)/4>=min_header_height_scroll?(t=$j('[data-mkd_id="'+a+'"]').offset().top-header_height-large_menu_item_border)+t/4+t/16+t/64+1:$j('[data-mkd_id="'+a+'"]').offset().top-min_header_height_scroll-large_menu_item_border:$j("header.page_header").hasClass("fixed_top_header")&&!$j("body").hasClass("vertical_menu_enabled")?$j("header.page_header").hasClass("transparent")?$j('[data-mkd_id="'+a+'"]').offset().top:$j('[data-mkd_id="'+a+'"]').offset().top-header_height-large_menu_item_border:$j("header.page_header").hasClass("fixed_hiding")&&!$j("body").hasClass("vertical_menu_enabled")?$j("header.page_header").hasClass("transparent")?$j('[data-mkd_id="'+a+'"]').offset().top:$j('[data-mkd_id="'+a+'"]').offset().top-(header_height+content_menu_top_add+logo_height/2+20)<=scroll_amount_for_fixed_hiding?$j('[data-mkd_id="'+a+'"]').offset().top-content_menu_top_add-header_height-logo_height/2-20:$j('[data-mkd_id="'+a+'"]').offset().top-content_menu_top_add-min_header_height_fixed_hidden-20:!($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('[data-mkd_id="'+a+'"]').offset().top:sticky_amount>=$j('[data-mkd_id="'+a+'"]').offset().top?$j('[data-mkd_id="'+a+'"]').offset().top+1:$j('[data-mkd_id="'+a+'"]').offset().top-min_header_height_sticky,0<$j('[data-mkd_id="'+a+'"]').length&&s.stop().animate({scrollTop:Math.round(o-$j("nav.content_menu").height())},1500,function(){$j("nav.content_menu ul li").removeClass("active"),i.parent().addClass("active")})),!1})}function initButtonHover(){"use strict";$j(".qbutton").length&&$j(".qbutton").each(function(){var e,t,i,a,o,s,n,r,d,l;void 0!==$j(this).data("hover-background-color")&&!1!==$j(this).data("hover-background-color")&&(e=$j(this).data("hover-background-color"),t=$j(this).css("background-color"),$j(this).on("mouseenter",function(){$j(this).css("background-color",e)}).on("mouseleave",function(){$j(this).css("background-color",t)})),void 0!==$j(this).data("hover-border-color")&&!1!==$j(this).data("hover-border-color")&&(i=$j(this).data("hover-border-color"),a=$j(this).css("border-top-color"),$j(this).on("mouseenter",function(){$j(this).css("border-color",i)}).on("mouseleave",function(){$j(this).css("border-color",a)})),void 0!==$j(this).data("hover-color")&&!1!==$j(this).data("hover-color")&&(o=$j(this).data("hover-color"),s=$j(this).css("color"),$j(this).on("mouseenter",function(){$j(this).css("color",o)}).on("mouseleave",function(){$j(this).css("color",s)})),void 0!==$j(this).data("icon-background-hover-color")&&!1!==$j(this).data("icon-background-hover-color")&&(n=$j(this).data("icon-background-hover-color"),$j(this).find("i").length&&(r=$j(this).find("i").css("background-color")),$j(this).find("span").length&&(r=$j(this).find("span").css("background-color")),$j(this).on("mouseenter",function(){$j(this).find("i").css("background-color",n),$j(this).find("span").css("background-color",n)}).on("mouseleave",function(){$j(this).find("i").css("background-color",r),$j(this).find("span").css("background-color",r)})),void 0!==$j(this).data("icon-hover-color")&&!1!==$j(this).data("icon-hover-color")&&(d=$j(this).data("icon-hover-color"),$j(this).find("i").length&&(l=$j(this).find("i").css("color")),$j(this).find("span").length&&(l=$j(this).find("span").css("color")),$j(this).on("mouseenter",function(){$j(this).find("i").css("color",d),$j(this).find("span").css("color",d)}).on("mouseleave",function(){$j(this).find("i").css("color",l),$j(this).find("span").css("color",l)}))})}function initReadMoreButtonHover(){"use strict";$j(".read_more_btn, .holder_read_more_btn").length&&$j(".read_more_btn, .holder_read_more_btn").each(function(){var e,t,i,a,o;void 0!==$j(this).data("hover-background-color")&&!1!==$j(this).data("hover-background-color")&&(e=$j(this).data("hover-background-color"),t=$j(this).css("background-color"),$j(this).on("mouseenter",function(){$j(this).css("background-color",e)}).on("mouseleave",function(){$j(this).css("background-color",t)})),void 0!==$j(this).data("hover-icon-color")&&!1!==$j(this).data("hover-icon-color")&&(i=$j(this).find(".read_more_button_icon"),a=$j(this).data("hover-icon-color"),o=i.css("color"),$j(this).on("mouseenter",function(){i.css("color",a)}).on("mouseleave",function(){i.css("color",o)}))})}function initSocialIconHover(){"use strict";$j(".mkd_social_icon_holder").length&&$j(".mkd_social_icon_holder").each(function(){var e,t,i,a,o,s="",n="";void 0!==$j(this).data("hover-background-color")&&!1!==$j(this).data("hover-background-color")&&0===$j(this).find(".simple_social").length&&(e=$j(this).data("hover-background-color"),s+="background-color: "+e+"!important;"),0===$j(this).find(".simple_social").length&&(t=$j(this).find(".mkd_icon_stack").css("background-color"),n+="background-color: "+t+"!important;"),void 0!==$j(this).data("hover-border-color")&&!1!==$j(this).data("hover-border-color")&&0===$j(this).find(".simple_social").length&&(i=$j(this).data("hover-border-color"),s+="border-color: "+i+"!important;"),0===$j(this).find(".simple_social").length&&(a=$j(this).find(".mkd_icon_stack").css("border-color"),n+="border-color: "+a+"!important;"),void 0!==$j(this).data("hover-color")&&!1!==$j(this).data("hover-color")&&(o=$j(this).data("hover-color"),s+="color: "+o+"!important;");var r=$j(this).css("color");$j(this).find(".mkd_icon_stack .social_icon").length?r=$j(this).find(".mkd_icon_stack").css("color"):$j(this).find(".simple_social").length&&(r=$j(this).find(".simple_social").css("color")),n+="color: "+r+"!important;",""!==s&&($j(this).find(".mkd_icon_stack .social_icon").length?$j(this).find(".mkd_icon_stack").on("mouseenter",function(){$j(this).attr("style",function(){return s})}).on("mouseleave",function(){$j(this).attr("style",function(){return n})}):$j(this).find(".simple_social").length&&$j(this).find(".simple_social").on("mouseenter",function(){$j(this).attr("style",function(){return s})}).on("mouseleave",function(){$j(this).attr("style",function(){return n})}))})}function initIconHover(){"use strict";$j(".mkd_icon_shortcode").length&&$j(".mkd_icon_shortcode").each(function(){if(void 0!==$j(this).data("hover-background-color")||void 0!==$j(this).data("hover-border-color")||void 0!==$j(this).find("i, span").data("hover-color")){var e,t,i,a,o,s="",n="",r="",d="";void 0!==$j(this).data("hover-background-color")&&!1!==$j(this).data("hover-background-color")&&0===$j(this).find(".normal").length&&(e=$j(this).data("hover-background-color"),s+="background-color: "+e+"!important;"),0===$j(this).find(".normal").length&&(a=$j(this).css("background-color"),r+="background-color: "+a+"!important;"),void 0!==$j(this).data("hover-border-color")&&!1!==$j(this).data("hover-border-color")&&0===$j(this).find(".normal").length&&(t=$j(this).data("hover-border-color"),s+="border-color: "+t+"!important;"),0===$j(this).find(".normal").length&&(o=$j(this).css("border-left-color"),r+="border-color: "+o+"!important;");var l=$j(this).css("width");""!==l&&(s+="width: "+l+";",r+="width: "+l+";");var h=$j(this).css("height");""!==h&&(s+="height: "+h+";",r+="height: "+h+";");var c=$j(this).css("line-height");""!==c&&(s+="line-height: "+c+";",r+="line-height: "+c+";");var _=$j(this).css("border-left-style");""!==_&&(s+="border-style: "+_+";",r+="border-style: "+_+";");var u=$j(this).css("border-left-width");""!==u&&(s+="border-width: "+u+"!important;",r+="border-width: "+u+"!important;");var p=$j(this).css("border-top-left-radius");""!==p&&(s+="border-radius: "+p+"; -moz-border-radius: "+p+"; -webkit-border-radius: "+p+";",r+="border-radius: "+p+"; -moz-border-radius: "+p+"; -webkit-border-radius: "+p+";");var m=$j(this).css("margin-right");""!==m&&(s+="margin-right: "+m+";",r+="margin-right: "+m+";");var f=$j(this).css("margin-left");""!==f&&(s+="margin-left: "+f+";",r+="margin-left: "+f+";");var $=$j(this).css("margin-top");""!==$&&(s+="margin-top: "+$+";",r+="margin-top: "+$+";");var g=$j(this).css("margin-bottom");if(""!==g&&(s+="margin-bottom: "+g+";",r+="margin-bottom: "+g+";"),$j(this).hasClass("icon_shadow")){var j="";if(void 0!==$j(this).data("shadow-color")&&!1!==$j(this).data("shadow-color")){for(var v=$j(this).data("shadow-color"),j="text-shadow:1px 1px "+v,w=2;w<100;w++)j+=","+w+"px "+w+"px "+v;r+=j+=";"}if(void 0!==$j(this).data("hover-shadow-color")&&!1!==$j(this).data("hover-shadow-color")){var b=$j(this).data("hover-shadow-color");for(j="text-shadow:1px 1px "+b,w=2;w<100;w++)j+=","+w+"px "+w+"px "+b;s+=j+=";"}}void 0!==$j(this).find("i, span").data("hover-color")&&!1!==$j(this).find("i, span").data("hover-color")&&(i=$j(this).find("i, span").data("hover-color"),n+="color: "+i+"!important;");var k=$j(this).find("i, span").css("color");d+="color: "+k+";";var C,y=$j(this).find("i, span").css("line-height");""!==y&&(n+="line-height: "+y+";",d+="line-height: "+y+";"),0!==$j(this).find(".normal").length||0!==$j(this).find("span").length||void 0!==(C=$j(this).find("i").css("vertical-align"))&&(n+="vertical-align: "+C+";",d+="vertical-align: "+C+";");var x=$j(this).find("i, span").css("font-size");""!==x&&(n+="font-size: "+x+";",d+="font-size: "+x+";");var M=$j(this).css("transition-delay");"0s, 0s, 0s"!==M&&(s+="transition-delay: "+M+"; -webkit-transition-delay: "+M+"; -moz-transition-delay: "+M+"; -o-transition-delay: "+M+";",r+="transition-delay: "+M+"; -webkit-transition-delay: "+M+"; -moz-transition-delay: "+M+"; -o-transition-delay: "+M+";",n+="transition-delay: "+M+"; -webkit-transition-delay: "+M+"; -moz-transition-delay: "+M+"; -o-transition-delay: "+M+";",d+="transition-delay: "+M+"; -webkit-transition-delay: "+M+"; -moz-transition-delay: "+M+"; -o-transition-delay: "+M+";"),void 0===e&&void 0===t&&void 0===i||$j(this).on("mouseenter",function(){($j(this).hasClass("square")||$j(this).hasClass("circle"))&&$j(this).attr("style",function(){return s}),void 0!==i&&$j(this).find("i, span").attr("style",function(){return n})}).on("mouseleave",function(){($j(this).hasClass("square")||$j(this).hasClass("circle"))&&$j(this).attr("style",function(){return r}),$j(this).find("i, span").attr("style",function(){return d})})}})}function initInteractiveBannersShader(){"use strict";$j(".mkd_image_with_text_over").length&&$j(".mkd_image_with_text_over").each(function(){var e,t;void 0!==$j(this).children(".shader").data("hover-background-color")&&!1!==$j(this).data("hover-background-color")&&(e=$j(this).children(".shader").data("hover-background-color"),t=$j(this).children(".shader").css("background-color"),$j(this).on("mouseenter",function(){$j(this).children(".shader").css("background-color",e)}).on("mouseleave",function(){$j(this).children(".shader").css("background-color",t)}))})}function initInteractiveBannersBorderStyle(){"use strict";$j(".mkd_image_with_text_over").length&&$j(".mkd_image_with_text_over").each(function(){var e="#969393";void 0!==$j(this).find(".front_holder_inner").data("hover-border-color")&&!1!==$j(this).find(".front_holder_inner").data("hover-border-color")&&(e=$j(this).find(".front_holder_inner").data("hover-border-color"),$j(this).on("mouseenter",function(){$j(this).find(".front_holder_inner").css("border-width","1px"),$j(this).find(".front_holder_inner").css("border-style","solid"),$j(this).find(".front_holder_inner").css("border-color",e)}).on("mouseleave",function(){$j(this).find(".front_holder_inner").css("border-width","0")}))})}var keys=[37,38,39,40];function preventDefaultValue(e){"use strict";(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}function keydown(e){"use strict";for(var t=keys.length;t--;)if(e.keyCode===keys[t])return void preventDefaultValue(e)}function wheel(e){"use strict";preventDefaultValue(e)}function disable_scroll(){"use strict";window.addEventListener&&window.addEventListener("DOMMouseScroll",wheel,!1),window.onmousewheel=document.onmousewheel=wheel,document.onkeydown=keydown,$j("body").hasClass("smooth_scroll")&&(window.removeEventListener("mousewheel",smoothScrollListener,!1),window.removeEventListener("DOMMouseScroll",smoothScrollListener,!1))}function enable_scroll(){"use strict";window.removeEventListener&&window.removeEventListener("DOMMouseScroll",wheel,!1),window.onmousewheel=document.onmousewheel=document.onkeydown=null,$j("body").hasClass("smooth_scroll")&&(window.addEventListener("mousewheel",smoothScrollListener,!1),window.addEventListener("DOMMouseScroll",smoothScrollListener,!1))}function initPopupMenu(){"use strict";$j("a.popup_menu").length&&($j(".popup_menu_holder_outer").height($window_height).niceScroll({scrollspeed:30,mousescrollstep:20,cursorwidth:0,cursorborder:0,cursorborderradius:0,cursorcolor:"transparent",autohidemode:!1,horizrailenabled:!1}),$j(window).resize(function(){$j(".popup_menu_holder_outer").height($window_height)}),($j("body").hasClass("fade_push_text_right")||$j("body").hasClass("fade_push_text_top"))&&($j(".fullscreen_above_menu_widget_holder > div").length?($j(".popup_menu_holder_outer nav > ul > li > a").each(function(e){$j(this).css({"-webkit-animation-delay":70*(e+1)+"ms","animation-delay":70*(e+1)+"ms"})}),$j(".fullscreen_menu_widget_holder > div").css({"-webkit-animation-delay":70*($j(".popup_menu_holder_outer nav > ul > li > a").length+1)+"ms","animation-delay":70*($j(".popup_menu_holder_outer nav > ul > li > a").length+1)+"ms"}),$j(".fullscreen_above_menu_widget_holder > div").css({"-webkit-animation-delay":"0ms","animation-delay":"0ms"})):($j(".popup_menu_holder_outer nav > ul > li > a").each(function(e){$j(this).css({"-webkit-animation-delay":70*e+"ms","animation-delay":70*e+"ms"})}),$j(".fullscreen_menu_widget_holder > div").css({"-webkit-animation-delay":70*($j(".popup_menu_holder_outer nav > ul > li > a").length+1)+"ms","animation-delay":70*($j(".popup_menu_holder_outer nav > ul > li > a").length+1)+"ms"}))),$j("a.popup_menu").on("click",function(e){e.preventDefault(),$j(this).hasClass("opened")?($j(this).removeClass("opened"),$j("body").removeClass("popup_menu_opened"),($j(this).hasClass("fade_push_text_right")||$j(this).hasClass("fade_push_text_top")||$j(this).hasClass("fade_text_scaledown"))&&$j("body").removeClass("fade_in").addClass("fade_out"),$j(this).hasClass("fade_push_text_right")?$j("body").addClass("push_nav_right"):$j(this).hasClass("fade_push_text_top")&&$j("body").addClass("push_text_top"),$j("body").hasClass("page-template-full_screen-php")||enable_scroll(),$j("nav.popup_menu ul.sub_menu").slideUp(200,function(){$j("nav.popup_menu").getNiceScroll().resize()})):($j(this).addClass("opened"),$j("body").addClass("popup_menu_opened"),$j(this).hasClass("fade_push_text_right")?($j("body").addClass("fade_in").removeClass("fade_out"),$j("body").removeClass("push_nav_right")):$j(this).hasClass("fade_push_text_top")?($j("body").addClass("fade_in").removeClass("fade_out"),$j("body").removeClass("push_text_top")):$j(this).hasClass("fade_text_scaledown")&&$j("body").addClass("fade_in").removeClass("fade_out"),$j("body").hasClass("page-template-full_screen-php")||disable_scroll())}),$j(".popup_menu > ul > li.has_sub > a, .popup_menu > ul > li.has_sub > h6").on("tap click",function(e){return e.preventDefault(),$j(this).closest("li.has_sub").find("> ul.sub_menu").is(":visible")?($j(this).closest("li.has_sub").find("> ul.sub_menu").slideUp(200,function(){$j(".popup_menu_holder_outer").getNiceScroll().resize()}),$j(this).closest("li.has_sub").removeClass("open_sub")):($j(this).closest("li.has_sub").addClass("open_sub"),$j(this).closest("li.has_sub").find("> ul.sub_menu").slideDown(200,function(){$j(".popup_menu_holder_outer").getNiceScroll().resize()})),!1}),$j(".popup_menu ul li:not(.has_sub) a").on("click",function(e){return"http://#"!==$j(this).attr("href")&&"#"!==$j(this).attr("href")&&void(1===parseInt(e.which)&&($j("a.popup_menu").removeClass("opened  "),$j("body").removeClass("popup_menu_opened"),($j("a.popup_menu").hasClass("fade_push_text_right")||$j("a.popup_menu").hasClass("fade_push_text_top")||$j("a.popup_menu").hasClass("fade_text_scaledown"))&&$j("body").removeClass("fade_in").addClass("fade_out"),$j("a.popup_menu").hasClass("fade_push_text_right")?$j("body").addClass("push_nav_right"):$j("a.popup_menu").hasClass("fade_push_text_top")&&$j("body").addClass("push_text_top"),$j("nav.popup_menu ul.sub_menu").slideUp(200,function(){$j("nav.popup_menu").getNiceScroll().resize()}),enable_scroll()))}))}function initImageGallerySliderNoSpace(){"use strict";$j(".mkd_image_gallery_no_space").length&&($j(".mkd_image_gallery_no_space").each(function(){$j(this).hasClass("full_screen_height")&&($j(this).find("ul li img").each(function(){var e=$window_height/$j(this).height(),t=Math.ceil($j(this).width()*e)-1;$j(this).closest("div").width(t)}),$j(this).find(".mkd_image_gallery_holder").height($window_height),$j(this).find(".mkd_image_gallery_holder ul li div").height($window_height)),$j(this).animate({opacity:1},1e3),$j(this).find(".mkd_image_gallery_holder").lemmonSlider({infinite:!0})}),$j(".mkd_image_gallery_no_space").on("click","li:not(.active) a",function(){return!1}))}function initFullScreenTemplate(){"use strict";var i,a;$j(".full_screen_section_slide").length&&$j(".full_screen_section_slide").closest(".full_screen_section").addClass("full_screen_section_slides"),$j(".full_screen_holder").length&&($j("body").hasClass("enable_full_screen_sections_on_small_screens")||600<$window_width)&&(i="",i=$j("header.page_header").hasClass("light")?"light":$j("header.page_header").hasClass("dark")?"dark":header_style_admin,$j("#up_fs_button").on("click",function(){return $j.fn.fullpage.moveSectionUp(),!1}),$j("#down_fs_button").on("click",function(){return $j.fn.fullpage.moveSectionDown(),!1}),a=$j(".full_screen_inner > .full_screen_section").length,$j(".full_screen_inner").fullpage({sectionSelector:".full_screen_section",slideSelector:".full_screen_section_slide",scrollOverflow:!0,afterLoad:function(e,t){checkActiveArrowsOnFullScrrenTemplate(a,t),checkFullScreenSectionsForHeaderStyle(t,i)},afterRender:function(){checkActiveArrowsOnFullScrrenTemplate(a,1),checkFullScreenSectionsForHeaderStyle(1,i),1!==a&&$j(".full_screen_holder").find(".full_screen_navigation_holder").css("visibility","visible"),$j(".full_screen_holder").find(".full_screen_inner").css("visibility","visible"),$j(".full_screen_preloader").hide(),$j(".full_screen_holder video.full_screen_sections_video").length&&$j(".full_screen_holder video.full_screen_sections_video").each(function(){$j(this).get(0).play()})}}))}function checkActiveArrowsOnFullScrrenTemplate(e,t){"use strict";1===t?($j(".full_screen_navigation_holder #up_fs_button").hide(),t!==parseInt(e)&&$j(".full_screen_navigation_holder #down_fs_button").show()):t===e?(2===parseInt(e)&&$j(".full_screen_navigation_holder #up_fs_button").show(),$j(".full_screen_navigation_holder #down_fs_button").hide()):($j(".full_screen_navigation_holder #up_fs_button").show(),$j(".full_screen_navigation_holder #down_fs_button").show())}function checkFullScreenSectionsForHeaderStyle(e,t){"use strict";var i;0<$j("[data-mkd_header_style]").length&&$j("header").hasClass("header_style_on_scroll")&&(void 0!==$j($j(".full_screen_holder .full_screen_inner .full_screen_section")[e-1]).data("mkd_header_style")?(i=$j($j(".full_screen_holder .full_screen_inner .full_screen_section")[e-1]).data("mkd_header_style"),$j("header").removeClass("dark light").addClass(i)):$j("header").removeClass("dark light").addClass(t))}function initPortfolioBlurEffect(){"use strict";var t=$j(".prominent_blur_hover");t.on("mouseenter",function(e){t.addClass("active"),t.not($j(this)).removeClass("active").addClass("blur")}),t.on("mouseleave",function(e){t.removeClass("blur"),t.removeClass("active")})}function initSocialIconsSidebarEffect(){"use strict";$j("#social_icons_widget").addClass("loaded")}function initVerticalSplitSlider(){"use strict";var s,n;$j("html").hasClass("vertical_split_screen_initalized")&&($j("html").removeClass("vertical_split_screen_initalized"),$j.fn.multiscroll.destroy()),$j(".vertical_split_slider").length?(s="",s=$j("header.page_header").hasClass("light")?"light":$j("header.page_header").hasClass("dark")?"dark":header_style_admin,n=$j(".vertical_split_slider").data("disable-header-skin-change"),$j(".vertical_split_slider_preloader").fadeOut(500),$j(".vertical_split_slider").height($window_height).animate({opacity:1},300),$j(".vertical_split_slider").multiscroll({scrollingSpeed:500,navigation:!0,useAnchorsOnLoad:!1,afterRender:function(){checkVerticalSplitSectionsForHeaderStyle($j(".ms-right .ms-section:last-child").data("header_style"),s,n),$j("html").addClass("vertical_split_screen_initalized"),initButtonHover(),initSocialIconHover(),initIconHover();var e=jQuery("div.wpcf7 > form");e.length&&e.each(function(){var t=jQuery(this);t.find(".wpcf7-submit").off().on("click",function(e){e.preventDefault(),wpcf7.submit(t)})}),initFlexSlider(),initTestimonials();var t=$j("<div class='vertical_split_slider_responsive' />");$j(".vertical_split_slider").after(t);for(var i=$j(".vertical_split_slider .ms-left > div"),a=$j(".vertical_split_slider .ms-right > div"),o=0;o<i.length;o++)t.append($j(i[o]).clone()),t.append($j(a[i.length-1-o]).clone());$j(".vertical_split_slider_responsive .mkd_google_map").length&&$j(".vertical_split_slider_responsive .mkd_google_map").each(function(){$j(this).empty();var e=Math.floor(1e5*Math.random()+1);$j(this).attr("id","map_canvas_"+e),$j(this).data("unique-id",e)}),showGoogleMap()},onLeave:function(e,t,i){checkVerticalSplitSectionsForHeaderStyle($j($j(".ms-right .ms-section")[$j(".ms-right .ms-section").length-t]).data("header_style"),s,n)}}),$window_width<=768?$j.fn.multiscroll.destroy():$j.fn.multiscroll.build(),$j(window).resize(function(){$window_width<=768?$j.fn.multiscroll.destroy():$j.fn.multiscroll.build()})):$j(".full_screen_holder").length||$j("html,body").css("height","auto")}function checkVerticalSplitSectionsForHeaderStyle(e,t,i){"use strict";""!==e?("no"===i&&$j("header.page_header").removeClass("dark light").addClass(e),$j("#multiscroll-nav").removeClass("dark light").addClass(e)):("no"===i&&$j("header.page_header").removeClass("dark light").addClass(t),$j("#multiscroll-nav").removeClass("dark light").addClass(t))}function checkHeaderStyleOnScroll(){"use strict";var i,e,t;0<$j("[data-mkd_header_style]").length&&$j("header").hasClass("header_style_on_scroll")&&(i="",i=$j("header.page_header").hasClass("light")?"light":$j("header.page_header").hasClass("dark")?"dark":header_style_admin,e=$j("body").hasClass("paspartu_on_top_fixed")?Math.round($window_width*paspartu_width):0,t=$j("body").hasClass("paspartu_on_bottom_fixed")?Math.round($window_width*paspartu_width):0,$j(".full_width_inner > .wpb_row.section, .full_width_inner > .parallax_section_holder, .container_inner > .wpb_row.section, .container_inner > .parallax_section_holder").waypoint(function(e){var t;"down"===e&&(void 0!==$j(this).data("mkd_header_style")?(t=$j(this).data("mkd_header_style"),$j("header").removeClass("dark light").addClass(t)):$j("header").removeClass("dark light").addClass(i))},{offset:0+e}),$j(".full_width_inner > .wpb_row.section, .full_width_inner > .parallax_section_holder, .container_inner > .wpb_row.section, .container_inner > .parallax_section_holder").waypoint(function(e){var t;"up"===e&&(void 0!==$j(this).data("mkd_header_style")?(t=$j(this).data("mkd_header_style"),$j("header").removeClass("dark light").addClass(t)):$j("header").removeClass("dark light").addClass(i))},{offset:function(){return-$j(this).outerHeight()+t}}))}function checkHolderWidth(){"use strict";$j(".full_width").length&&$j(".mkd_elements_holder").length&&!$j(".mkd_elements_holder").parents(".grid_section").length&&$j(".mkd_elements_holder").each(function(){var e,t=$j(this).width(),i=$j(this).find(".mkd_elements_item").length;t%i!=0?(e=t+(i-t%i),$j(this).width(e)):$j(this).removeStyle("width")})}function setServiceTableStyles(){"use strict";$j(".service_table_holder").length&&$j(".service_table_holder").each(function(){var e,t,i;void 0!==$j(this).find(".service_table_inner").data("icon-back-color")&&!1!==$j(this).find(".service_table_inner").data("icon-back-color")&&(i=$j(this).find(".service_table_inner").data("icon-back-color"),$j(this).find(".service_icon").css("background-color",i)),void 0!==$j(this).find(".service_table_inner").data("icon-padding-top")&&!1!==$j(this).find(".service_table_inner").data("icon-padding-top")&&(e=$j(this).find(".service_table_inner").data("icon-padding-top"),$j(this).find(".service_icon>span").css("padding-top",e+"px")),void 0!==$j(this).find(".service_table_inner").data("icon-padding-bottom")&&!1!==$j(this).find(".service_table_inner").data("icon-padding-bottom")&&(t=$j(this).find(".service_table_inner").data("icon-padding-bottom"),$j(this).find(".service_icon>span").css("padding-bottom",t+"px"))})}function initProcessHeightWidth(){"use strict";$j(".mkd_circles_shortcode").length&&$j(".mkd_circles_shortcode").each(function(){var e,t,i;void 0!==$j(this).find(".mkd_circles_holder").data("proces-height")&&!1!==$j(this).find(".mkd_circles_holder").data("proces-height")&&(i=(e=$j(this).find(".mkd_circles_holder").data("proces-height"))/2,e+="px",i+="px",$j(this).find(".mkd_circles_holder.with_lines .circle_line_holder").css("top",i),$j(this).find(".mkd_circles_holder .mkd_circle_inner").css("height",e)),void 0!==$j(this).find(".mkd_circles_holder").data("proces-width")&&!1!==$j(this).find(".mkd_circles_holder").data("proces-width")&&(t=$j(this).find(".mkd_circles_holder").data("proces-width"),t+="px",$j(this).find(".mkd_circles_holder .mkd_circle_inner").css("width",t))})}function initCustomFontResize(){"use strict";$j(".custom_font_holder").length&&$j(".custom_font_holder").each(function(){var e,t=1,i=1;$window_width<1200&&(t=.8),$window_width<1e3&&(t=.7),$window_width<768&&(t=.6,i=.7),$window_width<600&&(i=t=.5),$window_width<480&&(i=t=.4),void 0!==$j(this).data("font-size")&&!1!==$j(this).data("font-size")&&(35<(e=$j(this).data("font-size"))&&(e=Math.round(e*i)),70<e&&(e=Math.round(e*t)),$j(this).css("font-size",e+"px")),void 0!==$j(this).data("line-height")&&!1!==$j(this).data("line-height")&&35<$j(this).data("line-height")&&$window_width<1200&&$j(this).css("line-height","1em")})}function initVerticalTabsContentHeight(){"use strict";$j(".mkd_tabs.vertical").each(function(){$j(this).find(".tabs-container").css("min-height",$j(this).find(".tabs-nav").height())})}function initVerticalTabsWidth(){"use strict";$j(".mkd_tabs.vertical:not(.default)").each(function(){var e=$j(this),t=e.find(".tabs-nav").width();e.find(".tabs-nav li a").css("min-width",t)})}function initTabsStyle(){$j(".mkd_tabs").length&&$j(".mkd_tabs").each(function(){var e;void 0!==$j(this).data("tab-border-radius")&&!1!==$j(this).data("tab-border-radius")&&(e=$j(this).data("tab-border-radius"),$j(this).find(".tabs-nav li a").css("border-radius",e+"px"),$j(this).find(".tabs-nav li").css("border-radius",e+"px"))})}function preloadBackgrounds(){"use strict";$j(".preload_background ").each(function(){var e,t,i=$j(this);""!==i.css("background-image")&&"none"!==i.css("background-image")?(t=(t=(t=i.attr("style")).match(/url\(["']?([^'")]+)['"]?\)/))?t[1]:"")&&((e=new Image).src=t,$j(e).on("load",function(){i.removeClass("preload_background"),initParallaxTitle()})):$j(window).on("load",function(){i.removeClass("preload_background")})})}function setVideoHeightAndWidth(){"use strict";$j("div.wp-video .wp-video-shortcode video").each(function(){var e=$j(this),t=e.attr("width"),i=e.attr("height");e.attr("id");e.parent(".wp-video-shortcode").css("height",i),e.parent(".wp-video-shortcode").css("width",t)})}function createTabIcons(){"use strict";$j(".tabs-container > .tab-content").each(function(){var e=$j(this).attr("id"),t="";void 0!==$j(this).data("icon-html")&&(t=$j(this).data("icon-html"));var i=$j(this).parents(".mkd_tabs").find('ul.tabs-nav > li > a[href="#'+e+'"]');void 0!==i&&i.children(".icon_frame").append(t)})}function initMikadoElementAnimationSkrollr(){"use strict";0===$j(".no-touch .carousel").length&&$j(".no-touch .mkd_elements_holder > .mkd_elements_item").each(function(){if((void 0!==$j(this).data("animation")||void 0!==$j(".title_outer").data("animation"))&&"yes"===$j(this).data("animation"))return skrollr.init({smoothScrolling:!1,forceHeight:!1}).refresh(),!1})}function getIconClassesForNavigation(e){"use strict";var t="",i="";switch(e){case"arrow_carrot-left_alt2":t="arrow_carrot-left_alt2",i="arrow_carrot-right_alt2";break;case"arrow_carrot-2left_alt2":t="arrow_carrot-2left_alt2",i="arrow_carrot-2right_alt2";break;case"arrow_triangle-left_alt2":t="arrow_triangle-left_alt2",i="arrow_triangle-right_alt2";break;case"icon-arrows-drag-left-dashed":case"icon-arrows-drag-left-dashed":t="icon-arrows-drag-left-dashed",i="icon-arrows-drag-right-dashed";break;case"icon-arrows-left-double-32":t="icon-arrows-left-double-32",i="icon-arrows-right-double";break;case"icon-arrows-slide-left1":t="icon-arrows-slide-left1",i="icon-arrows-slide-right1";break;case"icon-arrows-slide-left2":t="icon-arrows-slide-left2",i="icon-arrows-slide-right2";break;case"icon-arrows-slim-left-dashed":t="icon-arrows-slim-left-dashed",i="icon-arrows-slim-right-dashed";break;case"ion-arrow-left-a":t="ion-arrow-left-a",i="ion-arrow-right-a";break;case"ion-arrow-left-b":t="ion-arrow-left-b",i="ion-arrow-right-b";break;case"ion-arrow-left-c":t="ion-arrow-left-c",i="ion-arrow-right-c";break;case"ion-ios-arrow-":t=e+"back",i=e+"forward";break;case"ion-ios-fastforward":t="ion-ios-rewind",i="ion-ios-fastforward";break;case"ion-ios-fastforward-outline":t="ion-ios-rewind-outline",i="ion-ios-fastforward-outline";break;case"ion-ios-skipbackward":t="ion-ios-skipbackward",i="ion-ios-skipforward";break;case"ion-ios-skipbackward-outline":t="ion-ios-skipbackward-outline",i="ion-ios-skipforward-outline";break;case"ion-android-arrow-":t=e+"back",i=e+"forward";break;case"ion-android-arrow-dropleft-circle":t="ion-android-arrow-dropleft-circle",i="ion-android-arrow-dropright-circle";break;default:t=e+"left",i=e+"right"}return{leftIconClass:t,rightIconClass:i}}function eltdInitSingleProductLightbox(){var e=$j(".single-product .images .woocommerce-product-gallery__image");e.length&&e.children("a").attr("data-rel","prettyPhoto[product-gallery]")}function initnitElementsHolderResponsiveStyle(){var e=$j(".mkd_elements_holder");e.length&&e.each(function(){var e=$j(this).find(".mkd_elements_item_content"),t="",d="";e.each(function(){var e=$j(this),t="",i="",a="",o="",s="",n="",r="";void 0!==e.data("item-class")&&!1!==e.data("item-class")&&(t=e.data("item-class")),void 0!==e.data("1300-1600")&&!1!==e.data("1000-1300")&&(i=e.data("1300-1600")),void 0!==e.data("1000-1300")&&!1!==e.data("1000-1300")&&(a=e.data("1000-1300")),void 0!==e.data("768-1000")&&!1!==e.data("768-1000")&&(o=e.data("768-1000")),void 0!==e.data("600-768")&&!1!==e.data("600-768")&&(s=e.data("600-768")),void 0!==e.data("480-600")&&!1!==e.data("480-600")&&(n=e.data("480-600")),void 0!==e.data("480")&&!1!==e.data("480")&&(r=e.data("480")),(i.length||a.length||o.length||s.length||n.length||r.length)&&(i.length&&(d+="@media only screen and (min-width: 1300px) and (max-width: 1600px) {.mkd_elements_item_content."+t+" { padding: "+a+" !important; } }"),a.length&&(d+="@media only screen and (min-width: 1000px) and (max-width: 1300px) {.mkd_elements_item_content."+t+" { padding: "+a+" !important; } }"),o.length&&(d+="@media only screen and (min-width: 768px) and (max-width: 1000px) {.mkd_elements_item_content."+t+" { padding: "+o+" !important; } }"),s.length&&(d+="@media only screen and (min-width: 600px) and (max-width: 768px) {.mkd_elements_item_content."+t+" { padding: "+s+" !important; } }"),n.length&&(d+="@media only screen and (min-width: 480px) and (max-width: 600px) {.mkd_elements_item_content."+t+" { padding: "+n+" !important; } }"),r.length&&(d+="@media only screen and (max-width: 480px) {.mkd_elements_item_content."+t+" { padding: "+r+" !important; } }"))}),d.length&&(t='<style type="text/css">'+d+"</style>"),t.length&&$j("head").append(t)})}