document.createElement("header");document.createElement("nav");document.createElement("section");document.createElement("footer");(function(b){var a=[];b.preLoadImages=function(){var e=arguments.length;for(var d=e;d--;){var c=document.createElement("img");c.src=arguments[d];a.push(c)}}})(jQuery);function horizontalZentrieren(d,e,c){var b=$(e).outerWidth();var a=$(d).outerWidth();abstand=(a-b)/2;$(e).css(c,abstand)}function vertikalZentrieren(b,e,a){var d=$(e).outerHeight();var c=$(b).outerHeight();mt=(c-d)/2;$(e).css(a,mt)}function MobileNavButtonZentrieren(){vertikalZentrieren("header","#buttonmenumobile","top")}function playVideo(d,p,g){var a=$(document).width()/1;var k=$(document).height()/1;var f=$(window).width();var c=$(window).height();if(p>f||g>c){v=p/g;if(p>f){p=f-100;g=p/v}if(g>c){g=c-60;p=g*v}}var e=f-p;var n=(e-(e%2))/2;var b=c-g;var l=(b-(b%2))/2;var o=$(window).scrollTop()/1;var q=$(window).scrollLeft()/1;$("#videoplayer-outer").css({width:a,height:k});var m=(q/1)+(n/1);$("#videoplayer").css({top:o+l,left:m,width:p,height:g});var i=m+parseInt(p);$("#videoclose").css({left:i+0,top:o+l-35});$("#videoplayer").html('<iframe width="'+p+'" height="'+g+'" src="//www.youtube.com/embed/'+d+'?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>');$("#videoplayer-outer").toggle();return true}function closeVideo(){$("#videoplayer-outer").hide();$("#videoplayer").html("");return true}function videoPlaybuttonZentrieren(a){if(!a>0){a=250}setTimeout(function(){$(".videobox .fa-play").each(function(b){pb=$(this);pbw=pb.outerWidth();pbh=pb.outerHeight();vbw=pb.parent().outerWidth();vbh=pb.parent().outerHeight();console.log("pbw="+pbw+" / pbh="+pbh);console.log("vbw="+vbw+" / vbh="+vbh);var d=(vbw-pbw)/2;var c=(vbh-pbh)/2;pb.css({left:d,top:c})})},a)}function SameHeight(c,b,a,d){if(a>0){}else{a=0}if(!d){d=false}$(c).each(function(g){var f=$(this).find(b);var e=0;f.css("height","auto");if(d===false){for(j=0;j<f.length;j++){var h=parseInt($(f[j]).outerHeight());if(h>e){e=h}else{}}$(f).css("height",e+a)}})}function LayoutAnpassen(){MobileNavButtonZentrieren();videoPlaybuttonZentrieren();setTimeout(function(){var a=$(window).width();if(a<1000&&$("#gesamt").hasClass("light")){$("#gesamt-inner").css("padding-top",$("header").outerHeight()+10)}else{$("#gesamt-inner").css("padding-top","")}},250)}$(window).load(function(){$(".hideonload").hide();$(".hide-if-js").hide();$(".show-if-js").show();$("html").removeClass("no-js");$("html").addClass("js");if("ontouchstart" in document.documentElement){$("#gesamt").addClass("touch")}});$(document).ready(function(){$("a.lightbox").fancybox({openEffect:"elastic",closeEffect:"elastic",helpers:{title:{type:"inside"}}});$(".flexslider").flexslider({animation:"fade",controlNav:true,directionNav:false,pauseOnAction:true,pauseOnHover:true,pausePlay:false,slideshow:true});$("#menu1 ul.sf-menu, .layout0 #menu2 .col-outer > ul.sf-menu").superfish({delay:1000,animation:{opacity:"show",height:"show"},speed:"fast",speedOut:"fast",cssArrows:false});$("#buttonmenumobile").attr("href","#menumobile");$("nav#menumobile").mmenu({offCanvas:{position:"right"},navbar:{title:"Menü"},navbars:[{content:["prev","title","close"],position:"top"}]});var a=$("#to-top");var b=$(window).scroll(function(){if(b.scrollTop()>120){if(!a.is(":visible")){a.stop(true,true).fadeIn()}}else{if(!a.is(":animated")){a.stop(true,true).fadeOut()}}});$('a[href^="#top"], a[ziel^="#top"]').click(function(){$("html, body").animate({scrollTop:0},"slow");return false});$(".grid.accordion .ce-body").hide();$(".grid.accordion .ce-head").addClass("c-pointer");$(".grid.accordion .ce-head").append('<i class="fa fa-caret-right" aria-hidden="true"></i>');$(".grid.accordion .ce-head").append('<i class="fa fa-caret-down" aria-hidden="true"></i>');$(".grid.accordion .ce-head").click(function(d){var c=$(this);if($(c).hasClass("isOpen")){$(c).removeClass("isOpen");$(c).siblings().hide()}else{$(".grid.accordion .ce-body").hide();$(".grid.accordion .ce-head").removeClass("isOpen");$(c).addClass("isOpen");$(c).siblings().show()}});if("ontouchstart" in document.documentElement){$(this).find(".ce-bild-hover").fadeIn("slow")}else{$(".tx-theme-hoverbild").hover(function(){$(this).find(".ce-bild-hover").fadeIn("slow")},function(){$(this).find(".ce-bild-hover").fadeOut("slow")})}$('a[href*="#c"]').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var c=$(this.hash);c=c.length&&c||$("[name="+this.hash.slice(1)+"]");if(c.length){var d=c.offset().top-100;$("html,body").animate({scrollTop:d},1000);return false}}});$(".fa.submit").click(function(){$(this).parents("form").submit()});setTimeout(function(){$("div.typo3-messages").slideToggle()},1000);setTimeout(function(){$("div.typo3-messages").slideToggle()},10000);LayoutAnpassen();$(window).resize(function(){LayoutAnpassen()})});function popupbox(q,g){var a=$(document).width()/1;var i=$(document).height()/1;var e=$(window).width();var c=$(window).height();var o=e*0.25;var f=c*0.25;if(e<1025){o=e*0.5}if(e<800){o=e*0.65}if(e<600){o=e*0.85}if(e<400){o=e*0.95}if(c<1025){f=c*0.5}if(c<800){f=c*0.65}if(c<600){f=c*0.85}if(c<400){f=c*0.95}if(g===2){o=e*0.65;f=c*0.65;if(o>915){o=915}if(e<1025){o=e*0.85}if(e<800){o=e*0.95}if(c<1025){f=c*0.85}if(c<800){f=c*0.95}}else{}var d=e-o;var m=(d-(d%2))/2;var b=c-f;var k=(b-(b%2))/2;var n=$(window).scrollTop()/1;var p=$(window).scrollLeft()/1;$("#popupbox-outer-ce-"+q).css({width:a,height:i});var l=(p/1)+(m/1);$("#popupbox-inner-ce-"+q).css({top:n+k,left:l,width:o,height:"auto"});$("#popupbox-outer-ce-"+q).show();return true}function closePopupbox(){$(".popupbox-outer").hide();return false}$(":text, textarea").focus(function(){$(this).addClass("focus")});$(":text, textarea").blur(function(){$(this).removeClass("focus")});