function initSliderHeaderStylesDisable(){if($j(".mkd_slider .carousel").length){if($j(".carousel").height()<$scroll){$j(".carousel").addClass("disable_slider_header_style_changing")}else{$j(".carousel").removeClass("disable_slider_header_style_changing");checkSliderForHeaderStyle($j(".mkd_slider .carousel .active"),$j(".mkd_slider .carousel").hasClass("header_effect"))}}}function initMikadoSlider(){"use strict";var e=/url\(["']?([^'")]+)['"]?\)/;default_header_style="";if($j("header.page_header").hasClass("light")){default_header_style="light"}if($j("header.page_header").hasClass("dark")){default_header_style="dark"}if($j(".carousel").length){$j(".carousel").each(function(){function g(e,t){var n=t;if($window_width>c[0]){n=t}else if($window_width>c[1]){n=t*.75}else if($window_width>c[2]){n=t*.6}else if($window_width>c[3]){n=t*.55}else if($window_width<=c[3]){n=t*.45}e.css({height:n+"px"});e.find(".mkd_slider_preloader").css({height:n+"px"});e.find(".mkd_slider_preloader .ajax_loader").css({display:"block"});e.find(".item").css({height:n+"px"})}function y(e){t.css({height:e+"px"});t.find(".mkd_slider_preloader").css({height:e+"px"});t.find(".mkd_slider_preloader .ajax_loader").css({display:"block"});t.find(".item").css({height:e+"px"})}function b(e,t){window["slider_graphic_"+t]=[];window["slider_title_"+t]=[];window["slider_subtitle_"+t]=[];window["slider_text_"+t]=[];window["slider_button1_"+t]=[];window["slider_button2_"+t]=[];window["slider_top_separator_"+t]=[];window["slider_bottom_separator_"+t]=[];window["slider_graphic_"+t].push(parseFloat(e.find(".thumb img").data("width")));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_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_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_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")));if(parseFloat(e.find(".qbutton:eq(0)").css("width"))!=0){window["slider_button1_"+t].push(parseFloat(e.find(".qbutton:eq(0)").css("width")))}else{window["slider_button1_"+t].push(0)}if(parseFloat(e.find(".qbutton:eq(1)").css("width"))!=0){window["slider_button2_"+t].push(parseFloat(e.find(".qbutton:eq(1)").css("width")))}else{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")))}function w(e,t){if($window_width>c[0]){o=h[0];u=p[0];a=d[0];f=v[0];l=m[0]}else if($window_width>c[1]){o=h[1];u=p[1];a=d[1];f=v[1];l=m[1]}else if($window_width>c[2]){o=h[2];u=p[2];a=d[2];f=v[2];l=m[2]}else if($window_width>c[3]){o=h[3];u=p[3];a=d[3];f=v[3];l=m[3]}else if($window_width>c[4]){o=h[4];u=p[4];a=d[4];f=v[4];l=m[4]}else if($window_width>c[5]){o=h[5];u=p[5];a=d[5];f=v[5];l=m[5]}else{o=h[6];u=p[6];a=d[6];f=v[6];l=m[6]}var n=u;var r=a;var i=f;if($window_width<=c[0]){n=u/2;r=a/2;i=f/2}e.find(".thumb img").css({width:Math.round(window["slider_graphic_"+t][0]*o)+"px"});e.find(".mkd_slide_title").css({"font-size":Math.round(window["slider_title_"+t][0]*u)+"px"});e.find(".mkd_slide_title").css({"line-height":Math.round(window["slider_title_"+t][1]*u)+"px"});e.find(".mkd_slide_title").css({"letter-spacing":Math.round(window["slider_title_"+t][2]*n)+"px"});e.find(".mkd_slide_title").css({"margin-bottom":Math.round(window["slider_title_"+t][3]*u)+"px"});e.find(".mkd_slide_subtitle").css({"font-size":Math.round(window["slider_subtitle_"+t][0]*a)+"px"});e.find(".mkd_slide_subtitle").css({"line-height":Math.round(window["slider_subtitle_"+t][1]*a)+"px"});e.find(".mkd_slide_subtitle").css({"letter-spacing":Math.round(window["slider_subtitle_"+t][2]*r)+"px"});e.find(".mkd_slide_subtitle").css({"margin-bottom":Math.round(window["slider_subtitle_"+t][3]*a)+"px"});e.find(".mkd_slide_text").css({"font-size":Math.round(window["slider_text_"+t][0]*f)+"px"});e.find(".mkd_slide_text").css({"line-height":Math.round(window["slider_text_"+t][1]*f)+"px"});e.find(".mkd_slide_text").css({"letter-spacing":Math.round(window["slider_text_"+t][2]*i)+"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"});if(window["slider_button1_"+t][4]!=0){e.find(".qbutton:eq(0)").css({width:Math.round(window["slider_button1_"+t][4]*l)+"px"})}else{e.find(".qbutton:eq(0)").css({width:"auto"})}if(window["slider_button2_"+t][4]!=0){e.find(".qbutton:eq(1)").css({width:Math.round(window["slider_button2_"+t][4]*l)+"px"})}else{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]*u)+"px"});e.find(".separator_top").css({"margin-bottom":Math.round(window["slider_top_separator_"+t][1]*u)+"px"});e.find(".separator_bottom").css({"margin-top":Math.round(window["slider_bottom_separator_"+t][0]*u)+"px"});e.find(".separator_bottom").css({"margin-bottom":Math.round(window["slider_bottom_separator_"+t][1]*u)+"px"})}function E(e,t){e.find(".thumb img").css({width:Math.round(window["slider_graphic_"+t][0])+"px"});e.find(".mkd_slide_title").css({"font-size":Math.round(window["slider_title_"+t][0])+"px"});e.find(".mkd_slide_title").css({"line-height":Math.round(window["slider_title_"+t][1])+"px"});e.find(".mkd_slide_title").css({"letter-spacing":Math.round(window["slider_title_"+t][2])+"px"});e.find(".mkd_slide_title").css({"margin-bottom":Math.round(window["slider_title_"+t][3])+"px"});e.find(".mkd_slide_subtitle").css({"font-size":Math.round(window["slider_subtitle_"+t][0])+"px"});e.find(".mkd_slide_subtitle").css({"line-height":Math.round(window["slider_subtitle_"+t][1])+"px"});e.find(".mkd_slide_subtitle").css({"letter-spacing":Math.round(window["slider_subtitle_"+t][2])+"px"});e.find(".mkd_slide_subtitle").css({"margin-bottom":Math.round(window["slider_subtitle_"+t][3])+"px"});e.find(".mkd_slide_text").css({"font-size":Math.round(window["slider_text_"+t][0])+"px"});e.find(".mkd_slide_text").css({"line-height":Math.round(window["slider_text_"+t][1])+"px"});e.find(".mkd_slide_text").css({"letter-spacing":Math.round(window["slider_text_"+t][2])+"px"});e.find(".qbutton:eq(0)").css({"font-size":Math.round(window["slider_button1_"+t][0])+"px"});e.find(".qbutton:eq(1)").css({"font-size":Math.round(window["slider_button2_"+t][0])+"px"});e.find(".qbutton:eq(0)").css({"line-height":Math.round(window["slider_button1_"+t][1])+"px"});e.find(".qbutton:eq(1)").css({"line-height":Math.round(window["slider_button2_"+t][1])+"px"});e.find(".qbutton:eq(0)").css({"letter-spacing":Math.round(window["slider_button1_"+t][2])+"px"});e.find(".qbutton:eq(1)").css({"letter-spacing":Math.round(window["slider_button2_"+t][2])+"px"});e.find(".qbutton:eq(0)").css({height:Math.round(window["slider_button1_"+t][3])+"px"});e.find(".qbutton:eq(1)").css({height:Math.round(window["slider_button2_"+t][3])+"px"});if(window["slider_button1_"+t][4]!=0){e.find(".qbutton:eq(0)").css({width:Math.round(window["slider_button1_"+t][4])+"px"})}else{e.find(".qbutton:eq(0)").css({width:"auto"})}if(window["slider_button2_"+t][4]!=0){e.find(".qbutton:eq(1)").css({width:Math.round(window["slider_button2_"+t][4])+"px"})}else{e.find(".qbutton:eq(1)").css({width:"auto"})}e.find(".qbutton:eq(0)").css({"padding-left":Math.round(window["slider_button1_"+t][5])+"px"});e.find(".qbutton:eq(1)").css({"padding-left":Math.round(window["slider_button2_"+t][5])+"px"});e.find(".qbutton:eq(0)").css({"padding-right":Math.round(window["slider_button1_"+t][5])+"px"});e.find(".qbutton:eq(1)").css({"padding-right":Math.round(window["slider_button2_"+t][5])+"px"});e.find(".separator_top").css({"margin-top":Math.round(window["slider_top_separator_"+t][0])+"px"});e.find(".separator_top").css({"margin-bottom":Math.round(window["slider_top_separator_"+t][1])+"px"});e.find(".separator_bottom").css({"margin-top":Math.round(window["slider_bottom_separator_"+t][0])+"px"});e.find(".separator_bottom").css({"margin-bottom":Math.round(window["slider_bottom_separator_"+t][1])+"px"})}function C(e,n){if(e==1){t.find(".left.carousel-control .prev").html(n);t.find(".right.carousel-control .next").html(e+1)}else if(e==n){t.find(".left.carousel-control .prev").html(e-1);t.find(".right.carousel-control .next").html(1)}else{t.find(".left.carousel-control .prev").html(e-1);t.find(".right.carousel-control .next").html(e+1)}}function k(){t.find(".carousel-inner .item:first-child").addClass("active");checkSliderForHeaderStyle($j(".carousel .active"),t.hasClass("header_effect"));if(t.hasClass("slider_thumbs")){C(1,N);if(t.find(".active").next("div").find(".image").length){src=e.exec(t.find(".active").next("div").find(".image").attr("style"));next_image=new Image;next_image.src=src[1]}else{next_image=t.find(".active").next("div").find("> .video").clone();next_image.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)}t.find(".right.carousel-control .img").html(next_image).find("img, div.video").addClass("old");if(t.find(".carousel-inner .item:last-child .image").length){src=e.exec(t.find(".carousel-inner .item:last-child .image").attr("style"));prev_image=new Image;prev_image.src=src[1]}else{prev_image=t.find(".carousel-inner .item:last-child > .video").clone();prev_image.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)}t.find(".left.carousel-control .img").html(prev_image).find("img, div.video").addClass("old")}if(t.hasClass("mkd_auto_start")){t.carousel({interval:T,pause:false});t.find(".slide_buttons_holder .qbutton").mouseenter(function(){t.carousel("pause")}).mouseleave(function(){t.carousel("cycle")})}else{t.carousel({interval:0,pause:false})}if(t.find(".item video").length){initVideoBackgroundSize()}if(t.hasClass("responsive_height")||t.hasClass("full_screen")){t.find(".item").each(function(e){b($j(this),e);w($j(this),e)})}}var t=$j(this);var n=$window_width<1e3?$j("header.page_header").height():0;var r=$window_width>1e3&&!$j("header.page_header").hasClass("transparent")?$j("header.page_header").height():0;var i=$j(".paspartu_outer:not(.disable_top_paspartu):not(.paspartu_on_bottom_slider)").length>0?Math.round($window_width*paspartu_width*2+r):0;var s=$j(".paspartu_outer.paspartu_on_bottom_slider").length>0?Math.round($window_width*paspartu_width):0;var o;var u;var a;var f;var l;var c=[1600,1200,900,650,500,320];if(t.data("mkd_responsive_breakpoints")){if(t.data("mkd_responsive_breakpoints")=="set2"){c=[1600,1300,1e3,768,567,320]}}var h=t.data("mkd_responsive_graphic_coefficients").split(",");var p=t.data("mkd_responsive_title_coefficients").split(",");var d=t.data("mkd_responsive_subtitle_coefficients").split(",");var v=t.data("mkd_responsive_text_coefficients").split(",");var m=t.data("mkd_responsive_button_coefficients").split(",");if(t.hasClass("full_screen")){t.css({height:$j(window).height()-n-i-s+"px"});t.find(".mkd_slider_preloader").css({height:$j(window).height()-n-i-s+"px"});t.find(".mkd_slider_preloader .ajax_loader").css({display:"block"});t.find(".item").css({height:$j(window).height()-n-i-s+"px"});if($j(".paspartu_outer:not(.disable_top_paspartu):not(.paspartu_on_bottom_slider)").length){t.closest(".mkd_slider").css("padding-top",Math.round(r+$window_width*paspartu_width));t.closest(".mkd_slider").css("padding-bottom",Math.round($window_width*paspartu_width))}if($j(".paspartu_outer.paspartu_on_bottom_slider").length){t.closest(".mkd_slider").css("padding-bottom",Math.round($window_width*paspartu_width))}$j(window).resize(function(){n=$j(window).width()<1e3?$j("header.page_header").height():0;r=$window_width>1e3&&!$j("header.page_header").hasClass("transparent")?$j("header.page_header").height():0;i=$j(".paspartu_outer:not(.disable_top_paspartu):not(.paspartu_on_bottom_slider)").length>0?Math.round($window_width*paspartu_width*2+r):0;s=$j(".paspartu_outer.paspartu_on_bottom_slider").length>0?Math.round($window_width*paspartu_width):0;t.css({height:$j(window).height()-n-i-s+"px"});t.find(".mkd_slider_preloader").css({height:$j(window).height()-n-i-s+"px"});t.find(".item").css({height:$j(window).height()-n-i-s+"px"});if($j(".paspartu_outer:not(.disable_top_paspartu):not(.paspartu_on_bottom_slider)").length){t.closest(".mkd_slider").css("padding-top",Math.round(r+$window_width*paspartu_width));t.closest(".mkd_slider").css("padding-bottom",Math.round($window_width*paspartu_width))}if($j(".paspartu_outer.paspartu_on_bottom_slider").length){t.closest(".mkd_slider").css("padding-bottom",Math.round($window_width*paspartu_width))}t.find(".item").each(function(e){w($j(this),e)})})}else if(t.hasClass("responsive_height")){var S=t.data("height");t.find(".mkd_slider_preloader").css({height:t.height()-n-i-s+"px",display:"block"});if($j(".paspartu_outer:not(.disable_top_paspartu):not(.paspartu_on_bottom_slider)").length){t.closest(".mkd_slider").css("padding-top",Math.round(r+$window_width*paspartu_width));t.closest(".mkd_slider").css("padding-bottom",Math.round($window_width*paspartu_width))}if($j(".paspartu_outer.paspartu_on_bottom_slider").length){t.closest(".mkd_slider").css("padding-bottom",Math.round($window_width*paspartu_width))}g(t,S);$j(window).resize(function(){if($j(".paspartu_outer:not(.disable_top_paspartu):not(.paspartu_on_bottom_slider)").length){r=$window_width>1e3&&!$j("header.page_header").hasClass("transparent")?$j("header.page_header").height():0;t.closest(".mkd_slider").css("padding-top",Math.round(r+$window_width*paspartu_width));t.closest(".mkd_slider").css("padding-bottom",Math.round($window_width*paspartu_width))}if($j(".paspartu_outer.paspartu_on_bottom_slider").length){t.closest(".mkd_slider").css("padding-bottom",Math.round($window_width*paspartu_width))}g(t,S);t.find(".item").each(function(e){w($j(this),e)})})}else{var S=t.data("height");t.find(".mkd_slider_preloader").css({height:t.height()-n-i-s+"px",display:"block"});t.find(".mkd_slider_preloader .ajax_loader").css({display:"block"});if($j(".paspartu_outer:not(.disable_top_paspartu):not(.paspartu_on_bottom_slider)").length){t.closest(".mkd_slider").css("padding-top",Math.round(r+$window_width*paspartu_width));t.closest(".mkd_slider").css("padding-bottom",Math.round($window_width*paspartu_width))}if($j(".paspartu_outer.paspartu_on_bottom_slider").length){t.closest(".mkd_slider").css("padding-bottom",Math.round($window_width*paspartu_width))}t.find(".item").each(function(e){b($j(this),e);w($j(this),e)});$window_width<1e3?g(t,S):y(S);$j(window).resize(function(){if($j(".paspartu_outer:not(.disable_top_paspartu):not(.paspartu_on_bottom_slider)").length){r=$window_width>1e3&&!$j("header.page_header").hasClass("transparent")?$j("header.page_header").height():0;t.closest(".mkd_slider").css("padding-top",Math.round(r+$window_width*paspartu_width));t.closest(".mkd_slider").css("padding-bottom",Math.round($window_width*paspartu_width))}if($j(".paspartu_outer.paspartu_on_bottom_slider").length){t.closest(".mkd_slider").css("padding-bottom",Math.round($window_width*paspartu_width))}if($window_width<1e3){g(t,S);t.find(".item").each(function(e){w($j(this),e)})}else{y(S);t.find(".item").each(function(e){E($j(this),e)})}})}if($j("body:not(.boxed):not(.vertical_menu_transparency):not(.vertical_menu_hidden):not(.page-template-landing_page-php)").hasClass("vertical_menu_enabled")&&$window_width>1e3){var x=290;if($j(".vertical_menu_width_350").length){var x=350}if($j(".vertical_menu_width_400").length){var x=400}t.find(".carousel-inner").width($window_width-x);$j(window).resize(function(){if($j(window).width()>1e3){t.find(".carousel-inner").width($window_width-x)}else{t.find(".carousel-inner").css("width","100%")}})}if($j("body:not(.boxed):not(.vertical_menu_transparency):not(.page-template-landing_page-php)").hasClass("vertical_menu_hidden")&&$window_width>1e3){t.find(".carousel-inner").width($window_width-40);$j(window).resize(function(){if($j(window).width()>1e3){t.find(".carousel-inner").width($window_width-40)}else{t.find(".carousel-inner").css("width","100%")}})}$j(window).scroll(function(){if(t.hasClass("full_screen")&&$scroll>$window_height&&$window_width>1e3){t.find(".carousel-inner, .carousel-indicators, button").hide()}else if(!t.hasClass("full_screen")&&$scroll>t.height()&&$window_width>1e3){t.find(".carousel-inner, .carousel-indicators, button").hide()}else{t.find(".carousel-inner, .carousel-indicators, button").show()}});var T=t.data("slide_animation");if(T===""){T=6e3}var N=$j("div.item").length;if($j("html").hasClass("touch")){if(t.find(".item:first-child .mobile-video-image").length>0){src=e.exec(t.find(".item:first-child .mobile-video-image").attr("style"));if(src){var L=new Image;L.src=src[1];$j(L).load(function(){$j(".mkd_slider_preloader").fadeOut(500);k()})}}else{src=e.exec(t.find(".item:first-child .image").attr("style"));if(src){var L=new Image;L.src=src[1];$j(L).load(function(){$j(".mkd_slider_preloader").fadeOut(500);k()})}}}else{if(t.find(".item:first-child video").length>0){t.find(".item:first-child video").get(0).addEventListener("loadeddata",function(){$j(".mkd_slider_preloader").fadeOut(500);k()})}else{src=e.exec(t.find(".item:first-child .image").attr("style"));if(src){var L=new Image;L.src=src[1];$j(L).load(function(){$j(".mkd_slider_preloader").fadeOut(500);k()})}}}t.on("slide.bs.carousel",function(){t.addClass("in_progress");t.find(".active .slider_content_outer").fadeTo(250,0)});t.on("slid.bs.carousel",function(){t.removeClass("in_progress");t.find(".active .slider_content_outer").fadeTo(0,1);if(t.hasClass("slider_thumbs")){var n=$j("div.item").index($j("div.item.active")[0])+1;C(n,N);if(t.find(".active").prev("div.item").length){if(t.find(".active").prev("div").find(".image").length){src=e.exec(t.find(".active").prev("div").find(".image").attr("style"));prev_image=new Image;prev_image.src=src[1]}else{prev_image=t.find(".active").prev("div").find("> .video").clone();prev_image.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)}t.find(".left.carousel-control .img .old").fadeOut(300,function(){$j(this).remove()});t.find(".left.carousel-control .img").append(prev_image).find("img, div.video").fadeIn(300).addClass("old")}else{if(t.find(".carousel-inner .item:last-child .image").length){src=e.exec(t.find(".carousel-inner .item:last-child .image").attr("style"));prev_image=new Image;prev_image.src=src[1]}else{prev_image=t.find(".carousel-inner .item:last-child > .video").clone();prev_image.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)}t.find(".left.carousel-control .img .old").fadeOut(300,function(){$j(this).remove()});t.find(".left.carousel-control .img").append(prev_image).find("img, div.video").fadeIn(300).addClass("old")}if(t.find(".active").next("div.item").length){if(t.find(".active").next("div").find(".image").length){src=e.exec(t.find(".active").next("div").find(".image").attr("style"));next_image=new Image;next_image.src=src[1]}else{next_image=t.find(".active").next("div").find("> .video").clone();next_image.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)}t.find(".right.carousel-control .img .old").fadeOut(300,function(){$j(this).remove()});t.find(".right.carousel-control .img").append(next_image).find("img, div.video").fadeIn(300).addClass("old")}else{if(t.find(".carousel-inner .item:first-child .image").length){src=e.exec(t.find(".carousel-inner .item:first-child .image").attr("style"));next_image=new Image;next_image.src=src[1]}else{next_image=t.find(".carousel-inner .item:first-child > .video").clone();next_image.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)}t.find(".right.carousel-control .img .old").fadeOut(300,function(){$j(this).remove()});t.find(".right.carousel-control .img").append(next_image).find("img, div.video").fadeIn(300).addClass("old")}}});t.swipe({swipeLeft:function(e,n,r,i,s){t.carousel("next")},swipeRight:function(e,n,r,i,s){t.carousel("prev")},threshold:20})});if($j(".carousel").data("parallax")=="yes"){if($j(".no-touch .carousel").length){skrollr_slider=skrollr.init({edgeStrategy:"set",smoothScrolling:false,forceHeight:false});skrollr_slider.refresh()}}}}function checkSliderForHeaderStyle(e,t){"use strict";if($j(".mkd_slider .carousel").not(".disable_slider_header_style_changing").length>0){var n="";if(e.hasClass("light")){n="light"}if(e.hasClass("dark")){n="dark"}if(n!==""){if(t){$j("header.page_header").removeClass("dark light").addClass(n);$j("aside.vertical_menu_area").removeClass("dark light").addClass(n)}$j(".carousel .carousel-control, .carousel .carousel-indicators").removeClass("dark light").addClass(n)}else{if(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)}}}var $j=jQuery.noConflict();$j(document).ready(function(){initMikadoSlider();initSliderHeaderStylesDisable()});$j(window).scroll(function(){initSliderHeaderStylesDisable()})