// source --> https://pilger-im-norden.de/wp-content/themes/radiate-pro/js/custom.min.js?ver=6.9.4 
jQuery(window).on("load",function(){function a(){if(jQuery(window).width()<=768){var a=jQuery(".header-wrap").height()+f;jQuery("#parallax-bg").css({top:a})}var b=jQuery(".header-image-wrap").height()+"px";jQuery("#masthead").css({"margin-bottom":b}),jQuery(window).resize(function(){if(jQuery(window).width()<=768){var a=jQuery(".header-wrap").height()+f;jQuery("#parallax-bg").css({top:a})}else b=jQuery(".header-image-wrap").height()+"px",jQuery("#masthead").css({"margin-bottom":b});b=jQuery(".header-image-wrap").height()+"px",jQuery("#masthead").css({"margin-bottom":b})})}function b(){var a=jQuery(window).scrollTop();if("0"===radiateScriptParam.push_height_key)if(jQuery(window).width()<=768){var b=jQuery(".header-wrap").height()+f;jQuery("#parallax-bg").css("top",parseInt(b,10)-.2*a+"px")}else jQuery("#parallax-bg").css("top",0-.2*a+"px");else jQuery("#parallax-bg").css("top",0-.2*a+"px")}if("1"===radiateScriptParam.push_height_key){var c=jQuery(".header-wrap").height()+"px",d=jQuery(".header-wrap").height()+20+"px";jQuery("body").css({"margin-top":c}),jQuery("body.radiate-hdt-2").css({"margin-top":d})}var e=function(){jQuery("#masthead .search-form").hide("slow")};jQuery(".header-search-icon").click(function(){jQuery("#masthead .search-form").toggle("slow"),setTimeout(function(){jQuery("#masthead .search-form input").focus()},200),jQuery(document).on("keyup",function(a){27===a.keyCode&&jQuery("#masthead").has(".search-form")&&e()}),jQuery(document).on("click",function(a){var b=jQuery(".search-form, .header-search-icon, .search-form input");b.is(a.target)||e()})}),jQuery(window).bind("scroll",function(){b()});var f=0;if("type_2"===radiateScriptParam.header_type_key&&(f=20),"1"===radiateScriptParam.responsiveness&&a(),"1"===radiateScriptParam.slider_on_off_check){var g=jQuery(".single-slide").height();if(jQuery(window).width()<=768){var h=jQuery(".header-wrap").height()+f+"px",i=jQuery(".header-wrap").height()+f;jQuery("#parallax-bg").css({top:h}),jQuery("#masthead").css({height:parseInt(g,10)+parseInt(i,10)})}else jQuery("#masthead").css({height:parseInt(g,10)});jQuery(".slider-nav").css({top:parseInt(g/2,10)}),jQuery(window).resize(function(){var a=jQuery(".single-slide").height();if(jQuery(".slider-nav").css({top:parseInt(a/2,10)}),jQuery(window).width()<=768){var b=jQuery(".header-wrap").height()+f+"px",c=jQuery(".header-wrap").height()+f;jQuery("#parallax-bg").css({top:b}),jQuery("#masthead").css({height:parseInt(a,10)+parseInt(c,10)})}else jQuery("#masthead").css({height:parseInt(a,10)})})}if("type_2"===radiateScriptParam.header_type_key&&"1"!==radiateScriptParam.header_resize){var j=jQuery("#header-logo-image").height()+"px";jQuery(function(){jQuery(".header-wrap").data("size","big")}),jQuery(window).scroll(function(){jQuery(document).scrollTop()>200?"big"===jQuery(".header-wrap").data("size")&&(jQuery(".header-wrap").data("size","small"),jQuery(".header-wrap").stop().animate({paddingTop:"0px",paddingBottom:"0px"},100),jQuery("#site-navigation").stop().animate({marginTop:"0px"},100),jQuery("#header-logo-image").stop().animate({height:"48px",paddingTop:"4px"},100),"type_2"===radiateScriptParam.header_type_key&&"1"===radiateScriptParam.push_height_key&&jQuery("body").stop().animate({marginTop:"48px"},100),jQuery(".header-search-icon").stop().animate({paddingTop:"7px",paddingBottom:"7px"},100),jQuery(".site-description").stop().animate({opacity:"0",height:"0px"},100)):"small"===jQuery(".header-wrap").data("size")&&(jQuery(".header-wrap").data("size","big"),jQuery(".header-wrap").stop().animate({paddingTop:"10px",paddingBottom:"10px"},100),jQuery("#site-navigation").stop().animate({marginTop:"8px"},100),jQuery("#header-logo-image").stop().animate({height:j,paddingTop:"0px"},100),"type_2"===radiateScriptParam.header_type_key&&"1"===radiateScriptParam.push_height_key&&jQuery("body").stop().animate({marginTop:d},1200),jQuery(".header-search-icon").stop().animate({paddingTop:"14px",paddingBottom:"14px"},100),jQuery(".site-description").stop().animate({opacity:"1",height:"100%"},100))})}jQuery("#scroll-up").hide(),jQuery(function(){jQuery(window).scroll(function(){jQuery(this).scrollTop()>1e3?jQuery("#scroll-up").fadeIn():jQuery("#scroll-up").fadeOut()}),jQuery("a#scroll-up").click(function(){return jQuery("body,html").animate({scrollTop:0},800),!1})})}),jQuery(document).ready(function(){if("undefined"!=typeof jQuery.fn.cycle&&jQuery(".slide-wrap").cycle({activePagerClass:"active",autoHeight:"container",slides:"> div",pagerEventBubble:!0,pager:"",prev:".slide-prev",next:".slide-next",log:!1,swipe:!0}),"undefined"!=typeof jQuery.fn.theiaStickySidebar&&"undefined"!=typeof ResizeSensor){var a=jQuery(".header-wrap").outerHeight();null===a&&(a=0),jQuery("#primary, #secondary").theiaStickySidebar({additionalMarginTop:40+a})}}),jQuery(document).ready(function(){jQuery(".better-responsive-menu #site-navigation .menu-item-has-children").append('<span class="sub-toggle"> <span class="genericon genericon-expand"></span> </span>'),jQuery(".better-responsive-menu #site-navigation .sub-toggle").click(function(){jQuery(this).parent(".menu-item-has-children").children("ul.sub-menu").first().slideToggle("1000")})});