function validate(form) { if(form.dsgvo1.checked && form.dsgvo2.checked) { return true; } else { alert('Um fortzufahren, mußt du die Datenschutz-Hinweise (Einwilligung und Kenntnisnahme) bestätigen.'); return false; } } function setCookie(name, value, days, path) { var expires = ""; if(path == '' || path == undefined) path='/'; if(days) { var date = new Date(); date.setTime(date.getTime() + (days*24*60*60*1000)); expires = "; expires=" + date.toUTCString(); } document.cookie = name + "=" + (value || "") + expires + "; path=" + path; } function getCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for(var i = 0; i
Die Website verwendet Cookies.
Diese Webseite nutzt teilweise Cookies für Statistikzwecke. Wenn Sie der Verwendung von Cookies zustimmen, klicken Sie bitte auf den Button "Zustimmen". Sie können die Cookies-Einstellung jederzeit in Ihren Browsereinstellungen ändern.
Auf unserer Homepage erheben wir personenbezogene Daten. Alle relevanten Formationen dazu finden Sie in unserer Datenschutzerklärung.
Zustimmen
'); $('#cookie_hinweis').show(); } //else alert(getCookie('cookie_confirmed')); $('#cookie_zustimmen').click(function() { document.cookie = setCookie('cookie_confirmed', '1', 1000); $('#cookie_hinweis').hide(); }); } $(document).ready(function() { checkCookie(); /***Navi: var toggle = function(direction, display) { return function() { var self = this; var ul = $("ul", this); if( ul.css("display") == display && !self["block" + direction] ) { self["block" + direction] = true; ul["slide" + direction]("slow", function() { self["block" + direction] = false; }); } }; } ***/ /***Inline Popup***/ initPopup(); }); /* Inline Popup */ //---popup settings var imgGalleryOn=0; var img_galerie=Array(); var img_curr=0; var imgs = null; var rotate_gallery=1; var popupWidth=$('.statPano').width()+114; //700+27; var popupHeight=$('.statPano').height()+114; //455+27; function initPopup() { var i, list, nodeList, node; nodeList = $("*[data-image-popup = 'root']"); for (i = 0; i < nodeList.length; i++) { node = nodeList[i]; $("img", node).click(clickPopup); } $(".statPanoBorder a.close_inline_hr").click( function(eve) { eve.preventDefault(); closePopup(); } ); $(".statPanoBorder a.forward").click( function(eve) { eve.preventDefault(); slideGallery(1); } ); $(".statPanoBorder a.rewind").click( function(eve) { eve.preventDefault(); slideGallery(-1); } ); } function clickPopup(eve) { var ancestorNode; ancestorNode = $(this).closest("*[data-image-popup = 'root']"); eve.preventDefault(); openPopup(ancestorNode, this.src, null, null, "Bildergalerie"); } function openPopup(img_list, img_click, sizex, sizey, title) { imgs = img_list.find('*[data-image-popup = "list"] img'); if (imgs.length) { imgGalleryOn=1; //alert(imgs.length); var i=-1; while(++i0) { img_curr=(img_curr+dir > imgs.length-1 ? fw : img_curr+dir); } else if(dir<0) { img_curr=(img_curr+dir < 0 ? rew : img_curr+dir); } document.getElementById('inline_hr').src=img_galerie[img_curr]; positionGallery(); } function positionGallery() { if(imgGalleryOn) { var popupWidth=$('.statPano').width()+114; //700+27; var popupHeight=$('.statPano').height()+114; //455+27; // maske über ganzem window skalieren /*** var maskHeight = $(document).height(); var maskWidth = $(window).width(); $('#mask').css({'width':maskWidth,'height':maskHeight}); $('#mask').fadeIn(); //css("display","block"); ***/ // position korrigieren vpHeight=$(window).height(); vpWidth=$(window).width(); var scroll= GB_getPageScrollTop(); var scrollY=scroll[1]; //////>maskHeight-vpHeight?0:scroll[1]; //window.pageYOffset; var scrollX=scroll[0]; //////>maskWidth-vpWidth?0:scroll[0]; //window.pageXOffset; //alert(((vpWidth-popupWidth)>>1)+' '+scrollX); //+' /2= '+scrollX); var margTop=(vpHeight-popupHeight<0 && popupHeight-vpHeight>scrollY?10:vpHeight-popupHeight); margTop=(margTop>>1)+scrollY; var margLeft=(vpWidth-popupWidth<0 && popupWidth-vpWidth>scrollX?10:vpWidth-popupWidth); margLeft=(margLeft>>1)+scrollX; //$('.statPanoBorder').css({"top":margTop,"left":margLeft}); //$('.statPanoBorder').css({"top":margTop,"left":margLeft}); } } GB_getPageScrollTop = function() { var yScrolltop; var xScrollleft; if (self.pageYOffset || self.pageXOffset) { yScrolltop = self.pageYOffset; xScrollleft = self.pageXOffset; } else if(document.documentElement&& document.documentElement.scrollTop || document.documentElement.scrollLeft) { // Explorer 6 Strict yScrolltop = document.documentElement.scrollTop; xScrollleft = document.documentElement.scrollLeft; } else if (document.body) {// all other Explorers yScrolltop = document.body.scrollTop; xScrollleft = document.body.scrollLeft; } arrayPageScroll = new Array(xScrollleft,yScrolltop); return arrayPageScroll; } window.onresize=positionGallery; window.onscroll=positionGallery; //Slideshow, core.slideshow.xsl var slideshowAdvanceInterval = 100; var slideshowAdvanceStep = 0.03; $(window).load( function(eve) { window.setInterval(slideshowAdvance, slideshowAdvanceInterval); } ); function slideshowAdvance() { $("*[data-slideshow = 'root']").each( function() { if (this.childNodes.length > 1) { var opacity; opacity = (typeof this.opacityBackup === "number") ? this.opacityBackup : opacity = 2.0; if (opacity < 0) { opacity = 2.0; this.lastChild.style.opacity = 1.0; this.lastChild.style.position = "absolute"; //für IE8... this.insertBefore(this.lastChild, this.firstChild); } else { opacity -= slideshowAdvanceStep; } this.opacityBackup = opacity; this.lastChild.style.opacity = opacity; this.lastChild.style.position = "relative"; //für IE8... } } ); } //IE