'article aside footer header nav section time main address'.replace(/\w+/g,function(n){document.createElement(n)}) document.cookie='resolution='+Math.max(screen.width,screen.height)+("devicePixelRatio" in window ? ","+devicePixelRatio : ",1")+'; path=/'; var myNavi; var myNavi1; var naviY; var breadcrumb_abstand = 0; $(window).on('resize load',adjustIframes); $(window).on('resize load',navi_save_button); var isFixed = false; var isFixed1 = false; function navi_save_button() { var $w = $(window); var scrollTop = $w.scrollTop(); if($(".navi_kopf1").length > 0) var navitarget1 = $(".navi_kopf1"); else var navitarget1 = $("#navi_oben"); if (navitarget1.length > 0) { var Fixed1 = scrollTop > naviY; myNavi1 = navitarget1; if (Fixed1 && !isFixed1 && $(window).width() > 620) { myNavi1.css({ position: 'fixed', overflow: 'visible', top: 0, left: (myNavi1.position().left - 5), width: (myNavi1.width() + 5), 'padding-left': '5px', '-webkit-box-shadow': '0 10px 10px -10px rgba(0,0,0,0.20)', '-moz-box-shadow': '0 10px 10px -10px rgba(0,0,0,0.20)', 'box-shadow': '0 10px 10px -10px rgba(0,0,0,0.20)', 'background': 'rgba(255,255,255,0.9)' }); $("#platzhalter").attr("style","background: rgba(255,255,255,0.9) !important"); $("#platzhalter").attr("style","background-color: none !important"); if ($("#navi_intern").length > 0 && $(".navi_kopf1").length == 0) { myNavi1.css({ '-webkit-box-shadow': 'none', '-moz-box-shadow': 'none', 'box-shadow': 'none', 'border-bottom' : '1px solid #ccc' }); } breadcrumb_abstand += myNavi1.height(); $('.breadcrumb_abstand').css({ 'height' : breadcrumb_abstand, 'display' : 'block' }); $('navitarget1 > ul > li > a').css('margin-bottom', '5px'); $('navitarget1 > ul > li > ul > li:first-of-type > a').css('margin-top','5px'); isFixed1 = true; } else if (!Fixed1 && isFixed1 && $(window).width() > 620) { $('.breadcrumb_abstand').css("display","none"); breadcrumb_abstand = 0; myNavi1.css({ position: 'static', '-webkit-box-shadow': 'none', '-moz-box-shadow': 'none', overflow: 'hidden', 'padding-left': '0px', width: (myNavi1.width() - 5), 'box-shadow': 'none', 'border-bottom' : 'none' }); $('navitarget1 > ul > li > a').css('margin-bottom','5px'); $('navitarget1 > ul > li > a').css('margin-left','0px'); $('navitarget1 > ul > li > ul > li:first-of-type > a').css('margin-top','0px'); isFixed1 = false; } } if ($("#navi_intern").length > 0) { var Fixed = scrollTop > naviY; myNavi = $('#navi_intern'); if($(".navi_kopf1").length > 0) $("#navi_line1").css("border","none"); if (Fixed && !isFixed && $(window).width() > 620) { breadcrumb_abstand += myNavi.height(); $('.breadcrumb_abstand').css({ 'display' : 'block', 'height' : breadcrumb_abstand }); var abstand_oben_navi = -5; if ($("#navi_oben").length > 0) var abstand_oben_navi = ($("#navi_oben").height() + 1); else if($(".navi_kopf1").length > 0) var abstand_oben_navi = ($(".navi_kopf1").height() + 5); myNavi.css({ position: 'fixed', overflow: 'visible', top: abstand_oben_navi, left: (myNavi.position().left - 5), 'padding': '5px 0px 5px 5px', width: (myNavi.width() + 5), '-webkit-box-shadow': '0 10px 10px -10px rgba(0,0,0,0.20)', '-moz-box-shadow': '0 10px 10px -10px rgba(0,0,0,0.20)', 'box-shadow': '0 10px 10px -10px rgba(0,0,0,0.20)', 'background': 'rgba(255,255,255,0.8)' }); $('#navi_intern > ul > li > a').css('margin-bottom','0px'); $('#navi_intern > ul > li > ul > li:first-of-type > a').css('margin-top','5px'); isFixed = true; } else if (!Fixed && isFixed && $(window).width() > 620) { $('.breadcrumb_abstand').css("display","none"); breadcrumb_abstand = 0; myNavi.css({ position: 'static', '-webkit-box-shadow': 'none', '-moz-box-shadow': 'none', overflow: 'hidden', 'padding': '0px', width: (myNavi.width() - 5), 'box-shadow': 'none' }); $('#navi_intern > ul > li > a').css('margin-bottom','5px'); $('#navi_intern > ul > li > ul > li:first-of-type > a').css('margin-top','0px'); isFixed = false; } if ($("#saveBTN").length > 0){ var temper_width = $("#wrapper_saveBTN").width(); $('#saveBTN').css('width',temper_width + 'px'); scrollBottom = $(document).height() - $(window).height() - $(window).scrollTop(); position_wrapper_saveBTN = $(document).height() - $("#wrapper_saveBTN").position().top; if(scrollBottom < (position_wrapper_saveBTN - 36)) { var saveBtn = $('#saveBTN'); saveBtn.css({ position: 'static', '-webkit-box-shadow': 'none', '-moz-box-shadow': 'none', 'box-shadow': 'none' }); } else { var saveBtn = $('#saveBTN'); saveBtn.css({ position: 'fixed', left:$("#wrapper_saveBTN").position().left, bottom: 0, '-webkit-box-shadow': '0 0 10px 0 rgba(0,0,0,0.20)', '-moz-box-shadow': '0 0 10px 0 rgba(0,0,0,0.20)', 'box-shadow': '0 0 10px 0 rgba(0,0,0,0.20)' }); } } $w.resize(function() { if($('#lb4').length > 0) { myNavi.css({ left:$('#lb4').position().left, }); } if ($("#saveBTN").length > 0){ var saveBtn = $('#saveBTN'); saveBtn.css({ left:$("#wrapper_saveBTN").position().left, width: saveBtn.width() }); } }); } } window.onscroll = function() { if((window.pageYOffset || document.documentElement.scrollTop) > 300) $('#scrolltop').show('fast'); else $('#scrolltop').hide('fast'); navi_save_button(); }; function adjustIframes() { function firstpicbug () { var breitecss = $('#contentHolderUnit_0').width(); $('#contentHolderUnit_0 img').removeAttr( "style" ); $('#contentHolderUnit_0 img').css( "width", breitecss); $('#contentHolderUnit_0 img').css( "height", "auto"); var heightcss = $('#contentHolderUnit_0').height(); if($('#contentHolderUnit_0 img').height() > heightcss) { $('#contentHolderUnit_0 img').css( "height", heightcss); $('#contentHolderUnit_0 img').css( "width", "auto"); var breitecsspic = $('#contentHolderUnit_0 img').width(); $('#contentHolderUnit_0 img').css( "margin-left", ((breitecss - breitecsspic) / 2)); } else { var heightcsspic = $('#contentHolderUnit_0 img').height(); $('#contentHolderUnit_0 img').css( "margin-top", ((heightcss - heightcsspic) / 2)); } if($('.header_container').width() < 1024) window.setTimeout(firstpicbug, 500); } if($('.header_container').width() < 1024) firstpicbug(); if($('.header_container').width() >= 1280) { $('header[role="banner"],.header_container,#FlashID,#FlashID1,#FlashID2').height(150); } else if(($('.header_container').width() < 1024 && $('.header_container').width() <= 1280) || $('.header_container').height() < 150) { $('header[role="banner"],.header_container,#FlashID,#FlashID1,#FlashID2').height((0.146484375 * $('.header_container').width())); } $('.header_content img, .active').css("display","block"); if ($("#navi_oben").length > 0) { myNavi = $('#navi_oben'); naviY = myNavi.offset().top; } else if ($("#navi_intern").length > 0) { myNavi = $('#navi_intern'); naviY = myNavi.offset().top; } $('div#mainblock iframe,div#mainblock embed,div#mainblock object,div#mainblock img').each(function(){ $this = $(this), proportion = $this.data( 'proportion' ), w = $this.attr('width'), h = $this.attr('height'), actual_w = $this.width(); if(!w) { w = parseInt($this[0].style.width); h = parseInt($this[0].style.height); } if ( ! proportion ) { proportion = h / w; $this.data( 'proportion', proportion ); } if (actual_w != w && proportion) { $this.css( 'height', Math.round( actual_w * proportion ) + 'px' ); } }); var viewportWidth = $(window).width(); var menuesichtbar = $('#menue_content').css('display'); var contentsichtbar = $('#main').css('display'); var mk1 = $('#mk1').css('display'); var mk2 = $('#mk2').css('display'); if(viewportWidth > 620) { $('#mk1').css('display','none'); $('#menue_content').css('display','block'); $('main').css('display','block'); $('header').css('display','block'); $('#newsticker').css('display','block'); $('.wrapper_wdatenex3').css('display','block'); $('.wrapper_wdatenex4').css('display','block'); $('.wrapper_wdatenex5').css('display','block'); $('.wrapper_wdatenex6').css('display','block'); $('.wrapper_wdatenex7').css('display','block'); $(".expose_main2").appendTo("#ex_target1"); } else if(menuesichtbar != 'none' && viewportWidth <= 620 && mk1 != 'block') { $('#menue_content').css('display','none'); $('main').css('display','block'); $('header').css('display','block'); $('#newsticker').css('display','block'); $('[class^="wrapper_wdatenex"]').css('display','none'); $(".expose_main2").appendTo("#ex_target"); } if(viewportWidth > 867) { $('#mk2').css('display','none'); $('.wrapper_wdatenex1').css('display','table-cell'); $('.wrapper_wdatenex2').css('display','table-cell'); $('.wrapper_wdatenex3').css('display','block'); $('.wrapper_sort').css('display','none'); } else if(viewportWidth <= 867 && mk2 != 'block') { $('#mk2').css('display','block'); $('.wrapper_wdatenex1').css('display','none'); $('.wrapper_wdatenex2').css('display','none'); } gesamtbreite = 0; $('#navi_intern>ul>li').not('#navi_intern_abschluss').each(function() { gesamtbreite = (gesamtbreite + $(this).width()); }); if(gesamtbreite < ($('#navi_intern').width() - 25)) { $('#navi_intern_abschluss').css("width", ($('#navi_intern').width() - gesamtbreite - 2) + "px"); $('#navi_intern_abschluss').css("display","block"); } else { $('#navi_intern_abschluss').css("display","none"); } if(!$('#sort_func').length) {} else { var pos = $('#sort_func').position(); var height = $('#sort_func').height(); $('.wrapper_sort').css('left',pos.left); $('.wrapper_sort').css('top',((pos.top) + height + 1)); } } function mobi_menue() { if($('#menue_content').css('display') == "block") { $('#mk1').css('display','none'); $('#menue_content').css('display','none'); $('main').css('display','block'); $('header').css('display','block'); $('#newsticker').css('display','block'); $('#mobimenuesym').removeClass("genericon-close-alt").addClass("genericon-menu"); } else { $('#mk1').css('display','block'); $('#menue_content').slideDown('slow'); $('main').css('display','none'); $('header').css('display','none'); $('#newsticker').css('display','none'); $('#mobimenuesym').removeClass("genericon-menu").addClass("genericon-close-alt"); } $(window).scrollTop(0); } function getCookie(cname) { var name = cname + "="; var ca = document.cookie.split(';'); for(var i=0; i 0) { var ankerlink = $('#backlink1').attr('href'); ankerlink_temp = ankerlink.split("#"); ankerlink_neu = ankerlink_temp[0] + '#gal' + ankerlink_temp[1]; $('#backlink1,#backlink2').attr('href',ankerlink_neu); } } else { $('#galerieansicht,#link_listenansicht').hide(); $('#listenansicht,#link_galerieansicht').show(); $.session.set('ansicht', 'listenansicht'); } //Ein Pixel scrollen damit die Bilder geladen werden $("html, body").animate({scrollTop: ($(window).scrollTop() + 1)}); } window.onload = function() { $(".container_imp").css("display","block"); $(".container_imp input").prop('disabled', true); var wrapperall = ($('#wrapperall').height() + 19); if(wrapperall < $(window).height()) { var differenz = ($(window).height() - wrapperall); var mainh = $('#mainblock').height(); $('main[role="main"],#laufband').css("min-height",(mainh + differenz) + "px"); var src_laufband = $('#laufband').attr("src"); $('#laufband').attr("src",src_laufband); } else { var mainh = $('#mainblock').height(); $('#laufband').css("height",mainh + "px"); } var viewportWidth = $(window).width(); if(viewportWidth > 620) { $(".expose_main2").appendTo("#ex_target1"); } else if(viewportWidth <= 620) { $(".expose_main2").appendTo("#ex_target"); } } $(document).ready(function() { }); function fboxopen(url,breite23,hoehe23) { $(document).ready(function() { $('.fancybox').fancybox(); $.fancybox.open({ href : url, maxWidth: breite23, maxHeight: hoehe23, width: '100%', height: '90%', type : 'iframe', padding : 5, openEffect : 'elastic', openSpeed : 150, closeEffect : 'elastic', closeSpeed : 150, closeBtn : true, scrolling : 'auto', autoCenter: true, afterLoad: function() { $('.fancybox-wrap').draggable( { cursor: "move", start: function () { $(".fancybox-wrap").each(function (index, element) { var d = $('
'); $(element).append(d);}); }, stop: function () { $('.iframeCover').remove(); } } ); }, beforeLoad: function() { scrollpositionfancybox = $(window).scrollTop(); }, beforeShow: function() { $('html').css('overflowY','hidden'); }, afterClose: function() { $('html').css('overflowY','auto'); $('html,body').animate({scrollTop: scrollpositionfancybox},400, function() {}); }, helpers : { title : { type : 'inside' }, overlay : { opacity : 0.5, css : { 'background' : 'rgba(0, 0, 0, 0.25)' } } } }); }); } function formergebnis() { if($('#abschicken').val() == 1) { $("#anrede1").removeClass("kasten2"); $("#vorname1").removeClass("kasten2"); $("#name1").removeClass("kasten2"); $("#strasse1").removeClass("kasten2"); $("#plz1").removeClass("kasten2"); $("#ort1").removeClass("kasten2"); $("#telefon1").removeClass("kasten2"); $("#email2").removeClass("kasten2"); var anrede1 = $('#anrede1').val(); if(anrede1 == '0') $('#anrede1').addClass("kasten2"); var vorname1 = $('#vorname1').val(); var name1 = $('#name1').val(); if(name1.length == 0) $('#name1').addClass("kasten2"); var strasse1 = $('#strasse1').val(); var plz1 = $('#plz1').val(); var ort1 = $('#ort1').val(); var email2 = $('#email2').val(); var ergebis = document.getElementById('kontaktframe').contentWindow.document.getElementById('nachricht').value; var erfolg = document.getElementById('kontaktframe').contentWindow.document.getElementById('erfolg').value; if(erfolg == '1') document.getElementById('ausgabe_kform').innerHTML = ergebis; else document.getElementById('ausgabe_kform').innerHTML = '' + ergebis + ''; if(erfolg == '1') { $('#anrede1 option').removeAttr('selected').filter('[value=0]').attr('selected', true); $('#firma1').val(''); $('#vorname1').val(''); $('#name1').val(''); $('#strasse1').val(''); $('#plz1').val(''); $('#ort1').val(''); $('#telefon1').val(''); $('#email2').val(''); $('#p4').val(''); $('#agb_best').prop('checked', false); } $('#abschicken').val('0'); } } var opts = { lines: 10 // The number of lines to draw , length: 0 // The length of each line , width: 4 // The line thickness , radius: 10 // The radius of the inner circle , scale: 1.0 // Scales overall size of the spinner , corners: 0 // Corner roundness (0..1) , color: '#FFFFFF' // #rgb or #rrggbb or array of colors , opacity: 0 // Opacity of the lines , rotate: 0 // The rotation offset , direction: 1 // 1: clockwise, -1: counterclockwise , speed: 1.0 // Rounds per second , trail: 60 // Afterglow percentage , fps: 20 // Frames per second when using setTimeout() as a fallback for CSS , zIndex: 2e9 // The z-index (defaults to 2000000000) , className: 'spinner' // The CSS class to assign to the spinner , top: '0%' // Top position relative to parent , left: '0%' // Left position relative to parent , shadow: false // Whether to render a shadow , hwaccel: false // Whether to use hardware acceleration , position: 'absolute' // Element positioning }; !function(){if(!window.hasCookieConsent){window.hasCookieConsent=!0;var e="cookieconsent_options",t="update_cookieconsent_options",n="cookieconsent_dismissed",i="";if(!(document.cookie.indexOf(n)>-1)){"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});var o,s={isArray:function(e){var t=Object.prototype.toString.call(e);return"[object Array]"==t},isObject:function(e){return"[object Object]"==Object.prototype.toString.call(e)},each:function(e,t,n,i){if(s.isObject(e)&&!i)for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e);else for(var r=0,c=e.length;c>r;r++)t.call(n,e[r],r,e)},merge:function(e,t){e&&s.each(t,function(t,n){s.isObject(t)&&s.isObject(e[n])?s.merge(e[n],t):e[n]=t})},bind:function(e,t){return function(){return e.apply(t,arguments)}},queryObject:function(e,t){var n,i=0,o=e;for(t=t.split(".");(n=t[i++])&&o.hasOwnProperty(n)&&(o=o[n]);)if(i===t.length)return o;return null},setCookie:function(e,t,n,i,o){n=n||365;var s=new Date;s.setDate(s.getDate()+n);var r=[e+"="+t,"expires="+s.toUTCString(),"path="+o||"/"];i&&r.push("domain="+i),document.cookie=r.join(";")},addEventListener:function(e,t,n){e.addEventListener?e.addEventListener(t,n):e.attachEvent("on"+t,n)}},r=function(){var e="data-cc-event",t="data-cc-if",n=function(e,t,i){return s.isArray(t)?s.each(t,function(t){n(e,t,i)}):void(e.addEventListener?e.addEventListener(t,i):e.attachEvent("on"+t,i))},i=function(e,t){return e.replace(/\{\{(.*?)\}\}/g,function(e,n){for(var i,o=n.split("||");token=o.shift();){if(token=token.trim(),'"'===token[0])return token.slice(1,token.length-1);if(i=s.queryObject(t,token))return i}return""})},o=function(e){var t=document.createElement("div");return t.innerHTML=e,t.children[0]},r=function(e,t,n){var i=e.parentNode.querySelectorAll("["+t+"]");s.each(i,function(e){var i=e.getAttribute(t);n(e,i)},window,!0)},c=function(t,i){r(t,e,function(e,t){var o=t.split(":"),r=s.queryObject(i,o[1]);n(e,o[0],s.bind(r,i))})},a=function(e,n){r(e,t,function(e,t){var i=s.queryObject(n,t);i||e.parentNode.removeChild(e)})};return{build:function(e,t){s.isArray(e)&&(e=e.join("")),e=i(e,t);var n=o(e);return c(n,t),a(n,t),n}}}(),c={options:{message:"Damit dieses Internetportal ordnungsgemäß funktioniert, legen wir manchmal kleine Dateien – sogenannte Cookies – auf Ihrem Gerät ab. Das ist bei den meisten großen Websites üblich. ",dismiss:"Cookies akzeptieren",learnMore:"Mehr Informationen",link:"/de/impressum_0__8_sp8_1.html#Cookies",container:null,theme:"light-floating",domain:null,path:"/",expiryDays:365,markup:['
','
','{{options.dismiss}}','

