// source --> https://freibad-erdmannsdorf.de/wp-content/cache/autoptimize/autoptimize_single_710e87ac56a60a82b978417bcc677b07.php?ver=8.8.4 
document.addEventListener('DOMContentLoaded',function(){if(phpVars.externalPermalinksEnabled){var links=document.getElementsByTagName('a');for(var i=0;i<links.length;i++){var url=links[i].getAttribute('href');var target=links[i].getAttribute('target');if(url!=null){if(url.indexOf('#new_tab')>=0){url=url.replace('#new_tab','');target='_blank';links[i].setAttribute('href',url);links[i].setAttribute('target',target);links[i].setAttribute('rel','noopener noreferrer nofollow');}}}}});
// source --> https://freibad-erdmannsdorf.de/wp-content/cache/autoptimize/autoptimize_single_2344c2369f3ae37fb5f28616b645dadc.php?ver=1.0 
window.eae={};window.renderIconHtml=function(view,elementor,sett,control_name,wClass='',index=''){var icon_class='';let imageHtml='';let lottie_data=[];let iconHtml='';if(sett[control_name+'_graphic_type']!='none'&&sett[control_name+'_graphic_type']!=''){icon_class+=' eae-gbl-icon eae-graphic-type-'+sett[control_name+'_graphic_type']+' elementor-animation-'+sett[control_name+'_hover_animation'];if(wClass!=''){icon_class+=' '+wClass;}
icon_class+=' eae-graphic-view-'+sett[control_name+'_view'];if(sett[control_name+'_view']!='default'){icon_class+=' eae-graphic-shape-'+sett[control_name+'_shape'];}
if(sett[control_name+'_graphic_type']=='lottie'){if((sett[control_name+'_lottie_animation_url']!='')||(sett[control_name+'_source_json']['url']!='')){icon_class+=' eae-lottie-animation eae-lottie';lottie_data={'loop':(sett[control_name+'_lottie_animation_loop']==='yes')?true:false,'reverse':(sett[control_name+'_lottie_animation_reverse']==='yes')?true:false,}
if(sett[control_name+'_source']=='media_file'&&(sett[control_name+'_source_json']['url']!='')){lottie_data.url=sett[control_name+'_source_json']['url'];}else{lottie_data.url=sett[control_name+'_lottie_animation_url'];}
view.addRenderAttribute('panel-icon-'+index,'data-lottie-settings',JSON.stringify(lottie_data));}}
view.addRenderAttribute('panel-icon-'+index,'class',icon_class);if(sett[control_name+'_graphic_type']=='lottie'){if(lottie_data.url!=undefined){iconHtml=`<span ${view.getRenderAttributeString( 'panel-icon-'+ index )}></span>`;}}else{if(sett[control_name+'_graphic_type']==='icon'){if(sett[control_name+'_graphic_icon']['value']!=''){var icon=elementor.helpers.renderIcon(view,sett[control_name+'_graphic_icon'],{'aria-hidden':true},'i','object');imageHtml=icon.value;iconHtml=`<span ${ view.getRenderAttributeString( 'panel-icon-'+ index ) }>
                                ${imageHtml}
                                </span>`;}}else{if(sett[control_name+'_graphic_image']['url']!=''){var image={id:sett[control_name+'_graphic_image']['id'],url:sett[control_name+'_graphic_image']['url'],size:sett[control_name+'_graphic_image_size'],dimension:sett[control_name+'_graphic_image_custom_dimension'],model:view.getEditModel()};var image_url=elementor.imagesManager.getImageUrl(image);imageHtml='<img src="'+image_url+'" />';iconHtml=`<span ${ view.getRenderAttributeString( 'panel-icon-'+ index ) }>
                                    ${imageHtml}
                                </span>`;}}}}
return iconHtml;}
window.eae.validateHTMLTag=function($tag,$collection=null,$fallback=null){if($collection==null){$collection=['h1','h2','h3','h4','h5','h6','p','span','div'];}
if($fallback==null){$fallback='h3';}
if($collection.includes($tag)){return $tag;}else{return $fallback;}};
// source --> https://freibad-erdmannsdorf.de/wp-content/cache/autoptimize/autoptimize_single_05f1a6298907ebc4002b88774eddb4f1.php?ver=2.2.0 
var $j=jQuery.noConflict();$j(document).ready(function(){"use strict";sheHeader();var sheResizeTimer;$j(window).on('resize',function(e){clearTimeout(sheResizeTimer);sheResizeTimer=setTimeout(function(){sheHeader(e);},150);});});function sheHeader(e){$j('.elementor-element.she-header-yes').each(function(sheIndex){var header=$j(this),container=header.find('.elementor-container').add(header.filter('.e-con')),header_elementor=header.closest('.elementor-edit-mode').length?header:$j(),header_logo=header.find('.elementor-widget-theme-site-logo img:not(.elementor-widget-n-menu img), .elementor-widget-image img:not(.elementor-widget-n-menu img)'),header_logo_div=header.find('.elementor-widget-theme-site-logo a, .elementor-widget-image a'),data_settings=header.data('settings');if(typeof data_settings!='undefined'){var responsive_settings=data_settings["transparent_on"];var width=$j(window).width(),header_height=header.height(),logo_width=header_logo.width(),logo_height=header_logo.height();}
if(typeof width!='undefined'&&width){if(width>=1025){var enabled="desktop";}else if(width>767&&width<1025){var enabled="tablet";}else if(width<=767){var enabled="mobile";}}
if($j.inArray(enabled,responsive_settings)!==-1){var scroll_distance=data_settings["scroll_distance"];var she_offset=data_settings["she_offset_top"];var she_padding=data_settings["she_padding"];var she_width=data_settings["she_width"];var transparent_header=data_settings["transparent_header_show"];var background=data_settings["background"];var bottom_border_color=data_settings["custom_bottom_border_color"],bottom_border_view=data_settings["bottom_border"],bottom_border_width=data_settings["custom_bottom_border_width"];var shrink_header=data_settings["shrink_header"],data_height=data_settings["custom_height_header"],data_height_tablet=data_settings["custom_height_header_tablet"],data_height_mobile=data_settings["custom_height_header_mobile"];var shrink_logo=data_settings["shrink_header_logo"],data_logo_height=data_settings["custom_height_header_logo"],data_logo_height_tablet=data_settings["custom_height_header_logo_tablet"],data_logo_height_mobile=data_settings["custom_height_header_logo_mobile"];var change_logo_color=data_settings["change_logo_color"];var blur_bg=data_settings["blur_bg"];var scroll_distance_hide_header=data_settings["scroll_distance_hide_header"];if(width>=1025){she_offset=data_settings["she_offset_top"];she_padding=data_settings["she_padding"];she_width=data_settings["she_width"];}else if(width>767&&width<1025){she_offset=data_settings["she_offset_top_tablet"];she_padding=data_settings["she_padding_tablet"];she_width=data_settings["she_width_tablet"];}else if(width<=767){she_offset=data_settings["she_offset_top_mobile"];she_padding=data_settings["she_padding_mobile"];she_width=data_settings["she_width_mobile"];}
if(header.hasClass("she-header")){if(e?.type==='resize'){header.css("width",she_width.size+she_width.unit);header.css("padding-top",she_padding.top+she_padding.unit);header.css("padding-bottom",she_padding.bottom+she_padding.unit);header.css("padding-left",she_padding.left+she_padding.unit);header.css("padding-right",she_padding.right+she_padding.unit);}}
if(transparent_header=="yes"){header.addClass('she-header-transparent-yes');}
if(typeof data_height!="undefined"&&data_height){if(width>=1025){var shrink_height=data_height["size"];}else if(width>767&&width<1025){var shrink_height=data_height_tablet["size"];if(shrink_height==""){shrink_height=data_height["size"];}}else if(width<=767){var shrink_height=data_height_mobile["size"];if(shrink_height==""){shrink_height=data_height["size"];}}}
if(typeof data_logo_height!="undefined"&&data_logo_height){if(width>=1025){var shrink_logo_height=data_logo_height["size"];}else if(width>767&&width<1025){var shrink_logo_height=data_logo_height_tablet["size"];}else if(width<=767){var shrink_logo_height=data_logo_height_mobile["size"];}
if(shrink_logo_height==""){shrink_logo_height=data_logo_height["size"];if(shrink_logo_height==""){shrink_logo_height=shrink_height;var percent=parseInt(shrink_logo_height)/parseInt(header_height),width_l=logo_width*percent,height_l=logo_height*percent;}else{var width_l=(logo_width*shrink_logo_height)/100,height_l=(logo_height*shrink_logo_height)/100;}}else{var width_l=(logo_width*shrink_logo_height)/100,height_l=(logo_height*shrink_logo_height)/100;}}
if(typeof bottom_border_width!='undefined'&&bottom_border_width){var bottom_border=bottom_border_width["size"]+"px solid "+bottom_border_color;}
if(typeof scroll_distance_hide_header!="undefined"&&scroll_distance_hide_header){var mywindow=$j(window),mypos=mywindow.scrollTop();mywindow.off('scroll.sheHide'+sheIndex).on('scroll.sheHide'+sheIndex,function(){var sd_hh_s=scroll_distance_hide_header["size"],sd_hh_u=scroll_distance_hide_header["unit"],sd_hh_tablet=data_settings["scroll_distance_hide_header_tablet"],sd_hh_tablet_s=sd_hh_tablet["size"],sd_hh_tablet_u=sd_hh_tablet["unit"],sd_hh_mobile=data_settings["scroll_distance_hide_header_mobile"],sd_hh_mobile_s=sd_hh_mobile["size"],sd_hh_mobile_u=sd_hh_mobile["unit"];if(typeof scroll_distance_hide_header!="undefined"&&scroll_distance_hide_header){if(width>=1025){var sd_hh=sd_hh_s,sd_hh_u=sd_hh_u;if(sd_hh_u=="vh"){sd_hh=window.innerHeight*(sd_hh/100);}}else if(width>767&&width<1025){var sd_hh=sd_hh_tablet_s,sd_hh_u=sd_hh_tablet_u;if(sd_hh==""){sd_hh=sd_hh_s;}
if(sd_hh_u=="vh"){sd_hh=window.innerHeight*(sd_hh/100);}}else if(width<=767){var sd_hh=sd_hh_mobile_s,sd_hh_u=sd_hh_mobile_u;if(sd_hh==""){sd_hh=sd_hh_s;}
if(sd_hh_u=="vh"){sd_hh=window.innerHeight*(sd_hh/100);}}}
if(mypos>sd_hh){if(mywindow.scrollTop()>mypos){header.addClass("headerup");}else{header.removeClass("headerup");}}
mypos=mywindow.scrollTop();});}
var she_scroll_ticking=false;$j(window).off("load.sheScroll"+sheIndex+" scroll.sheScroll"+sheIndex).on("load.sheScroll"+sheIndex+" scroll.sheScroll"+sheIndex,function(e){if(she_scroll_ticking){return;}
she_scroll_ticking=true;requestAnimationFrame(function(){she_scroll_ticking=false;var scroll=$j(window).scrollTop();if(header_elementor.length){header_elementor.css("position","relative");}
var sd_s=scroll_distance["size"],sd_u=scroll_distance["unit"],sd_tablet=data_settings["scroll_distance_tablet"],sd_tablet_s=sd_tablet["size"],sd_tablet_u=sd_tablet["unit"],sd_mobile=data_settings["scroll_distance_mobile"],sd_mobile_s=sd_mobile["size"],sd_mobile_u=sd_mobile["unit"];if(typeof scroll_distance!="undefined"&&scroll_distance){if(width>=1025){var sd=sd_s,sd_u=sd_u;if(sd_u=="vh"){sd=window.innerHeight*(sd/100);}}else if(width>767&&width<1025){var sd=sd_tablet_s,sd_u=sd_tablet_u;if(sd==""){sd=sd_s;}
if(sd_u=="vh"){sd=window.innerHeight*(sd/100);}}else if(width<=767){var sd=sd_mobile_s,sd_u=sd_mobile_u;if(sd==""){sd=sd_s;}
if(sd_u=="vh"){sd=window.innerHeight*(sd/100);}}}
if(scroll>=sd){header.removeClass('header').addClass("she-header");header.css("background-color",background);header.css("border-bottom",bottom_border);if(!header.attr("data-she-multi-mode")){header.css("top",she_offset.size+she_offset.unit);if(width>=783&&document.body.classList.contains('admin-bar')){if(she_offset.unit==='px'){header.css("top",(32+she_offset.size)+"px");}else{header.css("top","calc(32px + "+she_offset.size+she_offset.unit+")");}}
header.css("padding-top",she_padding.top+she_padding.unit);header.css("padding-bottom",she_padding.bottom+she_padding.unit);header.css("padding-left",she_padding.left+she_padding.unit);header.css("padding-right",she_padding.right+she_padding.unit);header.css("width",she_width.size+she_width.unit);}
header.removeClass('she-header-transparent-yes');if(shrink_header=="yes"){header.css({"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0"});container.css({"min-height":shrink_height,"transition":"all 0.4s ease-in-out","-webkit-transition":"all 0.4s ease-in-out","-moz-transition":"all 0.4s ease-in-out"});}
if(change_logo_color=="yes"){header_logo.addClass("change-logo-color");}
if(shrink_logo=="yes"){header_logo.css({width:width_l,transition:"all 0.4s ease-in-out","-webkit-transition":"all 0.4s ease-in-out","-moz-transition":"all 0.4s ease-in-out",});}}else{header.removeClass("she-header").addClass('header');header.css("background-color","");header.css("border-bottom","");if(!header.attr("data-she-multi-mode")){header.css("top","");header.css("padding-top","");header.css("padding-bottom","");header.css("padding-left","");header.css("padding-right","");header.css("width","");}
if(transparent_header=="yes"){header.addClass('she-header-transparent-yes');}
if(shrink_header=="yes"){header.css({"padding-top":"","padding-bottom":"","margin-top":"","margin-bottom":""});container.css("min-height","");}
if(shrink_logo=="yes"){header_logo.css({height:"",width:""});}
if(change_logo_color=="yes"){header_logo.removeClass("change-logo-color");}}});});}});};