{{options.message}} {{options.learnMore}}

','',"
","
"]},init:function(){var t=window[e];t&&this.setOptions(t),this.setContainer(),this.options.theme?this.loadTheme(this.render):this.render()},setOptionsOnTheFly:function(e){this.setOptions(e),this.render()},setOptions:function(e){s.merge(this.options,e)},setContainer:function(){this.container=this.options.container?document.querySelector(this.options.container):document.body,this.containerClasses="",navigator.appVersion.indexOf("MSIE 8")>-1&&(this.containerClasses+=" cc_ie8")},loadTheme:function(e){var t=this.options.theme;-1===t.indexOf(".css")&&(t=i+t+".css");var n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href=t;var o=!1;n.onload=s.bind(function(){!o&&e&&(e.call(this),o=!0)},this),document.getElementsByTagName("head")[0].appendChild(n)},render:function(){this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),delete this.element),this.element=r.build(this.options.markup,this),this.container.firstChild?this.container.insertBefore(this.element,this.container.firstChild):this.container.appendChild(this.element)},dismiss:function(e){e.preventDefault&&e.preventDefault(),e.returnValue=!1,this.setDismissedCookie(),this.container.removeChild(this.element)},setDismissedCookie:function(){s.setCookie(n,"yes",this.options.expiryDays,this.options.domain,this.options.path)}},a=!1;(o=function(){a||"complete"!=document.readyState||(c.init(),a=!0,window[t]=s.bind(c.setOptionsOnTheFly,c))})(),s.addEventListener(document,"readystatechange",o)}}}(); (function ($) { $.fn.iframeAutoHeight = function (spec) { // set default option values var options = $.extend({ heightOffset: 0, minHeight: 0, timeInterval: -1, defaultHeight: 0, // used when exception (e.g. cross-domain policy failed) callback: function (newHeight) {}, debug: false, diagnostics: false // used for development only }, spec); // logging function debug(message) { if (options.debug && options.debug === true && window.console) { console.log(message); } } // not used by production code function showDiagnostics(iframe, calledFrom) { debug("Diagnostics from '" + calledFrom + "'"); try { debug("" + $(iframe, window.top.document).contents().find('body')[0].scrollHeight + " for ...find('body')[0].scrollHeight"); debug("" + $(iframe.contentWindow.document).height() + " for ...contentWindow.document).height()"); debug("" + $(iframe.contentWindow.document.body).height() + " for ...contentWindow.document.body).height()"); } catch (ex) { // ie fails when called during for each, ok later on // probably not an issue if called in a document ready block debug("unable to check in this state"); } debug("End diagnostics -> results vary by browser and when diagnostics are requested"); } // show all option values debug(options); // ****************************************************** // iterate over the matched elements passed to the plugin ; return will make it chainable return this.each(function () { // for use by webkit only var loadCounter = 0; // resizeHeight function resizeHeight(iframe) { if (options.diagnostics) { showDiagnostics(iframe, "resizeHeight"); } try { // get the iframe body height and set inline style to that plus a little var $body = $(iframe, window.top.document).contents().find('body'); var newHeight = $body[0].scrollHeight + options.heightOffset; if ($.browser.safari) { newHeight = $body[0].offsetHeight + iframe.style.marginBottom + iframe.style.marginTop; } if (newHeight < options.minHeight) { debug("new height is less than minHeight"); newHeight = options.minHeight + options.heightOffset; } } catch (ex) { debug("catch exception"); debug("set iframe height to defaultHeight"); newHeight = options.defaultHeight; } if (newHeight != parseInt(iframe.style.height)) { debug("New Height: " + newHeight); iframe.style.height = newHeight + 'px'; options.callback.apply($(iframe), [{newFrameHeight: newHeight}]); } } // debug me debug(this); if (options.diagnostics) { showDiagnostics(this, "each iframe"); } if (options.timeInterval > 0) { var iframe = this; var delayedResize = function () { resizeHeight(iframe); }; debug("set time interval to " + options.timeInterval); setInterval(delayedResize, options.timeInterval); } else { // Check if browser is Opera or Safari (Webkit really, so includes Chrome) if ($.browser.safari || $.browser.opera) { debug("browser is webkit or opera"); // Start timer when loaded. $(this).load(function () { var delay = 0; var iframe = this; // Reset iframe height to 0 to force new frame size to fit window properly iframe.style.height = '0px'; var delayedResize = function () { resizeHeight(iframe); }; if (loadCounter === 0) { delay = 500; // delay the first one } debug("load delay: " + delay); setTimeout(delayedResize, delay); loadCounter++; }); // Safari and Opera need a kick-start. var source = $(this).attr('src'); $(this).attr('src', ''); $(this).attr('src', source); } else { // For other browsers. $(this).load(function () { resizeHeight(this); }); } // if browser } }); // $(this).each(function () { }; // $.fn.iframeAutoHeight = function (options) { }(jQuery)); // (function ($) {