PageSourceSearch

https://emmental-versicherung.ch/wGlobal/wGlobal/layout/scripts/optimized/ui.js?260921160841

js emmental-versicherung.ch collected 2026-09-24 18:04:21 UTC 402,309 bytes, 178 lines download raw bytes

1wUiVersion='1.1.167';wAllowMinimize=true;if(typeof wUiTmp=='undefined'){wUiTmp={};if(typeof wUiTmp['wGlobalProjectPath']=='undefined'){var scriptTags=document.getElementsByTagName('script');try{for(i=0; i < scriptTags.length; i++){if(scriptTags[i].getAttribute('src')&&scriptTags[i].getAttribute('src').indexOf('/optimized/')!=-1){wUiTmp['wGlobalProjectPath']=scriptTags[i].getAttribute('src').replace(/^(\/[^\/]*)[^\?]*/, '$1').replace(/\?[\s\S]*$/, '');}}}catch(e){}}}wUiTmp['lastScrollTop']=0;wUiTmp['lang']=typeof wUiTmp['lang']=='undefined'||wUiTmp['lang']==''?jQuery('html').attr('lang'):wUiTmp['lang']==''?wUiTmp['lang']:'de';devicePixelRatio=window.devicePixelRatio||1;hdLimitDpr=2;wOffsetScrolledTopDefault=0;wCssClassesToAddGlobal=typeof(wCssClassesToAddGlobal)!='undefined'?wCssClassesToAddGlobal:{};wCssDataToAddGlobal=typeof(wCssDataToAddGlobal)!='undefined'?wCssDataToAddGlobal:{};wCssEventsToAddGlobal=typeof(wCssEventsToAddGlobal)!='undefined'?wCssEventsToAddGlobal:{};wCssJQuery=typeof(wCssJQuery)!='undefined'?wCssJQuery:{};wCssDOM=typeof(wCssDOM)!='undefined'?wCssDOM:{};wMediaqueriesToAddGlobal=typeof(wMediaqueriesToAddGlobal)!='undefined'?wMediaqueriesToAddGlobal:{};wLightboxOpener=null;if(document.documentElement){document.documentElement.className=document.documentElement.className + (!/MSIE (6|7|8)/.test(navigator.appVersion)?' pagestatus-uiloaded':'');}handleObserveVisible=function(entries, observer){var entry=null, i=0;for(i=0; i < entries.length; i++){entry=entries[i];var cE=jQuery(entry.target), timestamp=(new Date()).getTime();var show=false;if(typeof wObserverOptions!='undefined'){if(entry.isIntersecting){var ratioOfViewport=(entry.intersectionRect.height * entry.intersectionRect.width) / (window.innerWidth * window.innerHeight);if(entry.intersectionRatio > 0.1||ratioOfViewport > 0.1) show=true;}}else {var ratio=0.1;if(cE.height()/window.innerHeight > 2) ratio=0.01;if(entry.intersectionRatio > ratio) show=true;}if(show){if(cE.hasClass('wglAnimateIfVisible')){if(!cE.hasClass('isVisible')){cE.addClass('isVisibleOnce isVisible').removeClass('isInvisible');if(typeof(wOnAfterAnimateIfVisible)==='function'){wOnAfterAnimateIfVisible(cE);}}}if(cE.data('doifbecomevisible')&&!cE.data('isvisible')&&!cE.data('lastbecomevisible')||timestamp-cE.data('lastbecomevisible') > 1000){cE.data('lastbecomevisible', (new Date()).getTime());cE.data('isvisible', true);var event=document.createEvent('Event');var functionDoifbecomevisible=function(){eval(cE.data('doifbecomevisible'));};functionDoifbecomevisible.call(cE.get(0));}}else{if(cE.hasClass('wglAnimateIfVisible')){if(cE.hasClass('isVisible')){cE.addClass('isInvisible').removeClass('isVisible');if(typeof(wOnAfterAnimateIfInvisible)==='function'){wOnAfterAnimateIfInvisible(cE);}}}if(cE.data('doifbecomevisible')){cE.data('isvisible', false);}}}};handleObserveVisibleOnce=function(entries, observer){var entry=null, i=0;for(i=0; i < entries.length; i++){entry=entries[i];if(entry.intersectionRatio > 0){var cE=jQuery(entry.target);if(entry.target.nodeName=='IMG'){wShowLazyLoadImage(cE);}else if(entry.target.nodeName=='IFRAME'){wShowLazyLoadIframe(cE);}if(cE.data('doifbecomevisibleonce')&&!cE.data('isvisible')){cE.data('lastbecomevisible', (new Date()).getTime());cE.data('isvisible', true);var event=document.createEvent('Event');var functionDoifbecomevisible=function(){eval(cE.data('doifbecomevisibleonce'));};functionDoifbecomevisible.call(cE.get(0));cE.removeAttr('data-doifbecomevisibleonce');}if(cE.hasClass('wglAnimateIfVisibleOnce')){cE.addClass('wglAnimateIfVisibleOnceVisible').removeClass('wglAnimateIfVisibleOnce');}observeVisibleOnce.unobserve(entry.target);}}};var observeVisible=null;var observeVisibleOnce=null
2jQuery(document).ready(function(){wUiTmp['documentReady']=true;var htmlAdditionalClasses='';if(parent!=self){if(location.href.indexOf('viewmode=blank')!=-1){htmlAdditionalClasses +=' isInLightbox';if(typeof(wAccessibility)!=='undefined'&&wAccessibility['accessEventHandler']!=null&&wAccessibility['accessEventHandler'].active){var aEObject=Object.assign({}, wAccessEvents['wLightboxIframe'], {element:jQuery(window.document)
3});wAccessHandler.addEvent(aEObject);}else{if(parent.jQuery('#wLightboxIframe').data('openpointertype')===''){var elementToFocus=document.querySelector('h1, h2, h3, h4');if(!elementToFocus){elementToFocus=document.querySelector('div, p');}if(elementToFocus){elementToFocus.setAttribute('tabindex', '0');elementToFocus.focus();}}document.addEventListener('keydown', function(event) {if(event.key==='Escape'){event.preventDefault();
3if(parent.wLightboxOpener){parent.wLightboxOpener.focus();}parent.jQuery('.wLightboxCloser').trigger('click');}});}}}if(navigator.appVersion.match(/MSIE (\d+\..)/)){htmlAdditionalClasses +=' ie' + String(navigator.appVersion.match(/MSIE (\d+\..)/)[1]).replace(/\..*/, '');}else if(navigator.userAgent.match(/Trident\/7/)){htmlAdditionalClasses +=' ie11';}if(/mobile/i.test(navigator.userAgent)) htmlAdditionalClasses +=' mobile';if(/iPad/i.test(navigator.platform)||(navigator.platform=='MacIntel'&&navigator.maxTouchPoints==5)) htmlAdditionalClasses +=' ipad';if(/iPhone/i.test(navigator.platform)) htmlAdditionalClasses +=' iphone';if(/iPod/i.test(navigator.platform)) htmlAdditionalClasses +=' ipod';if(/(iPod|iPhone|iPad)/i.test(navigator.platform)||(navigator.platform=='MacIntel'&&navigator.maxTouchPoints==5)){htmlAdditionalClasses +=' ios';if(/Version\/(4|5|6|7|8|9|10|11|12|13)/.test(navigator.userAgent)&&!/iPhone\s+OS\s+(4|5|6|7|8|9|10|11|12|13)/.test(navigator.userAgent)){htmlAdditionalClasses +=' ioslt14';}if(/CriOs/i.test(navigator.userAgent)){htmlAdditionalClasses +=' crios';}else if(/Safari/i.test(navigator.userAgent)){wUiTmp['isSafari']=true;htmlAdditionalClasses +=' saios';}}if(/MacIntel/.test(navigator.platform)&&navigator.maxTouchPoints&&navigator.maxTouchPoints > 2){if(/CriOs/i.test(navigator.userAgent)){htmlAdditionalClasses +=' crios';}else if(/Safari/i.test(navigator.userAgent)){wUiTmp['isSafari']=true;htmlAdditionalClasses +=' saios';}}htmlAdditionalClasses +=' viewmode-' + (/viewmode=([^&]+)/.test(location.href)?RegExp.$1:'default');htmlAdditionalClasses +=location.href.indexOf('targetPreview=embed')!=-1?' wpreview':'';htmlAdditionalClasses +=location.href.indexOf('createImageRaster=1')!=-1?' createImageRaster':'';htmlAdditionalClasses +=(!navigator.userAgent.match(/Trident\/7/)&&(('ontouchstart' in window)||navigator.msMaxTouchPoints||window.DocumentTouch&&document instanceof DocumentTouch)?' touch':' no-touch');htmlAdditionalClasses +=(jQuery(window).scrollTop() <=wOffsetScrolledTopDefault&&jQuery(window).scrollTop() >=0)&&document.documentElement.className.indexOf(' scrolled-top')==-1?' scrolled-top':'';if(document.cookie.indexOf('websitezoom=l')!=-1){htmlAdditionalClasses +=' zoom-l';}if(document.cookie.indexOf('websitecontrast=1')!=-1){htmlAdditionalClasses +=' contrast-height';}if(document.documentElement){if(document.documentElement.getAttribute('lang')){htmlAdditionalClasses +=' lang-' + document.documentElement.getAttribute('lang');}var documentElementClassName=document.documentElement.className;if(jQuery(window).scrollTop() > wOffsetScrolledTopDefault){documentElementClassName=documentElementClassName.replace(' scrolled-top', '');}documentElementClassName=(documentElementClassName.replace('no-js', 'js') + htmlAdditionalClasses).replace(/^\s+/, '');if(typeof(wEditor)=='undefined'){documentElementClassName=documentElementClassName.replace(' weditor', ' no-weditor');}else{documentElementClassName=documentElementClassName.replace(' no-weditor', ' weditor');}documentElementClassName=documentElementClassName + (!/MSIE (6|7|8)/.test(navigator.appVersion)?' pagestatus-ready':'');if(/MSIE (6|7|8)/.test(navigator.appVersion)){documentElementClassName=documentElementClassName.replace(/pagestatus-\w+/g, '');}document.documentElement.className=documentElementClassName;}wPersonalizeAccessibility();for(var addClassSelector in wCssClassesToAddGlobal){jQuery(addClassSelector).each(function(index){var classesToAdd=wCssClassesToAddGlobal[addClassSelector];for(var i=0, arrayLength=classesToAdd.length; i < arrayLength; i++){var classData=classesToAdd[i].split('=');if(classData.length==2){var selector=classData[0].trim();if(selector=='.'){jQuery(this).addClass(classData[1].trim());}else if(selector=='parent'){jQuery(this).parent().addClass(classData[1].trim());}else{jQuery(this).find(selector).addClass(classData[1].trim());}}else{jQuery(this).addClass(classData[0].trim());}}});}for(var addDataSelector in wCssDataToAddGlobal){jQuery(addDataSelector).each(function(index){var dataToAdd=wCssDataToAddGlobal[addDataSelector];for(var i=0, arrayLength=dataToAdd.length; i < arrayLength; i++){var data=dataToAdd[i].split('=');if(data[0]!=null&&data[0]!='') jQuery(this).attr('data-' + data[0].trim(), (data[1]!=null&&typeof data[1]=='string'?data[1].trim():''));}});}if(typeof wCssAttributesToAddGlobal!=='undefined'){for(var addAttributeSelector in 
3wCssAttributesToAddGlobal){jQuery(addAttributeSelector).each(function(index){var attributeToAdd=wCssAttributesToAddGlobal[addAttributeSelector];for(var i=0, arrayLength=attributeToAdd.length; i < arrayLength; i++){var data=attributeToAdd[i].split('=');jQuery(this).attr(data[0].trim(), data[1].trim());}});}}jQuery('*[data-w-addclasses]').each(function(index){var classesToAdd=jQuery(this).data('w-addclasses').split(',');jQuery(this).removeAttr('data-w-addclasses');for(var i=0, arrayLength=classesToAdd.length; i < arrayLength; i++){var classData=classesToAdd[i].split('=');var selector=jQuery.trim(classData[0]);if(selector=='.'){jQuery(this).addClass(jQuery.trim(classData[1]));}else{jQuery(this).find(selector).addClass(jQuery.trim(classData[1]));}}});for(var addEventSelector in wCssEventsToAddGlobal){jQuery(addEventSelector).each(function(index){var eventsToAdd=wCssEventsToAddGlobal[addEventSelector];for(var i=0, arrayLength=eventsToAdd.length; i < arrayLength; i++){var eventData=eventsToAdd[i].split('=');if(eventData.length==2){var eventType=eventData[0].trim().replace(/^on/, '');var eventFunction=eventData[1].trim();jQuery(this).on(eventType, (new Function('event', eventFunction + '(this, event.originalEvent);')));}}});}for(var wCssJQueryEntry in wCssJQuery){jQuery(wCssJQueryEntry).each(function(index){if(!wCssJQuery[wCssJQueryEntry]['event']||wCssJQuery[wCssJQueryEntry]['event']=='document.ready'){eval(wCssJQuery[wCssJQueryEntry]['jQuery']);}});}for(var wCssDOMEntry in wCssDOM){jQuery(wCssDOMEntry).each(function(index){domActions={'prependto':'prependTo', 'appendto':'appendTo', 'insertbefore':'insertBefore', 'insertafter':'insertAfter'};if(/^(\w+)\(/.test(wCssDOM[wCssDOMEntry]['path'])){eval('jQuery(this).' + domActions[wCssDOM[wCssDOMEntry]['action'].toLowerCase()] + '(jQuery(this).' + wCssDOM[wCssDOMEntry]['path'].replace(/\*\/$/, '') + ');');}else{if(wCssDOM[wCssDOMEntry]['action']=='prependto'){jQuery(this).prependTo(wCssDOM[wCssDOMEntry]['path']);}else if(wCssDOM[wCssDOMEntry]['action']=='appendto'){jQuery(this).appendTo(wCssDOM[wCssDOMEntry]['path']);}else if(wCssDOM[wCssDOMEntry]['action']=='insertbefore'){jQuery(this).insertBefore(wCssDOM[wCssDOMEntry]['path']);}else if(wCssDOM[wCssDOMEntry]['action']=='insertafter'){jQuery(this).insertAfter(wCssDOM[wCssDOMEntry]['path']);}}});}if(typeof wHasInterpretedCssJs==='function'){wHasInterpretedCssJs();}if(typeof wEditor!='undefined'&&typeof wEditor.wHasInterpretedCssJs==='function'){wEditor.wHasInterpretedCssJs();}var mediaQueriesTmpToAdd='<div id="wMediaqueriesTmp">';for(var wMediaqueryToAddGlobal in wMediaqueriesToAddGlobal){mediaQueriesTmpToAdd +='<div id="wMediaqueryTmp_' + wMediaqueryToAddGlobal + '"></div>';}mediaQueriesTmpToAdd +='</div>';wCookieNoticeVar=typeof(wCookieNoticeVar)!='undefined'?wCookieNoticeVar:'';var useAccessEvent=(typeof(wAccessibility)!=='undefined'&&wAccessibility['accessEventHandler']!=null&&wAccessibility['accessEventHandler'].active===true)?true:false;var useAccessEvent=true;if(useAccessEvent) wAccessHandler.addEvent(wAccessEvents['cookieNotice']);if(typeof(wEditor)!='undefined'||typeof doNotShowCookieNotice!=='undefined'&&doNotShowCookieNotice||document.cookie.indexOf('hideCookieNotice' + wCookieNoticeVar + '=1')!=-1||/bot|search|slurp|spider|crawler|lighthouse|mediapartners|Google-AdWords-Express/i.test(navigator.userAgent)){if(typeof closeCookieNotice==='function'){closeCookieNotice();}else{jQuery('#cookieNotice').hide();}if(useAccessEvent) wAccessEvents['cookieNotice'].deactivate(wAccessEvents['cookieNotice']);}else{var cIfDnt=typeof confirmIfDnt!=='undefined'?confirmIfDnt:'';if(cIfDnt==='hideCookieInfo'&&typeof navigator.doNotTrack!=='undefined'&&navigator.doNotTrack==='1'){if(typeof closeCookieNotice==='function'){closeCookieNotice();}else{jQuery('#cookieNotice').hide();}if(useAccessEvent) wAccessEvents['cookieNotice'].deactivate(wAccessEvents['cookieNotice']);document.cookie='allowTracking=0;path=/;sameSite=lax';document.cookie='allowLoadExternRessources=0;path=/;sameSite=lax';document.cookie='hideCookieNotice=1;path=/;sameSite=lax';}else if(cIfDnt==='showOnlyDntInfo'&&typeof navigator.doNotTrack!=='undefined'&&navigator.doNotTrack==='1'){jQuery('#cookieNotice').hide();if(typeof showDntNotice==='function'){showDntNotice();}else{var timeDisplay=8000;setTimeout(function(){jQuery('#dntNotice').css({'display':'block'});}, 1800);setTimeout(function(){jQuery('#dntNotice').addClass('isVisible');setTimeout(function(){jQuery('#dntNotice').removeClass('isVisible');setTimeout(function(){jQuery('#dntNotice').css({'display':'none'});}, 1000);}, timeDisplay);}, 2000);document.cookie='allowTracking=0;path=/;sameSite=lax';document.cookie='allowLoadExternRessources=0;path=/;sameSite=lax';document.cookie='hideCookieNotice=1;path=/;sameSite=lax';}}else if(typeof showCookieNotice==='function'){if(useAccessEvent) wAccessEvents['cookieNotice'].activate(wAccessEvents['cookieNotice'], {'isWall':true});showCookieNotice();}else{if(jQuery('#cookieNotice').hasClass('blockPage')){if(useAccessEvent) wAccessEvents['cookieNotice'].activate(wAccessEvents['cookieNotice'], {'isWall':true});else{jQuery('body').on('keyup', function(e){if(e.keyCode==9&&!jQuery(e.target).is('#cookieNotice *')){jQuery('#cookieNotice').attr('tabindex', 0).focus();return false;}});}}}}if(typeof(wSelectionFontSizeAddToCookieNotice)!=='undefined'&&wSelectionFontSizeAddToCookieNotice|| typeof(wSelectionContrastAddToCookieNotice)!=='undefined'&&wSelectionContrastAddToCookieNotice){if(!jQuery('#waiSectionCookieNotice').length){jQuery('#cookieNoticeInner > div').prepend('<div id="waiSectionCookieNotice"></div>');}if(typeof(wSelectionFontSizeAddToCookieNotice)!=='undefined'&&wSelectionFontSizeAddToCookieNotice){jQuery('#waiSectionCookieNotice').append(jQuery('.wAiSectionFontSize').clone());}if(typeof(wSelectionContrastAddToCookieNotice)!=='undefined'&&wSelectionContrastAddToCookieNotice){jQuery('#waiSectionCookieNotice').append(jQuery('.wAiSectionContrast').clone());}}wOffsetScrolledTopSet=typeof(wOffsetScrolledTop)!='undefined'?wOffsetScrolledTop:(document.documentElement.getAttribute('data-offsetscrolledtop')&&document.documentElement.getAttribute('data-offsetscrolledtop')!=''?document.documentElement.getAttribute('data-offsetscrolledtop'):0);wOffsetBottomChangeScrollStatusSet=typeof(wOffsetBottomChangeScrollStatus)!='undefined'?wOffsetBottomChangeScrollStatus:(document.documentElement.getAttribute('data-offsetscrolledtop')&&document.documentElement.getAttribute('data-offsetbottomchangescrollstatus')!=''?document.documentElement.getAttribute('data-offsetbottomchangescrollstatus'):0);if(wOffsetScrolledTopSet!=wOffsetScrolledTopDefault){wOffsetScrolledTopDefault=wOffsetScrolledTopSet;if(jQuery(window).scrollTop() > wOffsetScrolledTopDefault){documentElementClassName=documentElementClassName.replace(' scrolled-top', '');}else if(document.documentElement.className.indexOf(' scrolled-top')==-1){document.documentElement.className +=' scrolled-top';}}if(typeof(wHandleObserveVisible)!='undefined'&&wHandleObserveVisible===true){var options={threshold:0};if(typeof wObserverOptions!='undefined'){options=wObserverOptions;}observeVisible=('IntersectionObserver' in window)?new IntersectionObserver(handleObserveVisible, options):null;observeVisibleOnce=('IntersectionObserver' in window)?new IntersectionObserver(handleObserveVisibleOnce, options):null;}jQuery('body').append(mediaQueriesTmpToAdd);jQuery('.wglTabcontainer').wTabcontainer();jQuery('.wglAccordion').wAccordion();jQuery('.wglBannerSlider').wBannerSlider();jQuery('.wglSmartSlider').wSmartSlider();jQuery('.wglPictureGallery').wPictureGallery();jQuery('.wglLightbox').wLightbox();jQuery('.wglMaximizer').wMaximizer();jQuery('.wglDatepicker').wDatepicker();jQuery('.wglSearchSuggest').wSearchSuggest();jQuery('textarea[data-autoheight="1"]').wAutoheight();jQuery('input[type="range"]').wInputRange();jQuery('[data-accessevent]').wAccessEventHandler();if(observeVisible){jQuery('img.wglLazyLoadInit').each(function(index){observeVisible.observe(jQuery(this).get(0));});jQuery('iframe.wglLazyLoadInit').each(function(index){observeVisible.observe(jQuery(this).get(0));});}if(observeVisibleOnce){jQuery('img.wglLazyLoadInit').each(function(index){observeVisibleOnce.observe(jQuery(this).get(0));});jQuery('iframe.wglLazyLoadInit').each(function(index){observeVisibleOnce.observe(jQuery(this).get(0));});}var labels=jQuery('#blockBody').length > 0?jQuery('#blockBody label, #blockFooter label'):jQuery('label');labels.each(function(index){var nameFor=jQuery(this).attr('for');if(nameFor&&nameFor!=''){var currentForm=jQuery(this).closest('form').get(0);if(currentForm){var elementFor=currentForm.elements[nameFor];if(elementFor&&elementFor.length){elementFor=elementFor[0];}if(!elementFor){elementFor=jQuery(this).closest('form').find('#' + nameFor).get(0);}if(elementFor&&typeof(elementFor.getAttribute('placeholder'))=='string'&&(elementFor.className.indexOf('wglIsInvalid')==-1||elementFor.value=='')){if(elementFor.getAttribute('data-showlabelifhasplaceholder')!=='1'&&typeof(elementFor.placeholder)!='undefined'){if(jQuery(this).is(':visible')&&!jQuery(this).hasClass('visuallyhidden')){jQuery(this).css({'display':'none'});}}}}}});wPrepareHTML();if(window.matchMedia){window.matchMedia('print').addListener(function(){wUiTmp['isMediaPrint']=true;jQuery(window).trigger('resize');});}else{window.onbeforeprint=function(event){wUiTmp['isMediaPrint']=true;jQuery(window).trigger('resize');};}if(/viewmode=print/.test(location.search)){wUiTmp['isViewmodePrint']=true;}window.setTimeout(function(event){wAdaptParallax(event);}, 320);wAdaptConditionalFormData();jQuery('.wglAddScrollProgress').each(function(index){var cE=jQuery(this);
3cE.append('<progress id="scrollProgress" max="1000" value="0"><div></div></progress');wUiTmp['elementScrollProgress']=jQuery('#scrollProgress');jQuery(window).on('resize scroll', function(){var documentHeight=jQuery(document).height();var scrollPercentage=Math.round(1000 * wUiTmp['lastScrollTop'] / (documentHeight-wUiTmp['lastWindowHeight']));wUiTmp['elementScrollProgress'].attr('value', scrollPercentage)
4});});jQuery('.wglAddScrollTop').each(function(index){var cE=jQuery(this);if(cE.get(0).nodeName.toLowerCase()=='body'){cE.append('<div id="scrollTopOuter"><div id="scrollTop" tabindex="0" role="button" title="' + (jQuery('body').data('titlescrolltop')?jQuery('body').data('titlescrolltop'):'') + '" aria-label="' + (jQuery('body').data('titlescrolltop')?jQuery('body').data('titlescrolltop'):'') + '"><div class="scrollTopInner"></div></div></div');}else{cE.after('<div id="scrollTopOuter"><div id="scrollTop" tabindex="0" role="button" title="' + (jQuery('body').data('titlescrolltop')?jQuery('body').data('titlescrolltop'):'') + '" aria-label="' + (jQuery('body').data('titlescrolltop')?jQuery('body').data('titlescrolltop'):'') + '"><div class="scrollTopInner"></div></div></div');}var stO=jQuery('#scrollTop');stO.on('click', function (event){event.preventDefault();jQuery('body, html').animate({scrollTop:0});});stO.on('keyup', function (event){if(event.keyCode==13){jQuery(this).trigger('click');}});jQuery(window).on('scroll', function(){var scrollTop=jQuery(this).scrollTop();wUiTmp['scrollMax']=typeof(wUiTmp['scrollMax'])!=='undefined'?Math.max(wUiTmp['scrollMax'], scrollTop):scrollTop;var fadeInAt=stO.attr('data-fadeInAt')!=undefined?parseInt(stO.attr('data-fadeInAt')):200;if(scrollTop > fadeInAt){stO.fadeIn();}else{stO.fadeOut();}});});jQuery('.wglShrinkToMinWidthWithoutBreak').each(function(index){var cE=jQuery(this);var textAlignBefore=cE.css('text-align');cE.css({'text-align':'left'});var lastElementInner=cE.children('*:last');var offsetRightLastElementInner=Math.ceil(lastElementInner.get(0).offsetLeft + lastElementInner.outerWidth() + parseInt(lastElementInner.css('margin-right')));cE.css({'text-align':textAlignBefore, 'width':String(offsetRightLastElementInner) + 'px'});});jQuery('.wglAdjustWidthEqual').each(function(index){var cE=jQuery(this);var nE=0;cE.children('*').each(function(index){if(jQuery(this).css('display')!='none'){nE++;}});var widthPerEntry=String(100 / nE) + '%';cE.children('*').each(function(index){if(jQuery(this).css('display')!='none'){jQuery(this).css({'width':widthPerEntry});}});});jQuery('.wglRemoveOnClick').each(function(index){jQuery(this).attr('onclick', '').off('click');});jQuery('.wglCaptcha').each(function(index){if(jQuery(this).find('iframe[data-h="1"]').length==1){jQuery(this).closest('.formElementCaptcha').hide();jQuery(this).closest('form').find('button[type="submit"]').on('click', function(event){var iFr=jQuery(this).closest('form').find('iframe[class="wglIFrameSc"]');jQuery(this).closest('form').find('input[id="captchaInput"]').val(iFr.get(0).contentWindow.gv(event.originalEvent, iFr.data('k')).substr(5, 4));});}});if(typeof(wEditor)=='undefined'){jQuery('.wglAnimateAfterTime').each(function(index){var cE=jQuery(this);var ti=typeof(cE.data('animateaftertime'))!='undefined'?cE.data('animateaftertime') * 1000:0;window.setTimeout(function(){cE.addClass('isAfterTime' + (typeof(cE.data('classtoaddaftertime'))!='undefined'?' ' + cE.data('classtoaddaftertime'):''));cE.removeClass(typeof(cE.data('classtoremoveaftertime'))!='undefined'?' ' + cE.data('classtoremoveaftertime'):'');}, ti);});}if(typeof(wEditor)=='undefined'){jQuery('.wglLightbox').each(function(index){var cE=jQuery(this);if(cE.get(0).nodeName=='IMG'){var wrapElement=cE.parent().attr('class')=='listEntryThumbnailOuter'?cE.parent():cE;var srcLightbox=cE.attr('src');if(cE.attr('data-src')&&cE.attr('data-src')!=''){srcLightbox=cE.attr('data-src');}else{if(/\-/.test(srcLightbox.replace(/[\s\S]+\//, ''))){srcLightbox=srcLightbox.replace(/\/weblication\/wThumbnails/, '').replace(/-[^-]+(\.\w+)$/, '$1');}else if(cE.attr('data-src2x')&&cE.attr('data-src2x')!=''){srcLightbox=cE.attr('data-src2x');}}var closestList=cE.closest('.elementList');var relId='';if(closestList.length==1){relId=closestList.attr('id');}wrapElement.wrap('<a rel="' + relId + '" onclick="event&&event.stopPropagation?event.stopPropagation():event.cancelBubble=true;" title="' + cE.get(0).alt + '" class="boxPictureOnly" href="' + srcLightbox + '"/>');}});}jQuery('form').not('[data-inlinevalidation="onblur"]').find('input[data-validators="email"]').each(function(){jQuery(this).on('blur', function(){jQuery(this).val(jQuery(this).val().trim());});});wAddInlineValidator=function(input){currentForm=input.closest('form');
4currentForm.attr('data-hasinputstovalidate', '1');if(location.search.indexOf('wFormStatus=failed')!=-1&&currentForm.attr('data-showinlinevalidationaferfailed')=='1'){wglValidateElementInline(input.get(0), {'clientside':currentForm.attr('action').indexOf('/weblication/grid5/tmpHTTP/wForm-')==-1});}else if(location.search.indexOf('wFormStatus=failed')!=-1&&input.find('#wFormErrorMessages').length > 0){wglValidateElementInline(input.get(0), {'onInit':true, 'clientside':currentForm.attr('action').indexOf('/weblication/grid5/tmpHTTP/wForm-')==-1});}else{var vlr=wGetValidationInfoInput(input);currentForm.attr('data-hasvalidated', '1');if(!vlr['isValid']){input.attr('data-isinvalid', '1');currentForm.attr('data-hasinputsinvalid', '1');}}var eventsToValidate='blur';if(input.attr('type')=='radio'|| input.attr('type')=='checkbox'){eventsToValidate='blur click';}else if(input.attr('type')=='file'||input.prop("tagName")=='SELECT'||input.hasClass('hasDatepicker')){eventsToValidate='blur change';}input.on(eventsToValidate, function(){if(input.attr('readOnly')==='readonly'){window.setTimeout(function(){wglValidateElementInline(input.get(0), {'clientside':currentForm.attr('action').indexOf('/weblication/grid5/tmpHTTP/wForm-')==-1});}, 320);}else{wglValidateElementInline(input.get(0), {'clientside':currentForm.attr('action').indexOf('/weblication/grid5/tmpHTTP/wForm-')==-1});}});input.on('keyup', function(event){if(event.originalEvent&&(event.originalEvent.keyCode==9||event.originalEvent.keyCode==16)){}else{wglValidateElementInline(jQuery(this).get(0), {'userinfo':false, 'clientside':currentForm.attr('action').indexOf('/weblication/grid5/tmpHTTP/wForm-')==-1});}});};wInitInlineValidation=function() {jQuery('form[data-inlinevalidation="onblur"]').each(function () {wUiTmp['formPos']=wUiTmp['formPos']?wUiTmp['formPos'] + 1:1;var currentForm=jQuery(this);currentForm.attr('data-formpos', wUiTmp['formPos']);currentForm.attr('data-hasinputstovalidate', '0');currentForm.find('input, textarea, select').each(function () {if (jQuery(this).attr('data-validators')&&jQuery(this).attr('data-validators')!=='') {wAddInlineValidator(jQuery(this));}else if (typeof wAddEmptyInputValidators!=='undefined'&&wAddEmptyInputValidators) {wAddInlineValidator(jQuery(this));}});});};wInitInlineValidation();var wglTimeInputValidateTime=wDebounce(function(input){var min=input.min;var max=input.max;var value=input.value;if(!value){return;}if(min&&value < min){input.value=min;}else if(max&&value > max){input.value=max;}}, 500);jQuery(document).on('input change', '.wglTime', function(){wglTimeInputValidateTime(this);});jQuery('.wglTimeLeft:not([data-init="1"]').each(function(index){var cO=jQuery(this);var cE=cO.get(0);if(typeof(wEditor)!='undefined'){cO.attr('data-init', '1');return false;}cO.attr('data-init', '1');var htmlTemplate=cE.innerHTML;if(cE.hasAttribute('data-text-template')&&(htmlTemplate==''&&cE.getAttribute('data-text-template')!=''||cE.getAttribute('data-text-template')!='')){htmlTemplate=cE.getAttribute('data-text-template');if(cO.children().hasClass('wglCountUp')||cE.innerHTML==''){htmlTemplate=jQuery(cE.getAttribute('data-text-template')).addClass('wglCountUp').get(0).outerHTML;}}intervalToSetTime=10000;var intervalFunction=function(){var now=new Date();var nowYear=now.getUTCFullYear();var dateTimeStr=cE.getAttribute('data-time').trim();if(dateTimeStr){dateTimeStr=dateTimeStr.replace('Y', now.getUTCFullYear());dateTimeStr=dateTimeStr.replace('m', now.getMonth() + 1);}var lang=(document.documentElement.getAttribute('lang')?document.documentElement.getAttribute('lang'):'de').replace(/-\w+/, '');var numberDigitsSeconds=cE.getAttribute('data-number-digits-seconds')?cE.getAttribute('data-number-digits-seconds'):1;var textDay=cE.getAttribute('data-text-day-' + lang)?cE.getAttribute('data-text-day-' + lang):(cE.getAttribute('data-text-day')?cE.getAttribute('data-text-day'):'Tag');var textDay=cE.getAttribute('data-text-day-' + lang)?cE.getAttribute('data-text-day-' + lang):(cE.getAttribute('data-text-day')?cE.getAttribute('data-text-day'):'Tag');var textDays=cE.getAttribute('data-text-days-' + lang)?cE.getAttribute('data-text-days-' + lang):(cE.getAttribute('data-text-days')?cE.getAttribute('data-text-days'):'Tage');var textHour=cE.getAttribute('data-text-hour-' + lang)?cE.getAttribute('data-text-hour-' + lang):(cE.getAttribute('data-text-hour')?cE.getAttribute('data-text-hour'):'Stunde');var textHours=cE.getAttribute('data-text-hours-' + lang)?cE.getAttribute('data-text-hours-' + lang):(cE.getAttribute('data-text-hours')?cE.getAttribute('data-text-hours'):'Stunden');var textMinute=cE.getAttribute('data-text-minute-' + lang)?cE.getAttribute('data-text-minute-' + lang):(cE.getAttribute('data-text-minute')?cE.getAttribute('data-text-minute'):'Minute');
4var textMinutes=cE.getAttribute('data-text-minutes-' + lang)?cE.getAttribute('data-text-minutes-' + lang):(cE.getAttribute('data-text-minutes')?cE.getAttribute('data-text-minutes'):'Minuten');var textSecond=cE.getAttribute('data-text-second-' + lang)?cE.getAttribute('data-text-second-' + lang):(cE.getAttribute('data-text-second')?cE.getAttribute('data-text-second'):'Sekunde');var textSeconds=cE.getAttribute('data-text-seconds-' + lang)?cE.getAttribute('data-text-seconds-' + lang):(cE.getAttribute('data-text-seconds')?cE.getAttribute('data-text-seconds'):'Sekunden');if(/^(\d+)-(\d+)-(\d+)$/.test(dateTimeStr)){dateTimeStr +=' 00:00:00';}if(/(\d+)-(\d+)-(\d+) (\d+)\:(\d+)\:(\d+)/.test(dateTimeStr)){var dateTime=new Date(RegExp.$1, RegExp.$2-1, RegExp.$3, RegExp.$4, RegExp.$5, RegExp.$6);var diffSeconds=parseInt(dateTime.getTime() / 1000)-parseInt(now.getTime() / 1000);if(diffSeconds > 0){var remainingDays=Math.floor(diffSeconds / 86400);var remainingHours=Math.floor((diffSeconds % 86400) / 3600);var remainingMinutes=Math.floor((diffSeconds % 3600) / 60);var remainingSeconds=Math.floor((diffSeconds % 60));if(numberDigitsSeconds==2&&remainingSeconds < 10){remainingSeconds='0' + String(remainingSeconds);}var html=htmlTemplate;html=html.replace('%days', remainingDays==1?'1 ' + textDay:remainingDays + ' ' + textDays);html=html.replace('%hours', remainingHours==1?'1 ' + textHour:remainingHours + ' ' + textHours);html=html.replace('%minutes', remainingMinutes==1?'1 ' + textMinute:remainingMinutes + ' ' + textMinutes);html=html.replace('%seconds', remainingSeconds==1||remainingSeconds=='01'?remainingSeconds + ' ' + textSecond:remainingSeconds + ' ' + textSeconds);cE.innerHTML=html;}else{cO.parent().addClass('hasReachedTime');}}};intervalFunction();if(htmlTemplate.indexOf('%seconds')!=-1){window.setInterval(intervalFunction, 1000);}else if(htmlTemplate.indexOf('%minutes')!=-1){window.setInterval(intervalFunction, 1000 * 60);}else{window.setInterval(intervalFunction, 1000 * 3600);}});if(/Android/i.test(navigator.userAgent)&&(typeof(wAddAccessDocumentOnPdfsIfAndroid)=='undefined'||wAddAccessDocumentOnPdfsIfAndroid)){jQuery('a').each(function(){var cE=jQuery(this);var hrefCurrent=cE.attr('href');if(/\.pdf$/.test(hrefCurrent)&&!/accessDocument\.php/.test(hrefCurrent)&&!/^https?\:\/\//.test(hrefCurrent)){if(cE.attr('data-pathPrepend')){hrefCurrent=cE.attr('data-pathPrepend') + hrefCurrent;}cE.attr('href', wUiTmp['wGlobalProjectPath'] + '/wGlobal/scripts/accessDocument.php?forceDownload=' + (cE.hasClass('download')?'1':'0') + '&document=' + encodeURIComponent(hrefCurrent));}});}jQuery(window).trigger('resize');if((typeof(wDoNotFireOnLoadBeforeReady)=='undefined'||wDoNotFireOnLoadBeforeReady)&&wUiTmp['windowLoadAfterReady']){wWindowOnLoad();}showNoticeExternalLinks();jQuery('.elementBox[role="link"]').each(function(){if(jQuery(this).find('a, *[role="link"]').length > 0) jQuery(this).removeAttr('role');});window.addEventListener('beforeunload', function(){if(window.speechSynthesis&&window.speechSynthesis.speaking){window.speechSynthesis.cancel();}});if(typeof waiReportActive!=='undefined'&&waiReportActive){window.setTimeout(function(){if(!/bot/i.test(navigator.userAgent)){let se=document.createElement('script');se.src='/weblication/grid5/gui/scripts/waiChecker.js' + (typeof(wCe)!=='undefined'?'?av=' + wCe:'');se.onload=function(){wWaiChecker.feedbackDataReport(location.pathname);};document.head.appendChild(se);}}, 1000);}if((typeof(wUserType)==='undefined'||wUserType==='')&&(typeof(wPrefetchURLs)==='undefined'||wPrefetchURLs!==false)){wRegisterPrefetch();window.addEventListener('popstate', function(){wNavigatePrefetch(window.location.href);});}});jQuery(window).on('load', function(){if(typeof(wDoNotFireOnLoadBeforeReady)=='undefined'||wDoNotFireOnLoadBeforeReady){if(wUiTmp['documentReady']&&!wUiTmp['windowLoad']){wWindowOnLoad();}else{wUiTmp['windowLoadAfterReady']=true;}}else{wWindowOnLoad();}});jQuery(window).on('scroll', function(){const scrollTop=jQuery(window).scrollTop();wUiTmp['scrollMax']=typeof(wUiTmp['scrollMax'])!=='undefined'?Math.max(wUiTmp['scrollMax'], scrollTop):scrollTop;if(jQuery('#blockBody').length!==0&&jQuery('#blockHeader').length!==0){const blockBodyBottom=jQuery('#blockHeader').height() + jQuery('#blockBody').height();const vc=blockBodyBottom > 0?(Math.round(100 * (scrollTop + jQuery(window).height()) / (blockBodyBottom))/ 100):0;wUiTmp['viewContentMax']=typeof(wUiTmp['viewContentMax'])!=='undefined'?Math.max(wUiTmp['viewContentMax'], vc):vc;}});wWindowOnLoad=function(){wUiTmp['windowLoad']=true;for(var wCssJQueryEntry in wCssJQuery){jQuery(wCssJQueryEntry).each(function(index){
4if(wCssJQuery[wCssJQueryEntry]['event']&&wCssJQuery[wCssJQueryEntry]['event']=='window.load'){eval(wCssJQuery[wCssJQueryEntry]['jQuery']);}});}jQuery("img[data-srchover]").each(function(){var cE=jQuery(this);var hoverTriggerElement=cE;var hoverTriggerPath=cE.data('hovertrigger');if(hoverTriggerPath){eval('hoverTriggerElement=hoverTriggerElement.' + hoverTriggerPath);}hoverTriggerElement.on('mouseover', function (event){cE.data('srcbeforehover', cE.attr('src'));if(cE.data('ishd')=='1'){cE.attr('src', cE.data('srchover2x'));}else{cE.attr('src', cE.data('srchover'));}});hoverTriggerElement.on('mouseout', function (event){cE.attr('src', cE.data('srcbeforehover'));});});window.setTimeout(function(){if(location.hash!=''&&location.hash!='#'){wAdaptOnChangeHash({'event':'load'});}}, 120);if(document.documentElement){window.setTimeout(function(){document.documentElement.className=document.documentElement.className + ' pagestatus-loaded';}, 800);}jQuery('.wglImageMap').wImageMap();jQuery('.wglMagnifier').wMagnifier();jQuery('.wglImageCompare').wImageCompare();jQuery('.wglTicker').wTicker();jQuery('.wglOverflowXTouch').each(function(index){var cE=jQuery(this);var widthOuter=cE.width();var widthInner=cE.children('*').outerWidth();if(!cE.is(":visible")||widthInner <=widthOuter){return false;}else{var lastElementInner=cE.children('*').children('*:last');var offsetRightLastElementInner=lastElementInner.get(0).offsetLeft + lastElementInner.outerWidth() + parseInt(lastElementInner.css('margin-right'));cE.children('*').children('*').each(function(index){jQuery(this).css('width', jQuery(this).width());});lastElementInner.parent().css({'width':String(offsetRightLastElementInner) + 'px'});}jQuery(this).find('img').attr('unselectable', 'on');jQuery('body').on('touchstart mousedown', function(event){if(jQuery(event.target).closest(cE).length!=0){event.preventDefault();}});jQuery('body').on("touchmove mousemove", function(event){if(jQuery('body').data('wtouchelement')){var mouseXDiff=(event.originalEvent.touches?event.originalEvent.touches[0].pageX:event.pageX)-jQuery('body').data('wtouchmousex');var mouseYDiff=(event.originalEvent.touches?event.originalEvent.touches[0].pageY:event.pageY)-jQuery('body').data('wtouchmousey');jQuery('body').data('wtouchmousex', event.originalEvent.touches?event.originalEvent.touches[0].pageX:event.pageX);jQuery('body').data('wtouchmousey', event.originalEvent.touches?event.originalEvent.touches[0].pageY:event.pageY);jQuery('body').data('wtouchlastdiffx', mouseXDiff);jQuery('body').data('wtouchlastdiffy', mouseYDiff);var milliseconds=(new Date()).getTime();var timeDiff=milliseconds-jQuery('body').data('timestamplast');jQuery('body').data('timestampbefore', jQuery('body').data('timestamplast'));jQuery('body').data('timestamplast', milliseconds);var speedX=Math.round(100 * (mouseXDiff > 0?mouseXDiff:-mouseXDiff) / timeDiff) + 1;jQuery('body').data('wtouchspeedX', speedX);var touchDiffX=jQuery('body').data('wtouchmousex')-jQuery('body').data('wtouchstartmousex');jQuery('body').data('wtouchdiffx', touchDiffX);var widthOuter=parseInt(jQuery('body').data('wtouchelement').width());var left=parseInt(jQuery('body').data('wtouchelement').children('*').css('margin-left'));left=isNaN(left)?0:left;var right=parseInt(jQuery('body').data('wtouchelement').width())-parseInt(jQuery('body').data('wtouchelement').children('*').css('margin-left'))-jQuery('body').data('wtouchelement').children('*').width();right=isNaN(right)?0:right;if(left > 32){jQuery('body').data('wtouchelement').children('*').animate({'margin-left':0});jQuery('body').removeData('wtouchelement');return false;}else if(right > 32){jQuery('body').data('wtouchelement').children('*').animate({'margin-left':String(parseInt(jQuery('body').data('wtouchelement').width())-parseInt(jQuery('body').data('wtouchelement').children('*').width())) + 'px'});jQuery('body').removeData('wtouchelement');return false;}if(jQuery('body').data('wtouchelement').data('wtouchstartmarginleft') + touchDiffX < 0){jQuery('body').data('wtouchelement').children('*').css({'margin-left':String(jQuery('body').data('wtouchelement').data('wtouchstartmarginleft') + touchDiffX) + 'px'});}else{jQuery('body').data('wtouchelement').children('*').css({'margin-left':String(j
4Query('body').data('wtouchelement').data('wtouchstartmarginleft') + touchDiffX) + 'px'});}}});jQuery(this).on('touchstart mousedown', function(event){jQuery(this).children('*').stop();jQuery('body').data('wtouchelement', jQuery(this));jQuery(this).data('wtouchstartmarginleft', parseInt(jQuery(this).children('*').css('margin-left')));jQuery(this).data('wtouchstartmargintop', parseInt(jQuery(this).children('*').css('margin-top')));jQuery('body').data('wtouchstartmousex', event.originalEvent.touches?event.originalEvent.touches[0].pageX:event.pageX);jQuery('body').data('wtouchstartmousey', event.originalEvent.touches?event.originalEvent.touches[0].pageY:event.pageY);});jQuery('body').on("touchend mouseup", function(event){if(jQuery('body').data('wtouchelement')){var milliseconds=(new Date()).getTime();var timeDiff=milliseconds-jQuery('body').data('timestamplast');var touchDiffX=jQuery('body').data('wtouchdiffx');var lastDiffX=jQuery('body').data('wtouchlastdiffx');var lastDiffXn=lastDiffX >=0?lastDiffX:-lastDiffX;if(lastDiffXn > 1){var speedX=(Math.round((lastDiffXn > 0?lastDiffXn:-lastDiffXn) / timeDiff) + 1) * 5;if(speedX > 200){speedX=200;}var movingWidth=Math.round(touchDiffX * 2 * (1 + speedX / 100));if(jQuery('body').data('wtouchdiffx') < 0){var right=parseInt(jQuery('body').data('wtouchelement').width())-parseInt(jQuery('body').data('wtouchelement').children('*').css('margin-left'))-jQuery('body').data('wtouchelement').children('*').width();if(movingWidth < right){movingWidth=right;}var duration=(movingWidth > 0?movingWidth:-movingWidth) * 1.5 + Math.round(100 / speedX);jQuery('body').data('wtouchelement').children('*').animate({'margin-left':'+=' + String(movingWidth)}, {'duration':duration, 'easing':'wEaseOut'});}else{var left=parseInt(jQuery('body').data('wtouchelement').children('*').css('margin-left'));if(-movingWidth < left){movingWidth=-left;}var duration=(movingWidth > 0?movingWidth:-movingWidth) * 1.5 + Math.round(100 / speedX);jQuery('body').data('wtouchelement').children('*').animate({'margin-left':'+=' + String(movingWidth)}, {'duration':duration, 'easing':'wEaseOut'});}}jQuery('body').removeData('wtouchelement');}});});jQuery('.wglOverflowXTouchScroll').each(function(index){if(typeof(wEditor)!='undefined'){return false;}var el=jQuery(this);jQuery('body').on('touchstart mousedown', function(event){if(jQuery(event.target).closest(el).length!=0){event.preventDefault();}});jQuery('body').on("touchmove mousemove", function(event){if(jQuery('body').data('wtouchelement')){var scrollLeftStart=jQuery('body').data('wtouchstartscrollleft');var mouseXDiff=(event.originalEvent.touches?event.originalEvent.touches[0].pageX:event.pageX)-jQuery('body').data('wtouchstartmousex');jQuery('body').data('wtouchelement').scrollLeft(scrollLeftStart-mouseXDiff);}});jQuery(this).on('touchstart mousedown', function(event){jQuery('body').data('wtouchelement', jQuery(this));jQuery('body').data('wtouchstartmousex', event.originalEvent.touches?event.originalEvent.touches[0].pageX:event.pageX);jQuery('body').data('wtouchstartscrollleft', jQuery(this).scrollLeft());});jQuery('body').on("touchend mouseup", function(event){jQuery('body').removeData('wtouchelement');});});if(typeof(wHighlightBlockRoot)=='undefined'){wHighlightBlockRoot='blockContentInner';}if(wHighlightBlockRoot!='none'&&/highlight=([^&]+)/.test(decodeURIComponent(location.search.replace('+', ' ')))){highlightTexts=RegExp.$1;window.setTimeout(function(){var highlightTextsArray=highlightTexts.split(/\s+/);var elementRoot=jQuery('#' + wHighlightBlockRoot);for(var j=0; j < highlightTextsArray.length; j++){var highlightText=highlightTextsArray[j];var regExpWord=new RegExp('^(?:[\\w\\W]*\\W+|)(' + highlightText.replace('+', '\\+').replace(/(\w) /, '$1\\w* +') + '\\w*)([\\w\\W]*|)$', 'gim');elementRoot.find('div, p, h1, h2, h3, h4, h5, h6, li').each(function(){var nodeCurrent=jQuery(this).get(0);if(nodeCurrent.tagName!='DIV'&&!/<\w+/.test(nodeCurrent.innerHTML)){nodeCurrent.innerHTML=nodeCurrent.innerHTML.replace(/[\n\r\s\t]+/g, ' ');}for(var j=0; j < 6; j++){var childNodes=nodeCurrent.childNodes;var childNodesLength=childNodes.length;for(var i=childNodesLength-1; i >=0; i--){if(childNodes[i].nodeType==3&&childNodes[i].nodeValue.trim()!=''){if(regExpWord.test(childNodes[i].nodeValue)){var splitedNode=childNodes[i].splitText(c
4hildNodes[i].nodeValue.length-RegExp.$1.length-RegExp.$2.length);splitedNode.nodeValue=splitedNode.nodeValue.substr(RegExp.$1.length);var highlightNode=document.createElement('span');highlightNode.className='wglHighlightWord';highlightNode.setAttribute('data-hightlightword', highlightTexts);highlightNode.appendChild(document.createTextNode(RegExp.$1));splitedNode.parentNode.insertBefore(highlightNode, splitedNode);var accHeaderE=jQuery(this).closest('.accordionContent').prev('.accordionHeader');if(accHeaderE.data('ishighlighted')!=true){accHeaderE.data({noaccchange:true, noaccactivate:true, ishighlighted:true}).trigger('click');}}}}}});elementRoot.find('span, strong, td, a').each(function(){var nodeCurrent=jQuery(this).get(0);if(nodeCurrent.className!='wglHighlightWord'){if(!/<\w+/.test(nodeCurrent.innerHTML)){nodeCurrent.innerHTML=nodeCurrent.innerHTML.replace(/[\n\r\s\t]+/g, ' ');}for(var j=0; j < 6; j++){var childNodes=nodeCurrent.childNodes;var childNodesLength=childNodes.length;for(var i=childNodesLength-1; i >=0; i--){if(childNodes[i].nodeType==3&&childNodes[i].nodeValue.trim()!=''){if(regExpWord.test(childNodes[i].nodeValue)){var splitedNode=childNodes[i].splitText(c
4hildNodes[i].nodeValue.length-RegExp.$1.length-RegExp.$2.length);splitedNode.nodeValue=splitedNode.nodeValue.substr(RegExp.$1.length);var highlightNode=document.createElement('span');highlightNode.className='wglHighlightWord';highlightNode.setAttribute('data-hightlightword', highlightTexts);highlightNode.appendChild(document.createTextNode(RegExp.$1));splitedNode.parentNode.insertBefore(highlightNode, splitedNode);var accHeaderE=jQuery(this).closest('.accordionContent').prev('.accordionHeader');if(accHeaderE.data('ishighlighted')!=true){accHeaderE.data({noaccchange:true, noaccactivate:true, ishighlighted:true}).trigger('click');}}}}}}});}}, 160);}jQuery(window).trigger('resize');window.setTimeout(function(){if(!observeVisible){wAnimateIfVisible();}wProcessWglAdjustHeightMax();wLazyLoading();}, 500);if(location.hash=='#scrollposleftlist'|| location.hash=='#scrollsmoothposleftlist'){var scrollToY=wGetScrollPosLeftList();if(scrollToY > 0){if(location.hash=='#scrollsmoothposleftlist'){jQuery('body, html').animate({scrollTop:scrollToY});}else{jQuery('html, body').scrollTop(scrollToY);}}}if(typeof(wUiTmp['callbackAfterLoad'])!='undefined'&&wUiTmp['callbackAfterLoad'].length&&wUiTmp['callbackAfterLoad'].length > 0){for(var i=0; i < wUiTmp['callbackAfterLoad'].length; i++){wUiTmp['callbackAfterLoad'][i]();}}if(typeof(wUiTmp['viewContentMax'])==='undefined'&&jQuery('#blockBody').length!==0&&jQuery('#blockHeader').length!==0){let blockBodyBottom=jQuery('#blockHeader').height() + jQuery('#blockBody').height();wUiTmp['viewContentMax']=blockBodyBottom > 0?(Math.round(100 * (jQuery(window).height()) / (jQuery('#blockHeader').height() + jQuery('#blockBody').height()))/ 100):0;}};jQuery(window).on('resize', function(){wUiTmp['lastWindowHeight']=jQuery(window).height();wUiTmp['lastDocumentHeight']=jQuery(document).height();wUiTmp['lastWindowWidth']=jQuery(window).width();var hasChangedMediaQuery=false;jQuery('#wMediaqueriesTmp > div').each(function(index){if(window.getComputedStyle){try{var computedStyle=window.getComputedStyle(jQuery(this).get(0));var fontFamily=computedStyle.fontFamily.replace(/"/g, '');var lastMediaQuery=jQuery(this).data('lastmediaquery')||'';if(fontFamily!=lastMediaQuery){if(fontFamily.indexOf('mediaquery_')==0){eval('if(typeof(' + fontFamily + '_onactivate)==\'function\'){' + fontFamily + '_onactivate();}');}else if(lastMediaQuery.indexOf('mediaquery_')==0){eval('if(typeof(' + lastMediaQuery + '_ondeactivate)==\'function\'){' + lastMediaQuery + '_ondeactivate();}');}jQuery(this).data('lastmediaquery', fontFamily);hasChangedMediaQuery=true;}}catch(e){};}});if(hasChangedMediaQuery){jQuery("img[data-srcmin]").each(function(){var currentImg=jQuery(this);var widthOrig=parseInt(typeof(currentImg.attr('widthorig'))!='undefined'?currentImg.attr('data-widthorig'):currentImg.attr('width'));var srcMin=currentImg.data('srcmin')?currentImg.data('srcmin'):'';var widthCurrent=parseInt(currentImg.width());var attrWidthCur=parseInt(typeof(currentImg.attr('width'))!='undefined'?currentImg.attr('width'):0);var widthMin=parseInt(srcMin.replace(/.*@min/, '').replace(/\..*/, ''));var widthOuter=parseInt(currentImg.parent().width());var diffWidthFrame=0;if(currentImg.parent().parent().parent().parent().hasClass('picture')){diffWidthFrame=currentImg.parent().parent().parent().parent().outerWidth()-widthCurrent;}else if(currentImg.parent().parent().hasClass('picture')){diffWidthFrame=currentImg.parent().parent().outerWidth()-widthCurrent;}if(widthCurrent > widthOrig&&widthOuter > widthOrig + diffWidthFrame + 1&&widthMin > widthOrig){currentImg.attr('src', srcMin);if(typeof(currentImg.attr('width'))!='undefined'&&currentImg.attr('width')!=''){currentImg.attr('data-widthorig', currentImg.attr('width')).removeAttr('width').attr('height', 'auto');}}});}jQuery('.wglExpandToHeighestChild').each(function(index){var cE=jQuery(this);var maxHeight=0;cE.children('*').each(function(index){if(jQuery(this).attr('data-adjusttoheighestchild')!='no'&&jQuery(this).outerHeight(true) > maxHeight){maxHeight=jQuery(this).outerHeight(true);}});if(maxHeight > 0){cE.css('height', String(maxHeight) + 'px');}});jQuery('.wglCheckWidthParent').each(function(index){var cE=jQuery(this);var widthSelf=cE.attr('data-width-init')||cE.outerWidth();var widthParent=cE.parent().width();if(cE.parent().hasClass('isToSmall')&&cE.parent().is(":visible")){cE.parent().removeClass('isToSmall');widthParent=cE.parent().width();}if(!cE.attr('data-width-init')){cE.attr('data-width-init', widthSelf);}if(widthParent >=widthSelf){cE.parent().removeClass('isToSmall');}else{cE.parent().addClass('isToSmall');}});
4jQuery('.wglCheckOverflow').each(function(index){if(typeof(wEditor)!='undefined'){return false;}var cE=jQuery(this);var scrollMax=cE.get(0).scrollWidth-cE.get(0).clientWidth;cE.attr('data-isoverflowx', cE.get(0).clientWidth < cE.get(0).scrollWidth?'1':0);cE.attr('data-scrollleft', String(cE.get(0).scrollLeft));if(cE.get(0).scrollLeft==0){cE.attr('data-scrollpos', 'left');}else if(cE.get(0).scrollLeft + 0.5 >=scrollMax){cE.attr('data-scrollpos', 'right');}else{cE.attr('data-scrollpos', '');}jQuery(this).on('scroll', function(){var cE=jQuery(this);var scrollMax=cE.get(0).scrollWidth-cE.get(0).clientWidth;cE.attr('data-scrollleft', String(cE.get(0).scrollLeft));if(cE.get(0).scrollLeft==0){cE.attr('data-scrollpos', 'left');}else if(cE.get(0).scrollLeft + 0.5 >=scrollMax){cE.attr('data-scrollpos', 'right');}else{cE.attr('data-scrollpos', '');}});});let debouncedResize=wDebounce(function(){jQuery('.wglCheckBreakChildren').each(function(index){if(typeof(wEditor)!='undefined'){return false;}var cE=jQuery(this);var widthSelf=cE.attr('data-width-init')||cE.outerWidth();var widthParent=cE.parent().width();var offsetTop=0;var offsetTopFirst=0;var breakChildren=false;var targetBreakChildrenClass=cE.data('targetbreakchildrenclass');var targetbreakchildrencallback=cE.data('targetbreakchildrencallback');var targetToSetClass=cE.parent();if(targetBreakChildrenClass&&/closest\(([^\)]+)\)/.test(targetBreakChildrenClass)){targetToSetClass=cE.closest(RegExp.$1);if(targetToSetClass.length==0){targetToSetClass=cE.parent();}}var hasBreakChildrenBefore=targetToSetClass.hasClass('breakChildren');targetToSetClass.removeClass('breakChildren');if(hasBreakChildrenBefore&&cE.parent().is(":visible")){targetToSetClass.removeClass('breakChildren');cE.children('*').each(function(index){offsetTop=jQuery(this).offset().top;if(index==0){offsetTopFirst=offsetTop;}else if(offsetTop > offsetTopFirst + 5){breakChildren=true;return false;}});}else{cE.children('*').each(function(index){offsetTop=jQuery(this).offset().top;if(index==0){offsetTopFirst=offsetTop;}else if(offsetTop > offsetTopFirst + 5){breakChildren=true;return false;}});}if(!cE.attr('data-width-init')){cE.attr('data-width-init', widthSelf);}if(breakChildren){cE.attr('data-width-break', cE.outerWidth());targetToSetClass.addClass('breakChildren');}if(hasBreakChildrenBefore!=breakChildren&&targetbreakchildrencallback&&targetbreakchildrencallback!=''){var f=window[targetbreakchildrencallback];if(typeof f==='function'){f(cE);}}});wOptimizePictureSizes();wProcessPictureZoomer();wLazyLoading();},!wUiTmp['wHasInitResize']?0:250);debouncedResize();wProcessWglExpandToParent();wProcessWglAdjustHeightMax();wAdaptHeightBlockHeaderOuter();wUiTmp['wHasInitResize']=true;});jQuery(window).on('resize scroll', function(event){var hcw=false;if(typeof(wUiTmp['lastWindowHeight'])=='undefined'||event.type=='resize'){wUiTmp['lastWindowHeight']=jQuery(window).height();wUiTmp['lastDocumentHeight']=jQuery(document).height();}if(typeof(wUiTmp['lastWindowWidthResized'])=='undefined'||event.type=='resize'){var cw=jQuery(window).width();if(cw!=wUiTmp['lastWindowWidthResized']){hcw=true;}wUiTmp['lastWindowWidthResized']=cw;}if(hcw){jQuery('div[data-isdarkbackgroundminwidth]').each(function(index){var v=parseInt(jQuery(this).attr('data-isdarkbackgroundminwidth').replace('px', ''));if(cw >=v){jQuery(this).addClass('isDarkBackground');}else{jQuery(this).removeClass('isDarkBackground');}});}wUiTmp['lastScrollTop']=jQuery(window).scrollTop();wUiTmp['lastScrollTime']=new Date().getTime();wSetScrollStatus();if(wUiTmp['lastScrollStatus']==='top'){wAdaptHeightBlockHeaderOuter();}if(typeof(wEditor)=='undefined'){wReader();wCountUp();}wUiTmp['timeoutObserveAlt']=typeof(wUiTmp['timeoutObserveAlt'])=='undefined'||wUiTmp['timeoutObserveAlt']==0?8:wUiTmp['timeoutObserveAlt']-1;if(!observeVisible||wUiTmp['timeoutObserveAlt']==0){wLazyLoading();if(!observeVisible){wAnimateIfVisible();}}wKeepInsideTopOnScroll();wAdaptNavigationSection();wUiTmp['hasToAdaptParallax']=true;if(!wUiTmp['adaptParallax']){window.requestAnimationFrame(wAdaptParallax);wUiTmp['adaptParallax']=true;}wUiTmp['lastScrollTopBefore']=wUiTmp['lastScrollTop'];});wSetScrollStatus=function(){var canChange=wUiTmp['lastScrollTop'] >=0&&(wUiTmp['lastScrollTop'] + wUiTmp['lastWindowHeight']-wUiTmp['lastDocumentHeight']) < 0?true:false;if(typeof(wOffsetBottomChangeScrollStatusSet)!='undefined'){if((wUiTmp['lastWindowHeight'] + wUiTmp['lastScrollTop']) > (wUiTmp['lastDocumentHeight']-wOffsetBottomChangeScrollStatusSet)){canChange=false;}}if(typeof(wBlockChangeScrollstatus)!='undefined'&&wBlockChangeScrollstatus){canChange=false;}if(typeof(wUiTmp['lastScrollTop'])=='undefined'){wUiTmp['lastScrollTop']=wOffsetScrolledTopDefault-1;}var changeScrollstatusOnAutoscrolling=false;if(typeof(wChangeScrollstatusOnAutoscrolling)!='undefined'&&wChangeScrollstatusOnAutoscrolling){changeScrollstatusOnAutoscrolling=true;}if((!wUiTmp['scrollingAuto']||changeScrollstatusOnAutoscrolling)&&canChange){if(wUiTmp['lastScrollTop'] <=wOffsetScrolledTopDefault){if(wUiTmp['lastScrollStatus']!='top'){document.documentElement.className=document.documentElement.className.replace(' scrolled-top', '').replace(' scrolldirection-down', '').replace(' scrolldirection-up', '') + ' scrolled-top';}wUiTmp['lastScrollStatus']='top';}else if(wUiTmp['lastScrollTop'] < wUiTmp['lastScrollTopBefore']){if(wUiTmp['lastScrollStatus']!='scrollup'){document.documentElement.className=document.documentElement.className.replace(' scrolled-top', '').replace(' scrolldirection-down', '') + ' scrolldirection-up';}wUiTmp['lastScrollStatus']='scrollup';}else if(typeof wUiTmp['lastScrollStatus']=='undefined'&&wUiTmp['lastScrollTop'] > wOffsetScrolledTopDefault||wUiTmp['lastScrollTop'] > wUiTmp['lastScrollTopBefore']){if(wUiTmp['lastScrollStatus']!='scrolldown'){document.documentElement.className=document.documentElement.className.replace(' scrolled-top', '').replace(' scrolldirection-up', '') + ' scrolldirection-down';}wUiTmp['lastScrollStatus']='scrolldown';}}};wSetScrollPosLeftList=function(eventTarget){sessionStorage.setItem('scrollposleftlist:' + location.pathname, window.scrollY);sessionStorage.setItem('scrollposleftlist:' + location.pathname + location.search, window.scrollY);};wGetScrollPosLeftList=function(){scrollToY=0;if(sessionStorage.getItem('scrollposleftlist:' + location.pathname)!=''){scrollToY=sessionStorage.getItem('scrollposleftlist:' + location.pathname);}else if(sessionStorage.getItem('scrollposleftlist:' + location.pathname + location.search)!=''){scrollToY=sessionStorage.getItem('scrollposleftlist:' + location.pathname + location.search);}return scrollToY;};wAdaptHeightBlockHeaderOuter=function(){try{if(jQuery(':root').css('--adaptHeightBlockHeaderOuter')!=='no'){var blockHeaderHeight=jQuery('#blockHeader').length!==0?jQuery('#blockHeader').height():0;try{if(typeof jQuery(':root').css('--heightBlockHeader')==='undefined'){wUiTmp['heightBlockHeaderUndefinedBeforeSet']=true;}}catch(e){wUiTmp['heightBlockHeaderUndefinedBeforeSet']=true;}jQuery(':root').css('--heightApp', String(jQuery(window).height()) + 'px');if(wUiTmp['heightBlockHeaderUndefinedBeforeSet']){wUiTmp['heightBlockHeaderWasSetTo']=jQuery(':root').css('--heightBlockHeader');}}}catch(e){}};wAdaptNavigationSection=function(){const $adpatNavigationSectionsObj=jQuery(".elementNavigationSections");
4if($adpatNavigationSectionsObj.length==0) return true;var idTopSection='', titleSection='', cE, nearestPositionTop=100000, elementPositionTop=0;var offsetTopFixed=jQuery('.wglContainerInsideTopOnScroll').length > 0?jQuery('.wglContainerInsideTopOnScroll').outerHeight():0;jQuery('.elementSection').each(function(index){cE=jQuery(this);elementPositionTop=parseInt(cE.offset().top)-wUiTmp['lastScrollTop']-offsetTopFixed;if(elementPositionTop < wUiTmp['lastWindowHeight']-128&&(elementPositionTop >=0&&elementPositionTop < nearestPositionTop||elementPositionTop < 0&&elementPositionTop *-1 < nearestPositionTop)){if(cE.height() > 8){nearestPositionTop=(elementPositionTop >=0?elementPositionTop:-elementPositionTop);titleSection=cE.attr('id')?cE.attr('id'):'';}}});if(titleSection!=''&&titleSection!=wUiTmp['lastSectionSelected']){if(typeof(wKeepNavigationSectionsIfNoTitle)!='undefined'&&wKeepNavigationSectionsIfNoTitle){if(jQuery(".elementNavigationSections li > a[href='#" + titleSection + "']").length!=0){jQuery(".elementNavigationSections li").removeClass('selected');jQuery(".elementNavigationSections li > a[href='#" + titleSection + "']").parent().addClass('selected');wUiTmp['lastSectionSelected']=titleSection;}}else{jQuery(".elementNavigationSections li").removeClass('selected');jQuery(".elementNavigationSections li > a[href='#" + titleSection + "']").parent().addClass('selected');wUiTmp['lastSectionSelected']=titleSection;}}};const wPrefetchCache=new Map();function wPrefetch(url) {url=new URL(url, window.location.href).href;if(!wPrefetchCache.has(url)) {const promise=fetch(url, {credentials:'same-origin',headers:{'X-Prefetch':'1'}})
5.then(response=> {if (!response.ok) {throw new Error('HTTP ' + response.status);}return response.text();})
6.catch(error=> {wPrefetchCache.delete(url);throw error;});wPrefetchCache.set(url, promise);}return wPrefetchCache.get(url);}async function wNavigatePrefetch(url){try {const absoluteUrl=new URL(url, window.location.href).href;const html=await wPrefetch(absoluteUrl);const parser=new DOMParser();const newDocument=parser.parseFromString(html, 'text/html');const currentBlock=document.querySelector('#blockPage');const newBlock=newDocument.querySelector('#blockPage');if (!currentBlock||!newBlock) {throw new Error('No #blockPage');}window.scrollTo(0, 0);document.title=newDocument.title;let htmlClasses=newDocument.documentElement.className;if(newDocument.documentElement.getAttribute('lang')){htmlClasses +=' lang-' + newDocument.documentElement.getAttribute('lang');}document.documentElement.className=htmlClasses;const newMetaTags=newDocument.querySelectorAll(
7'head meta, head link[rel="canonical"]'
8);newMetaTags.forEach(newTag=> {const name=newTag.getAttribute('name');const property=newTag.getAttribute('property');const rel=newTag.getAttribute('rel');let existingTag=null;if(name){existingTag=document.querySelector(`meta[name="${CSS.escape(name)}"]`);}else if(property){existingTag=document.querySelector(
9`meta[property="${CSS.escape(property)}"]`
10);}else if(rel==='canonical'){existingTag=document.querySelector('link[rel="canonical"]');}if(existingTag){existingTag.replaceWith(newTag.cloneNode(true));}else{document.head.appendChild(newTag.cloneNode(true));}});currentBlock.replaceWith(newBlock);wWindowOnLoad();wPrefetchLinks(newBlock);const parsedUrl=new URL(absoluteUrl);const hash=parsedUrl.hash;jQuery(newBlock).find('.wglTabcontainer').wTabcontainer({curHashId:hash});jQuery(newBlock).find('.wglAccordion').wAccordion();jQuery(newBlock).find('.wglBannerSlider').wBannerSlider();jQuery(newBlock).find('.wglSmartSlider').wSmartSlider();jQuery(newBlock).find('.wglPictureGallery').wPictureGallery();jQuery(newBlock).find('.wglMagnifier').wMagnifier();jQuery(newBlock).find('.wglLightbox').wLightbox();jQuery(newBlock).find('.wglMaximizer').wMaximizer();jQuery(newBlock).find('.wglDatepicker').wDatepicker();jQuery(newBlock).find('.wglTicker').wTicker();jQuery(newBlock).find('.wglSearchSuggest').wSearchSuggest();jQuery(newBlock).find('textarea[data-autoheight="1"]').wAutoheight();jQuery(newBlock).wOptimizePictureSizes();wAdaptConditionalFormData();wInitInlineValidation();window.setTimeout(function () {wLazyLoading();window.setTimeout(function () {wLazyLoading();}, 720);}, 160);wPrepareHTML();history.pushState({}, document.title, absoluteUrl);const scripts=newBlock.querySelectorAll('script');
10scripts.forEach(oldScript=> {const newScript=document.createElement('script');Array.from(oldScript.attributes).forEach(attr=> {newScript.setAttribute(attr.name, attr.value);});if (oldScript.textContent) {newScript.textContent=oldScript.textContent;}oldScript.parentNode.replaceChild(newScript, oldScript);});if(typeof(sbi)==='function'){sbi(url);}}catch (error) {console.error('Navigation fehlgeschlagen:', error);window.location.href=url;}}function wPrefetchLinks(container=document) {container.querySelectorAll('a[data-prefetch="1"]').forEach(link=> {try {const linkUrl=new URL(link.href, window.location.href);if (linkUrl.origin!==window.location.origin) {return;}wPrefetch(linkUrl.href);}catch (error) {console.warn('Prefetch-Link ist ungültig:', link, error);}});}function wRegisterPrefetch(){wPrefetchLinks(document);document.addEventListener('click', event=> {const link=event.target.closest('a[data-prefetch="1"]');if (!link) {return;}if (event.button!==0||event.ctrlKey||event.metaKey||event.shiftKey||event.altKey){return;}if(link.target==='_blank'||link.hasAttribute('download')){return;}let linkUrl;try {linkUrl=new URL(link.href, window.location.href);}catch (error) {return;}if (linkUrl.origin!==window.location.origin) {return;}event.preventDefault();wNavigatePrefetch(linkUrl.href);});}wPrefetchLink=function(link){var l=document.createElement("link");l.rel="prefetch";l.href=link;document.head.appendChild(l);};wReader=function(){jQuery('.wglReader:not([data-init="1"]').each(function(index){if(window.speechSynthesis){var cE=jQuery(this);var textToRead=cE.get(0).innerText;if(textToRead!=''){var rts='this.parentNode.nextSibling';var rta=cE.data('readertarget')?cE.data('readertarget'):'';if(rta=='prepend'){rts='this.parentNode.parentNode';}else if(rta.substr(0, 1)=='#'){rts='document.getElementById(\'' + rta.substr(1) + '\')';}cE.before('<div class="wReaderPanelEmbed"><div class="wButtonStartReading" onclick="wStartReadingText(' + rts + ', this.parentNode)"></div><div class="wButtonPauseReading" onclick="wPauseReadingText(' + rts + ', this.parentNode)"></div><div class="wButtonStopReading" onclick="wStopReadingText(' + rts + ', this.parentNode)"></div></div>');}cE.attr('data-init', '1');}});};wCountUp=function(){jQuery('.wglCountUp:not([data-init="1"])').each(function(index){var cE=jQuery(this);var nodeName=cE.get(0).nodeName;if(typeof(wEditor)!='undefined'){cE.attr('data-init', '1');return false;}var offsetTop=parseInt(cE.offset().top);if(offsetTop > wUiTmp['lastScrollTop'] + wUiTmp['lastWindowHeight']){return false;}cE.attr('data-init', '1');var currentDataOrig=cE.data();var currentData={};for(key in currentDataOrig){currentData[key.toLowerCase()]=currentDataOrig[key];}currentData['countupFrom']=currentData['countupfrom']||0;currentData['countupTo']=currentData['countupto']||cE.html();currentData['countupDecimals']=currentData['countupdecimals']||0;currentData['countupDuration']=currentData['countupduration']||2;currentData['countupInitdelay']=currentData['countupinitdelay']||1000;currentData['countupPrefix']=currentData['countupprefix']||'';currentData['countupSuffix']=currentData['countupsuffix']||'';if(/((\w*)\. )/.test(currentData['countupTo'])) currentData['countupTo']=currentData['countupTo'].replace(/((\w*)\. )/, RegExp.$2+'~#~ ');if(/^([^\d\,\.]*)([\d\,\.\']+)([^\d\,\.]*\.?)$/.test(currentData['countupTo'])){currentData['countupPrefix']=RegExp.$1.replace('~#~', '.');currentData['countupTo']=RegExp.$2;currentData['countupSuffix']=RegExp.$3.replace('~#~', '.');}currentData['countupSeperator']='';if(/^\d+([\.\'])\\d\d\d/.test(currentData['countupFrom'])||/^\d+([\.\'])\d\d\d/.test(currentData['countupTo'])){currentData['countupSeperator']=RegExp.$1;}if(currentData['countupSeperator']!=''){currentData['countupFrom']=String(currentData['countupFrom']).replace(/^(\d+)[\.\'](\d\d\d)/, '$1$2').replace(/^(\d+)[\.\'](\d\d\d)/, '$1$2').replace(/^(\d+)[\.\'](\d\d\d)/, '$1$2');currentData['countupTo']=String(currentData['countupTo']).replace(/^(\d+)[\.\'](\d\d\d)/, '$1$2').replace(/^(\d+)[\.\'](\d\d\d)/, '$1$2').replace(/^(\d+)[\.\'](\d\d\d)/, '$1$2');}valueToSet=String(currentData['countupFrom']);currentData['countupTo']=currentData['countupTo'].replace(',', '.');if(currentData['countupTo']){if(/^\d+\.(\d+)$/.test(currentData['countupTo'])){currentData['countupDecimals']=RegExp.$1.length;}else if(/^([\d\,\.]+)$/.test(currentData['countupTo'])){}else{return true;}}else{return true;}if(currentData['countupDecimals'] > 0){valueToSet=parseFloat(valueToSet).toFixed(currentData['countupDecimals']).replace('.', ',');}else{valueToSet=String(Math.ceil(valueToSet));if(currentData['countupSeperator']!=''){valueToSet=valueToSet.replace(/(\d)(\d{3})$/, '$1.$2').replace(/(\d)(\d{3})\./, '$1.$2.').replace(/(\d)(\d{3})\./, '$1.$2.');}}if(nodeName=='text'){cE.get(0).textContent=currentData['countupPrefix'] + valueToSet + currentData['countupSuffix'];}else{cE.html(currentData['countupPrefix'] + valueToSet + currentData['countupSuffix']);}var timeoutInit=25;var timeout=timeoutInit;window.setTimeout(function(){var intervalCountup=window.setInterval(function(){if(timeout < 0.5){timeout-=0.02;}else if(timeout < 2){timeout-=0.05;}else if(timeout < 3){timeout-=0.14;}else if(timeout < 4){timeout-=0.4;}else{timeout--;}var valueToSet=(currentData['countupTo']-currentData['countupFrom']) / timeoutInit * (timeoutInit-timeout) + parseFloat(currentData['countupFrom']);if(timeout <=0.1){window.clearInterval(intervalCountup);valueToSet=currentData['countupTo'];}if(currentData['countupDecimals'] > 0){valueToSet=String(parseFloat(valueToSet).toFixed(currentData['countupDecimals']).replace('.', ','));if(currentData['countupSeperator']!=''){if(/(\d+)\,(\d+)/.test(valueToSet)){var valueToSetBefore=RegExp.$1;var valueToSetAfter=RegExp.$2;if(currentData['countupSeperator']=='\''){valueToSetBefore=valueToSetBefore.replace(/(\d)(\d{3})$/, '$1\'$2').replace(/(\d)(\d{3})\'/, '$1\'$2.').replace(/(\d)(\d{3})\'/, '$1\'$2.');}else{valueToSetBefore=valueToSetBefore.replace(/(\d)(\d{3})$/, '$1.$2').replace(/(\d)(\d{3})\./, '$1.$2.').replace(/(\d)(\d{3})\./, '$1.$2.');}valueToSet=valueToSetBefore + ',' + valueToSetAfter;}}}else{valueToSet=String(Math.ceil(valueToSet));if(currentData['countupSeperator']!=''){if(currentData['countupSeperator']=='\''){valueToSet=valueToSet.replace(/(\d)(\d{3})$/, '$1\'$2').replace(/(\d)(\d{3})\'/, '$1\'$2\'').replace(/(\d)(\d{3})\./, '$1\'$2.');}else{valueToSet=valueToSet.replace(/(\d)(\d{3})$/, '$1.$2').replace(/(\d)(\d{3})\./, '$1.$2.').replace(/(\d)(\d{3})\./, '$1.$2.');}}}if(nodeName=='text'){cE.get(0).textContent=currentData['countupPrefix'] + valueToSet + currentData['countupSuffix'];}else{cE.html(currentData['countupPrefix'] + valueToSet + currentData['countupSuffix']);}}, parseInt(currentData['countupDuration'] * 500 / timeoutInit));}, currentData['countupInitdelay']);});};wAnimateIfVisible=function(){jQuery("[data-doifbecomevisible]").each(function(index){var cE=jQuery(this);var isVisibleState=cE.data('isvisible');var offsetTop=parseInt(cE.offset().top);if(offsetTop < wUiTmp['lastScrollTop'] + wUiTmp['lastWindowHeight']||location.href.indexOf('viewmode=print')!=-1){if(!isVisibleState){cE.data('isvisible', true);eval(cE.data('doifbecomevisible'));var functionDoifbecomevisible=function(){eval(cE.data('doifbecomevisible'));};functionDoifbecomevisible.call(cE.get(0));}}
10else if(isVisibleState){cE.data('isvisible', false);}});jQuery("[data-doifbecomevisibleonce]").each(function(index){var cE=jQuery(this);var isVisibleState=cE.data('isvisible');var offsetTop=parseInt(cE.offset().top);if(offsetTop < wUiTmp['lastScrollTop'] + wUiTmp['lastWindowHeight']||location.href.indexOf('viewmode=print')!=-1){if(!isVisibleState){cE.data('isvisible', true);var functionDoifbecomevisible=function(){eval(cE.data('doifbecomevisibleonce'));};functionDoifbecomevisible.call(cE.get(0));cE.removeAttr('data-doifbecomevisibleonce');}}else if(isVisibleState){cE.data('isvisible', false);}});jQuery('.wglAnimateIfVisibleOnce').each(function(index){var cE=jQuery(this);console.log("parseInt(cE.offset().top):"+parseInt(cE.offset().top));console.log("wUiTmp['lastScrollTop']:"+wUiTmp['lastScrollTop']);console.log("wUiTmp['lastWindowHeight']:"+wUiTmp['lastWindowHeight']);if(parseInt(cE.offset().top) < wUiTmp['lastScrollTop'] + wUiTmp['lastWindowHeight']||location.href.indexOf('viewmode=print')!=-1){cE.addClass('wglAnimateIfVisibleOnceVisible').removeClass('wglAnimateIfVisibleOnce');if(typeof(wOnAfterAnimateIfVisible)==='function'){wOnAfterAnimateIfVisible(cE);}}});jQuery('.wglAnimateIfVisible').each(function(index){var cE=jQuery(this);var offsetTop=parseInt(cE.offset().top);var offsetHeight=parseInt(cE.outerHeight());if((offsetTop < wUiTmp['lastScrollTop'] + wUiTmp['lastWindowHeight']&&offsetTop + offsetHeight > wUiTmp['lastScrollTop'])||location.href.indexOf('viewmode=print')!=-1){if(!cE.hasClass('isVisible')){cE.addClass('isVisibleOnce isVisible').removeClass('isInvisible');if(typeof(wOnAfterAnimateIfVisible)==='function'){wOnAfterAnimateIfVisible(cE);}}}else{if(cE.hasClass('isVisible')){cE.addClass('isInvisible').removeClass('isVisible');if(typeof(wOnAfterAnimateIfInvisible)==='function'){wOnAfterAnimateIfInvisible(cE);}}}});};wShowContentOfElementInLightbox=function(elCurrent, el){var options={};options['type']='inline';options['content']=jQuery(el).html();wLightbox(jQuery(elCurrent), options);};jQuery('body').on("touchmove", function(event){wAdaptParallax(event);});jQuery(window).on("touchend", function(event){wAdaptParallax(event);});jQuery(window).on('mousewheel DOMMouseScroll', function (event){jQuery('body, html').stop(true, true);});wLazyLoading=function(){var winWidth=jQuery(window).width();wUiTmp['widthOfRwids']={};jQuery('img.wglLazyLoadInit').each(function(index){if(jQuery(this).data('solvesources')=='1'){return true;}var currentImg=jQuery(this);var offsetTop=parseInt(currentImg.offset().top);var srcMin=currentImg.data('srcmin')?currentImg.data('srcmin'):'';var widthCurrent=parseInt(currentImg.width());var attrWidthCur=parseInt(typeof(currentImg.attr('width'))!='undefined'?currentImg.attr('width'):0);var widthMin=parseInt(srcMin.replace(/.*@min/, '').replace(/\..*/, ''));var isVisibleComponent=true;var isVisiblePicture=false;if(currentImg.attr('data-maxwidthifinvisible')&&currentImg.attr('data-maxwidthifinvisible') > widthCurrent){widthCurrent=currentImg.attr('data-maxwidthifinvisible');}if(!currentImg.is(':visible')){isVisibleComponent=false;closestElement=currentImg.closest('.elementList');
10if(closestElement.length > 0&&closestElement.is(':visible')){if(closestElement.find("div[data-lazyloadifvisibleentry='1']").length > 0){}else if(closestElement.offset().top < wUiTmp['lastScrollTop'] + wUiTmp['lastWindowHeight']){isVisibleComponent=true;}}}if(currentImg.attr('data-lazyloadwidthmaxactive')){if(winWidth >=currentImg.attr('data-lazyloadwidthmaxactive')){isVisibleComponent=true;isVisiblePicture=true;}}if(isVisibleComponent){if(currentImg.parent().prop('tagName')=='PICTURE'){if(widthCurrent > 0){wUiTmp['widthOfRwids'][currentImg.parent().attr('data-rwid')]=widthCurrent;}else if(wUiTmp['widthOfRwids'][currentImg.parent().attr('data-rwid')]){widthCurrent=wUiTmp['widthOfRwids'][currentImg.parent().attr('data-rwid')];}}}if(isVisibleComponent||wUiTmp['isMediaPrint']||wUiTmp['isViewmodePrint']){if(isVisiblePicture||(offsetTop < wUiTmp['lastScrollTop'] + wUiTmp['lastWindowHeight'])||wUiTmp['isMediaPrint']||wUiTmp['isViewmodePrint']){wShowLazyLoadImage(currentImg);}}});};wShowLazyLoadImage=function(currentImg){var widthCurrent=parseInt(currentImg.width());var srcMin=currentImg.data('srcmin')?currentImg.data('srcmin'):'';var widthCurrent=parseInt(currentImg.width());var attrWidthCur=parseInt(typeof(currentImg.attr('width'))!='undefined'?currentImg.attr('width'):0);var widthMin=parseInt(srcMin.replace(/.*@min/, '').replace(/\..*/, ''));var widthMax=0;if(currentImg.parent().prop('tagName')=='PICTURE'){currentImg.data('solvesources', '1');if(currentImg.parent().children('source').length > 0){currentImg.parent().children('source').each(function(){if(/(\d+)/.test(jQuery(this).attr('sizes'))){if(parseInt(RegExp.$1) > widthMax){widthMax=parseInt(RegExp.$1);}}if(jQuery(this).attr('data-src')){var currentImgElement=jQuery(this).parent().find('img').get(0);currentImgElement.setAttribute('data-widthbefore', currentImgElement.style.width);if(currentImgElement.offsetWidth > 0){currentImgElement.style.width=String(currentImgElement.offsetWidth) + 'px';}else{currentImgElement.style.width='100%';}jQuery(this).attr('srcset', jQuery(this).data('src')).removeData('src');var xi=0;if(jQuery(this).parent().attr('data-lazywaitcompleted')!='1'){jQuery(this).parent().attr('data-lazywaitcompleted', 1);var intervalLazyWaitCompleted=window.setInterval(function(){if(currentImgElement.complete||xi > 200){currentImgElement.style.width=currentImgElement.getAttribute('data-widthbefore');currentImgElement.removeAttribute('data-widthbefore');jQuery(this).parent().removeAttr('data-lazywaitcompleted');currentImg.removeClass('wglLazyLoadInit');
10if(typeof(wDoNotAdjustHeightMaxAfterLazyLoad)=='undefined'||!wDoNotAdjustHeightMaxAfterLazyLoad){wProcessWglAdjustHeightMax();}if(typeof(wOnAfterLazyLoading)==='function'){wOnAfterLazyLoading(currentImg);}window.clearInterval(intervalLazyWaitCompleted);}xi++;}, 100);}else{currentImgElement.style.width=currentImgElement.getAttribute('data-widthbefore');currentImgElement.removeAttribute('data-widthbefore');}}if(jQuery(this).attr('media')){jQuery(this).attr('media', jQuery(this).attr('media').replace(/(\:\s*)999?9?\./, '$1'));}});}}var ie11=navigator.appVersion.match(/MSIE (\d+\..)/)||navigator.userAgent.match(/Trident\/7/);if(devicePixelRatio >=hdLimitDpr&&typeof(currentImg.attr('data-src2x'))!='undefined'&&currentImg.attr('data-src2x')!=''&&attrWidthCur < widthCurrent * 2&&currentImg.attr('data-ishd')!='1'){currentImg.attr('src', currentImg.data('src2x')).attr('data-ishd', '1');}else if(typeof(currentImg.attr('data-srcmin'))!='undefined'&&currentImg.attr('data-srcmin')!=''&&widthCurrent < widthMin&&widthMin < attrWidthCur&&currentImg.attr('data-ismin')!='1'&&currentImg.attr('data-ishd')!='1'&&currentImg.attr('data-isld')!='1'){currentImg.attr('src', currentImg.data('srcmin')).attr('data-ismin', '1');}else if(typeof(currentImg.attr('data-src'))!='undefined'&&currentImg.attr('data-src')!=''&&currentImg.attr('data-ishd')!='1'&&currentImg.attr('data-isld')!='1'){if(currentImg.data('src').indexOf('@px')!=-1){try{if(currentImg.get(0).getBoundingClientRect()['width']-widthCurrent==-0.5){currentImg.get(0).style.width='calc(100% + 0.5px)';currentImg.get(0).style.maxWidth='calc(100% + 0.5px)';}}catch(e){console.log(e)}currentImg.attr('src', currentImg.data('src').replace('@px', '@' + (devicePixelRatio >=hdLimitDpr?widthCurrent * 2:widthCurrent) + 'px'));}else if(currentImg.data('src').indexOf('@ll')!=-1){try{if(currentImg.get(0).getBoundingClientRect()['width']-widthCurrent==-0.5){currentImg.get(0).style.width='calc(100% + 0.5px)';currentImg.get(0).style.maxWidth='calc(100% + 0.5px)';}}catch(e){console.log(e)}if(ie11){widthMax=widthMax > 0?widthMax:(widthCurrent > 1?widthCurrent:1024);currentImg.attr('src', currentImg.data('src').replace('@ll', '@' + (devicePixelRatio >=hdLimitDpr?widthMax * 2:widthMax) + 'll'));}else{currentImg.attr('src', currentImg.data('src').replace('@ll', '@' + (devicePixelRatio >=hdLimitDpr?widthCurrent * 2:widthCurrent) + 'll'));}}else{currentImg.attr('src', currentImg.data('src'));}currentImg.attr('data-isld', '1');}if(jQuery(this).parent().attr('data-lazywaitcompleted')!='1'){currentImg.removeClass('wglLazyLoadInit');
10if(typeof(wDoNotAdjustHeightMaxAfterLazyLoad)=='undefined'||!wDoNotAdjustHeightMaxAfterLazyLoad){wProcessWglAdjustHeightMax();}if(typeof(wOnAfterLazyLoading)==='function'){wOnAfterLazyLoading(currentImg);}}};wShowLazyLoadIframe=function(el){el.get(0).contentWindow.location.href=el.attr('data-src');};wKeepInsideTopOnScroll=function(){jQuery('.wglKeepInsideTopOnScroll').each(function(index){var cE=jQuery(this);var elementMovedNodeName=cE.attr('data-nodename')?cE.attr('data-nodename'):cE.prop('nodeName');var elementMoved=null;var offsetTop=parseInt(cE.offset().top);var scrollTopDiff=wGetScrollTopDiff({'considerWglContainerInsideTopOnScroll':false});var diffTop=offsetTop-wUiTmp['lastScrollTop']-scrollTopDiff;var moveID='';var container=cE.data('container');window.clearInterval(wUiTmp['scrollStack']);if(container=='parent'){if(diffTop < 0){var hasInit=false;if(cE.attr('data-hasmoved')!='1'){cE.css({'transition':'none'});cE.css({'transform':'translateY(0)'});cE.attr('data-offsettopinit', offsetTop);cE.attr('data-scrolltopinit', wUiTmp['lastScrollTop']);cE.attr('data-movemax', cE.parent().height()-cE.outerHeight());cE.attr('data-hasmoved', '1');hasInit=true;}offsetTop=cE.attr('data-offsettopinit');diffTop=offsetTop-wUiTmp['lastScrollTop']-scrollTopDiff;diffTop=-diffTop > cE.attr('data-movemax')?-cE.attr('data-movemax'):diffTop;if(hasInit){cE.attr('data-movetopinit',-diffTop);}cE.css({'transform':'translateY(' + String(-diffTop) + 'px)'});if(hasInit){cE.css({'transition':''});}}else if(cE.attr('data-hasmoved')=='1'){if(wUiTmp['lastScrollTop'] < cE.attr('data-scrolltopinit')-cE.attr('data-movetopinit')){cE.attr('data-offsettopinit', '');cE.attr('data-hasmoved', '');cE.css({'transform':'translateY(0)'});}else {offsetTop=cE.data('offsettopinit');diffTop=offsetTop-wUiTmp['lastScrollTop']-scrollTopDiff;diffTop=-diffTop > cE.attr('data-movemax')?-cE.attr('data-movemax'):diffTop;cE.css({'transform':'translateY(' + String(-diffTop) + 'px)'});}}}else{if(diffTop < 0&&(elementMovedNodeName!='THEAD'||diffTop > (-cE.parent().outerHeight()))){if(cE.attr('data-hasmoved')!='1'){var thStyles={};var widthTable=0;var widthElementTable=0;if(cE.prop("nodeName")=='THEAD'){var elementSource=cE.parent();if(elementSource){var firstTh=elementSource.find('thead th').get(0);if(firstTh){var computedStysle=window.getComputedStyle(firstTh);thStyles['color']=computedStysle['color'];thStyles['background-color']=computedStysle['background-color'];thStyles['padding-top']=computedStysle['padding-top'];thStyles['padding-right']=computedStysle['padding-right'];thStyles['padding-bottom']=computedStysle['padding-bottom'];thStyles['padding-left']=computedStysle['padding-left'];thStyles['font-weight']=computedStysle['font-weight'];thStyles['text-align']=computedStysle['text-align'];}elementSource.parent().scroll(function(){cE.parent().scrollLeft(jQuery(this).scrollLeft());});widthTable=elementSource.outerWidth();widthElementTable=elementSource.parent().width();elementSource.css({'width':String(widthTable) + 'px'});elementSource.find('tbody > tr:first-child > td').each(function(index){jQuery(this).css({'width':String(jQuery(this).outerWidth()) + 'px'});});}}if(!jQuery('.wglContainerInsideTopOnScroll').length){jQuery('body').prepend('<div class="wglContainerInsideTopOnScroll"></div>');}cE.attr('data-hasmoved', '1');moveID=String(parseInt(Math.random() * 1000000));if(typeof(cE.attr('data-moveidsource'))=='undefined'){cE.attr('data-moveidsource', moveID);}else{moveID=cE.attr('data-moveidsource');}cE.before('<div id="moveidsource-' + moveID + '" class="wglKeepInsideTopOnScroll" data-nodename="' + cE.prop("nodeName") + '" data-hasmoved="1" data-moveidsource="' + moveID + '"></div>');cE.removeAttr('data-moveidsource').attr('data-moveidtarget', moveID).attr('data-moveidtarget', moveID).appendTo('.wglContainerInsideTopOnScroll').addClass('moved-init').removeClass('wglKeepInsideTopOnScroll').removeClass('restored-init').removeClass('restored-ready');window.setTimeout(function(){cE.removeClass('moved-init').addClass('moved-ready');}, 10);height=cE.height();jQuery('#' + 'moveidsource-' + moveID).css('height', String(height) + 'px');if(cE.prop("nodeName")=='THEAD'){var elementSource=jQuery('#' + 'moveidsource-' + moveID).parent();var offsetSource=elementSource.parent().offset();if(offsetSource){cE.css({'display':'block', 'width':String(widthTable) + 'px'});cE.parent().css({'overflow-x':'auto', 'left':String(offsetSource.left) + 'px', 'width':String(widthElementTable) + 'px'});elementSource.find('tbody > tr:first-child > td').each(function(index){cE.find('th:nth-child(' + (index + 1) + ')').css(thStyles);cE.find('th:nth-child(' + (index + 1) + ')').css({'width':String(j
10Query(this).outerWidth()) + 'px'});});elementSource.parent().trigger('scroll');}}}else{height=jQuery(".wglContainerInsideTopOnScroll *[data-moveidtarget='" + cE.attr('data-moveidsource') + "']").height();cE.css('height', String(height) + 'px');}jQuery('.wglContainerInsideTopOnScroll').css({'top':String(scrollTopDiff) + 'px'});}else if(jQuery('html').hasClass('object-fullpage')&&cE.attr('data-hasmoved')=='1'){}else if(cE.attr('data-hasmoved')=='1'){moveID=cE.attr('data-moveidsource');elementMoved=jQuery(".wglContainerInsideTopOnScroll *[data-moveidtarget='" + moveID + "']");if(elementMoved.prop("nodeName")=='THEAD'){elementMoved.css({'display':'', 'width':''});}cE.before(elementMoved.addClass('wglKeepInsideTopOnScroll').removeClass('moved-init').removeClass('moved-ready').addClass('restored-init').removeAttr('data-hasmoved'));window.setTimeout(function(){if(cE.html()==''){cE.remove();}elementMoved.removeClass('restored-init').addClass('restored-ready');}, 10);}}var currentTime=new Date().getTime();if(currentTime-(wUiTmp['lastScrollTime']) > 1000){window.clearInterval(wUiTmp['scrollStack']);}else{wUiTmp['scrollStack']=window.setTimeout(function(){wKeepInsideTopOnScroll();}, 10);}});if(typeof(wOnAfterKeepInsideTopOnScroll)=='function'){wOnAfterKeepInsideTopOnScroll();}};wSortTableRows=function(table, col, direction){var tb=table.find('tbody'), c=col-1||0, d=direction||'', rs=tb.children(), rl=rs.length;if(d==''&&event&&event.target){var th=event.target.nodeName=='SPAN'?event.target.parentNode.parentNode:(event.target.nodeName=='DIV'?event.target.parentNode:event.target);d=jQuery(th).attr('data-sort-status')=='asc'?'desc':'asc';jQuery(th).parent().find('th').attr('data-sort-status', 'init');jQuery(th).attr('data-sort-status', d);}var factors={'KB':1024, 'MB':1024 * 1024, 'GB':1024 * 1024 * 1024, 'TB':1024 * 1024 * 1024 * 1024};if(!table.attr('data-rowspreparedforsort')||table.attr('data-rowspreparedforsort').indexOf('|' + col + '|')==-1){for(var i=0; i < rl; i++){var cell=jQuery(rs[i]).children('td').get(c);var vn=cell.innerText
11if(/^\s*(\d+(?:[\.,\d]*))\s*(KB|MB|GB|TB)\s*$/i.test(vn)){vn=String(factors[RegExp.$2.toUpperCase()] * RegExp.$1.replace(',','.'));}vn=vn.replace('m²', '');vn=vn.replace(/^[^\d]+\s+(\d+)/, '$1');vn=vn.replace(/(\d+)\,(\d+)/, '$1.$2');jQuery(rs[i]).children('td').get(c).setAttribute('data-sv', String(vn).trim());}table.attr('data-rowspreparedforsort', (table.attr('data-rowspreparedforsort')?table.attr('data-rowspreparedforsort'):'|') + col + '|');}while(rl > 1){for(var i=0; i < rl-1; i++){var vc=jQuery(rs[i]).children('td').get(c).getAttribute('data-sv');var vn=jQuery(rs[i+1]).children('td').get(c).getAttribute('data-sv');vc=/^\d+([\,\.]*\d+)?$/.test(vc)?parseFloat(vc):vc;vn=/^\d+([\,\.]*\d+)?$/.test(vn)?parseFloat(vn):vn;if(d=='asc'&&vc > vn||d=='desc'&&vc < vn){jQuery(rs[i]).before(jQuery(rs[i+1]));rs=tb.children();}}rl-=1;}};wglValidateFormInline=function(form){jQuery(form).find('input, textarea, select').each(function(){if(jQuery(this).attr('data-validators')&&jQuery(this).attr('data-validators')!=''){wglValidateElementInline(jQuery(this), {});}});};wglValidateElementInline=function(currentInputElement, options){var currentInput=jQuery(currentInputElement);var currentForm=currentInput.closest('form');var async=typeof options['async']!='undefined'?options['async']:true;var formPos=currentForm.attr('data-formpos');var formAction=currentForm.attr('action');var elementName=currentInput.attr('name');elementName=elementName.replace('[]', '');var elementValue=currentInput.val();if(currentInput.attr('type')=='checkbox'){elementValue='';currentInput.parent().parent().find('input').each(function(){elementValue +=(jQuery(this).get(0).checked?jQuery(this).val():'');});}else if(currentInput.attr('type')=='radio'){elementValue='';currentInput.parent().parent().find('input').each(function(){elementValue +=(jQuery(this).get(0).checked?jQuery(this).val():'');});}else if(currentInput.prop("tagName")=='SELECT'&&currentInput.attr('multiple')=='multiple'){elementValue='';currentInput.children().each(function(){elementValue +=(jQuery(this).get(0).selected?jQuery(this).val():'');});}if(elementValue==null){elementValue='';}
11if(typeof(wTrimInputsBeforeValidateOnBlur)!='undefined'&&wTrimInputsBeforeValidateOnBlur&&event&&event.type=='blur'){if(currentInput.prop("nodeName")=='TEXTAREA'||currentInput.attr("type")=='text'){currentInput.val(currentInput.val().trim());elementValue=currentInput.val();}}wFnValidationResultSilent=function(result){return wFnValidationResult(result, true)
12};wFnValidationResult=function(result, silent){silent=silent===true;elementsWithValidationClass=currentInput;elementsWithValidationAttr=currentInput;var validationID=formPos + (elementsWithValidationClass.attr('id')?elementsWithValidationClass.attr('id'):'');if(currentInput.attr('type')=='checkbox'||currentInput.attr('type')=='radio'){validationID=formPos + (elementsWithValidationClass.attr('name').replace('[]', '')?elementsWithValidationClass.attr('name').replace('[]', ''):'');elementsWithValidationClass=elementsWithValidationClass.parent().parent().children();elementsWithValidationAttr=elementsWithValidationClass.parent().parent().find('input[type="' + currentInput.attr('type') + '"]');}if(currentInput.attr('type')=='hidden'&&currentInput.attr('class')!=null&&currentInput.attr('class').indexOf('elementInputUpload')===-1){validationID=formPos + (elementsWithValidationClass.attr('name').replace('[]', '')?elementsWithValidationClass.attr('name').replace('[]', ''):'');elementsWithValidationClass=elementsWithValidationClass.parent().parent()
13elementsWithValidationAttr=elementsWithValidationClass.parent().parent();}var elementToAddError=elementsWithValidationClass.parent();if(elementToAddError.get(0).nodeName==='FIELDSET'){elementToAddError=elementToAddError.find('legend');}else if(elementsWithValidationClass.parent().prev('dt').length!=0){elementToAddError=elementsWithValidationClass.parent().prev('dt');}else if(elementsWithValidationClass.parent().prev('div').length!=0){elementToAddError=elementsWithValidationClass.parent().prev('div');}var elementToAddOK=elementsWithValidationClass.parent();if(elementsWithValidationClass.closest('*[data-addvalidationstatusok="1"]', elementsWithValidationClass.closest('.formElement')).length!=0){elementToAddOK=elementsWithValidationClass.closest('*[data-addvalidationstatusok="1"]', elementsWithValidationClass.closest('.formElement'));}else if(elementsWithValidationClass.attr('name')&&elementsWithValidationClass.closest('form').find('label[for="' + elementsWithValidationClass.attr('name').replace('[]', '') + '"]').length!=0){elementToAddOK=elementsWithValidationClass.closest('form').find('label[for="' + elementsWithValidationClass.attr('name').replace('[]', '') + '"]');}else if(elementToAddOK.get(0).nodeName==='FIELDSET'){elementToAddOK=elementToAddOK.find('legend');}else if(elementsWithValidationClass.parent().prev('dt').length!=0&&elementsWithValidationClass.parent().prev('dt').find('label')){elementToAddOK=elementsWithValidationClass.parent().prev('dt').find('label');}else if(elementsWithValidationClass.parent().prev('div').length!=0&&elementsWithValidationClass.parent().prev('div').find('label')){elementToAddOK=elementsWithValidationClass.parent().prev('div').find('label');}if(!currentInput.attr('data-validators')&&currentInput.attr('data-force-validation')!='1'){}else
14if(result['isValid']==false){elementsWithValidationAttr.attr('data-isinvalid', '1');if(silent){elementsWithValidationClass.removeClass('wglIsValid');jQuery('#validationStatus_' + validationID).remove();jQuery('#errorMessage_' + validationID).remove();if(elementToAddError.find('.wglErrorMessageInline').length==0){elementToAddError.removeClass('wglContainsErrorMessageInline');elementToAddError.find('.wglErrorMessageInline').remove();if(currentInput.attr('aria-describedby')=='errorMessage_' + validationID){currentInput.removeAttr('aria-describedby');}}}else{elementsWithValidationClass.addClass('wglIsInvalid');elementsWithValidationClass.removeClass('wglIsValid');jQuery('#validationStatus_' + validationID).remove();if(result['errorMessage']!=''){if(jQuery('#errorMessage_' + validationID).length==0){elementToAddError.addClass('wglContainsErrorMessageInline').append('<div class="wglErrorMessageInline" id="errorMessage_' + validationID + '" role="alert"><div>' + result['errorMessage'].replace(/\|.*/, '') + '</div></div>');currentInput.attr('aria-describedby', 'errorMessage_' + validationID);if(elementToAddError.addClass('wglContainsErrorMessageInline').find('label').length==2){if(currentInput.attr('id')==elementToAddError.addClass('wglContainsErrorMessageInline').find('label').attr('for')){jQuery('#errorMessage_' + validationID).css({'right':String(Math.round(elementToAddError.addClass('wglContainsErrorMessageInline').width()-elementToAddError.addClass('wglContainsErrorMessageInline').find('label').width())) + 'px'});}}
14(function(validationID){window.setTimeout(function(){jQuery('#errorMessage_' + validationID).addClass("loaded");}, 32);})(validationID);}}}}else if(result['isValid']==true){elementsWithValidationAttr.removeAttr('data-isinvalid');if(silent){elementsWithValidationClass.removeClass('wglIsInvalid');jQuery('#errorMessage_' + validationID).remove();if(elementToAddError.find('.wglErrorMessageInline').length==0){elementToAddError.removeClass('wglContainsErrorMessageInline');elementToAddError.find('.wglErrorMessageInline').remove();if(currentInput.attr('aria-describedby')=='errorMessage_' + validationID){currentInput.removeAttr('aria-describedby');}}}else{elementsWithValidationClass.removeClass('wglIsInvalid');elementsWithValidationClass.addClass('wglIsValid');jQuery('#errorMessage_' + validationID).remove();if(elementToAddError.find('.wglErrorMessageInline').length==0){elementToAddError.removeClass('wglContainsErrorMessageInline');elementToAddError.find('.wglErrorMessageInline').remove();if(currentInput.attr('aria-describedby')=='errorMessage_' + validationID){currentInput.removeAttr('aria-describedby');}}if(jQuery('#validationStatus_' + validationID).length==0){elementToAddOK.addClass('wglContainsValidationStatusInline').append('<div class="wglValidationStatusOK" id="validationStatus_' + validationID + '"><div></div></div>');(function(validationID){window.setTimeout(function(){jQuery('#validationStatus_' + validationID).addClass("loaded");}, 32);})(validationID);}}}wglUpdateValidationCurrentForm(currentInput);};var silent=typeof(options['userinfo'])!=='undefined'&&!options['userinfo']?true:false;vlr=wGetValidationInfoInput(currentInput);wFnValidationResult(vlr, silent);};wglUpdateValidationCurrentForm=function(input){currentForm=jQuery(input).closest('form');currentForm.attr('data-hasvalidated', '1');currentForm.attr('data-hasinputsinvalid', '0');currentForm.find('*[data-isinvalid="1"]').each(function(){if(jQuery(this).closest('.wglHideConditionalFormdata').length==0){currentForm.attr('data-hasinputsinvalid', '1');}});};wGetValidationInfoInput=function(currentInput){var elementName=currentInput.attr('name');elementName=elementName.replace('[]', '');var elementValue=currentInput.val();if(currentInput.attr('type')=='checkbox'){elementValue='';currentInput.parent().parent().find('input').each(function(){elementValue +=(jQuery(this).get(0).checked?jQuery(this).val():'');});}else if(currentInput.attr('type')=='radio'){elementValue='';currentInput.parent().parent().find('input').each(function(){elementValue +=(jQuery(this).get(0).checked?jQuery(this).val():'');});}else if(currentInput.prop("tagName")=='SELECT'&&currentInput.attr('multiple')=='multiple'){elementValue='';currentInput.children().each(function(){elementValue +=(jQuery(this).get(0).selected?jQuery(this).val():'');});}if(elementValue==null){elementValue='';}var vtv=elementValue;var vln=jQuery(currentInput).attr('data-validators')?jQuery(currentInput).attr('data-validators'):'';vln=vln.replace(/\\'/g, 'wBkslhApos');if(/^(!)?preg(i)?(u)?Match(OrEmpty)?\('([^']+)'\)/.test(vln)){vln=RegExp.$1 + 'preg' + RegExp.$2 + RegExp.$3 + 'Match' + RegExp.$4 + '(\'' + RegExp.$5.replace(/\|/g, 'wPipe') + '\')';}var vls=vln.split('|');var vlr={'isValid':true};var vlv='', regExpVal=null;for(var j=0; j < vls.length; j ++){vlv=vls[j];if(vlv=='required'&&vtv==''){vlr={'isValid':false};}else if(vlv=='captcha'&&vtv==''){vlr={'isValid':false};}else if(vlv=='email'&&!/^([a-zA-Z0-9\.\-_]+@([a-zA-Z0-9öäuÖÄÜ][a-zA-Z0-9öäuÖÄÜ\.-]*|[a-zA-Z0-9öäuÖÄÜ])\.\w\w+)$/.test(vtv)||vlv=='emailOrEmpty'&&vtv!=''&&!/^([a-zA-Z0-9\.\-_]+@[a-zA-Z0-9öäuÖÄÜ][a-zA-Z0-9öäuÖÄÜ\.-]*[a-zA-Z0-9öäuÖÄÜ]\.\w\w+)$/.test(vtv)){vlr={'isValid':false};}else if(vlv=='file'&&vtv==''){vlr={'isValid':false};}else if(/isEqualInput\((\w+)\)/.test(vlv)){var ntc=RegExp.$1;if(vtv!=jQuery('#' + ntc).val()){vlr={'isValid':false};}}else if(/maxlength\((\d+)\)/.test(vlv)&&vtv.length > parseInt(RegExp.$1)){vlr={'isValid':false};}else if(/maxvalue\((\d+)\)/.test(vlv)&&vtv > parseInt(RegExp.$1)){vlr={'isValid':false};}else if(/^(!)?preg(i)?(u)?Match(OrEmpty)?\('([^']+)'\)/.test(vlv)){var regExpExt=RegExp.$2 + RegExp.$3;if(RegExp.$4=='OrEmpty'&&vtv==''){}else{var isNeg=RegExp.$1=='!';var regExpPattern=RegExp.$5.replace(/wBkslhApos/g, '\'').replace(/wPipe/g, '|');regExpVal=new RegExp(regExpPattern, regExpExt);if(isNeg&&regExpVal.test(vtv)||!isNeg&&!regExpVal.test(vtv)){vlr={'isValid':false};}}}else if(/password\w?/.test(vlv)){var password=vtv;var rules=currentInput.data('passwordpolicy');var rulesLocal=rules;var rulesOk=true;if(/^(\d+)\,?/.test(rules)){lengthMin=RegExp.$1;if(password.length < lengthMin){rulesOk=false;}}
14if(/^\d+\,([\w\W]+)/.test(rules)){rulesLocal=RegExp.$1;}if(/a/.test(rulesLocal)){if(!/[a-z]/.test(password)){rulesOk=false;}}if(/A/.test(rulesLocal)){if(!/[A-ZÄÖÜ]/.test(password)){rulesOk=false;}}if(/1/.test(rulesLocal)){if(!/[0-9]/.test(password)){rulesOk=false;}}if(/\\$/.test(rulesLocal)){if(!/\W/.test(password)){rulesOk=false;}}if(!rulesOk){vlr={'isValid':false};}}if(!vlr['isValid']){vlr['errorMessage']=jQuery(currentInput).attr('data-errormessages');j=vls.length;}}return vlr;};wPrepareHTML=function(root){if(!root){root=jQuery('body');}jQuery(root).find('.wglLightbox').wLightbox();wAjaxUrl(root);wFormElement(root);wLazyLoading();if(observeVisible){jQuery('[data-doifbecomevisible]').each(function(index){observeVisible.observe(jQuery(this).get(0));});jQuery('.wglAnimateIfVisible').each(function(index){observeVisible.observe(jQuery(this).get(0));});}if(observeVisibleOnce){jQuery('[data-doifbecomevisibleonce]').each(function(index){observeVisibleOnce.observe(jQuery(this).get(0));});jQuery('.wglAnimateIfVisibleOnce').each(function(index){observeVisibleOnce.observe(jQuery(this).get(0));});jQuery('img.wglLazyLoadInit').each(function(index){observeVisibleOnce.observe(jQuery(this).get(0));});jQuery('iframe.wglLazyLoadInit').each(function(index){observeVisibleOnce.observe(jQuery(this).get(0));});}};wAjaxUrl=function(root){var i, j, k;if(!root){root=jQuery('body');}jQuery(root).find("a[data-ajaxurl]").each(function(){var cE=jQuery(this);var ajaxURL=cE.data('ajaxurl');var ajaxAddMode=cE.data('ajaxaddmode');var ajaxTarget=cE.data('ajaxtarget');var ajaxCallback=cE.data('ajaxcallback');cE.on('click', function (event){jQuery('html').addClass('adaptLoading');var elementTarget=cE.parent().parent();if(elementTarget.hasClass('elementList')){elementTarget.addClass('adaptLoading');elementTarget.find('.listDefault').addClass('adaptLoading');}if(typeof(wOnBeforeReloadElementByAjaxUrl)==='function'){wOnBeforeReloadElementByAjaxUrl(elementTarget);}jQuery.ajax({type:"GET", url:ajaxURL, async:true, success:function(result){jQuery('html').removeClass('adaptLoading');if(elementTarget.hasClass('elementList')){elementTarget.removeClass('adaptLoading');elementTarget.find('.listDefault').removeClass('adaptLoading');}if(ajaxTarget&&/^\.\.\/\.\.\/$/.test(ajaxTarget)){elementTarget=cE.parent().parent();}if(ajaxTarget&&/^\.\.\/$/.test(ajaxTarget)){elementTarget=cE.parent().find(RegExp.$1);}if(ajaxTarget&&/^\.\.\/(\w+)/.test(ajaxTarget)){elementTarget=cE.parent().find(RegExp.$1);}if(ajaxTarget&&/^\.\.\/\.\.\/(\w+)/.test(ajaxTarget)){elementTarget=cE.parent().parent().find(RegExp.$1);}if(typeof(window[ajaxCallback])==='function'){window[ajaxCallback](elementTarget, result);return;}elementTarget.fadeTo(0, 0);if(ajaxAddMode=='append'){elementTarget.html(elementTarget.html() + result);}else{elementTarget.html(result);}history.pushState({page:cE.attr('href')}, '', cE.attr('href'));wPrepareHTML(elementTarget.get(0));elementTarget.fadeTo(600, 1);if(cE.attr('data-preventscrolltotarget')!='1'){wScrollSmoothToElement(elementTarget.get(0), {'targetPos':'top'});}for(var addClassSelector in wCssClassesToAddGlobal){jQuery(addClassSelector).each(function(index){var classesToAdd=wCssClassesToAddGlobal[addClassSelector];for(var i=0, arrayLength=classesToAdd.length; i < arrayLength; i++){var classData=classesToAdd[i].split('=');if(classData.length==2){var selector=jQuery.trim(classData[0]);if(selector=='.'){jQuery(this).addClass(jQuery.trim(classData[1]));}else if(selector=='parent'){jQuery(this).parent().addClass(jQuery.trim(classData[1]));}else{jQuery(this).find(selector).addClass(jQuery.trim(classData[1]));}}else{jQuery(this).addClass(jQuery.trim(classData[0]));}}});}if(typeof(wOnAfterReloadElementByAjaxUrl)==='function'){wOnAfterReloadElementByAjaxUrl(elementTarget);}window.setTimeout(function(){jQuery(window).trigger('resize');}, 100);window.setTimeout(function(){jQuery(window).trigger('resize');}, 500);window.setTimeout(function(){jQuery(window).trigger('resize');}, 1000);}});return false;});});};wFormElement=function(root){if(!root){root=jQuery('body');}jQuery(root).find('.formElementInput input, .formElementInput select, .formElementInput textarea').each(function(){if((!jQuery(this).attr('name')||jQuery(this).attr('name').indexOf('wFormToken')==-1)){if(jQuery(this).prop('tagName')=='SELECT'&&!jQuery(this).attr('multiple')&&jQuery(this).val()==''||jQuery(this).prop('tagName')!='SELECT'&&jQuery(this).val()==''&&jQuery(this).text()==''){jQuery(this).closest('.formElementInput').addClass('empty');}else{jQuery(this).closest('.formElementInput').removeClass('empty');}if(jQuery(this).hasClass('wglInputTimeAfterDate')&&(jQuery(this).val()!=''||jQuery(this).closest('.formElementInput').find('input.wglDatepicker').val()!='')){jQuery(this).closest('.formElementInput').removeClass('empty');}}});jQuery(root).find('.formElementInput input, .formElementInput select, .formElementInput textarea').on('change', function(){if(jQuery(this).prop('tagName')=='SELECT'&&!jQuery(this).attr('multiple')&&jQuery(this).val()==''||jQuery(this).prop('tagName')!='SELECT'&&jQuery(this).val()==''&&jQuery(this).text()==''){jQuery(this).closest('.formElementInput').addClass('empty');}else{jQuery(this).closest('.formElementInput').removeClass('empty');}});jQuery(root).find('.formElementInput input, .formElementInput textarea').on('focus', function(){jQuery(this).closest('.formElementInput').addClass('focus');});jQuery(root).find('.formElementInput input, .formElementInput textarea').on('blur', function(){jQuery(this).closest('.formElementInput').removeClass('focus');});};jQuery.extend(jQuery.easing, {wEaseOut:function(x, t, b, c, d){return b-c * (t /=d) * (t-2);},wEaseOutExpo:function(x, t, b, c, d){return (t==d)?b + c:b + c * (-Math.pow(2,-10 * t / d) + 1);},wEaseIn:function(x, t, b, c, d){return b + c * (t /=d) * t;}});jQuery.fn.wAddAnalytics=function(viewmode){jQuery.each(jQuery(this), function(){jQuery(this).click(function(){ga('send', {'hitType':'pageview', 'page':j
14Query(this).attr('href'), 'title':jQuery(this).attr('title')})});});};jQuery.fn.wSetViewmode=function(viewmode){jQuery.each(jQuery(this), function(){var hrefNew=this.getAttribute('href')||'';var anchor='';if(/#[^#]+$/.test(hrefNew)){anchor=hrefNew.replace(/.*#/, '');hrefNew=hrefNew.replace(/#.*/, '');}hrefNew=hrefNew.indexOf('?')!=-1?hrefNew + '&viewmode=' + viewmode:hrefNew + '?viewmode=' + viewmode;if(anchor!=''){hrefNew +='#' + anchor;}if(this.className.indexOf('boxOnly')==-1&&this.innerHTML.indexOf('<img ')!=-1){this.style.background='none';this.style.paddingLeft='none';}this.setAttribute('href', hrefNew);});};wOpenPrintPreview=function(width, height, name){var name=name||'printpreview';var url=location.href.indexOf('?')==-1?location.href.replace(/#.*/, '') + '?viewmode=print':location.href.replace(/#.*/, '') + '&viewmode=print';options=',location=no,menubar=no,toolbar=no,resizable=yes,scrollbars=yes,status=no';wOpenPopupURL(url, width, height, name, options);};wOpenURL=function(url, target, element){target=typeof(target)!='undefined'&&target?target:(jQuery('html.isInLightbox').length==1?'_top':'');if(location.pathname.indexOf('/weblication/grid5/')!=0){if(typeof event!='undefined'&&jQuery(event.target).closest('ul.listDefault').length > 0){wSetScrollPosLeftList(event.target);}if(/Android/i.test(navigator.userAgent)){var cE=jQuery(element);var hrefCurrent=cE.attr('href')?cE.attr('href'):url;if(/\.pdf$/.test(url)&&!/accessDocument\.php/.test(url)&&!/^https?\:\/\//.test(url)){if(cE.attr('data-pathPrepend')){hrefCurrent=cE.attr('data-pathPrepend') + hrefCurrent;}url=wUiTmp['wGlobalProjectPath'] + '/wGlobal/scripts/accessDocument.php?forceDownload=' + (cE.hasClass('download')?'1':'0') + '&document=' + encodeURIComponent(hrefCurrent);}}if(target=='_blank'){var windowOpen=window.open(url);if(!/^\/\w+/.test(url)){windowOpen.opener=null;windowOpen.location=url;}}else if(target=='_top'){top.location.href=url;}else if(target.indexOf('embedListEntrySelf')!==-1){var options={};var i=8;while(element.nodeName!='LI'&&i--> 0){element=element.parentNode;}if(element.nodeName=='LI'){options['embedRoot']=element.getAttribute('data-embedroot')?element.getAttribute('data-embedroot'):(element.parentNode.getAttribute('data-embedroot')?element.parentNode.getAttribute('data-embedroot'):'');options['embedClass']=element.getAttribute('data-embedclass')?element.getAttribute('data-embedclass'):(element.parentNode.getAttribute('data-embedclass')?element.parentNode.getAttribute('data-embedclass'):'');options['embedClassAdditional']=element.getAttribute('data-embedclassadditional')?element.getAttribute('data-embedclassadditional'):(element.parentNode.getAttribute('data-embedclassadditional')?element.parentNode.getAttribute('data-embedclassadditional'):'');options['embedBefore']=element.getAttribute('data-embedbefore')?element.getAttribute('data-embedbefore'):(element.parentNode.getAttribute('data-embedbefore')?element.parentNode.getAttribute('data-embedbefore'):'');options['embedMultiple']=element.getAttribute('data-embedmultiple')?element.getAttribute('data-embedmultiple'):(element.parentNode.getAttribute('data-embedmultiple')?element.parentNode.getAttribute('data-embedmultiple'):'');
14if(element.parentNode.getAttribute('data-scrolltopoffsetifnotvisibleembed')=='listEntryHeight'){options['scrollTopOffset']=element.offsetHeight;}}wEmbedPage(url, 'listEntrySelf', element, options);}else if(target.indexOf('embedListNextRow')!==-1){var options={};var i=8;while(element.nodeName!='LI'&&i--> 0){element=element.parentNode;}if(element.nodeName=='LI'){options['embedRoot']=element.getAttribute('data-embedroot')?element.getAttribute('data-embedroot'):(element.parentNode.getAttribute('data-embedroot')?element.parentNode.getAttribute('data-embedroot'):'');options['embedClass']=element.getAttribute('data-embedclass')?element.getAttribute('data-embedclass'):(element.parentNode.getAttribute('data-embedclass')?element.parentNode.getAttribute('data-embedclass'):'');options['embedClassAdditional']=element.getAttribute('data-embedclassadditional')?element.getAttribute('data-embedclassadditional'):(element.parentNode.getAttribute('data-embedclassadditional')?element.parentNode.getAttribute('data-embedclassadditional'):'');options['embedScrollElement']=element.getAttribute('data-embedscrollelement')?element.getAttribute('data-embedscrollelement'):(element.parentNode.getAttribute('data-embedscrollelement')?element.parentNode.getAttribute('data-embedscrollelement'):'');if(element.parentNode.getAttribute('data-scrolltopoffsetifnotvisibleembed')=='listEntryHeight'){options['scrollTopOffset']=element.offsetHeight;}}wEmbedPage(url, 'listNextRow', element, options);}else if(target.indexOf('embedBody')!==-1){var options={};options['embedRoot']=element.getAttribute('data-embedroot')?element.getAttribute('data-embedroot'):(element.parentNode.getAttribute('data-embedroot')?element.parentNode.getAttribute('data-embedroot'):'');options['embedClass']=element.getAttribute('data-embedclass')?element.getAttribute('data-embedclass'):(element.parentNode.getAttribute('data-embedclass')?element.parentNode.getAttribute('data-embedclass'):'');options['embedClassAdditional']=element.getAttribute('data-embedclassadditional')?element.getAttribute('data-embedclassadditional'):(element.parentNode.getAttribute('data-embedclassadditional')?element.parentNode.getAttribute('data-embedclassadditional'):'');wEmbedPage(url, 'body', element, options);}else if(target.indexOf('box')!==-1){if(typeof(element)!='undefined'&&element.nodeType&&element.nodeType==1){wLightbox(jQuery(element), {"variant":target, "href":url});}else{wLightbox({"variant":target, "href":url});}}else if(url!==undefined){if(url.indexOf('#')==0){wScrollSmoothToElement(url);}else {location.href=url;}}}};wSetParameterAndReload=function(name, value){location.href=wSetParameter(location.href, name, value);};wSetParameter=function(url, name, value){var urlHash='';if(/(#[\w\W]*)$/.test(url)){urlHash=RegExp.$1;url=url.replace(/(#[\w\W]*)$/, '');}var paramReg=new RegExp('([\\?\\&])' + name + '=([^\\&]+)');if(paramReg.test(url)){if(value==''){url=url.replace(paramReg, RegExp.$1);url=url.replace(/([\?\&])[\?\&]+/g, '$1');url=url.replace(/[\?\&]$/g, '');}else{url=url.replace(paramReg, RegExp.$1 + name + '=' + value);}}else if(value==''){}else if(url.indexOf('?')!=-1){url +='&' + name + '=' + value;}else{url +='?' + name + '=' + value;}return url + urlHash;};wEmbedPage=function(url, target, element, options){options=options||{};options['type']=options['type']||'ajax';options['embedRoot']=options['embedRoot']||'';options['scrollTopOffset']=options['scrollTopOffset']||0;var id='wEmbededPage-' + String(parseInt(Math.random() * 100000));var elementToAppend=element;var rootSameEmbed=jQuery('body');if(target=='listEntrySelf'){if(url==wUiTmp['wEmbePageCurrentURL']){wUiTmp['wEmbePageCurrentURL']='';wEmbedPageClose();return false;}wUiTmp['wEmbePageCurrentURL']=url;rootSameEmbed=jQuery(element).closest('li').length==1?jQuery(element).closest('li'):rootSameEmbed;elementToAppend=jQuery(element).get(0);if(options['embedMulti']!='1'){rootSameEmbed.parent().find('.wEmbededPage-' + target).remove();}if(options['embedMulti']=='1'||rootSameEmbed.find('.wEmbededPage-' + target).length==0){var embedClass=options['embedClass']&&options['embedClass']!=''?' wEmbededPage-' + options['embedClass']:'';if(options['embedClassAdditional']&&options['embedClassAdditional']!=''){embedClass +=' ' + options['embedClassAdditional'];}var embedHTML='<div id="' + id + '" class="wEmbededPage wEmbededPage-' + target + ' wEmbededPage-' + options['type'] + embedClass + '" data-embedpagetarget="' + target + '" data-src="' + url + '"' + (options['embedMulti']=='1'?' data-multi="1"':'') + ' onclick="event.stopPropagation()"><div class="wEmbededPageInner"></div><div class="wEmbededPageCloser" onclick="wEmbedPageClose(event)"></div></div>';if(options['embedBefore']&&jQuery(element).find(options['embedBefore']).length!=0){jQuery(embedHTML).insertBefore(jQuery(element).find(options['embedBefore']));}else{jQuery(embedHTML).appendTo(elementToAppend);}}else{rootSameEmbed.find('.wEmbededPage-' + target).attr('id', id);}if(options['embedMulti']!='1'){jQuery(element).siblings().removeClass('listEntryHasEmbedded');}jQuery(element).addClass('listEntryHasEmbedded');}else if(target=='listNextRow'){if(url==wUiTmp['wEmbePageCurrentURL']){wUiTmp['wEmbePageCurrentURL']='';wEmbedPageClose();return false;}wUiTmp['wEmbePageCurrentURL']=url;rootSameEmbed=jQuery(element).closest('ul').length==1?jQuery(element).closest('ul'):rootSameEmbed;
14elementToAppend=jQuery(element).parent().children().last().get(0);var offsetTopCurrent=element.offsetTop;jQuery(element).nextAll().each(function(){if(jQuery(this).get(0).offsetTop > offsetTopCurrent){elementToAppend=jQuery(this).prev().get(0);return false;}});if(elementToAppend!=wUiTmp['wEmbePagecEToAppend']){rootSameEmbed.find('.wEmbededPage-' + target).remove();}if(rootSameEmbed.find('.wEmbededPage-' + target).length==0){var embedClass=options['embedClass']&&options['embedClass']!=''?' wEmbededPage-' + options['embedClass']:'';if(options['embedClassAdditional']&&options['embedClassAdditional']!=''){embedClass +=' ' + options['embedClassAdditional'];}jQuery('<li id="' + id + '" class="wEmbededPage wEmbededPage-' + target + ' wEmbededPage-' + options['type'] + embedClass + '" data-embedpagetarget="' + target + '" data-src="' + url + '"><div class="wEmbededPageInner" data-scrollelement="' + options['embedScrollElement'] + '"></div><div class="wEmbededPageCloser" onclick="event.stopPropagation();wEmbedPageClose(event);return false;"></div></li>').insertAfter(elementToAppend);}else{rootSameEmbed.find('.wEmbededPage-' + target).attr('id', id);}}else{if(url==wUiTmp['wEmbePageCurrentURL']){wUiTmp['wEmbePageCurrentURL']='';wEmbedPageClose();return false;}wUiTmp['wEmbePageCurrentURL']=url;elementToAppend=rootSameEmbed;var offsetTopCurrent=element.offsetTop;if(rootSameEmbed.find('.wEmbededPage-' + target).length==0){var embedClass=options['embedClass']&&options['embedClass']!=''?' wEmbededPage-' + options['embedClass']:'';if(options['embedClassAdditional']&&options['embedClassAdditional']!=''){embedClass +=' ' + options['embedClassAdditional'];}jQuery('<div id="' + id + '" class="wEmbededPage wEmbededPage-' + target + ' wEmbededPage-' + options['type'] + embedClass + '" data-embedpagetarget="' + target + '" data-src="' + url + '"><div class="wEmbededPageInner"></div><div class="wEmbededPageCloser" onclick="wEmbedPageClose(event)"></div></div>').appendTo(elementToAppend);}else{rootSameEmbed.find('.wEmbededPage-' + target).attr('id', id);}}rootSameEmbed.find('.wEmbededPage-' + target).addClass('loading');wUiTmp['wEmbePagecEToAppend']=elementToAppend;jQuery(element).siblings().removeClass('listEntrySelected');jQuery(element).addClass('listEntrySelected');jQuery('html').removeClass('embedpage-loaded');jQuery('html').addClass('embedpage-loading');jQuery('html').addClass('embedpage-open');jQuery('html').addClass('embedpage-' + target + '-open');jQuery.ajax({type:"GET", url:url, success:function(result){htmlToEmbed=result.replace(/^[\s\S]*<body[^>]*>/, '').replace(/<\/body[^>]*>[\s\S]*$/, '');if(typeof(wOnBeforeEmbedPage)==='function'){wOnBeforeEmbedPage(htmlToEmbed, url);}var htmlToEmbedElement=document.createElement('div');htmlToEmbedElement.innerHTML=htmlToEmbed;if(typeof(wKeepIDsInEmbededPage)=='undefined'||!wKeepIDsInEmbededPage){htmlToEmbed=htmlToEmbed.replace(/ id="([^"]*)"/g, ' id="embed_$1"');htmlToEmbed=htmlToEmbed.replace(/ id="embed_(tab|accordion|container|pictureGallery|bannerSlider|listEntries)/g, ' id="$1');}var scriptsCurrent=document.getElementsByTagName('script');var scriptsToEmbed=[];if(/<script[^>]*src="([^"]+jquery-ui\.js)/.test(result)&&!/<script[^>]*src="([^"]+jquery-ui\.js)/.test(document.documentElement.innerHTML)){scriptsToEmbed.push(RegExp.$1);}if(/<script[^>]*src="([^"]+\.date\.js)/.test(result)&&!/<script[^>]*src="([^"]+\.date\.js)/.test(document.documentElement.innerHTML)){scriptsToEmbed.push(RegExp.$1);}if(/<script[^>]*src="([^"]+\/pictureGallery\.js)/.test(result)&&!/<script[^>]*src="([^"]+\/pictureGallery\.js)/.test(document.documentElement.innerHTML)){scriptsToEmbed.push(RegExp.$1);}if(/<script[^>]*src="([^"]+\/bannerSlider\.js)/.test(result)&&!/<script[^>]*src="([^"]+\/bannerSlider\.js)/.test(document.documentElement.innerHTML)){scriptsToEmbed.push(RegExp.$1);}htmlToEmbed=htmlToEmbed.replace(/<script[^>]+src="[^>]+>([\s\n\r\t]*<\/script>)?/g, '');htmlToEmbed=htmlToEmbed.replace('<div id="cookieNotice"', '<div style="display:none"');htmlToEmbed=htmlToEmbed.replace('<div id="dntNotice"', '<div style="display:none"');for(var i=0; i < scriptsToEmbed.length; i++){var scriptElement=document.createElement('script');scriptElement.setAttribute('type', 'text/javascript');scriptElement.setAttribute('src', scriptsToEmbed[i]);scriptElement.setAttribute('data-hasloadtoembed', '1');if(typeof(callbackOnLoad)==='function'){scriptElement.wAddEvent('load', callbackOnLoad);}document.body.appendChild(scriptElement);}if(options['embedRoot']&&options['embedRoot']!=''){if(typeof(wKeepIDsInEmbededPage)=='undefined'||!wKeepIDsInEmbededPage){options['embedRoot']=options['embedRoot'].replace('#', '#embed_');}var tmpFragment=document.createElement('DIV');tmpFragment.innerHTML=htmlToEmbed;var resultNode=tmpFragment.querySelector(options['embedRoot']);if(resultNode){htmlToEmbed=resultNode.innerHTML;}}var tmp='';var jsStr='';var strArray=htmlToEmbed.split(/<script[^>]*>
14/);tmp +=strArray[0];for(var i=1; i < strArray.length; i++){strArray[i]=strArray[i].replace(/^([\s\S]*)<\/script[^>]*>/m, '');jsStr +=RegExp.$1.replace(/;?[\n\r\t\s]*$/, ';').replace(/;+$/, ';');tmp +=strArray[i];}htmlToEmbed=tmp;jQuery('#' + id).find('.wEmbededPageInner').html(htmlToEmbed);for(var addClassSelector in wCssClassesToAddGlobal){jQuery('#' + id).find(addClassSelector).each(function(index){var classesToAdd=wCssClassesToAddGlobal[addClassSelector];for(var i=0, arrayLength=classesToAdd.length; i < arrayLength; i++){var classData=classesToAdd[i].split('=');if(classData.length==2){var selector=jQuery.trim(classData[0]);if(selector=='.'){jQuery(this).addClass(jQuery.trim(classData[1]));}else if(selector=='parent'){jQuery(this).parent().addClass(jQuery.trim(classData[1]));}else{jQuery(this).find(selector).addClass(jQuery.trim(classData[1]));}}else{jQuery(this).addClass(jQuery.trim(classData[0]));}}});}jQuery('#' + id).find('.wEmbededPageInner .wglBannerSlider').wBannerSlider();jQuery('#' + id).find('.wEmbededPageInner .wglSmartSlider').wSmartSlider();jQuery('#' + id).find('.wEmbededPageInner .wglPictureGallery').wPictureGallery();if(typeof(wExecuteJsInEmbededPage)!='undefined'&&wExecuteJsInEmbededPage){try{eval(jsStr);}catch(e){}}jQuery('#' + id).on('scroll', function(){jQuery(window).trigger('scroll');});var [query, hash]=url.split('#');jQuery('#' + id).find('.wEmbededPageInner .wglTabcontainer').wTabcontainer({'curHashId':'#' + hash});jQuery('#' + id).find('.wEmbededPageInner .wglAccordion').wAccordion();jQuery('#' + id).find('.wEmbededPageInner .wglBannerSlider').wBannerSlider();jQuery('#' + id).find('.wEmbededPageInner .wglSmartSlider').wSmartSlider();jQuery('#' + id).find('.wEmbededPageInner .wglPictureGallery').wPictureGallery();jQuery('#' + id).find('.wEmbededPageInner .wglMagnifier').wMagnifier();jQuery('#' + id).find('.wEmbededPageInner .wglLightbox').wLightbox();jQuery('#' + id).find('.wEmbededPageInner .wglMaximizer').wMaximizer();jQuery('#' + id).find('.wEmbededPageInner .wglDatepicker').wDatepicker();jQuery('#' + id).find('.wEmbededPageInner .wglTicker').wTicker();jQuery('#' + id).find('.wEmbededPageInner .wglSearchSuggest').wSearchSuggest();jQuery('#' + id).find('.wEmbededPageInner textarea[data-autoheight="1"]').wAutoheight();jQuery('#' + id).find('.wEmbededPageInner').wOptimizePictureSizes();wAdaptConditionalFormData();wInitInlineValidation();window.setTimeout(function(){wLazyLoading();window.setTimeout(function(){wLazyLoading();}, 720);}, 160);wPrepareHTML();jQuery('html').removeClass('embedpage-loading');jQuery('html').addClass('embedpage-loaded');rootSameEmbed.find('.wEmbededPage-' + target).removeClass('loading');if(typeof(wOnAfterEmbedPage)==='function'){wOnAfterEmbedPage(rootSameEmbed.find('.wEmbededPage-' + target).get(0), url);}if(target=='listNextRow'){wScrollSmoothToElement(jQuery('#' + id).find('.wEmbededPageInner').get(0), {'targetPos':'top', 'scrollTopOffset':options['scrollTopOffset']});}if(typeof(wSimulateBreakpointsInEmbededPage)!='undefined'&&wSimulateBreakpointsInEmbededPage){window.setTimeout(function(){if(typeof(wSimulateBreakpointsIfNeccessary)!='undefined'){wSimulateBreakpointsIfNeccessary({root:jQuery('#' + id).find('.wEmbededPageInner').get(0), urlToSimulate:url});}}, 1000);}}});};wEmbedPageClose=function(event){if(typeof(event)!='undefined'){event.stopPropagation();}var rootSameEmbed=jQuery('body');if(typeof(event)!='undefined'&&jQuery(event.target).closest('li[data-embedpagetarget="listNextRow"]').length==1){rootSameEmbed=jQuery(event.target).closest('ul')
15}document.documentElement.className=document.documentElement.className.replace(/embedpage-\w+-open/, '');jQuery('html').removeClass('embedpage-open');jQuery('html').removeClass('embedpage-loaded');jQuery('script[data-hasloadtoembed="1"]').remove();if(typeof(event)!='undefined'&&jQuery(event.target).closest('.wEmbededPage').length==1&&jQuery(event.target).closest('.wEmbededPage').attr('data-multi')=='1'){var embedCurrent=jQuery(event.target).closest('.wEmbededPage');embedCurrent.closest('li.listEntryHasEmbedded').removeClass('listEntryHasEmbedded');embedCurrent.closest('li.listEntrySelected').removeClass('listEntrySelected');embedCurrent.siblings().removeClass('listEntrySelected');embedCurrent.siblings().removeClass('listEntryHasEmbedded');embedCurrent.remove();}else{rootSameEmbed.find('.wEmbededPage').closest('li.listEntryHasEmbedded').removeClass('listEntryHasEmbedded');rootSameEmbed.find('.wEmbededPage').closest('li.listEntrySelected').removeClass('listEntrySelected');rootSameEmbed.find('.wEmbededPage').siblings().removeClass('listEntrySelected');rootSameEmbed.find('.wEmbededPage').siblings().removeClass('listEntryHasEmbedded');rootSameEmbed.find('.wEmbededPage').remove();}wUiTmp['wEmbePageCurrentURL']='';if(typeof(wOnAfterCloseEmbedPage)==='function'){wOnAfterCloseEmbedPage();}};
15wOpenPopupURL=function(url, width, height, name, options){var name=name||'';if(width==''||width==' '||typeof(width)=='undefined'){width=786;}if(height==''||height==' '||typeof(height)=='undefined'){height=677;}url=url.replace(/&/g, '&');options=options||',location=no,menubar=no,toolbar=no,resizable=yes,scrollbars=yes,status=no';var width=parseInt(width);var height=parseInt(height);var posLeft=(screen.width / 2)-(width  / 2);var posTop=(screen.height / 2)-(height / 2);var windowOpen=window.open(url, name, 'top='+posTop+',left='+posLeft+',width='+width+',height='+height+',' + options);if(!/^\/\w+/.test(url)){windowOpen.opener=null;windowOpen.location=url;}};wDisableAnalytics=function(){document.cookie='disableGoogleAnalytics=1;path=/;sameSite=Lax;expires='+(new Date(new Date().getTime() + 365 * 1000 * 60 * 60 * 24).toGMTString());if(window['gaId']){window['ga-disable-' + window['gaId']]=true;}else if(typeof(gaOptout)!='undefined'){gaOptout();}};wDisableWaNextRequest=function(){document.cookie='wDisableWaNextRequest=1;path=/;sameSite=Lax';};wSendMailNospam=function(data){var rtc=true;if(typeof(wOnBeforeClickSendMailNospam)=='function'){rtc=wOnBeforeClickSendMailNospam(data.replace('|', '@').replace(/wApos/, "'"), event);}if(rtc){top.location.href='mailto:' + data.replace('|', '@').replace(/wApos/, "'", event);}};wAdaptConditionalFormData=function(){jQuery("*[data-conditionalformdata]").each(function(){var cE=jQuery(this);var conditionalformdata=cE.data('conditionalformdata');var conditionalFormDataArray=conditionalformdata.split('|AND|');for(var k=0; k < conditionalFormDataArray.length; k++){var type='showIf';var dyndisplayOperator='and';var callbackJS='';var conditionalformdata=conditionalFormDataArray[k];if(/callbackJS\:([^;]+)/.test(conditionalformdata)){callbackJS=RegExp.$1;}if(/type\:(showIf|hideIf)/.test(conditionalformdata)){type=RegExp.$1;}if(/operator\:(and|or)/.test(conditionalformdata)){dyndisplayOperator=RegExp.$1;}if(/conditions\:(.*)/.test(conditionalformdata)){conditionalformdata=RegExp.$1;}conditionalformdata=conditionalformdata.replace(/,([\w\-]+(==|\!=|\>=|\>|\<=|\<|)')/g, '_WCMA_$1');var conditionalFormDatas=conditionalformdata.split('_WCMA_');var isActive=dyndisplayOperator=='or'?false:true;var isActiveCurrent=false;for(var i=0; i < conditionalFormDatas.length; i++){conditionalFormDatas[i]=conditionalFormDatas[i].replace("\\'", 'WBSAP');/^([\w\-]+)(\=\=|\!\=|<\=|<|>|>\=|pregMatch|\!pregMatch|contains|\!contains|pregiMatch|\!pregiMatch|containsi|\!containsi|callback)\'([^\']*)\'/.test(conditionalFormDatas[i]);var elementToObserveName=RegExp.$1;var operator=RegExp.$2;var condition=RegExp.$3.replace('WBSAP', "'").replace('wMyProject::', '');if(condition.substr(0, 1)=='$'){var elementWidthConditionName=condition.substr(1);var elementWithConditionValue=null;var elementWithCondition=cE.closest('form').find("*[name='" + elementWidthConditionName + "']");if(elementWithCondition.length!=0){condition=elementWithCondition.val();if(elementWithCondition.attr('type')=='radio'){elementWithConditionValue=cE.closest('form').find("input[name='" + elementWidthConditionName + "']:checked, input[name='" + elementWidthConditionName + "[]:checked']");if(elementWithConditionValue.length!=0){condition=elementWithConditionValue.val();}else{condition='';}}else if(elementWithCondition.attr('type')=='checkbox'){condition=new Array();elementToObserve.each(function(){if(jQuery(this).is(':checked')){condition.push(jQuery(this).val());}});}}}var elementToObserve=cE.closest('form').find("*[name='" + elementToObserveName + "'], *[name='" + elementToObserveName + "[]']");
15var elementToObserveValue=elementToObserve;var value=elementToObserveValue.length > 0?elementToObserveValue.val():'';if(jQuery(elementToObserveValue).hasClass('elementInputDate')){value=value.replace(/^[a-zA-Z]+, /, '');if(/^\d\d\.\d\d\.\d\d\d\d$/.test(value)){value=value.substr(6, 4) + '-' + value.substr(3, 2) + '-' + value.substr(0, 2);}if(/^\d\d\.\d\d\.\d\d\d\d$/.test(condition)){condition=condition.substr(6, 4) + '-' + condition.substr(3, 2) + '-' + condition.substr(0, 2);}}if(elementToObserve.attr('type')=='file'){if(elementToObserve.attr('data-isUploaded')&&elementToObserve.attr('data-isUploaded')==='1'){value='wIsUploaded';}}else
16if(elementToObserve.attr('type')=='radio'){elementToObserveValue=cE.closest('form').find("input[name='" + elementToObserveName + "']:checked, input[name='" + elementToObserveName + "[]:checked']");if(elementToObserveValue.length!=0){value=elementToObserveValue.val();}else{value='';}}else if(elementToObserve.attr('type')=='checkbox'){value=new Array();elementToObserve.each(function(){if(jQuery(this).is(':checked')){value.push(jQuery(this).val());}});}if(!elementToObserve.data('hasaddedobserver')){elementToObserve.data('hasaddedobserver', true);elementToObserve.on('change keyup', function(){wAdaptConditionalFormData();});}isActiveCurrent=false;if(operator=='<'||operator=='<='||operator=='>='||operator=='>
16'){if(!jQuery(elementToObserveValue).hasClass('elementInputDate')){value=isNaN(parseFloat(value))?0:parseFloat(value);}}var regExpOperator=null;if(operator=='pregMatch'||operator=='!pregMatch'){regExpOperator=new RegExp(condition);}else if(operator=='pregiMatch'||operator=='!pregiMatch'){regExpOperator=new RegExp(condition, 'i');}if(Array.isArray(value)&&condition==''){if(operator=='!='&&value.length!=0||operator=='=='&&value.length==0){if(dyndisplayOperator=='or'){isActive=true;break;}}else{if(dyndisplayOperator=='and'){isActive=false;break;}}}else if(Array.isArray(value)&&condition.indexOf('|')==-1){if(operator=='!='&&value.indexOf(condition)==-1||operator=='=='&&value.indexOf(condition)!=-1){if(dyndisplayOperator=='or'){isActive=true;break;}}else{if(dyndisplayOperator=='and'){isActive=false;break;}}}else if(Array.isArray(value)){var conditions=condition.split('|');isActiveCurrent=false;for(var j=0; j < conditions.length; j++){if(operator=='!='&&value.indexOf(conditions[j])==-1||operator=='=='&&value.indexOf(conditions[j])!=-1){isActiveCurrent=true;break;}}if(isActiveCurrent){if(dyndisplayOperator=='or'){isActive=true;break;}}else{if(dyndisplayOperator=='and'){isActive=false;break;}}}else if(operator=='pregMatch'&&regExpOperator.test(value)||operator=='!pregMatch'&&!regExpOperator.test(value)||operator=='pregiMatch'&&regExpOperator.test(value)||operator=='!pregiMatch'&&!regExpOperator.test(value)){if(dyndisplayOperator=='or'){isActive=true;break;}}else if(operator=='contains'&&value.indexOf(condition)!=-1||operator=='!contains'&&value.indexOf(condition)==-1||operator=='containsi'&&value.toLowerCase().indexOf(condition.toLowerCase())!=-1||operator=='!containsi'&&value.toLowerCase().indexOf(condition.toLowerCase())==-1){if(dyndisplayOperator=='or'){isActive=true;break;}}else if(operator=='!='&&value!=condition||operator=='=='&&value==condition||operator=='<'&&value < condition||operator=='<='&&value <=condition||operator=='>='&&value >=condition||operator=='>'&&value > condition){if(dyndisplayOperator=='or'){isActive=true;break;}}else if(operator=='callback'&&typeof(globalThis[condition])==='function'&&globalThis[condition](value)){if(dyndisplayOperator=='or'){isActive=true;break;}}else{if(dyndisplayOperator=='and'){isActive=false;break;}}}if(!isActive){break;}}var hasChangedDisplay=false;if(type=='showIf'&&!isActive||type=='hideIf'&&isActive){cE.addClass('wglConditionalFormdata');if(!cE.hasClass('wglHideConditionalFormdata')){hasChangedDisplay=true;}cE.addClass('wglHideConditionalFormdata');cE.removeClass('wglShowConditionalFormdata');cE.find('input, textarea, select').each(function(index){if(jQuery(this).attr('tabindex')&&jQuery(this).attr('tabindex')!=-1){jQuery(this).attr('data-tabindex', jQuery(this).attr('tabindex'));}if(typeof(wMaskAutofillIfConditionalHidden)!=='undefined'&&wMaskAutofillIfConditionalHidden&&jQuery(this).attr('type')!='hidden'|| typeof(wMaskAutofillIfConditionalHiddenIfTypeHidden)!=='undefined'&&wMaskAutofillIfConditionalHiddenIfTypeHidden&&jQuery(this).attr('type')=='hidden'){if(jQuery(this).attr('name')){jQuery(this).attr('name', jQuery(this).attr('name').replace(/~@~/g, ''));jQuery(this).attr('name', jQuery(this).attr('name').split('').join('~@~'));}if(jQuery(this).attr('id')){jQuery(this).attr('id', jQuery(this).attr('id').replace(/~@~/g, ''));jQuery(this).attr('id', jQuery(this).attr('id').split('').join('~@~'));}if(jQuery(this).attr('placeholder')){jQuery(this).attr('placeholder', jQuery(this).attr('placeholder').replace(/~@~/g, ''));jQuery(this).attr('placeholder', jQuery(this).attr('placeholder').split('').join('~@~'));}}if(typeof(wResetConditionalFormdataOnHide)!='undefined'&&wResetConditionalFormdataOnHide){if(typeof(jQuery(this).attr('data-valueinit'))!=='undefined'){if(jQuery(this).attr('type')=='checkbox'||jQuery(this).attr('type')=='radio'){jQuery(this).prop('checked', jQuery(this).data('valueinit')==jQuery(this).attr('value')?true:false);}else if(jQuery(this).attr('type')=='hidden'){if(typeof(wResetConditionalFormdataOnHideIfTypeHidden)=='undefined'||wResetConditionalFormdataOnHideIfTypeHidden){if((!jQuery(this).attr('name')||jQuery(this).attr('name').indexOf('wFormToken')==-1)&&jQuery(this).attr('id').indexOf('wFormToken')==-1&&(!jQuery(this).attr('id')||jQuery(this).attr('id').indexOf('inputUploader-')==-1)){jQuery(this).val(jQuery(this).attr('data-valueinit'));}}}else{jQuery(this).val(jQuery(this).attr('data-valueinit'));}}else if(typeof(jQuery(this).attr('data-valueinittmp'))!=='undefined'){if(jQuery(this).attr('type')=='checkbox'||jQuery(this).attr('type')=='radio'){jQuery(this).prop('checked', false);}else if(jQuery(this).attr('type')=='hidden'){if(typeof(wResetConditionalFormdataOnHideIfTypeHidden)=='undefined'||wResetConditionalFormdataOnHideIfTypeHidden){if((!jQuery(this).attr('name')||jQuery(this).attr('name').indexOf('wFormToken')==-1)&&jQuery(this).attr('id').indexOf('wFormToken')==-1&&(!jQuery(this).attr('id')||jQuery(this).attr('id').indexOf('inputUploader-')==-1)){jQuery(this).val('');}}}else{jQuery(this).val('');}}else{if(jQuery(this).attr('type')=='checkbox'||jQuery(this).attr('type')=='radio'){jQuery(this).attr('data-valueinittmp', jQuery(this).prop('checked')?'checked':'unchecked');jQuery(this).prop('checked', false);}else if(jQuery(this).attr('type')=='hidden'){if(typeof(wResetConditionalFormdataOnHideIfTypeHidden)=='undefined'||wResetConditionalFormdataOnHideIfTypeHidden){if((!jQuery(this).attr('name')||jQuery(this).attr('name').indexOf('wFormToken')==-1)&&jQuery(this).attr('id').indexOf('wFormToken')==-1&&(!jQuery(this).attr('id')||jQuery(this).attr('id').indexOf('inputUploader-')==-1)){jQuery(this).attr('data-valueinittmp', jQuery(this).val());jQuery(this).val('');}}}else{jQuery(this).attr('data-valueinittmp', jQuery(this).val());jQuery(this).val('');}}}jQuery(this).attr('tabindex',-1);});}else{if(!cE.hasClass('wglShowConditionalFormdata')){hasChangedDisplay=true;}cE.addClass('wglConditionalFormdata');cE.removeClass('wglHideConditionalFormdata');cE.addClass('wglShowConditionalFormdata');
16cE.find('input, textarea, select').each(function(index){if(jQuery(this).attr('data-tabindex')){jQuery(this).attr('tabindex', jQuery(this).attr('data-tabindex'));}else{jQuery(this).removeAttr('tabindex');}if(typeof(wMaskAutofillIfConditionalHidden)!=='undefined'&&wMaskAutofillIfConditionalHidden&&jQuery(this).attr('type')!='hidden'|| typeof(wMaskAutofillIfConditionalHiddenIfTypeHidden)!=='undefined'&&wMaskAutofillIfConditionalHiddenIfTypeHidden&&jQuery(this).attr('type')=='hidden'){if(jQuery(this).attr('id')){jQuery(this).attr('id', jQuery(this).attr('id').replace(/~@~/g, ''));}if(jQuery(this).attr('name')){jQuery(this).attr('name', jQuery(this).attr('name').replace(/~@~/g, ''));}if(jQuery(this).attr('placeholder')){jQuery(this).attr('placeholder', jQuery(this).attr('placeholder').replace(/~@~/g, ''));}}if(typeof(jQuery(this).attr('data-valueinittmp'))!=='undefined'){if(jQuery(this).attr('type')=='checkbox'||jQuery(this).attr('type')=='radio'){if(jQuery(this).attr('data-valueinittmp')==='checked'){jQuery(this).prop('checked', true);}else if(jQuery(this).attr('data-valueinittmp')==='unchecked'){jQuery(this).prop('checked', false);}}else{jQuery(this).val(jQuery(this).attr('data-valueinittmp'));}jQuery(this).removeAttr('data-valueinittmp');}else if(jQuery(this).attr('type')=='hidden'&&(!jQuery(this).attr('name')||jQuery(this).attr('name').indexOf('wFormToken')==-1)&&(!jQuery(this).attr('id')||jQuery(this).attr('id').indexOf('inputUploader-')==-1)&&typeof(jQuery(this).attr('data-valueinit'))!='undefined'){jQuery(this).val(jQuery(this).attr('data-valueinit'));}});}if(hasChangedDisplay&&callbackJS!=''){eval('if(typeof('+callbackJS+')==\'function\'){'+callbackJS+'()}');}if(cE.closest('form').length!=0){var currentForm=cE.closest('form');if(currentForm.attr('data-hasinputstovalidate')=='1'){currentForm.attr('data-hasinputsinvalid', '0');currentForm.find('*[data-isinvalid="1"]').each(function(){if(jQuery(this).closest('.wglHideConditionalFormdata').length==0){currentForm.attr('data-hasinputsinvalid', '1');}});}}});};wAdaptParallax=function(event){wUiTmp['lastEventType']=event?event.type:'';wUiTmp['elements-wglParallaxBackground']=wUiTmp['elements-wglParallaxBackground']?wUiTmp['elements-wglParallaxBackground']:jQuery('.wglParallaxBackground');wUiTmp['elements-wglParallaxContent']=wUiTmp['elements-wglParallaxContent']?wUiTmp['elements-wglParallaxContent']:jQuery('.wglParallaxContent');if(typeof(wEditor)=='undefined'){wUiTmp['elements-wglParallaxBackground'].each(function(index){var cE=jQuery(this);var fixedIfNotSupported=cE.data('parallaxbackgrounddirection')=='fixedIfNotSupported';if(fixedIfNotSupported&&!/(iPod|iPhone|iPad)/i.test(navigator.platform)){return true;}if(wUiTmp['lastEventType']!='resize'&&cE.data('disableParallax')=='1'){wUiTmp['adaptParallax']=false;return false;}var minWidth=(cE.data('parallaxbackgroundminwidth')&&!isNaN(cE.data('parallaxbackgroundminwidth'))?parseInt(cE.data('parallaxbackgroundminwidth')):0);var winWidth=wUiTmp['lastWindowWidth'];if(winWidth < minWidth){return false;}var offsetTop=parseInt(cE.offset().top);var offsetTopInit=0;var offsetHeight=parseInt(cE.outerHeight());var offsetWidth=parseInt(cE.outerWidth());var posInsideTop=wUiTmp['lastScrollTop'] + wUiTmp['lastWindowHeight']-offsetTop;var posInsideBottom=offsetTop + offsetHeight-wUiTmp['lastScrollTop'];var posTopInside=wUiTmp['lastScrollTop']-offsetTop;var useEdgeOnInit=cE.data('useedgeoninit')=='1'?true:false;var moveMax=offsetHeight + wUiTmp['lastWindowHeight'];var backgroundHeight=offsetHeight;var backgroundWidth=offsetWidth;if(posInsideTop > 0&&posInsideBottom > 0){var posTopPercentage=posInsideTop / moveMax;var posTopPercentageBottom=posTopInside / (wUiTmp['lastWindowHeight']-offsetHeight);var backgroundPositionTop=0;var direction=(cE.data('parallaxbackgrounddirection')?cE.data('parallaxbackgrounddirection').toLowerCase():'bottom');var factor=(cE.data('parallaxbackgroundfactor')?cE.data('parallaxbackgroundfactor'):0.25);var offset=(cE.data('parallaxbackgroundoffset')?parseFloat(cE.data('parallaxbackgroundoffset')):0);var sizeStart=(cE.data('parallaxbackgroundsizestart')?parseFloat(cE.data('parallaxbackgroundsizestart')):1);var sizeEnd=(cE.data('parallaxbackgroundsizeend')?parseFloat(cE.data('parallaxbackgroundsizeend')):1);var parallaxSizeMode=(cE.data('parallaxbackgroundsizemode')?cE.data('parallaxbackgroundsizemode'):'');var parallaxElement=(cE.data('parallaxbackgroundelement')?document.getElementById(cE.data('parallaxbackgroundelement')):null);var transformSize='';var sizeFactor=1;if(fixedIfNotSupported&&(!cE.data('backgroundHeight')||wUiTmp['hasToAdaptParallax'])){var hasBackgroun
16dContainer=true;var elementBackgroundImageContainer=cE.find('.backgroundContainer > div, .backgroundContainer > picture');if(elementBackgroundImageContainer.length >=1){backgroundHeight=jQuery(window).height();if(elementBackgroundImageContainer.parent().is(":visible")){elementBackgroundImageContainer.first().css({'position':'absolute', 'height':'100vh'});cE.data('backgroundHeight', backgroundHeight);}}}else if((direction.indexOf('top')!=-1||direction.indexOf('bottom')!=-1)&&(!cE.data('backgroundHeight')||wUiTmp['hasToAdaptParallax'])){var hasBackgroundContainer=true;var elementBackgroundImageContainer=cE.find('.backgroundContainer > div, .backgroundContainer > picture');if(elementBackgroundImageContainer.length >=1){backgroundHeight=(1 + factor) * elementBackgroundImageContainer.parent().height();if(elementBackgroundImageContainer.parent().is(":visible")){if(parallaxSizeMode!='original'){elementBackgroundImageContainer.first().css({'height':String(backgroundHeight) + 'px'});}cE.data('backgroundHeight', backgroundHeight);}}}else if((direction.indexOf('left')!=-1||direction.indexOf('right')!=-1)&&(!cE.data('backgroundWidth')||wUiTmp['hasToAdaptParallax'])){var hasBackgroundContainer=true;var elementBackgroundImageContainer=cE.find('.backgroundContainer > div, .backgroundContainer > picture');if(elementBackgroundImageContainer.length >=1){backgroundWidth=(1 + factor) * elementBackgroundImageContainer.parent().width();if(elementBackgroundImageContainer.parent().is(":visible")){if(parallaxSizeMode!='original'){elementBackgroundImageContainer.first().css({'width':String(backgroundWidth) + 'px'});}cE.data('backgroundWidth', backgroundWidth);}}}backgroundHeight=cE.data('backgroundHeight')?cE.data('backgroundHeight'):backgroundHeight;backgroundWidth=cE.data('backgroundWidth')?cE.data('backgroundWidth'):backgroundWidth;var transform3D='';if(fixedIfNotSupported){backgroundPositionTop='' + String(Math.round(posTopInside));transform3D='translate3d(0, ' + String(backgroundPositionTop) + 'px, 0)';}else if(direction.indexOf('top')!=-1){posBase=(backgroundHeight-offsetHeight) * (0.5);posBaseOffset=(backgroundHeight-offsetHeight) * (0.5 + offset);posDiff=(backgroundHeight-offsetHeight) * posTopPercentage-posBase;posDiff=posDiff * (offset==0?1:(0.5-offset) * 2);pos=posBaseOffset + posDiff;backgroundPositionTop='-' + String(Math.round(pos));transform3D='translate3d(0, ' + String(backgroundPositionTop) + 'px, 0)' ;}else if(direction.indexOf('bottom')!=-1||direction==''){posBase=(backgroundHeight-offsetHeight) * (0.5-1);posBaseOffset=(backgroundHeight-offsetHeight) * (0.5-1 + offset);posDiff=(backgroundHeight-offsetHeight) * (posTopPercentage-1)-posBase;posDiff=posDiff * (offset==0?1:(0.5-offset) * 2);pos=posBaseOffset + posDiff;backgroundPositionTop='' + String(Math.round(pos));transform3D='translate3d(0, ' + String(backgroundPositionTop) + 'px, 0)';}else if(direction.indexOf('right')!=-1){posBase=(backgroundWidth-offsetWidth) * (0.5-1);posBaseOffset=(backgroundWidth-offsetWidth) * (0.5-1 + offset);posDiff=(backgroundWidth-offsetWidth) * (posTopPercentage-1)-posBase;posDiff=posDiff * (offset==0?1:(0.5-offset) * 2);pos=posBaseOffset + posDiff;backgroundPositionLeft='' + String(Math.round(pos));transform3D='translate3d(' + String(backgroundPositionLeft) + 'px, 0, 0)';}else if(direction.indexOf('left')!=-1){posBase=(backgroundWidth-offsetWidth) * (0.5);posBaseOffset=(backgroundWidth-offsetWidth) * (0.5 + offset);posDiff=(backgroundWidth-offsetWidth) * (posTopPercentage)-posBase;posDiff=posDiff * (offset==0?1:(0.5-offset) * 2);pos=-(posBaseOffset + posDiff);backgroundPositionLeft='' + String(Math.round(pos));transform3D='translate3d(' + String(backgroundPositionLeft) + 'px, 0, 0)';}transformSize='';if(sizeStart > 1){sizeFactor=posTopPercentage-1;contentSize=((1-sizeStart) * sizeFactor) + sizeStart;transformSize=' scale(' + String(contentSize) + ')';}else if(sizeEnd > 1){sizeFactor=posTopPercentage;contentSize=sizeStart + (sizeEnd-sizeStart) * posTopPercentage;transformSize=' scale(' + String(contentSize) + ')';}parallaxElement=cE.find('.backgroundContainer > div, .backgroundContainer > picture');if(parallaxElement.length >=1){if((direction.indexOf('left')!=-1||direction.indexOf('right')!=-1)&&parallaxElement.first().height()===0){parallaxElement.first().css({'height':'100%', 'transform':transform3D});}else{parallaxElement.first().css({'transform':transform3D});}}if(transformSize!=''){parallaxElement=cE.find('.backgroundContainer');if(parallaxElement.length >=1){parallaxElement.first().css({'transform':transformSize});}}}});wUiTmp['elements-wglParallaxContent'].each(function(index){var cE=jQuery(this);if(wUiTmp['lastEventType']!='resize'&&cE.data('disableParallax')=='1'){wUiTmp['adaptParallax']=false;return false;}var minWidth=(cE.data('parallaxcontentminwidth')&&!isNaN(cE.data('parallaxcontentminwidth'))?parseInt(cE.data('parallaxcontentminwidth')):0);var winWidth=wUiTmp['lastWindowWidth'];if(typeof(winWidth)=='undefined'||winWidth < minWidth){return false;}var offsetTop=parseInt(cE.parent().offset().top);var offsetTopInit=0;var offsetHeight=parseInt(cE.outerHeight());var offsetWidth=parseInt(cE.outerWidth());var posInsideTop=wUiTmp['lastScrollTop'] + wUiTmp['lastWindowHeight']-offsetTop;var posInsideBottom=offsetTop + offsetHeight-wUiTmp['lastScrollTop'];var posTopInside=wUiTmp['lastScrollTop']-offsetTop;var useEdgeOnInit=cE.data('useedgeoninit')=='1'?true:false;var moveMax=offsetHeight + wUiTmp['lastWindowHeight'];var backgroundHeight=offsetHeight;var elementHeight=offsetHeight;if(offsetHeight==0){return false;}if(posInsideTop > 0&&posInsideBottom > 0){var posTopPercentage=posInsideTop / moveMax;var posTopPercentageBottom=posTopInside / (wUiTmp['lastWindowHeight']-offsetHeight);var contentPositionTop=0;var direction=(cE.data('parallaxcontentdirection')?cE.data('parallaxcontentdirection').toLowerCase():'bottom');var directionElement=(cE.data('parallaxcontentdirectionelement')?cE.data('parallaxcontentdirectionelement').toLowerCase():'');var factor=(cE.data('parallaxcontentfactor')?cE.data('parallaxcontentfactor') * 2:0.5);var start=(cE.data('parallaxcontentstart')?cE.data('parallaxcontentstart'):0);var end=(cE.data('parallaxcontentend')?cE.data('parallaxcontentend'):1);var sizeStart=(cE.data('parallaxcontentsizestart')?parseFloat(cE.data('parallaxcontentsizestart')):1);var sizeEnd=(cE.data('parallaxcontentsizeend')?parseFloat(cE.data('parallaxcontentsizeend')):1);var opacityStart=(cE.data('parallaxcontentopacitystart')?parseFloat(cE.data('parallaxcontentopacitystart')):1);var opacityEnd=(cE.data('parallaxcontentopacityend')?parseFloat(cE.data('parallaxcontentopacityend')):1);var timingfunction=(cE.data('parallaxcontenttiminfunction')?cE.data('parallaxcontenttiminfunction'):'');var transformSize='';var sizeFactor=1;backgroundHeight=offsetHeight * 2;if(posTopPercentage >=start&&posTopPercentage <=end){var posTopPercentageRel=posTopPercentage-end;var posSizePercentageRel=posTopPercentage-end;if(directionElement=='from'){posTopPercentageRel=(1 + posTopPercentageRel * 1 + posTopPercentageRel) + (1-2 * start);posSizePercentageRel=(1 + posSizePercentageRel * 1 + posSizePercentageRel) + (1-2 * start);}else if(directionElement=='to'){posTopPercentageRel=(1 + posTopPercentageRel * 1 + posTopPercentageRel)-(1-2 * start);posSizePercentageRel=(1 + posSizePercentageRel * 1 + posSizePercentageRel)-(1-2 * start);}else{posTopPercentageRel=(1 + posTopPercentageRel * 1 + posTopPercentageRel);posSizePercentageRel=(1 + posSizePercentageRel * 1 + posSizePercentageRel);}posTopPercentageRelOrig=posTopPercentageRel
17expo=0;if(timingfunction!=''&&timingfunction!='linear'){if(timingfunction=='easeInExpo'){expo=1 + 0.5;}else if(timingfunction=='easeOutExpo'){expo=1 / (1 + 0.5);}else if(/expo\(([^\)]*)\)/.test(timingfunction)){expo=RegExp.$1;if(expo < 0){expo=1 / (1-expo);}}}if(expo > 0){if(posTopPercentageRel < 0){posTopPercentageRel=-Math.pow(-posTopPercentageRel, expo);}else{posTopPercentageRel=Math.pow(posTopPercentageRel, expo);}}pos=elementHeight * posTopPercentageRel * factor;transformSize='';parallaxOpacity='';sizeFactor=posSizePercentageRel;opacityFactor=posSizePercentageRel;if(sizeStart < 1||sizeStart > 1){contentSize=((1-sizeStart) * sizeFactor) + sizeStart;transformSize=' scale(' + String(Math.max(0, contentSize)) + ')';}else if(sizeEnd < 1||sizeEnd >
17 1){contentSize=((sizeEnd-1) * sizeFactor) + sizeStart;transformSize=' scale(' + String(Math.max(0, contentSize)) + ')';}if(opacityStart < 1||opacityStart > 1){parallaxOpacity=String(((1-opacityStart) * opacityFactor) + opacityStart);cE.css({'opacity':parallaxOpacity});}else if(opacityEnd < 1||opacityEnd > 1){parallaxOpacity=String(((opacityEnd-1) * opacityFactor) + opacityStart);cE.css({'opacity':parallaxOpacity});}if(direction.indexOf('top')!=-1){contentPositionTop=-Math.round(pos);cE.css({'transform':'translate(0, ' + String(contentPositionTop) + 'px)' + transformSize});}else if(direction.indexOf('bottom')!=-1||direction==''){contentPositionTop=Math.round(pos);cE.css({'transform':'translate(0, ' + String(contentPositionTop) + 'px)' + transformSize});}else if(direction.indexOf('right')!=-1){contentPositionTop=Math.round(pos);cE.css({'transform':'translate(' + String(contentPositionTop) + 'px, 0)' + transformSize});}else if(direction.indexOf('left')!=-1||direction==''){contentPositionTop=-Math.round(pos);cE.css({'transform':'translate(' + String(contentPositionTop) + 'px , 0)' + transformSize});}else if(direction.indexOf('none')!=-1&&transformSize!=''){cE.css({'transform':transformSize});}}else if(directionElement=='from'&&start > 0&&posTopPercentage < start&&(direction.indexOf('left')!=-1|| direction.indexOf('right')!=-1)){cE.css({'transform':'translate(' + String(0) + 'px, 0)'});}else if(directionElement=='from'&&start > 0&&posTopPercentage < start){cE.css({'transform':'translate(0, ' + String(0) + 'px)'});}else if(start > 0&&posTopPercentage < start){if(directionElement=='from'&&(direction.indexOf('left')!=-1|| direction.indexOf('right')!=-1)){cE.css({'transform':'translate(' + String(0) + 'px, 0)'});return;}else if(directionElement=='from'){cE.css({'transform':'translate(0, ' + String(0) + 'px)'});return;}else{posTopPercentageRel=-2 * (end-start);pos=elementHeight * posTopPercentageRel * factor;}if(direction.indexOf('top')!=-1){contentPositionTop=-Math.round(pos);cE.css({'transform':'translate(0, ' + String(contentPositionTop) + 'px)'});}else if(direction.indexOf('bottom')!=-1||direction==''){contentPositionTop=Math.round(pos);cE.css({'transform':'translate(0, ' + String(contentPositionTop) + 'px)'});}else if(direction.indexOf('right')!=-1){contentPositionTop=Math.round(pos);cE.css({'transform':'translate(' + String(contentPositionTop) + 'px, 0)'});}else if(direction.indexOf('left')!=-1||direction==''){contentPositionTop=-Math.round(pos);cE.css({'transform':'translate(' + String(contentPositionTop) + 'px , 0)'});}}else if(cE.length >=1){cE.css({'transform':'translate(0, ' + String(0) + 'px)'});}}});}wUiTmp['hasInitParallax']=true;wUiTmp['adaptParallax']=false;};wGetScrollTopDiff=function(options){var offsetTopFixed=0;if(typeof(getOffsetTopFixed)==='function'){offsetTopFixed=getOffsetTopFixed(options);if(isNaN(offsetTopFixed)){if(jQuery('#blockHeader').length > 0&&jQuery('#blockHeader').css('position')=='fixed'){offsetTopFixed=jQuery('#blockHeader').height() + jQuery('#blockHeader').offset().top-wUiTmp['lastScrollTop'];}else{offsetTopFixed=0;}}}else if(jQuery('#blockHeader').length > 0&&jQuery('#blockHeader').css('position')=='fixed'){var transformTop=0;if(/(\-?\w+(?:\.\w+)?)\)/.test(jQuery('#blockHeader').css('transform'))){transformTop=parseInt(RegExp.$1);}offsetTopFixed=jQuery('#blockHeader').height() + jQuery('#blockHeader').offset().top-transformTop-wUiTmp['lastScrollTop'];}return offsetTopFixed;};wScrollSmoothToTarget=function(element, event){var id, offsetTopFixed=0, targetName, elementTarget, scrollTop;var href=element.getAttribute('href');if(!href||href=='#'||href=='#wEmpty'){return false;}else if(element.href&&element.href.replace&&element.href.replace(/#[\S\s]*$/, '')!=location.href.replace(/#[\S\s]*$/, '')){return true;}else if(/(#.*)/.test(href)){targetName=RegExp.$1;targetSelector=targetName.replace(/\./, '\\.');elementTarget=jQuery(targetSelector);if(elementTarget.length==0){targetSelector="a[name='" + targetName.replace('#', '') + "']";elementTarget=jQuery(targetSelector);}if(elementTarget.length==0){return;}if(jQuery('.fullpage-wrapper').length!=0){var currentSection=jQuery(elementTarget).closest('.fp-section');if(currentSection.length!=0){event.stopPropagation();event.preventDefault();
17var anchorLink='fpa-' + String(currentSection.prevAll('.fp-section').length);currentSection.attr('data-anchor', anchorLink);jQuery.fn.fullpage.moveTo(anchorLink);jQuery(window).trigger('resize');return false;}}var currentTimestamp=new Date().getTime();if(elementTarget.length > 0&&!element.getAttribute('data-lct')||element.getAttribute('data-lct') < currentTimestamp-320){if(typeof(wOnBeforeScrollSmoothToTarget)==='function'){var rtc=wOnBeforeScrollSmoothToTarget(elementTarget);if(rtc===false){return false;}}element.setAttribute('data-lct', currentTimestamp);event.preventDefault();jQuery(element).parent().parent().find('li').removeClass('selected');jQuery(element).parent().addClass('selected');try{jQuery('body, html').stop(true, true);scrollDuration=parseInt(element.getAttribute('data-scrollsmoothtotargetduration')?element.getAttribute('data-scrollsmoothtotargetduration'):400);window.setTimeout(function(){var scrollTopDiff=wGetScrollTopDiff();var hasContainerInsideTopOnScroll=jQuery('.wglContainerInsideTopOnScroll *').length;var timeoutToAdaptAfterScrollSmoothToTarget=typeof wTimeoutToAdaptAfterScrollSmoothToTarget!='undefined'?wTimeoutToAdaptAfterScrollSmoothToTarget:16;wUiTmp['scrollingAuto']=element.getAttribute('data-scrollingauto')=='no'?false:true;jQuery('body, html').animate({scrollTop:elementTarget.offset().top-scrollTopDiff}, {duration:scrollDuration}).promise().done(function(){if(hasContainerInsideTopOnScroll!=jQuery('.wglContainerInsideTopOnScroll *').length){var scrollTopDiff=wGetScrollTopDiff();jQuery('body, html').animate({scrollTop:elementTarget.offset().top-scrollTopDiff}, {duration:scrollDuration}).promise().done(function(){window.setTimeout(function(){wUiTmp['scrollingAuto']=false;if(!(element.getAttribute('data-preventpushstate')=='1')){history.pushState(null, null, targetName);jQuery(window).trigger('hashchange');}if(typeof(wOnAfterScrollSmoothToTarget)==='function'){wOnAfterScrollSmoothToTarget(elementTarget);}jQuery(window).trigger('resize');}, timeoutToAdaptAfterScrollSmoothToTarget);});}else{window.setTimeout(function(){wUiTmp['scrollingAuto']=false;if(!(element.getAttribute('data-preventpushstate')=='1')){history.pushState(null, null, targetName);jQuery(window).trigger('hashchange');}if(typeof(wOnAfterScrollSmoothToTarget)==='function'){wOnAfterScrollSmoothToTarget(elementTarget);}jQuery(window).trigger('resize');}, timeoutToAdaptAfterScrollSmoothToTarget);}});}, 10);return false;}catch(e){}}}};wScrollSmoothToElement=function(elementTarget, options){var id, offsetTopFixed, scrollTop;options=options||{};elementTarget=jQuery(elementTarget);if(elementTarget.attr('data-scrollelement')=='no'){return false;}if( typeof( wScrollSmoothToElementForceScroll )!='undefined'&&wScrollSmoothToElementForceScroll===false ){return true;}if(jQuery('.fullpage-wrapper').length!=0){var currentSection=jQuery(elementTarget).closest('.fp-section');if(currentSection.length!=0){var anchorLink='fpa-' + String(currentSection.prevAll('.fp-section').length);currentSection.attr('data-anchor', anchorLink);jQuery.fn.fullpage.moveTo(anchorLink);if(typeof(wOnAfterScrollSmoothToElement)==='function'){wOnAfterScrollSmoothToElement(elementTarget);}jQuery(window).trigger('resize');return false;}}var currentTimestamp=new Date().getTime();if(elementTarget.length > 0&&!elementTarget.attr('data-lct')||elementTarget.attr('data-lct') < currentTimestamp-320){elementTarget.attr('data-lct', currentTimestamp);try{jQuery('body, html').stop(true, true);scrollDuration=parseInt(elementTarget.attr('data-scrollsmoothtotargetduration')?elementTarget.attr('data-scrollsmoothtotargetduration'):400);var scrollTopDiff=typeof(options['scrollTopDiff'])!='undefined'?options['scrollTopDiff']:wGetScrollTopDiff();if(typeof(options['scrollTopOffset'])!='undefined'){scrollTopDiff +=options['scrollTopOffset'];}else if(jQuery('html').is('[data-offsetscrollsmoothtoelement]')&&jQuery('html').attr('data-offsetscrollsmoothtoelement')!=''){if(scrollTopDiff===0) scrollTopDiff=parseInt(jQuery('html').attr('data-offsetscrollsmoothtoelement'));else scrollTopDiff-=parseInt(jQuery('html').attr('data-offsetscrollsmoothtoelement'));}var visibleMin=document.body.scrollTop + scrollTopDiff;var visibleMax=document.body.scrollTop + wUiTmp['lastWindowHeight'];var posTopElement=elementTarget.offset().top;if((typeof(wScrollSmoothToElementForceScroll)=='undefined'||!wScrollSmoothToElementForceScroll)&&(typeof(options['forceScroll'])=='undefined'||!options['forceScroll'])&&posTopElement > visibleMin&&posTopElement < visibleMax){return true;}wUiTmp['scrollingAuto']=typeof(options['scrollingAuto'])!='undefined'?options['scrollingAuto']:true;jQuery('body, html').animate({scrollTop:elementTarget.offset().top-scrollTopDiff}, {duration:scrollDuration, 'easing':typeof(wScrollSmoothToElementEasing)!='undefined'&&wScrollSmoothToElementEasing!=''?wScrollSmoothToElementEasing:'swing', complete:function(){window.setTimeout(function(){if(options['setFocusAfterScrolling']!=null&&!wUiTmp['scrollingAuto']&&typeof(wAccessibility)!=='undefined'&&wAccessibility['accessEventHandler']!=null&&wAccessibility['accessEventHandler'].active){wAccessHandler.setFocusToCurElement(elementTarget);};wUiTmp['scrollingAuto']=false;jQuery(window).trigger('resize');}, 16);}});return false;}catch(e){console.log(e)}}};
17wAddIsOnDarkBackground=function(element){if(jQuery(element).hasClass('isLightBackground')){jQuery(element).data('wasLightBackground', '1');jQuery(element).removeClass('isLightBackground');}jQuery(element).addClass('isDarkBackground');};wRemoveIsOnDarkBackground=function(element){if(jQuery(element).data('wasLightBackground')=='1'){jQuery(element).addClass('isLightBackground')
18}jQuery(element).removeClass('isDarkBackground');};wAddIsOnLightBackground=function(element){if(jQuery(element).hasClass('isDarkBackground')){jQuery(element).data('wasDarkBackground', '1');jQuery(element).removeClass('isDarkBackground');}jQuery(element).addClass('isLightBackground');};wRemoveIsOnLightBackground=function(element){if(jQuery(element).data('wasDarkBackground')=='1'){jQuery(element).addClass('isDarkBackground')
19}jQuery(element).removeClass('isLightBackground');};wHasWebpSupport=function(callback){if(typeof(callback)==='function'){var hw=false;if(/(Firefox|Chrome)\/(\d+)/.test(navigator.userAgent)){var bt=RegExp.$1;var bv=RegExp.$2;if(bt=='Firefox'&&bv >=65){hw=true;}else if(bt=='Chrome'&&bv >=25){hw=true;}}if(hw){wUiTmp['hasWebpSupport']='y';callback();return false;}}if(wUiTmp['hasWebpSupport']){return wUiTmp['hasWebpSupport']=='y';}var im=new Image();im.onload=function(){wUiTmp['hasWebpSupport']=(im.width==1?'y':'n');};im.onerror=function(){wUiTmp['hasWebpSupport']='n';};im.src='data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA=';if(typeof(callback)==='function'){window.setTimeout(function(){callback();}, 32);}return false;};wProcessPictureZoomer=function(){jQuery('.pictureZoomer').each(function(index){if(typeof(wMinEnlargementToShowPictureZoomer)=='undefined'||wMinEnlargementToShowPictureZoomer <=1){jQuery(this).show();}else if(jQuery(this).hasClass('pictureZoomerNotEqual')){jQuery(this).show();}else{if(jQuery(this).parent().width() > 0&&jQuery(window).width() / jQuery(this).parent().width() >=wMinEnlargementToShowPictureZoomer){jQuery(this).next('.picture').removeAttr('data-isinactivelightbox');jQuery(this).show();}else{jQuery(this).hide();jQuery(this).next('.picture').attr('data-isinactivelightbox', '1');}}});jQuery('span.pictureZoomer ~ picture').on('keyup', function(e){var cE=jQuery(this);var zE=cE.prev('span.pictureZoomer');zE.attr('tabindex', 0);cE.on('blur', function(e){zE.focus();cE.attr('tabindex',-1);})
20zE.on('blur', function(e){cE.attr('tabindex', 0);});zE.on('keyup', function(e){if(e.keyCode==13){cE.trigger('click');}e.stopImmediatePropagation();});e.stopImmediatePropagation();});};jQuery.fn.wOptimizePictureSizes=function(){jQuery.each(jQuery(this), function(){wOptimizePictureSizes(jQuery(this));});};wOptimizePictureSizes=function(cO){if(!wUiTmp['hasWebpSupport']){wHasWebpSupport(function(c0){wOptimizePictureSizes(c0)});return false;}if(typeof cO==='undefined'){cO=jQuery('body');}var cORespData=cO.find("div[data-responsivebackground]");cORespData.each(function(){var cE=jQuery(this);if(cE.data('backgroundimagewebp')&&wHasWebpSupport()){cE.data('backgroundimage', cE.data('backgroundimagewebp'));}if(cE.data('backgroundimagewebpmin')&&wHasWebpSupport()){cE.data('backgroundimagemin', cE.data('backgroundimagewebpmin'));}var cEWidth=cE.width();var responsiveBackgroundMinWidth=cE.data('responsivebackgroundminwidth')?cE.data('responsivebackgroundminwidth'):768;var minwidthVisible=cE.data('minwidthvisible')?cE.data('minwidthvisible'):0;if(cEWidth > minwidthVisible&&cE.data('backgroundimage')&&cEWidth >=responsiveBackgroundMinWidth){cE.css({'background-image':'url("' + cE.data('backgroundimage') + '")'});}else if(cEWidth > minwidthVisible&&cE.data('backgroundimagemin')){cE.css({'background-image':'url("' + cE.data('backgroundimagemin') + '")'});}else if(cEWidth > minwidthVisible&&cE.data('backgroundimage')){cE.css({'background-image':'url("' + cE.data('backgroundimage') + '")'});}});var cOImgData=cO.find("img[data-src2x]:not(.wglLazyLoadInit), img.wglLazyLoad:not(.wglLazyLoadInit)");cOImgData.each(function(){var currentImg=jQuery(this);var offsetTop=parseInt(currentImg.offset().top);var srcMin=currentImg.data('srcmin')?currentImg.data('srcmin'):'';var widthCurrent=parseInt(currentImg.width());var attrWidthCur=parseInt(typeof(currentImg.attr('width'))!='undefined'?currentImg.attr('width'):0);var widthMin=parseInt(srcMin.replace(/.*@min/, '').replace(/\..*/, ''));if(currentImg.attr('data-maxwidthifinvisible')&&currentImg.attr('data-maxwidthifinvisible') > widthCurrent){widthCurrent=currentImg.attr('data-maxwidthifinvisible');}if(devicePixelRatio >=hdLimitDpr&&typeof(currentImg.attr('data-src2x'))!='undefined'&&currentImg.attr('data-src2x')!=''&&attrWidthCur < widthCurrent * 2&&currentImg.attr('data-ishd')!='1'){currentImg.attr('src', currentImg.data('src2x')).attr('data-ishd', '1');}else if(typeof(currentImg.attr('data-src2x'))!='undefined'&&currentImg.attr('data-src2x')!=''&&attrWidthCur < widthCurrent&&currentImg.attr('data-ishd')!='1'){currentImg.attr('src', currentImg.data('src2x')).attr('data-ishd', '1');}else if(typeof(currentImg.attr('data-srcmin'))!='undefined'&&currentImg.attr('data-srcmin')!=''&&widthCurrent < widthMin&&widthMin < attrWidthCur&&currentImg.attr('data-ishd')!='1'&&currentImg.attr('data-isld')!='1'){if(typeof(currentImg.attr('src'))!='undefined'&&currentImg.attr('src').indexOf('data:image')==0&&
20currentImg.attr('data-ismin')!='1'){currentImg.attr('src', currentImg.data('srcmin')).attr('data-ismin', '1');}}else if(typeof(currentImg.attr('data-src'))!='undefined'&&currentImg.attr('data-src')!=''&&currentImg.attr('data-ishd')!='1'&&currentImg.attr('data-isld')!='1'){currentImg.attr('src', currentImg.data('src')).attr('data-isld', '1');}});};wProcessWglExpandToParent=function(){jQuery('.wglExpandToParent').each(function(index){var cE=jQuery(this);cE.css('height', '');});jQuery('.wglExpandToParent').each(function(index){var cE=jQuery(this);var height=cE.parent().height();cE.css('height', String(height) + 'px');});};wProcessWglAdjustHeightMax=function(){jQuery('.wglAdjustHeightMax').each(function(index){var cE=jQuery(this);var offsetLeft=0;var offsetLeftLast=0;var maxHeight=0;var adjust=true;var positionCol=0;var childsToAdapt=new Array();var numberChilds=0;var subElement=null;var elementHeight=0;cE.children('*').each(function(index){var className=jQuery(this).attr('class')||'';if(className.toLowerCase().indexOf('clear')==-1&&className.toLowerCase().indexOf('editor')==-1&&className.toLowerCase().indexOf('listentryquickfilterinvisible')==-1){numberChilds++;}});cE.children('*').each(function(index){subElement=jQuery(this);var className=jQuery(this).attr('class')||'';if(className.toLowerCase().indexOf('clear')==-1&&className.toLowerCase().indexOf('editor')==-1&&className.toLowerCase().indexOf('listentryquickfilterinvisible')==-1){if(jQuery(this).data('wHasSetHeightToAjustHeightMax')=='1'){jQuery(this).css({'height':''});}offsetLeft=jQuery(this).get(0).offsetLeft-(jQuery(this).parent().css('position')=='relative'?0:jQuery(this).get(0).parentNode.offsetLeft);if(index > 0&&(offsetLeft==0||offsetLeft <=offsetLeftLast)&&jQuery(this).css('position')!='absolute'){if(positionCol==1){childsToAdapt=new Array();maxHeight=0;}positionCol=0;if(offsetLeft <=offsetLeftLast){offsetLeft=0;}}positionCol++;elementHeight=subElement.css('box-sizing')=='border-box'?subElement.outerHeight():subElement.height();if(index + 1==numberChilds&&positionCol > 1){maxHeight=elementHeight > maxHeight?elementHeight:maxHeight;childsToAdapt.push(jQuery(this));}if(childsToAdapt.length > 1&&(index > 0&&positionCol==1||index + 1==numberChilds)){for(i=0; i < childsToAdapt.length; i++){childToAdapt=childsToAdapt[i];var className=childToAdapt.attr('class')||'';if(className.toLowerCase().indexOf('clear')==-1&&className.toLowerCase().indexOf('editor')==-1&&className.toLowerCase().indexOf('listentryquickfilterinvisible')==-1){childToAdapt.css({'height':maxHeight});childToAdapt.data('wHasSetHeightToAjustHeightMax', '1');}}childsToAdapt=new Array();if(index + 1==numberChilds){childToAdapt=subElement;var className=childToAdapt.attr('class')||'';if(className.toLowerCase().indexOf('clear')==-1&&className.toLowerCase().indexOf('editor')==-1&&className.toLowerCase().indexOf('listentryquickfilterinvisible')==-1){childToAdapt.css({'height':(positionCol==1?elementHeight:maxHeight)});childToAdapt.data('wHasSetHeightToAjustHeightMax', '1');}}maxHeight=0;}offsetLeftLast=offsetLeft;maxHeight=elementHeight > maxHeight?elementHeight:maxHeight;childsToAdapt.push(jQuery(this));}});});jQuery('.wglAdjustHeightElement').each(function(index){try{if(jQuery(this).data('initAdjustHeightElement')==1) return true;var cE=jQuery(this);var children=cE.children('*');var childsToAdapt=new Array();var maxHeight=0;var adaptHeight=0;if(children.length > 1){jQuery(window).on('resize', function(){jQuery('.wglAdjustHeightElement').data('initAdjustHeightElement', 0);});cE.children('*').each(function(index){if(typeof jQuery(this).data('initAdjustHeightElement')!='undefined') jQuery(this).css({'height':''});var height=jQuery(this).outerHeight(true);if(maxHeight < height) maxHeight=height;childsToAdapt.push(jQuery(this));});adaptHeight=maxHeight;if(typeof onBeforeAdjustHeightElement==='function'){adaptHeight=onBeforeAdjustHeightElement(childsToAdapt);}if(adaptHeight > 0){for(var i=0; i < childsToAdapt.length; i++){childsToAdapt[i].css({'height':String(adaptHeight) + 'px'});}}}jQuery(this).data('initAdjustHeightElement', 1);}catch(e){}});};wUpdateInputDate=function(input){var elementInput=jQuery('#' + input.id.replace(/(_wDay|_wMonth|_wYear)$/, '').replace('wTmp_', ''));var dateFormat=elementInput.attr('data-dateformat');if(/dd\.\mm\.yyy/.test(dateFormat)){elementInput.val(jQuery('#wTmp_' + elementInput.attr('id') + '_wDay').val() + '.' + jQuery('#wTmp_' + elementInput.attr('id') + '_wMonth').val() + '.' + jQuery('#wTmp_' + elementInput.attr('id') + '_wYear').val());}else if(/mm\/dd\/yyyy/.test(dateFormat)){elementInput.val(jQuery('#wTmp_' + elementInput.attr('id') + '_wMonth').val() + '/' + jQuery('#wTmp_' + elementInput.attr('id') + '_wDay').val() + '/' + jQuery('#wTmp_' + elementInput.attr('id') + '_wYear').val());}else{elementInput.val(jQuery('#wTmp_' + elementInput.attr('id') + '_wYear').val() + '-' + jQuery('#wTmp_' + elementInput.attr('id') + '_wMonth').val() + '-' + jQuery('#wTmp_' + elementInput.attr('id') + '_wDay').val());}};jQuery.fn.wDatepicker=function(){if(jQuery(this).length==0){return false;}if(typeof jQuery.datepicker=='undefined'||typeof jQuery.datepicker!='undefined'&&typeof jQuery.datepicker.setDefaults=='undefined'||(typeof(datepickerRegional)=='undefined'&&wUiTmp['waitLoadDatepicker'] < 3)){wUiTmp['waitLoadDatepicker']=wUiTmp['waitLoadDatepicker']||0;if(wUiTmp['waitLoadDatepicker'] < 60){window.setTimeout(function(){jQuery('.wglDatepicker').wDatepicker();}, 100);wUiTmp['waitLoadDatepicker'] ++;}return false;}if(typeof(datepickerRegional)!='undefined'&&typeof(datepickerRegional['de'])!='undefined'){jQuery.datepicker.setDefaults(datepickerRegional['de']);}jQuery.each(jQuery(this), function(){jQuery(this).datepicker('destroy');var projectLang=document.documentElement.getAttribute('lang')?document.documentElement.getAttribute('lang'):'de';if(typeof(datepickerRegional)!='undefined'&&typeof(datepickerRegional[projectLang])!=='undefined'){jQuery.datepicker.regional[projectLang]=datepickerRegional[projectLang];}jQuery.datepicker.setDefaults(jQuery.datepicker.regional[projectLang]);var inputElement=jQuery(this);if(jQuery(this).get(0).nodeName=='DIV'){inputElement=jQuery('#' + jQuery(this).data('input'));}var attrDateMin=inputElement.data('datemin');var attrDateMax=inputElement.data('datemax');var changeYear=inputElement.data('changeyear')=='0'?false:true;var changeMonth=inputElement.data('changemonth')=='1'?true:false;var attrLimitSelectedDays=inputElement.data('limitselecteddays');var attrExcludeSelectedDays=inputElement.data('excludselecteddays');var minDate=null;var maxDate=null;if(!attrDateMin){}
20else if(attrDateMin.indexOf('today')!=-1){if(/today\s*\+\s*(\d+)years?/.test(attrDateMin)){minDate=new Date(new Date().setFullYear(new Date().getFullYear() + parseInt(RegExp.$1)));}else if(/today\s*\-\s*(\d+)years?/.test(attrDateMin)){minDate=new Date(new Date().setFullYear(new Date().getFullYear()-parseInt(RegExp.$1)));}else if(/today\s*\+\s*(\d+)/.test(attrDateMin)){minDate=new Date((new Date()).getTime() + parseInt(RegExp.$1) * 86400 * 1000);}else if(/today\s*\-\s*(\d+)/.test(attrDateMin)){minDate=new Date((new Date()).getTime()-parseInt(RegExp.$1) * 86400 * 1000);}else{minDate=new Date();}}else if(/lastDayOfMonthIfGt\-(\d+)/.test(attrDateMin)){lastDayOfMonth=new Date(new Date().getFullYear(), new Date().getMonth() + 1, 0, 0, 0, 0);today=new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate(), 0, 0, 0);if(((lastDayOfMonth.getTime()-today.getTime()) / 86400000) > parseInt(RegExp.$1)){minDate=lastDayOfMonth;}else{minDate=new Date(new Date().getFullYear(), new Date().getMonth() + 2, 0, 0, 0, 0);}}else if(/firstDayOfMonth/.test(attrDateMin)){minDate=new Date(new Date().getFullYear(), new Date().getMonth(), 1, 0, 0, 0);}else if(/lastDayOfMonth/.test(attrDateMin)){minDate=new Date(new Date().getFullYear(), new Date().getMonth() + 1, 0, 0, 0, 0);}else if(/firstDayOfNextMonthIfGt\-(\d+)/.test(attrDateMin)){firstDayOfNextMonth=new Date(new Date().getFullYear(), new Date().getMonth() + 1, 1, 0, 0, 0);today=new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate(), 0, 0, 0);if(((firstDayOfNextMonth.getTime()-today.getTime()) / 86400000) > parseInt(RegExp.$1)){minDate=firstDayOfNextMonth;}else{minDate=new Date(new Date().getFullYear(), new Date().getMonth() + 2, 1, 0, 0, 0);}}else if(/firstDayOfNextMonth/.test(attrDateMin)){minDate=new Date(new Date().getFullYear(), new Date().getMonth() + 1, 1, 0, 0, 0);}else if(/^callback:(.+)/.test(attrDateMin)){eval('if(typeof('+RegExp.$1+')===\'function\')minDate='+RegExp.$1+'()');}else if(/(>|<|>=|<=)\s*\$?(\w+)/.test(attrDateMin)){var operator=RegExp.$1;var elementName=RegExp.$2;jQuery(this).mousedown(function(){var elementRelation=jQuery('#' + elementName);if(elementRelation.length==1){var elementRelationVal=elementRelation.val();var tmpDateObject=new Date();var hasDate=false;if(/(\d\d)\.(\d\d)\.(\d\d\d\d)/.test(elementRelationVal)){tmpDateObject.setDate(RegExp.$1);tmpDateObject.setMonth(RegExp.$2-1);tmpDateObject.setFullYear(RegExp.$3);hasDate=true;}else if(/(\d\d\d\d)-(\d\d)-(\d\d)/.test(elementRelationVal)){tmpDateObject.setDate(RegExp.$3);tmpDateObject.setMonth(RegExp.$2-1);tmpDateObject.setFullYear(RegExp.$1);hasDate=true;}else if(/(\d\d)\/(\d\d)\/(\d\d\d\d)/.test(elementRelationVal)){tmpDateObject.setDate(RegExp.$2);tmpDateObject.setMonth(RegExp.$1-1);tmpDateObject.setFullYear(RegExp.$3);hasDate=true;}if(hasDate){if(operator=='>'){tmpDateObject=new Date(tmpDateObject.getTime() + 86400000);}else if(operator=='<'){tmpDateObject=new Date(tmpDateObject.getTime()-86400000);}jQuery(this).datepicker("option", (operator=='<'?"maxDate":"minDate"), tmpDateObject);}}});}else{minDate=new Date(attrDateMin);}if(!attrDateMax){}
20else if(attrDateMax.indexOf('today')!=-1){if(/today\s*\+\s*(\d+)years?/.test(attrDateMax)){maxDate=new Date(new Date().setFullYear(new Date().getFullYear() + parseInt(RegExp.$1)));}else if(/today\s*\-\s*(\d+)years?/.test(attrDateMax)){maxDate=new Date(new Date().setFullYear(new Date().getFullYear()-parseInt(RegExp.$1)));}else if(/today\s*\+\s*(\d+)/.test(attrDateMax)){maxDate=new Date((new Date()).getTime() + parseInt(RegExp.$1) * 86400 * 1000);}else if(/today\s*\-\s*(\d+)/.test(attrDateMax)){maxDate=new Date((new Date()).getTime()-parseInt(RegExp.$1) * 86400 * 1000);}else{maxDate=new Date();}}else if(/lastDayOfMonthIfGt\-(\d+)/.test(attrDateMax)){lastDayOfMonth=new Date(new Date().getFullYear(), new Date().getMonth() + 1, 0, 0, 0, 0);today=new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate(), 0, 0, 0);if(((lastDayOfMonth.getTime()-today.getTime()) / 86400000) > parseInt(RegExp.$1)){maxDate=lastDayOfMonth;}else{maxDate=new Date(new Date().getFullYear(), new Date().getMonth() + 2, 0, 0, 0, 0);}}else if(/lastDayOfMonth/.test(attrDateMax)){maxDate=new Date(new Date().getFullYear(), new Date().getMonth() + 1, 0, 0, 0, 0);}else if(/lastDayOfNextMonth/.test(attrDateMax)){maxDate=new Date(new Date().getFullYear(), new Date().getMonth() + 2, 0, 0, 0, 0);}else if(/firstDayOfMonth/.test(attrDateMax)){maxDate=new Date(new Date().getFullYear(), new Date().getMonth(), 1, 0, 0, 0);}else if(/firstDayOfNextMonthIfGt\-(\d+)/.test(attrDateMax)){firstDayOfNextMonth=new Date(new Date().getFullYear(), new Date().getMonth() + 1, 1, 0, 0, 0);today=new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate(), 0, 0, 0);if(((firstDayOfNextMonth.getTime()-today.getTime()) / 86400000) > parseInt(RegExp.$1)){maxDate=firstDayOfNextMonth;}else{maxDate=new Date(new Date().getFullYear(), new Date().getMonth() + 2, 1, 0, 0, 0);}}else if(/firstDayOfNextMonth/.test(attrDateMax)){maxDate=new Date(new Date().getFullYear(), new Date().getMonth() + 1, 1, 0, 0, 0);}else if(/^callback:(.+)/.test(attrDateMax)){eval('if(typeof('+RegExp.$1+')===\'function\')maxDate='+RegExp.$1+'()');}else if(/(>|<|>=|<=)\s*\$(\w+)/.test(attrDateMax)){var operator=RegExp.$1;var elementName=RegExp.$2;jQuery(this).mousedown(function(){var elementRelation=jQuery('#' + elementName);if(elementRelation.length==1){var elementRelationVal=elementRelation.val();var tmpDateObject=new Date();var hasDate=false;if(/(\d\d)\.(\d\d)\.(\d\d\d\d)/.test(elementRelationVal)){tmpDateObject.setDate(RegExp.$1);tmpDateObject.setMonth(RegExp.$2-1);tmpDateObject.setFullYear(RegExp.$3);hasDate=true;}else if(/(\d\d\d\d)-(\d\d)-(\d\d)/.test(elementRelationVal)){tmpDateObject.setDate(RegExp.$3);tmpDateObject.setMonth(RegExp.$2-1);tmpDateObject.setFullYear(RegExp.$1);hasDate=true;}else if(/(\d\d)\/(\d\d)\/(\d\d\d\d)/.test(elementRelationVal)){tmpDateObject.setDate(RegExp.$2);tmpDateObject.setMonth(RegExp.$1-1);tmpDateObject.setFullYear(RegExp.$3);hasDate=true;}if(hasDate){if(operator=='>'){tmpDateObject=new Date(tmpDateObject.getTime() + 86400000);}else if(operator=='<'){tmpDateObject=new Date(tmpDateObject.getTime()-86400000);}jQuery(this).datepicker("option", (operator=='<'?"maxDate":"minDate"), tmpDateObject);}}});}else{maxDate=new Date(attrDateMax);}var callbackLimitSelectedDays=function(day){return [true, '']};if(attrLimitSelectedDays=='workingDays'){callbackLimitSelectedDays=function(day){return [!(day.getDay()==6||day.getDay()==0), ''];};}else if(attrLimitSelectedDays=='moToSa'){callbackLimitSelectedDays=function(day){return [!(day.getDay()==0), ''];};}var excludedDays=attrExcludeSelectedDays;if(attrExcludeSelectedDays&&attrExcludeSelectedDays!=''){callbackLimitSelectedDays=function(day){var allowDay=true;var dateStr=day.getFullYear() + '-' + (day.getMonth() < 9?'0' + String(day.getMonth() + 1):String(day.getMonth() + 1)) + '-' + (day.getDate() < 10?'0' + String(day.getDate()):String(day.getDate()));var daysToExclude=excludedDays.split(',');var yearCurrent=(new Date()).getFullYear();var monthCurrent=((new Date()).getMonth() < 9?'0' + String((new Date()).getMonth() + 1):String((new Date()).getMonth() + 1));for(var i=0; i < daysToExclude.length; i++){dayToExclude=daysToExclude[i];var diffYearTmp=0;dayToExclude=dayToExclude?dayToExclude.replace(/MM(?:\(([\+\-])(\d+)\))?/g, function(tmp, diff, month){if(Number.isInteger(Number(month))){if(diff=='-'){var mr=(new Date()).getMonth() + 1-parseInt(month);return (mr < 10)?'0' + String(mr):String(mr);}else{var mr=(new Date()).getMonth() + 1 + parseInt(month);if(mr > 12){mr=mr-12;diffYearTmp=-1;}return (mr < 10)?'0' + String(mr):String(mr);}}else{var mr=(new Date()).getMonth() + 1;return mr;}}):'';dayToExclude=dayToExclude?dayToExclude.replace(/YYYY/g, yearCurrent-diffYearTmp):'';daysToExclude[i]=dayToExclude;if(/weekday\((\d+)\s*\|\s*"([^"]+)"\)/.test(daysToExclude[i].trim())){weekDayExcluded=RegExp.$1;daysAllowed=RegExp.$2;dayToCheck=day.getDay();if(dayToCheck==0){dayToCheck=7;}if(weekDayExcluded==dayToCheck){daysAllowed=daysAllowed.split('|');isAllowed=false;for(var j=0; j < daysAllowed.length; j++){dayAllowed=daysAllowed[j].trim();if(dayAllowed==dateStr){isAllowed=true;break;}}if(!isAllowed){return [false, ''];}}}else if(/weekday\((\d+)\)/.test(daysToExclude[i].trim())){weekDayExcluded=RegExp.$1;dayToCheck=day.getDay();if(dayToCheck==0){dayToCheck=7;}if(weekDayExcluded==dayToCheck){return [false, ''];}}else if(/monthday\((\d+)\s*\-\s*(\d+)\)/.test(daysToExclude[i].trim())){weekDayExcludedFrom=RegExp.$1;weekDayExcludedTo=RegExp.$2;dayToCheck=day.getDate();if(dayToCheck >=weekDayExcludedFrom&&dayToCheck <=weekDayExcludedTo){return [false, ''];}}else if(/monthday\((\d+)\)/.test(daysToExclude[i].trim())){weekDayExcluded=RegExp.$1;dayToCheck=day.getDate();if(weekDayExcluded==dayToCheck){return [false, ''];}}else if(/(\d\d\d\d\-\d\d\-\d\d)-(\d\d\d\d\-\d\d\-\d\d)/.test(daysToExclude[i].trim())){var dayFrom=RegExp.$1;var dayTo=RegExp.$2;if(dateStr >=dayFrom&&dateStr <=dayTo){return [false, ''];}}else if(dateStr==daysToExclude[i].trim()){return [false, ''];}}if(attrLimitSelectedDays=='workingDays'){return [!(day.getDay()==6||day.getDay()==0), ''];}else if(attrLimitSelectedDays=='moToSa'){return [!(day.getDay()==0), ''];}else{return [true, ''];}};}jQuery(this).on('keydown', function(e){if(e.key=='Tab'&&!e.shiftKey){var curDP=jQuery('#ui-datepicker-div');if(curDP.is(':visible')){e.preventDefault();e.stopPropagation();e.stopImmediatePropagation();var fSelE=wAccessHandler.getNextFocusableElement({element:curDP});fSelE.trigger('focus');return true;}}else if(e.key=='Enter'){e.preventDefault();e.stopPropagation();e.stopImmediatePropagation();}});jQuery(this).on('focus, focusin', function(e){if(jQuery(this).data('skipOpenOnce')){e.stopImmediatePropagation();jQuery(this).data('skipOpenOnce', false);}});jQuery(this).on('change', function(datepicker){var inputElement=jQuery(this);var value=inputElement.val();var isInline=false;var dateValue=null;if(jQuery(this).get(0).nodeName=='DIV'){isInline=true;inputElement=jQuery('#' + jQuery(this).data('input'));var dateFormat=inputElement.data('dateformat');var date=new Date(parseInt(datepicker.timeStamp));value=jQuery(this).val().replace(/(\d+)\/(\d+)\/(\d+)/, '$2.$1.$3');}if(inputElement.data('dateformat')=='D, dd.mm.yy'){if(/^\s*(\d+)\.(\d+)\.(\d\d\d\d)\s*$/.test(value)){value=value.replace(/^\s*(\d)\.(\d+)\.(\d\d\d\d)\s*$/, '0' + value).replace(/^\s*(\d+)\.(\d)\.(\d\d\d\d)\s*$/, RegExp.$1 + '.0' + RegExp.$2 + '.' + RegExp.$3);try{var dDay=(new Date(RegExp.$3 + '-' + RegExp.$2 + '-' + RegExp.$1 + ' 12:00:00')).getDay();var dShort=jQuery.datepicker.regional['de']['dayNamesShort'][dDay];dateValue=value;value=dShort + ', ' + value;}catch(e){}}}else if(inputElement.data('dateformat')=='dd.mm.yy'){if(/^(\d\.)(\d\.\d\d\d\d)\s*$/.test(value)){value='0' + RegExp.$1 + '0' +  RegExp.$2;}else if(/^(\d)\.(\d+)\.(\d\d\d\d)\s*$/.test(value)){value='0' + value;}else if(/^(\d+\.)(\d\.\d\d\d\d)\s*$/.test(value)){value=RegExp.$1 + '0' + RegExp.$2;}
20dateValue=value;}if(dateValue!=null&&dateValue!==''){var parts=dateValue.split(".");var newDate=new Date(parts[2], parts[1]-1, parts[0]);if(!isNaN(newDate)&&newDate!=null){inputElement.datepicker('setDate', newDate);}var isValid=validateValue(inputElement, newDate);if(!isValid){value='';}}inputElement.val(value);if(typeof(wOnAfterChangeDate)==='function'){wOnAfterChangeDate(inputElement);}});validateValue=function(cI, newDate){const minDate=cI.datepicker('option', 'minDate');const maxDate=cI.datepicker('option', 'maxDate');var result=true;if (minDate&&newDate < minDate) result=false;if (maxDate&&newDate > maxDate) result=false;return result;};prepareAccessibility=function(cI, inst){jQuery(document).off('keyup.datepicker').on('keyup.datepicker', {cI:cI}, function(e){cI=e.data.cI;var curDP=jQuery("#ui-datepicker-div");var inst=$.datepicker._curInst;const isDateChar=/^[0-9.,\-/:]$/.test(event.key);e.preventDefault();if(e.key==='Escape'){cI.input.data('skipOpenOnce', true).datepicker('hide').focus();return false;}else if (e.ctrlKey&&e.key==='ArrowUp'){$.datepicker._adjustDate(cI.input[0], +1, 'Y');}if (e.ctrlKey&&e.key==='ArrowDown'){$.datepicker._adjustDate(cI.input[0],-1, 'Y');}else if(e.key==='ArrowLeft'){$.datepicker._adjustDate(cI.input[0],-1, 'D');}else if(e.key==='ArrowRight'){$.datepicker._adjustDate(cI.input[0], +1, 'D');}else if(e.key==='ArrowDown'){$.datepicker._adjustDate(cI.input[0], +7, 'D');}else if(e.key==='ArrowUp'){$.datepicker._adjustDate(cI.input[0],-7, 'D');}else if (e.key==='Enter'){if(cI.input.val()!=''&&cI.input.data('changedmanually')){cI.input.data('changedmanually', false).data('skipOpenOnce', true).datepicker('hide');cI.input.trigger('change');}else{cI.input.data('changedmanually', false).datepicker('setDate', new Date(inst.selectedYear, inst.selectedMonth, inst.selectedDay)).data('skipOpenOnce', true).datepicker('hide');}return true;}else if (isDateChar){cI.input.data('changedmanually', true);}var day=inst.selectedDay;curDP.find('a[data-date="' + day + '"]').css({'outline':'1px solid black'});e.stopPropagation();e.stopImmediatePropagation();});jQuery("#ui-datepicker-div").off('keydown.datepicker.datum').on('keydown.datepicker.datum', {cI:cI}, function(e){cI.input.data('changedmanually', false);if (e.key==='Enter'){cI.input.data('skipOpenOnce', true);}});};stopAccessibility=function(input, inst){jQuery(document).off('keyup.datepicker');jQuery("#ui-datepicker-div").off('keydown.datepicker.datum');input.input.removeData('changedmanually');input.input.on('keydown', function(e){if(e.key=='Enter'){e.preventDefault();}}).on('click', function(e){input.input.datepicker('show');});};jQuery(this).datepicker({beforeShow:function(input, inst) {setTimeout(function() {prepareAccessibility(inst);}, 0)},beforeShowDay:callbackLimitSelectedDays,changeYear:changeYear,changeMonth:changeMonth,minDate:minDate,maxDate:maxDate,dateFormat:inputElement.data('dateformat'),onClose:function(input, inst) {setTimeout(function() {stopAccessibility(inst);}, 0)},onSelect:function(){var inputElement=jQuery(this);if(!inputElement.get(0).matches(':focus')){inputElement.focus();}var value=inputElement.val();var isInline=false;var attrPlaceholder=inputElement.attr('placeholder');var addPlacholderToLabelAfterSelect=inputElement.data('placeholdertolabelafterselect');if(jQuery(this).get(0).nodeName=='DIV'){isInline=true;inputElement=jQuery('#' + jQuery(this).data('input'));inputElement.val(value);}inputElement.data('haschanged', 1);if(addPlacholderToLabelAfterSelect=='1'&&attrPlaceholder&&attrPlaceholder!=''){if(inputElement.parent().prev('div').find('label').length==0){inputElement.parent().prev('div').append(jQuery('<label for="' + inputElement.attr('id') + '">' + attrPlaceholder +'</label>'));}}var onchange=(inputElement.data('onchange')?inputElement.data('onchange'):'').trim();if(/adaptInputToThisDate\('([^']+)',\s*(\d+)\)/.test(onchange)){inputToAdaptId=RegExp.$1;valueToAdapt=RegExp.$2;if(jQuery('#' + inputToAdaptId).length!=0){inputToAdapt=jQuery('#' + inputToAdaptId);if(inputToAdapt.data('haschanged')!='1'){if(/(\w+),\s*(\d\d)\.(\d\d)\.(\d\d\d\d)/.test(value)){var dateObj=new Date(RegExp.$4, parseInt(RegExp.$3)-1, RegExp.$2);if(valueToAdapt > 0){dateObj.setDate(dateObj.getDate() + parseInt(valueToAdapt));}var dateStr=(dateObj.getDate() < 10?'0' + String(dateObj.getDate()):String(dateObj.getDate())) + '.' + (d
20ateObj.getMonth() < 9?'0' + String(dateObj.getMonth() + 1):String(dateObj.getMonth() + 1)) + '.' + dateObj.getFullYear();var daysOfWeek=['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];var weekDay=daysOfWeek[dateObj.getDay()];if(jQuery.datepicker.regional['de']){weekDay=jQuery.datepicker.regional['de']['dayNamesMin'][dateObj.getDay()];}inputToAdapt.val(weekDay + ', ' + dateStr);jQuery(inputToAdapt).trigger('change');}else if(/(\d\d)\.(\d\d)\.(\d\d\d\d)/.test(value)){var dateObj=new Date(RegExp.$3, parseInt(RegExp.$2)-1, RegExp.$1);if(valueToAdapt > 0){dateObj.setDate(dateObj.getDate() + parseInt(valueToAdapt));}var dateStr=(dateObj.getDate() < 10?'0' + String(dateObj.getDate()):String(dateObj.getDate())) + '.' + (dateObj.getMonth() < 9?'0' + String(dateObj.getMonth() + 1):String(dateObj.getMonth() + 1)) + '.' + dateObj.getFullYear();inputToAdapt.val(dateStr);jQuery(inputToAdapt).trigger('change');}else if(/(\d\d\d\d)-(\d\d)-(\d\d)/.test(value)){var dateObj=new Date(RegExp.$1, parseInt(RegExp.$2)-1, RegExp.$3);if(valueToAdapt > 0){dateObj.setDate(dateObj.getDate() + parseInt(valueToAdapt));}var dateStr=dateObj.getFullYear() + '-' + (dateObj.getMonth() + 1 < 10?'0' + String(dateObj.getMonth() + 1):String(dateObj.getMonth() + 1))  + '-' + (dateObj.getDate() < 10?'0' + String(dateObj.getDate()):String(dateObj.getDate()));inputToAdapt.val(dateStr);jQuery(inputToAdapt).trigger('change');}if(jQuery('div[data-input=\'' + inputToAdapt.attr('id') + '\']').length==1){var dateInit=inputToAdapt.val();jQuery('div[data-input=\'' + inputToAdapt.attr('id') + '\']').datepicker('setDate', dateInit);}}}}var onchangescript=(inputElement.data('onchangescript')?inputElement.data('onchangescript'):'').trim();if(onchangescript!=''){eval(onchangescript);onchange='';}jQuery(inputElement).trigger('change');}});if(minDate){if(maxDate){jQuery(this).datepicker("option", "yearRange", String(minDate.getYear() + 1900) + ':' + String(maxDate.getYear() + 1900));}else{jQuery(this).datepicker("option", "yearRange", String(minDate.getYear() + 1900) + ':+10');}}else if(maxDate){jQuery(this).datepicker("option", "yearRange", '1970:' + String(maxDate.getYear() + 1900));}});};hasNotYetLoadedAllCss=function(){var divTmp=document.getElementById('deferred-styles-dyn');if(!divTmp||divTmp&&window.getComputedStyle(divTmp).display=='none'){return false;}return true;};jQuery.fn.wPictureGallery=function(options){var options=options||{};options['timeout']=options['timeout']?options['timeout']:8;var hasGalleriesToInitLater=false;jQuery.each(jQuery(this), function(){var pictureGalleryCurrent=jQuery(this);if(pictureGalleryCurrent.is(":visible")&&!pictureGalleryCurrent.data('wasinit')&&typeof(initGallery)==='function'&&!hasNotYetLoadedAllCss()){var pictureGalleryCurrentId=pictureGalleryCurrent.attr('id').replace(/pictureGallery_/, '');eval('selectEntry_' + pictureGalleryCurrentId + '=function (position){selectListEntryGallery(pictureGalleryCurrentId, position);}');pictureGalleryCurrent.attr('data-wasinit', 1);initGallery(pictureGalleryCurrentId);}else{hasGalleriesToInitLater=true;}});if(hasGalleriesToInitLater&&options['timeout'] > 1){window.setTimeout(function(){jQuery('.wglPictureGallery').wPictureGallery({'timeout':options['timeout']-1});}, 320);}};jQuery.fn.wBannerSlider=function(options){var options=options||{};options['timeout']=options['timeout']?options['timeout']:8;var hasBannerSlidersToInitLater=false;jQuery.each(jQuery(this), function(){var bannerSliderCurrent=jQuery(this);var doAnimationIfVisibleOnce=true;if(bannerSliderCurrent.hasClass('wglAnimateIfVisibleOnce')&&!bannerSliderCurrent.hasClass('isVisible')){doAnimationIfVisibleOnce=false;bannerSliderCurrent.attr('data-doifbecomevisibleonce', 'jQuery(this).wBannerSlider();');}if(doAnimationIfVisibleOnce&&bannerSliderCurrent.is(":visible")&&bannerSliderCurrent.attr('data-wasinit')!='1'&&typeof(initBannerSlider)==='function'&&!hasNotYetLoadedAllCss()){var bannerSliderCurrentId=bannerSliderCurrent.attr('id').replace(/bannerSlider_/, '');var options={};options['initOn']=options['initon']||jQuery(this).data('initon');options['initOpen']=options['initopen']||jQuery(this).data('initopen');options['initDelay']=options['initDelay']||jQuery(this).data('initdelay');if(options['initDelay']==''){options['initDelay']=0;}else{options['initDelay'] *=1000;}eval('selectEntry_' + bannerSliderCurrentId + '=function (position){selectListEntryBannerSlider(bannerSliderCurrentId, position);}');var bannerSliderInit=function(){window.setTimeout(function(){try{initBannerSlider(bannerSliderCurrentId);bannerSliderCurrent.attr('data-wasinit', 1);if(typeof(options['initOpen'])!='undefined'&&options['initOpen']!=''){window.bannerSliderObjects[bannerSliderCurrentId]={};selectListEntryBannerSlider(bannerSliderCurrentId, parseInt(options['initOpen']), {'animation':'none'});}}catch(e){}}, options['initDelay']);};if(options['initOn']=='load'){if(wUiTmp['windowLoad']){bannerSliderInit();}else{if(typeof(wUiTmp['callbackAfterLoad'])=='undefined'){wUiTmp['callbackAfterLoad']=[];}wUiTmp['callbackAfterLoad'].push(bannerSliderInit);}}else{bannerSliderInit();}}else{hasBannerSlidersToInitLater=true;}});if(hasBannerSlidersToInitLater&&options['timeout'] > 1){window.setTimeout(function(){jQuery('.wglBannerSlider').wBannerSlider({'timeout':options['timeout']-1});}, 320);}};class wClassTicker{constructor(object, options){this.object=object;this.options=options;this.containerId=String(parseInt(Math.random() * 1000));this.initWidth=10000;this.basicDuration=15000;this.basicDurationWidth=jQuery(window).width();if(this.options['basicDurationWidth']) this.basicDurationWidth=this.options['basicDurationWidth'];this.initTimeout=100;this.tickerData=new Array();this.cOWidth=0;this.changedInitWidth=false;this.cO=null;this.multi=4;this.interval=null;this.visible=false;this.leftRepeat=0;this.init();}init(){const self=this;jQuery.each(this.object.children(), function(){var tWidth=jQuery(this).children().first().outerWidth();if(self.options['refElementWidth']!=''){var o=jQuery(this).find(self.options['refElementWidth']);if(o.length > 0) tWidth=o.outerWidth();else tWidth=0;}self.cOWidth +=tWidth;var clNode=jQuery(jQuery(this).children().first()).clone(true);if(jQuery(this).hasClass('clickable')&&jQuery(this).attr('onclick')!=''){clNode.attr('onclick', jQuery(this).attr('onclick')).addClass('clickable');}self.tickerData.push(clNode);});if(Boolean(self.options['infinityClonedNr'])){self.multi=self.options['infinityClonedNr'];}else if(self.cOWidth*self.multi > self.initWidth){self.multi=2;self.cOWidth *=self.multi;self.options['speed']=parseInt(self.options['speed'])*6;self.changedInitWidth=true;}else{self.cOWidth=0;if(self.tickerData.length==1)       self.multi=12;else if(self.tickerData.length==2)  self.multi=6;else if(self.tickerData.length==3)  self.multi=4;}jQuery('<div class="listTicker ' + self.object.attr('class') + '" id="' + self.containerId + '"><div style="'+(self.cOWidth > 0?'width:'+self.cOWidth+'px':'')+'" class="listTickerInner" id="' + self.containerId + '_inner"></div></div>').replaceAll(self.object);self.cO=jQuery('#' + self.containerId + '_inner');if(this.options['version']=='2.0'){setTimeout(()=> {self.cO.css({'width':'auto'});self.cOWidth=self.cO.outerWidth(true);self.cO.css({'width':self.cOWidth + 'px'});}, self.initTimeout);}if(self.options['repeatMode']=='continue'){for(var j=0; j < self.multi; j++){for(var i=0; i!=self.tickerData.length; i++){self.cO.append(self.options['delimiter']);self.cO.append(jQuery(self.tickerData[i]).clone(true));}}self.cO.css('margin-left', '0');}else{for(var i=0; i!=self.tickerData.length; i++){if(i!=0){self.cO.append(self.options['delimiter']);}self.cO.append(jQuery(self.tickerData[i]).clone(true));}}self.cO.data('hasFinishedLoop', '1');}isVisible(){this.visible=this.cO.is(':visible');return this.visible;}start(){const self=this;window.setTimeout(function(){var widthContainerInner=document.getElementById('' + self.containerId + '_inner').offsetWidth;var duration=400 * widthContainerInner / (self.multi * self.options['speed']);if(self.options['version']=='2.0'&&self.options['repeatMode']=='continue'&&self.options['direction']=='ltr'){widthContainerInner=self.cOWidth;var marginLeft=widthContainerInner/self.multi;var duration=self.basicDuration*(marginLeft/self.basicDurationWidth);self.cO.css('margin-left', '-' + marginLeft + 'px');self.interval=setInterval(function(){if(jQuery('html').hasClass('waAvoidAnimations')){self.cO.stop(true, false);paused=true;}else if(paused){self.cO.animate({'marginLeft':'0' }, {'duration':duration , 'easing':'linear', 'queue':false, 'complete':function(){self.cO.data('hasFinishedLoop', '1');}});paused=false;}else if(self.cO.data('hasFinishedLoop')=='1'){self.cO.css('margin-left', '-' + marginLeft + 'px');self.cO.data('hasFinishedLoop', '0').css('margin-left', '-' + String(marginLeft)).animate({'marginLeft':'0' }, {'duration':duration , 'easing':'linear', 'queue':false, 'complete':function(){self.cO.data('hasFinishedLoop', '1');}});}}, 10);}else if(self.options['version']=='2.0'&&self.options['repeatMode']=='continue'){widthContainerInner=self.cOWidth;var marginLeft=widthContainerInner/self.multi;var duration=self.basicDuration*(marginLeft/self.basicDurationWidth);var paused=false;self.interval=setInterval(function(){if(jQuery('html').hasClass('waAvoidAnimations')){self.cO.stop(true, false);paused=true;}else if(paused){self.cO.animate({'marginLeft':'-' + String(marginLeft)}, {'duration':duration , 'easing':'linear', 'queue':false, 'complete':function(){self.cO.data('hasFinishedLoop', '1');}});paused=false;}else if(self.cO.data('hasFinishedLoop')=='1'){self.cO.data('hasFinishedLoop', '0').css('margin-left', '0').animate({'marginLeft':'-' + String(marginLeft)}, {'duration':duration , 'easing':'linear', 'queue':false, 'complete':function(){self.cO.data('hasFinishedLoop', '1');}});}}, 10);}else if(self.options['repeatMode']=='continue'&&self.options['animationEngine']=='css'&&self.options['direction']=='ltr'){self.leftRepeat=jQuery('#' + self.containerId + '_inner > div').outerWidth() * self.tickerData.length * self.multi / 2;self.cO.css({'transform':'translateX(-' + self.leftRepeat + 'px)'});window.setTimeout(function(){self.cO.data('hasFinishedLoop', '0').css({'transition':'all ' + (duration / (self.multi) * 0.001) + 's linear', 'transform':'translateX(0)'});self.interval=setInterval(function(){self.cO.css({'transition':'none', 'transform':'translateX(-' + self.leftRepeat + 'px)'});window.setTimeout(function(){self.cO.css({'transition':'all ' + (duration / (self.multi) * 0.001) + 's linear', 'transform':'translateX(0)'});}, 32);}, duration / self.multi);}, 32);}else if(self.options['repeatMode']=='continue'&&self.options['animationEngine']=='css'){var lastEntry=self.cO.children().eq(self.tickerData.length-1);var entry=lastEntry;self.leftRepeat=jQuery('#' + self.containerId + '_inner > div').outerWidth() * self.tickerData.length * self.multi / 2;self.leftRepeat=self.leftRepeat+((parseInt(entry.css('margin-left'))+parseInt(entry.css('margin-right')))*(self.tickerData.length*self.multi/2)-2);if(self.changedInitWidth){var leftRepeat=lastEntry.offset()['left'] + lastEntry.outerWidth()-(parseInt(lastEntry.css('margin-left'))+parseInt(lastEntry.css('margin-right')))*self.tickerData.length;leftRepeat=(self.cOWidth/self.multi)+((parseInt(entry.css('margin-left'))+parseInt(entry.css('margin-right')))*self.tickerData.length);}self.cO.data('hasFinishedLoop', '0').css({'transition':'all ' + (duration / (self.multi) * 0.001) + 's linear', 'transform':'translateX(-' + self.leftRepeat + 'px)'});self.interval=setInterval(function(){self.cO.css({'transition':'none', 'transform':'translateX(0)'});window.setTimeout(function(){self.cO.css({'transition':'all ' + (duration / (self.multi) * 0.001) + 's linear', 'transform':'translateX(-' + self.leftRepeat + 'px)'});}, 16);}, duration / self.multi);}else if(self.options['repeatMode']=='continue'){self.interval=setInterval(function(){if(self.cO.data('hasFinishedLoop')=='1'){self.cO.data('hasFinishedLoop', '0').css('margin-left', '0').animate({'marginLeft':'-' + String(widthContainerInner) / self.multi}, {'duration':duration / (2 * self.multi), 'easing':'linear', 'queue':false, 'complete':function(){self.cO.data('hasFinishedLoop', '1');}});}}, 10);}else if(self.options['repeatMode']=='loop'){self.interval=setInterval(function(){if(self.cO.data('hasFinishedLoop')=='1'){self.cO.data('hasFinishedLoop', '0').css('margin-left', String(jQuery('#' + self.containerId).width()) + 'px').animate({'marginLeft':'-' + String(widthContainerInner)}, duration, 'linear', function(){self.cO.data('hasFinishedLoop', '1');});}}, 100);}else{self.cO.animate({'marginLeft':'-' + String(widthContainerInner)}, duration, 'linear');}}, self.initTimeout + parseInt(self.options['delayStart']) * 1000);}reset(){const self=this;self.cO.css({'transition':'none', 'transform':'translateX(0)'});if(typeof self.interval==='number'){clearInterval(self.interval);self.interval=null;}}}jQuery.fn.wTicker=function(){if(typeof(window.tickerObjects)=='undefined') window.tickerObjects={};if(jQuery('html').hasClass('waAvoidAnimations')) return;jQuery.each(jQuery(this), function(){var options={};options['delayStart']=jQuery(this).data('delaystart')?parseInt(j
20Query(this).data('delaystart')):0;options['speed']=jQuery(this).data('speed')?parseFloat(jQuery(this).data('speed')):5;options['direction']=jQuery(this).data('direction')&&jQuery(this).data('direction')=='ltr'?'ltr':'rtl';options['delimiter']=jQuery(this).data('delimiter')?jQuery(this).data('delimiter'):'';options['repeatMode']=jQuery(this).data('repeatmode')?jQuery(this).data('repeatmode'):'continue';options['animationEngine']=jQuery(this).data('animationengine')?jQuery(this).data('animationengine'):'';options['infinityClonedNr']=parseInt(jQuery(this).data('infinityclonednr'));options['refElementWidth']=jQuery(this).data('refelementwidth')?jQuery(this).data('refelementwidth'):'';options['version']=jQuery(this).data('version')?jQuery(this).data('version'):'';options['basicDurationWidth']=jQuery(this).data('basicdurationwidth')?jQuery(this).data('basicdurationwidth'):'';var tO=null;if(window.tickerObjects[jQuery(this).attr('id')]===undefined){tO=new wClassTicker(jQuery(this), options);window.tickerObjects[tO.containerId]=tO;}else{tO=window.tickerObjects[jQuery(this).attr('id')];}if(tO.isVisible()) tO.start();else tO.reset();});};jQuery.fn.wImageMap=function(){if(jQuery('.imageMap[data-object-fit="height"]')){jQuery(window).on('resize', function(){jQuery('.imageMap[data-object-fit="height"]').each(function(options){var computedStyle=window.getComputedStyle(jQuery(this).get(0));var widthImage=parseInt(computedStyle.width);var heightImage=parseInt(computedStyle.height);var computedStyleParent=window.getComputedStyle(jQuery(this).parent().get(0));var widthParent=parseInt(computedStyleParent.width);if(widthImage > widthParent + 1){jQuery(this).css({'margin-left':String((widthParent-widthImage) / 2) + 'px'});}else{jQuery(this).css({'margin-left':'auto'});}});});}jQuery.each(jQuery(this), function(options){if(jQuery(this).data('hasInit')!='1'){var iMi=jQuery(this).find('.imageMap');var iMl=jQuery(this).find('.imageMapLabels');jQuery(this).find('.imageMap').on('click', function(event){if(jQuery(event.target).closest('.mapEntry').length==0){iMl.find('.mapLabel').removeClass('clickedEntry').removeClass('clicked');iMi.find('.mapEntry').removeClass('clickedLabel').removeClass('clicked');}});jQuery(this).find('.mapEntry').on('mouseenter', function(event){if(jQuery(this).attr('data-event')=='clickOnly') return true;jQuery(this).addClass('mouseover').siblings('.mapEntry').removeClass('clicked').removeClass('clickedEntry');var iMim=jQuery(this).find('.mapEntryIcon > img')
21if(iMim.length==1){iMim.data('srcorig', iMim.attr('src'));iMim.attr('src', iMim.data('imgmo'));}iMl.find('.mapLabel').addClass('no-mouseoverEntry').removeClass('clicked').removeClass('clickedEntry');iMl.find('.mapLabel[data-id="' + jQuery(this).data('id') + '"]').removeClass('no-mouseoverEntry').addClass('mouseoverEntry');});jQuery(this).find('.mapEntry').on('mouseleave', function(event){if(jQuery(this).attr('data-event')=='clickOnly') return true;jQuery(this).removeClass('mouseover');var iMim=jQuery(this).find('.mapEntryIcon > img')
22if(iMim.length==1&&iMim.data('srcorig')){iMim.attr('src', iMim.data('srcorig'));}iMl.find('.mapLabel').removeClass('no-mouseoverEntry');iMl.find('.mapLabel[data-id="' + jQuery(this).data('id') + '"]').removeClass('mouseoverEntry');});jQuery(this).find('.mapLabel').on('mouseenter', function(event){if(jQuery(this).attr('data-event')=='clickOnly') return true;jQuery(this).addClass('mouseover').siblings('.mapLabel').removeClass('clickedLabel');iMi.find('.mapEntry').addClass('no-mouseoverLabel').removeClass('clicked').removeClass('clickedLabel');iMi.find('.mapEntry[data-id="' + jQuery(this).data('id') + '"]').removeClass('no-mouseoverLabel').addClass('mouseoverLabel');var iMim=iMi.find('.mapEntry[data-id="' + jQuery(this).data('id') + '"]').find('.mapEntryIcon > img')
23if(iMim.length==1){iMim.data('srcorig', iMim.attr('src'));iMim.attr('src', iMim.data('imgmo'));}});jQuery(this).find('.mapLabel').on('mouseleave', function(event){if(jQuery(this).attr('data-event')=='clickOnly') return true;jQuery(this).removeClass('mouseover');iMi.find('.mapEntry').removeClass('no-mouseoverLabel');iMi.find('.mapEntry[data-id="' + jQuery(this).data('id') + '"]').removeClass('mouseoverLabel');var iMim=iMi.find('.mapEntry[data-id="' + jQuery(this).data('id') + '"]').find('.mapEntryIcon > img')
24if(iMim.length==1&&iMim.data('srcorig')){iMim.attr('src', iMim.data('srcorig'));}});jQuery(this).find('.mapEntry').on('click', function(event){jQuery(this).siblings('.mapEntry').removeClass('clicked').removeClass('clickedLabel');jQuery(this).toggleClass('clicked');iMl.find('.mapLabel[data-id="' + jQuery(this).data('id') + '"]').toggleClass('clickedEntry').siblings('.mapLabel').removeClass('clickedEntry').removeClass('clicked');if(iMl.attr('data-scrolltoelement')=='yes'){if(iMl.css('display')=='block') wScrollSmoothToElement(iMl.find('.mapLabel[data-id="' + jQuery(this).data('id') + '"]'));}});jQuery(this).find('.mapLabel').on('click', function(event){jQuery(this).siblings('.mapLabel').removeClass('clicked').removeClass('clickedEntry');jQuery(this).toggleClass('clicked');iMi.find('.mapEntry[data-id="' + jQuery(this).data('id') + '"]').toggleClass('clickedLabel').siblings('.mapEntry').removeClass('clickedLabel').removeClass('clicked');if(iMi.find('.imageMapEntries').attr('data-scrolltoelement')=='yes'){try{wScrollSmoothToElement(iMi);iMi.find('.mapEntry[data-id="' + jQuery(this).data('id') + '"]').trigger('mouseenter');var offsetLeft=iMi.find('.mapEntry[data-id="' + jQuery(this).data('id') + '"] .mapEntryMarker').position().left;if(offsetLeft > iMi.width()) iMi.scrollLeft(offsetLeft + iMi.width()/2);if(offsetLeft < iMi.scrollLeft()) iMi.scrollLeft(offsetLeft-iMi.width()/2);}catch(e){}}});}jQuery(this).data('hasInit', '1');jQuery(this).find('.mapEntry').each(function(options){var connectorMarker=jQuery(this).find('.mapEntryConnectorMarker');var connectorInfobox=jQuery(this).find('.mapEntryConnectorInfo');var infobox=jQuery(this).find('.mapEntryInfo');if(connectorMarker.length&&connectorInfobox.length){var computedStyleConnectorMarker=window.getComputedStyle(connectorMarker.get(0));var computedStyleConnectorInfobox=window.getComputedStyle(connectorInfobox.get(0));var lm=parseFloat(connectorMarker[0].style.left);var tm=parseFloat(connectorMarker[0].style.top);var li=parseFloat(connectorInfobox[0].style.left);var ti=parseFloat(connectorInfobox[0].style.top);var wi=infobox.outerWidth();var hi=infobox.outerWidth();var mlm=computedStyleConnectorMarker['margin-left'];var mtm=computedStyleConnectorMarker['margin-top'];var mli=computedStyleConnectorInfobox['margin-left'];var mti=computedStyleConnectorInfobox['margin-top'];var line1=jQuery(this).find('.mapEntryLine-1');var line2=jQuery(this).find('.mapEntryLine-2');var line3=jQuery(this).find('.mapEntryLine-3');var lineWidth=1;if(ti <=tm&&li >=lm&&parseFloat(mtm) < 0){line1.css({'left':'calc(' + String(lm) + '% + ' + mlm + ')', 'top':'calc(' + String(ti + (tm-ti) / 2) + '% + ' + mtm + ')', 'width':String(lineWidth) + 'px', 'height':String((tm-ti) / 2) + '%'});line2.css({'left':'calc(' + String(lm) + '% + ' + mlm + ')', 'top':'calc(' + String(ti + (tm-ti) / 2) + '% + ' + mtm + ')', 'width':'calc(' + String(li-lm) + '% ' + '-' + ' ' + mlm + ' + ' + lineWidth + 'px)', 'height':String(lineWidth) + 'px'});line3.css({'left':'calc(' + String(li) + '% + ' + mli + ')', 'top':String(ti) + '%', 'width':String(lineWidth) + 'px', 'height':'calc(' + String((tm-ti) / 2) + '% + ' + mtm + ')'});}else if(ti <=tm&&li <=lm&&parseFloat(mtm) < 0){line1.css({'left':'calc(' + String(lm) + '% + ' + mlm + ')', 'top':'calc(' + String(ti + (tm-ti) / 2) + '% + ' + mtm + ')', 'width':String(lineWidth) + 'px', 'height':String((tm-ti) / 2) + '%'});line2.css({'left':'calc(' + String(li) + '% + ' + mli + ')', 'top':'calc(' + String(ti + (tm-ti) / 2) + '% + ' + mtm + ')', 'width':'calc(' + String(lm-li) + '% ' + '-' + ' ' + mli + ' + ' + lineWidth + 'px)', 'height':String(lineWidth) + 'px'});line3.css({'left':'calc(' + String(li) + '% + ' + mli + ')', 'top':String(ti) + '%', 'width':String(lineWidth) + 'px', 'height':'calc(' + String((tm-ti) / 2) + '% + ' + mtm + ')'});}else if(ti > tm&&li > lm&&parseFloat(mtm) > 0){line1.css({'left':'calc(' + String(lm) + '% + ' + mlm + ')', 'top':'calc(' + String(tm) + '% + ' + mtm + ')', 'width':String(lineWidth) + 'px', 'height':String((ti-tm) / 2) + '%'});line2.css({'left':'calc(' + String(lm) + '% + ' + mlm + ')', 'top':'calc(' + String(ti + (tm-ti) / 2) + '% + ' + mtm + ')', 'width':'calc(' + String(li-lm) + '% ' + '-' + ' ' + mlm + ' + ' + lineWidth + 'px)', 'height':String(lineWidth) + 'px'});line3.css({'left':'calc(' + String(li) + '% + ' + mli + ')', 'top':'calc(' + String(tm + (ti-tm) / 2) + '% + ' + mtm + ')', 'width':String(lineWidth) + 'px', 'height':'calc(' + String((ti-tm) / 2) + '% ' + '-' + ' ' + mtm + ')'});}else if(ti > tm&&li < lm&&parseFloat(mtm) > 0){line1.css({'left':'calc(' + String(lm) + '% + ' + mlm + ')', 'top':'calc(' + String(tm) + '% + ' + mtm + ')', 'width':String(lineWidth) + 'px', 'height':String((ti-tm) / 2) + '%'});line2.css({'left':'calc(' + String(li) + '% + ' + mli + ')', 'top':'calc(' + String(tm + (ti-tm) / 2) + '% + ' + mtm + ')', 'width':'calc(' + String(lm-li) + '% ' + '-' + ' ' + mlm + ' + ' + lineWidth + 'px)', 'height':String(lineWidth) + 'px'});line3.css({'left':'calc(' + String(li) + '% + ' + mli + ')', 'top':'calc(' + String(tm + (ti-tm) / 2) + '% + ' + mtm + ')', 'width':String(lineWidth) + 'px', 'height':'calc(' + String((ti-tm) / 2) + '% ' + '-' + ' ' + mtm + ')'});}else if(li >=lm&&ti >=tm){line1.css({'left':'calc(' + String(lm) + '% + ' + mlm + ')', 'top':'calc(' + String(tm) + '% + ' + mtm + ')', 'width':'calc(' + String((li-lm) / 2) + '% ' + '-' + ' ' + mlm + ')', 'height':String(lineWidth) + 'px'});line2.css({'left':'calc(' + String(lm + (li-lm) / 2) + '%)', 'top':'calc(' + String(tm) + '% + ' + mtm + ')', 'width':String(lineWidth) + 'px', 'height':'calc(' + String(ti-tm) + '% ' + '-' + ' ' + mtm + ' + ' + lineWidth + 'px)'});line3.css({'left':'calc(' + String(lm + (li-lm) / 2) + '%)', 'top':'calc(' + String(ti) + '% + ' + mti + ')', 'width':String((li-lm) / 2) + '%', 'height':String(lineWidth) + 'px'});}else if(li >=lm&&ti <=tm){line1.css({'left':'calc(' + String(lm) + '% + ' + mlm + ')', 'top':'calc(' + String(tm) + '% + ' + mtm + ')', 'width':'calc(' + String((li-lm) / 2) + '% ' + '-' + ' ' + mlm + ')', 'height':String(lineWidth) + 'px'});line2.css({'left':'calc(' + String(lm + (li-lm) / 2) + '%)', 'top':'calc(' + String(ti) + '% + ' + mti + ')', 'width':String(lineWidth) + 'px', 'height':'calc(' + String(tm-ti) + '% ' + '-' + ' ' + mti + ' + ' + lineWidth + 'px)'});line3.css({'left':'calc(' + String(lm + (li-lm) / 2) + '%)', 'top':'calc(' + String(ti) + '% + ' + mti + ')', 'width':String((li-lm) / 2) + '%', 'height':String(lineWidth) + 'px'});}else if(li < lm&&ti > tm){line1.css({'left':'calc(' + String(li + (lm-li) / 2) + '% + ' + 0 + 'px)', 'top':'calc(' + String(tm) + '% + ' + mtm + ')', 'width':'calc(' + String((lm-li) / 2) + '% + ' + mlm + ')', 'height':String(lineWidth) + 'px'});line2.css({'left':'calc(' + String(lm + (li-lm) / 2) + '%)', 'top':'calc(' + String(tm) + '% + ' + mtm + ')', 'width':String(lineWidth) + 'px', 'height':'calc(' + String(ti-tm) + '% ' + '-' + ' ' + mtm + ' + ' + lineWidth + 'px)'});line3.css({'left':'calc(' + String(li) + '% + ' + 0 + 'px)', 'top':'calc(' + String(ti) + '% + ' + mti + ')', 'width':'calc(' + String((lm-li) / 2) + '% + 0px)', 'height':String(lineWidth) + 'px'});}else if(li < lm&&ti < tm){line1.css({'left':'calc(' + String(li + (lm-li) / 2) + '% + ' + 0 + 'px)', 'top':'calc(' + String(tm) + '% + ' + mtm + ')', 'width':'calc(' + String((lm-li) / 2) + '% + ' + mlm + ')', 'height':String(lineWidth) + 'px'});line2.css({'left':'calc(' + String(lm + (li-lm) / 2) + '%)', 'top':'calc(' + String(ti) + '% + ' + mti + ')', 'width':String(lineWidth) + 'px', 'height':'calc(' + String(tm-ti) + '% ' + '-' + ' ' + mti + ' + ' + lineWidth + 'px)'});line3.css({'left':'calc(' + String(li) + '% + ' + 0 + 'px)', 'top':'calc(' + String(ti) + '% + ' + mti + ')', 'width':'calc(' + String((lm-li) / 2) + '% + 0px)', 'height':String(lineWidth) + 'px'});}}});});};jQuery.fn.wImageCompare=function(){jQuery.each(jQuery(this), function(options){if(jQuery(this).data('hasInit')!='1'){jQuery(this).data('hasInit', '1');var fg=jQuery(this);fg.append('<div class="wglImageCompareSlider"><div><span></span><span></span></div></div>');var sl=fg.find('.wglImageCompareSlider');var pf=jQuery(this).find('picture:first-child');var pl=jQuery(this).find('picture:nth-child(2)');var po=[];var ps=-1;var ia=false;var getSizes=function () {po=[fg.offset().left, fg.offset().top, pl.width(), pl.height()];if (ps===-1) {ps=(po[2] / 2);if (ps===0) {var visibleParent=fg.parents(':visible');if(visibleParent.length > 0) {ps=visibleParent.width() / 2;}}}};var adaptSlider=function(){pl.css('clip', 'rect(0, ' + ps + 'px, ' + po[3] + 'px, 0)');sl.css({'left':ps + 'px', 'height':po[3] + 'px'});};fg.on('mousedown touchstart', function(event){event.preventDefault();event.stopPropagation();ia=true;});fg.on('mousemove touchmove', function(event){event.stopPropagation();if(ia){var pageX=event.pageX?event.pageX:event.touches[0].pageX;ps=pageX-po[0];ps=ps < 0?0:(ps > po[2]?po[2]:ps);adaptSlider();}});fg.on('mouseup touchend', function(event){ia=false;});jQuery(window).on('resize', function(){getSizes();adaptSlider();});window.setTimeout(function(){getSizes();adaptSlider();}, 200);window.setTimeout(function(){getSizes();adaptSlider();}, 400);window.setTimeout(function(){getSizes();adaptSlider();}, 800);getSizes();adaptSlider();jQuery(this).addClass('hasInit');}});};jQuery.fn.wSearchSuggest=function(){jQuery.each(jQuery(this), function(index){var cE=jQuery(this);cE.attr('autocomplete', 'off');cE.on('keydown', function(event){if(event.keyCode==27){jQuery('#searchSuggestOuter').remove();}else if(event.keyCode==40||event.keyCode==38){event.preventDefault();if(event.target.value==''){return false;}var positionSuggestSelected=0;if(event.target.getAttribute('data-positionsuggestedselected')){positionSuggestSelected=positionSuggestSelected + parseInt(event.target.getAttribute('data-positionsuggestedselected'));}positionSuggestSelected=event.keyCode==40?positionSuggestSelected + 1:positionSuggestSelected-1;
24if(positionSuggestSelected > jQuery('#searchSuggestOuter .searchSuggestEntry').length){positionSuggestSelected=jQuery('#searchSuggestOuter .searchSuggestEntry').length;}else if(positionSuggestSelected < 1){positionSuggestSelected=1;}if(jQuery('#searchSuggestOuter .searchSuggestEntry:nth-child(' + positionSuggestSelected + ')').data('word')){event.target.value=jQuery('#searchSuggestOuter .searchSuggestEntry:nth-child(' + positionSuggestSelected + ')').data('word');event.target.setAttribute('data-positionsuggestedselected', positionSuggestSelected);}jQuery('#searchSuggestOuter .searchSuggestEntry').removeClass('selected');jQuery('#searchSuggestOuter .searchSuggestEntry:nth-child(' + positionSuggestSelected + ')').addClass('selected');}});const debounceSuggest=typeof(wDebounceSuggest)!='undefined'?wDebounceSuggest:300;const debouncedHandler=wDebounce(wKeydownSuggest, debounceSuggest);cE.on('keyup', function(event){event.preventDefault();if(event.keyCode==40||event.keyCode==38){event.preventDefault();return;}wUiTmp['wKeydownSuggestThis']=jQuery(this);debouncedHandler();});cE.on('blur', function(event){event.preventDefault();jQuery('#searchSuggestOuter').remove();});cE.parent().on('mousedown', function(e){if(jQuery(e.target).closest('.searchSuggestEntry').length){jQuery(e.target).closest('#searchSuggestOuter').prev('input').val(jQuery(e.target).closest('.searchSuggestEntry').data('word'));jQuery(this).closest('form').submit();jQuery('#searchSuggestOuter').remove();}});});};wKeydownSuggest=function(){var cE=wUiTmp['wKeydownSuggestThis'];var searchTerm=cE.val();if(typeof(wUiTmp['searchTermNumberResults'])=='undefined'){wUiTmp['searchTermNumberResults']={};}if(searchTerm!=''&&searchTerm!=wUiTmp['lastSearchTerm']){if(wUiTmp['lastSearchTerm']&&searchTerm.indexOf(wUiTmp['lastSearchTerm'])==0&&wUiTmp['lastSearchTermNumberResults']==0){return;}if(wUiTmp['searchTermNumberResults'][searchTerm]&&wUiTmp['searchTermNumberResults'][searchTerm]==0){return;}var project=location.pathname.replace(/[^\/]*$/, '').replace(/^(\/[^\/]*)[^\?]*/, '$1');if(cE.data('project-search')){projectSearch=cE.data('project-search');if(project=='/'){project=projectSearch.replace(/\s*\!important/, '');}else if(projectSearch.indexOf('!important')!=-1){project=projectSearch.replace(/\s*\!important/, '');}}var querystringToAdd='';if(cE.data('querystringtoadd')){querystringToAdd=cE.data('querystringtoadd');}var querystringSuggestPath='';if(cE.data('suggest-path')){querystringSuggestPath='&suggestPath=' + cE.data('suggest-path');}var projectGlobal=wUiTmp['wGlobalProjectPath'];var search='default';if(cE.data('id-search')){search=cE.data('id-search');}var url=projectGlobal + '/wGlobal/scripts/php/wSearchSuggest.php?searchTerm=' + encodeURIComponent(searchTerm) + '&project=' + project + '&search=' + search + querystringSuggestPath + querystringToAdd;if(cE.data('usecache')=='1'){url=project + '/weblication/wSearchSuggest/searchTerm=' + encodeURIComponent(searchTerm).replace(/~/g, '_WT-IL_').replace(/%/g, '~').toLowerCase() + '.html';}jQuery.ajax({type:"GET", url:url, dataType:'json', success:function(resultData){var numberResults=0;var innerHTMLSuggest='<div id="searchSuggestOuter"><div id="searchSuggestInner">';for(word in resultData){innerHTMLSuggest +='<div class="searchSuggestEntry" data-word="' + word + '">' + word + '</div>';numberResults++;}wUiTmp['lastSearchTermNumberResults']=numberResults;wUiTmp['searchTermNumberResults'][searchTerm]=numberResults;innerHTMLSuggest +='</div></div>';jQuery('#searchSuggestOuter').remove();if(numberResults > 0){cE.after(innerHTMLSuggest);}}});}else if(searchTerm!=wUiTmp['lastSearchTerm']){jQuery('#searchSuggestOuter').remove();}wUiTmp['lastSearchTerm']=searchTerm;};jQuery.fn.wTabcontainer=function(data={}){var maxHeightContent=0;jQuery.each(jQuery(this), function(){var tabcontainerCurrent=jQuery(this);if(typeof(wOnBeforeInitTabcontainer)==='function'){var rtcEvent=wOnBeforeInitTabcontainer(tabcontainerCurrent);if(rtcEvent===false){return false;}}var tabcontainerID=tabcontainerCurrent.get(0).id.replace(/tabContainer_/, '');var tabcontainerTabs=tabcontainerCurrent.find('> .tabsSmall, > .tabsSelectbox, > .tabs, > div > .tabs, > div > div > .tabs, > div > div > div > .tabs, > .containers, > div > .containers, > div > div > .containers');var curHash=data['curHashId']||location.hash;var options={};options['initOpen']=options['initOpen']||jQuery(this).attr('data-initopen');options['rememberSelected']=options['rememberSelected']||jQuery(this).data('rememberselected');options['expandAll']=options['expandAll']||jQuery(this).attr('data-expandall');var activeContent=options['initOpen']||0;if(/^\d+$/.test(activeContent)){activeContent=parseInt(activeContent)-1;}if(options['rememberSelected']=='1'||typeof(wEditor)!='undefined'){var checkCookieRegExp=new RegExp('registerTab_' + tabcontainerID + '=(\\d+)');if(checkCookieRegExp.test(document.cookie)){activeContent=RegExp.$1-1;}}var jQueryHashIdOrig=curHash.replace(/\:/g, '\\:').replace(/\./g, '\\.').replace(/\//g, '\\/').replace(/\&/g, '').replace(/=/g, '').replace(/\[/g, '').replace(/\]/g, '').replace(/\?/g, '');var jQueryHashId=jQueryHashIdOrig.replace('open_', 'anchor_');if(jQueryHashId!=''&&jQueryHashId!='#'&&/^#?tab_/.test(jQueryHashId)&&jQuery(this).find(jQueryHashId).length > 0){if(/_(\d+)$/.test(jQuery(jQueryHashId).attr('id'))){activeContent=RegExp.$1-1;}else{var containerIndex=jQuery(jQueryHashId).parents('.container, .containerInvisible').index();if(containerIndex >=0){activeContent=containerIndex;}}}if(jQueryHashId!=''&&jQueryHashId!='#'&&jQuery(this).find(jQueryHashIdOrig).length > 0){if(jQuery(this).find(jQueryHashIdOrig).closest('.container').length > 0){var closestId=jQuery(this).find(jQueryHashIdOrig).closest('.container').attr('id');
24if(/_(\d+)$/.test(closestId)){activeContent=!isNaN(parseInt(RegExp.$1))&&parseInt(RegExp.$1) >=1?parseInt(RegExp.$1)-1:0;}}}if(options['initOpen']!=='false'){if(options['expandAll']=='1'){tabcontainerCurrent.attr('data-initOpen', 'openAll');tabcontainerCurrent.find('.containerTab').addClass('containerTabSelected').next('.container').addClass('containerSelected containerSelectedAfterInit').removeClass('containerInvisible');}else if(typeof(wEditor)=='undefined'){tabcontainerCurrent.find('> .tabsOuter > .tabs > .tabSelected,> .tabs > .tabSelected').removeClass('tabSelected');tabcontainerCurrent.find('> .tabsOuter > .tabs > .tab,> .tabs > .tab').eq(activeContent).addClass('tabSelected');tabcontainerCurrent.find('> .containers > .containerTab,> div > .containers > .containerTab,> div > div > .containers > .activeContent').removeClass('containerTabSelected');tabcontainerCurrent.find('> .containers > .containerTab,> div > .containers > .containerTab,> div > div > .containers > .activeContent').eq(activeContent).addClass('containerTabSelected');tabcontainerCurrent.find('> .containers > .container,> div > .containers > .container,> div > div > .containers > .container').addClass('containerInvisible');tabcontainerCurrent.find('> .containers > .container,> div > .containers > .container,> div > div > .containers > .container').eq(activeContent).removeClass('containerInvisible').addClass('containerSelected').addClass('containerSelectedAfterInit');}else{tabcontainerCurrent.find('> div > div > .tabsOuter > .tabs > .tabSelected,> div > div > .tabs > .tabSelected').removeClass('tabSelected');tabcontainerCurrent.find('> div > div > .tabsOuter > .tabs > .tab,> div > div > .tabs > .tab').eq(activeContent).addClass('tabSelected');tabcontainerCurrent.find('> div > div > .containers > .containerTab,> div > div > div > .containers > .containerTab,> div > div > div > div > .containers > .activeContent').removeClass('containerTabSelected');tabcontainerCurrent.find('> div > div > .containers > .containerTab,> div > div > div > .containers > .containerTab,> div > div > div > div > .containers > .activeContent').eq(activeContent).addClass('containerTabSelected');tabcontainerCurrent.find('> div > div > .containers > .container,> div > div > div > .containers > .container,> div > div > div > div > .containers > .container').addClass('containerInvisible');tabcontainerCurrent.find('> div > div > .containers > .container,> div > div > div > .containers > .container,> div > div > div > div > .containers > .container').eq(activeContent).removeClass('containerInvisible').addClass('containerSelected').addClass('containerSelectedAfterInit');}if(tabcontainerCurrent.attr('data-initopen')!=0) tabcontainerCurrent.attr('data-numberclicks', parseInt(tabcontainerCurrent.attr('data-numberclicks'))+1);}var eventsOpen='click';if(tabcontainerTabs.data('selecttabonmouseover')=='1'){eventsOpen='click mouseover';}if(typeof(wEditor)=='undefined'){aE=jQuery.extend(true, {element:tabcontainerCurrent}, wAccessEvents['containerTab']);wAccessHandler.addEvent(aE, {'idPrefix':'containerTab'});}tabcontainerTabs.children('.tab, .containerTab').on(eventsOpen, function(event){event.preventDefault();var eventType=event.type;var headerSelected=jQuery(this);var tabcontainerSelected=headerSelected.get(0).id.replace(/.*_/, '');var displayAccordeon=tabcontainerCurrent.hasClass('breakChildren');var numberClicks=tabcontainerCurrent.attr('data-numberclicks');var initState=tabcontainerCurrent.attr('data-initOpen');var openMultiple=tabcontainerCurrent.attr('data-openmultiple');var tabSelected=jQuery(this).hasClass('tabSelected');tabcontainerCurrent.attr('data-numberclicks', tabcontainerCurrent.attr('data-numberclicks')?parseInt(tabcontainerCurrent.attr('data-numberclicks')) + 1:1);if(eventType=='mouseover'&&headerSelected.get(0).className.indexOf('containerTab')!=-1){return false;}if(eventType!='mouseover'&&headerSelected.attr('id')&&headerSelected.parent().data('pushstateonselect')=='1'){history.pushState({page:'#' + headerSelected.attr('id')}, '', '#' + headerSelected.attr('id'));}var containers=jQuery(this).parent().parent().get(0).className.indexOf('tabsOuter')==0?jQuery(this).parent().parent().parent().find('> .containers,> div > .containers,> div > div > .containers'):jQuery(this).parent().parent().find('> .containers,> div > .containers,> div > div > .containers');if(typeof(wOnBeforeClickTabcontainer)==='function'){var rtcEvent=wOnBeforeClickTabcontainer(headerSelected);if(rtcEvent===false){return false;}}containers.children('.containerTab').each(function(){var currentContainerTab=this;(function(currentContainerTab){if(currentContainerTab.id=='containerTab_' + tabcontainerID + '_' + tabcontainerSelected){if(initState=='openAll'){currentContainerTab.className='containerTab containerTabSelected';}else if(tabSelected!=1&&displayAccordeon&&numberClicks!=0&&currentContainerTab.className.indexOf('containerTabSelected')!=-1&&currentContainerTab.className.indexOf('containerTabUnselectedAccordeon')==-1){currentContainerTab.className='containerTab containerTabUnselectedAccordeon';}else{currentContainerTab.className='containerTab containerTabSelected';}}else{currentContainerTab.className='containerTab';}})(currentContainerTab);});containers.children('.container, .containerSelected, .containerInvisible').each(function(){var currentContainer=this;(function(currentContainer){if(currentContainer.id=='container_' + tabcontainerID + '_' + tabcontainerSelected){if(initState=='openAll'){currentContainer.className='container containerSelected';window.setTimeout(function(){jQuery(currentContainer).addClass('containerSelectedAfterInit')}, 32);}else if(tabSelected!=1&&displayAccordeon&&numberClicks!=0&&currentContainer.className.indexOf('containerSelected')!=-1&&currentContainer.className.indexOf('containerInvisibleAccordeon')==-1){currentContainer.className='container containerInvisibleAccordeon';}else{currentContainer.className='container containerSelected';window.setTimeout(function(){jQuery(currentContainer).addClass('containerSelectedAfterInit')}, 32);}}else{if(openMultiple!='1'||!displayAccordeon){currentContainer.className='container containerInvisible';window.setTimeout(function(){jQuery(currentContainer).addClass('containerInvisibleAfterInit')}, 32);}}})(currentContainer);});var tabsOuter=jQuery(this).parent().parent();if(tabsOuter.hasClass('containersOuter')){tabsOuter=tabsOuter.parent().find('.tabsOuter');}tabsOuter.find('> .tabsSmall, > .tabsSelectbox, > .tabs, > div > .tabs, > div > div > .tabs, > div > div > div > .tabs').children('.tab').each(function(){if(this.id=='tab_' + tabcontainerID + '_' + tabcontainerSelected){jQuery(this).addClass('tabSelected').attr({'tabindex':-1, 'aria-selected':'true'});}else{jQuery(this).removeClass('tabSelected').attr({'tabindex':0, 'aria-selected':'false'});}});if(typeof(wEditor)!='undefined'||options['rememberSelected']=='1'){document.cookie='registerTab_' + tabcontainerID + '=' + tabcontainerSelected + ';path=/;sameSite=Lax';}if(typeof(wOnAfterClickTabcontainer)==='function'){var rtcEvent=wOnAfterClickTabcontainer(headerSelected);if(rtcEvent===false){return false;}}if(eventType!='mouseover'){jQuery(window).trigger('resize');}jQuery('.wglBannerSlider').wBannerSlider();jQuery('.wglSmartSlider').wSmartSlider();jQuery('.wglPictureGallery').wPictureGallery();});if(typeof(wEditor)=='undefined'){jQuery(this).find('.container, .containerSelected, .containerInvisible').each(function(index){
24if(jQuery(this).html()==''){tabcontainerCurrent.find('> .tabs > div:nth-child(' + (index + 1) + ')').remove();}});}});};wOpenAllTabcontainer=function(id){jQuery('.wglTabcontainer').attr('data-expandall', '1').attr('data-initopen', '0').wTabcontainer();};wOnBreakChildrenTabContainer=function(el){var tabContainer=el.closest('.elementTabContainer');if(!tabContainer.hasClass('breakChildren')){if(wIsClassDefined('elementTabContainer')){tabContainer.find('.tab:first-child').trigger('click');}}};wIsClassDefined=function(name){[...document.styleSheets].some(sheet=> {try {return [...sheet.cssRules].some(function check(r) {return r.selectorText?.split(',').some(s=> s.trim().includes('.' + name))
25||(r.cssRules&&[...r.cssRules].some(check));});} catch { return false; }});};jQuery.fn.wAccordion=function(){var maxHeightContent=0;jQuery.each(jQuery(this), function(){var $accordion=jQuery(this);var $headers=$accordion.find('.accordionHeader').filter(function(){return jQuery(this).closest('.wglAccordion')[0]===$accordion[0]&&
26jQuery(this).next('.accordionContent').length > 0;});var $contents=$headers.map(function(){return jQuery(this).next('.accordionContent')[0];});function setDetailsOpen($content, isOpen){$content.parent('details.accordion').prop('open', isOpen);}var options={};options['initOpen']=options['initOpen']||$accordion.data('initopen');options['multiple']=options['multiple']||$accordion.data('multiple');options['expandAll']=options['expandAll']||$accordion.data('expandall');options['collapsible']=options['collapsible']||$accordion.data('collapsible');options['group']=options['group']||$accordion.data('group');options['rememberSelected']=options['rememberSelected']||$accordion.data('rememberselected');options['addCloserContent']=options['addCloserContent']||$accordion.data('addclosercontent')||'';options['slideMode']=options['slideMode']||$accordion.data('slidemode')||'';options['slideUpDuration']=options['slideUpDuration']||$accordion.data('slideup-duration')||$accordion.data('slide-duration')||400;options['slideDownDuration']=options['slideDownDuration']||$accordion.data('slidedown-duration')||$accordion.data('slide-duration')||400;options['slideUpEasing']=options['slideUpEasing']||$accordion.data('slideup-easing')||$accordion.data('slide-easing')||'swing';options['slideDownEasing']=options['slideDownEasing']||$accordion.data('slidedown-easing')||$accordion.data('slide-easing')||'swing';var slideDownOptions={duration:options['slideUpDuration'],easing:options['slideUpEasing']
27};var slideUpOptions={duration:options['slideDownDuration'],easing:options['slideDownEasing']
28};var accordionID=($accordion.get(0).id||'').replace(/accordion_/, '');var activeContent=options['initOpen'];if(/^\d+$/.test(activeContent)){activeContent=parseInt(activeContent, 10)-1;}if(options['rememberSelected']=='1'){var checkCookieRegExp=new RegExp('accordionTab_' + accordionID + '=Accordion-(\\d+)');if(checkCookieRegExp.test(document.cookie)){activeContent=RegExp.$1-1;}else{checkCookieRegExp=new RegExp('accordionTab_' + accordionID + '=(\\d+)');if(checkCookieRegExp.test(document.cookie)){activeContent=RegExp.$1-1;}}}var jQueryHashId=decodeURIComponent(
29location.hash
30.replace(/\./g, '\\.')
31.replace(/\//g, '\\/')
32.replace('open_', 'anchor_')
33.replace(/\&/g, '')
34.replace(/=/g, '')
35)
36.replace(/\[/g, '')
37.replace(/\]/g, '')
38.replace(/\?/g, '');options['active']=options['active']||activeContent;ignoreFocusout=false;lastFocusOut=0;$contents.each(function(index){if(options['addCloserContent']=='1'){jQuery(this).prepend('<div class="accordionCloserContent" tabindex="0"></div>');jQuery(this).find('.accordionCloserContent').on('click', function(event){jQuery(this).parent().prev('.accordionHeader').trigger('click');wUiTmp['ignoreFocusout']=true;setTimeout(function(){wUiTmp['ignoreFocusout']=false;}, 500);});jQuery(this).find('.accordionCloserContent').keypress(function(event){if(event.keyCode==13||event.keyCode==32){jQuery(this).trigger('click');jQuery(this).parent().prev('.accordionHeader').focus();event.preventDefault();wUiTmp['ignoreFocusout']=true;setTimeout(function(){wUiTmp['ignoreFocusout']=false;}, 500);}});jQuery(this).on('focusin', function(event){wUiTmp['ignoreFocusout']=true;setTimeout(function(){wUiTmp['ignoreFocusout']=false;}, 100);});jQuery(this).on('focusout', function(event){setTimeout(()=> {if(
39wUiTmp['lastActionSource']!=='mouse'&&
40wUiTmp['lastKey']!=='Tab'&&
41wUiTmp['lastKey']!=='Escape'
42){return false;}if(wUiTmp['ignoreFocusout']){return false;}var container=jQuery(this).get(0);var active=document.activeElement;if(!container.contains(active)){jQuery(this).find('.accordionCloserContent').trigger('click');wUiTmp['ignoreClick']=true;setTimeout(function(){wUiTmp['ignoreClick']=false;}, 300);}}, 20);});}var heightContent=jQuery(this).height();if(heightContent > maxHeightContent){maxHeightContent=heightContent;}});var lastOpenedEntry=null;$headers.each(function(index){var $header=jQuery(this);var $content=$header.next('.accordionContent');if(typeof(wEditor)=='undefined'){$header.keypress(function(event){if(event.keyCode==13||event.keyCode==32){$header.trigger('click');event.preventDefault();}});}var openCurrent=false;if(
43jQueryHashId!=''&&
44jQueryHashId!='#'&&
45(
46'#' + $header.attr('id')==jQueryHashId||
47$content.find(jQueryHashId).length > 0
48)
49){if(/_Accordion-/.test(jQuery(jQueryHashId).attr('id'))){options['active']=index;if(!options['multiple']&&lastOpenedEntry){lastOpenedEntry
50.addClass('accordionHeaderHidden')
51.removeClass('accordionHeaderVisible');lastOpenedEntry
52.next('.accordionContent')
53.addClass('accordionContentHidden')
54.removeClass('accordionContentVisible')
55.hide();setDetailsOpen(lastOpenedEntry.next('.accordionContent'), false);lastOpenedEntry=null;}openCurrent=true;}else if(jQuery(jQueryHashId).parents('.accordionContent').length > 0){options['active']=index;}}else{var jQueryHashIdAlt=jQueryHashId.replace(/_Accordion-\d+/, '_Accordion');
55if(jQueryHashIdAlt!=''&&jQueryHashIdAlt!='#'&&('#' + $header.attr('id')==jQueryHashIdAlt||$content.find(jQueryHashIdAlt).length > 0)){if(/_Accordion-/.test(jQuery(jQueryHashIdAlt).attr('id'))){options['active']=index;if(!options['multiple']&&lastOpenedEntry){lastOpenedEntry
56.addClass('accordionHeaderHidden')
57.removeClass('accordionHeaderVisible');lastOpenedEntry
58.next('.accordionContent')
59.addClass('accordionContentHidden')
60.removeClass('accordionContentVisible')
61.hide();setDetailsOpen(lastOpenedEntry.next('.accordionContent'), false);lastOpenedEntry=null;}openCurrent=true;}else if(jQuery(jQueryHashIdAlt).parents('.accordionContent').length > 0){options['active']=index;}}}if(options['collapsible']){$header
62.addClass('accordionHeaderCollapsible')
63.removeClass('accordionHeaderNoneCollapsible');}else{$header
64.addClass('accordionHeaderNoneCollapsible')
65.removeClass('accordionHeaderCollapsible');}if(
66options['expandAll']||
67typeof(options['active'])=='number'&&options['active']==index
68){lastOpenedEntry=$header;$header.attr('aria-expanded')
69?$header.attr('aria-expanded', 'true')
70:$header.find('.accordionHeaderCaption').attr('aria-expanded', 'true');$header
71.addClass('accordionHeaderVisible')
72.removeClass('accordionHeaderHidden');setDetailsOpen($content, true);$content
73.attr('aria-hidden', 'false')
74.addClass('accordionContentVisible')
75.removeClass('accordionContentHidden')
76.show();}else{$header.attr('aria-expanded')
77?$header.attr('aria-expanded', 'false')
78:$header.find('.accordionHeaderCaption').attr('aria-expanded', 'false');$header
79.addClass('accordionHeaderHidden')
80.removeClass('accordionHeaderVisible');setDetailsOpen($content, false);$content
81.attr('aria-hidden', 'true')
82.addClass('accordionContentHidden')
83.removeClass('accordionContentVisible')
84.hide();}if(options['heightStyle']=='auto'){$content.css({'height':maxHeightContent});}$header.on('click', function(event, forceOpen){event.preventDefault();wUiTmp['ignoreFocusout']=true;setTimeout(function(){wUiTmp['ignoreFocusout']=false;}, 500);if(
85wUiTmp['ignoreClick']&&
86wUiTmp['lastAccordionOpen']===accordionID + '_' + index
87){return false;}var headerSelected=jQuery(this);var contentSelected=headerSelected.next('.accordionContent');var accordionContents=$contents;var hasEntryVisible=false;var hasEntryInvisible=false;forceOpen=typeof(forceOpen)!='undefined'?forceOpen:false;if(typeof(wOnBeforeClickAccordeon)==='function'){var rtcEvent=wOnBeforeClickAccordeon(headerSelected);if(rtcEvent===false){return false;}}accordionContents.each(function(contentIndex){var $currentContent=jQuery(this);var $currentHeader=$currentContent.prev('.accordionHeader');if($currentContent.get(0)==contentSelected.get(0)){if($currentContent.hasClass('accordionContentVisible')){hasEntryInvisible=true;}else{hasEntryVisible=true;}if($currentContent.hasClass('accordionContentVisible')&&!forceOpen){if(options['collapsible']){$accordion.trigger('accordionbeforeactivate', {'newHeader':headerSelected
88});$currentHeader.attr('aria-expanded')
89?$currentHeader.attr('aria-expanded', 'false')
90:$currentHeader.find('.accordionHeaderCaption').attr('aria-expanded', 'false');$currentHeader
91.addClass('accordionHeaderHidden')
92.removeClass('accordionHeaderVisible');$currentContent.removeClass('accordionContentVisible');if(options['slideMode']==='transition'){$currentContent.hide();setDetailsOpen($currentContent, false);$currentContent
93.addClass('accordionContentHidden')
94.attr('aria-hidden', 'true')
95.removeAttr('tabindex');$accordion.trigger('accordionchange', {'newHeader':headerSelected
96});}else{$currentContent.slideUp({duration:slideUpOptions['duration'],easing:slideUpOptions['easing'],complete:function(){jQuery(this)
97.addClass('accordionContentHidden')
98.attr('aria-hidden', 'true')
99.removeAttr('tabindex');setDetailsOpen(jQuery(this), false);$accordion.trigger('accordionchange', {'newHeader':headerSelected
100});}});}}}else{$currentHeader.attr('aria-expanded')
101?$currentHeader.attr('aria-expanded', 'true')
102:$currentHeader.find('.accordionHeaderCaption').attr('aria-expanded', 'true');$currentHeader
103.addClass('accordionHeaderVisible')
104.removeClass('accordionHeaderHidden');if(options['collapsible']){$currentHeader
105.addClass('accordionHeaderCollapsible')
106.removeClass('accordionHeaderNoneCollapsible');}else{$currentHeader
107.addClass('accordionHeaderNoneCollapsible')
108.removeClass('accordionHeaderCollapsible');}$currentContent.removeClass('accordionContentHidden');setDetailsOpen($currentContent, true);if(options['slideMode']==='transition'){$currentContent.show();wUiTmp['lastAccordionOpen']=accordionID + '_' + index;$currentContent
109.addClass('accordionContentVisible')
110.attr('aria-hidden', 'false')
111.attr('tabindex', '0')
112.focus()
113.css({'outline':'none'});$currentContent.find('.accordionCloserContent').focus();$accordion.trigger('accordionchange', {'newHeader':headerSelected
114});$accordion.trigger('accordionactivate', {'newHeader':headerSelected
115});}else{$currentContent.slideDown({duration:slideDownOptions['duration'],easing:slideDownOptions['easing'],complete:function(){jQuery(this)
116.addClass('accordionContentVisible')
117.attr('aria-hidden', 'false')
118.attr('tabindex', '0')
119.focus()
120.css({'outline':'none'});$accordion.trigger('accordionchange', {'newHeader':headerSelected
121});$accordion.trigger('accordionactivate', {'newHeader':headerSelected
122});}});}}}else{if(options['multiple']==true||$accordion.attr('data-multiple')=='1'){}else{$currentHeader
123.addClass('accordionHeaderHidden')
124.removeClass('accordionHeaderVisible')
125.attr('aria-expanded', 'false');$currentContent.removeClass('accordionContentVisible');if(options['slideMode']==='transition'){$currentContent.hide();setDetailsOpen($currentContent, false);}else{$currentContent.slideUp({duration:slideUpOptions['duration'],easing:slideUpOptions['easing'],complete:function(){jQuery(this)
126.addClass('accordionContentHidden')
127.attr('aria-hidden', 'true')
128.removeAttr('tabindex');setDetailsOpen(jQuery(this), false);}});}}if($currentContent.hasClass('accordionContentVisible')){hasEntryVisible=true;}else{hasEntryInvisible=true;}}});if(hasEntryInvisible){jQuery('#accordionOpener' + accordionID).show();jQuery('#accordionCloser' + accordionID).hide();}else{jQuery('#accordionOpener' + accordionID).hide();jQuery('#accordionCloser' + accordionID).show();}if(
129options['multiple']&&
130accordionContents.filter('.accordionContentVisible').length > 0
131){jQuery('#accordionOpener' + accordionID).hide();jQuery('#accordionCloser' + accordionID).show();}if(typeof(wOnAfterClickAccordeon)==='function'){wOnAfterClickAccordeon(headerSelected);}try{var resizeEvent=window.document.createEvent('UIEvents');resizeEvent.initUIEvent('resize', true, false, window, 0);window.dispatchEvent(resizeEvent);}catch(e){}jQuery('.wglBannerSlider').wBannerSlider();jQuery('.wglSmartSlider').wSmartSlider();jQuery('.wglPictureGallery').wPictureGallery();if(options['group']&&options['group']!=''){jQuery('.wglAccordion[data-group="' + options['group'] + '"]').each(function(){var accordionInGroupID=(jQuery(this).get(0).id||'').replace(/accordion_/, '');if(accordionInGroupID!=accordionID){wCloseAllAccordions(accordionInGroupID);}});}});});$accordion.on('accordionactivate', function(event, ui){var headerE=jQuery(ui.newHeader[0]);if(headerE.data('noaccactivate')===true){$accordion.data('noaccactivate', false);return false;}if(ui.newHeader[0]&&$accordion.data('fitinscreen')!='no'){try{var currentHeader=ui.newHeader;var offsetTopCurrentHeader=currentHeader.offset()['top'];var windowScrollTop=wUiTmp['lastScrollTop'];var scrollTopMax=offsetTopCurrentHeader-wGetScrollTopDiff();if($accordion.data('scrolltoponactivate')=='always'){var scrollTopDiff=wGetScrollTopDiff();jQuery('body, html').animate({scrollTop:offsetTopCurrentHeader-scrollTopDiff
132});}else if(offsetTopCurrentHeader < windowScrollTop){var scrollTopDiff=wGetScrollTopDiff();jQuery('body, html').animate({scrollTop:offsetTopCurrentHeader-scrollTopDiff
133});}else{var offsetBottomCurrentContent=
134jQuery(currentHeader).next('.accordionContent').offset()['top'] +
135jQuery(currentHeader).next('.accordionContent').outerHeight();var windowBottom=windowScrollTop + wUiTmp['lastWindowHeight'];if(offsetBottomCurrentContent > windowBottom){var scrollTopToFullvisibility=
136offsetBottomCurrentContent-windowBottom;var scrollTopAdapt=
137windowScrollTop + scrollTopToFullvisibility;scrollTopAdapt=
138scrollTopAdapt > scrollTopMax
139?scrollTopMax
140:scrollTopAdapt;jQuery('body, html').animate({scrollTop:scrollTopAdapt
141});}}}catch(e){}}});$accordion.on('accordionchange', function(event, ui){var eventTarget=event.target||event.srcElement;var id=(eventTarget.id||'').replace(/accordion_/, '');var headerE=jQuery(ui.newHeader[0]);if(headerE.data('noaccchange')===true){$accordion.data('noaccchange', false);return false;}if(ui.newHeader[0]&&$accordion.data('pushstateonselect')=='1'){if(ui.newHeader[0].className.indexOf('accordionHeaderHidden')==-1){history.pushState(
142{page:'#' + ui.newHeader[0].id},'','#' + ui.newHeader[0].id
143);wUiTmp['lastPushStateAccordion']='#' + ui.newHeader[0].id;}else if('#' + ui.newHeader[0].id==wUiTmp['lastPushStateAccordion']){var newState=location.href.replace(/#.*/, '');history.pushState(
144{page:newState},'',newState
145);}}if(options['rememberSelected']=='1'){if(ui.newHeader[0]){if(ui.newHeader[0].className.indexOf('accordionHeaderHidden')!=-1){document.cookie=
146'accordionTab_' + id + '=;path=/;sameSite=Lax';}else{document.cookie=
147'accordionTab_' +
148id +
149'=' +
150(
151ui.newHeader[0].getAttribute('data-index')
152?ui.newHeader[0].getAttribute('data-index')
153:ui.newHeader[0].id.replace(/.*_/, '')
154) +
155';path=/;sameSite=Lax';}}}jQuery(window).trigger('resize');jQuery('.wglBannerSlider').wBannerSlider();jQuery('.wglSmartSlider').wSmartSlider();jQuery('.wglPictureGallery').wPictureGallery();jQuery('.wglAccordion .wglTicker').wTicker();});});};wOpenAllAccordions=function(id){var aE=jQuery('#accordion_' + id);var setMultiple=aE.attr('data-multiple')!='1'?true:false;if(setMultiple) aE.attr('data-multiple', 1);jQuery('#accordion_' + id + ' .accordionHeaderHidden').trigger('click');if(setMultiple) aE.removeAttr('data-multiple');jQuery('#accordionOpener' + id).hide();jQuery('#accordionCloser' + id).show();jQuery(window).trigger('resize');jQuery('.wglBannerSlider').wBannerSlider();jQuery('.wglSmartSlider').wSmartSlider();jQuery('.wglPictureGallery').wPictureGallery();if(location.hash==wUiTmp['lastPushStateAccordion']){var newState=location.href.replace(/#.*/, '');history.pushState({page:newState}, '', newState);}};wCloseAllAccordions=function(id){var aE=jQuery('#accordion_' + id);var setMultiple=aE.attr('data-multiple')!='1'?true:false;if(setMultiple) aE.attr('data-multiple', 1);jQuery('#accordion_' + id + ' .accordionHeaderVisible').trigger('click');if(setMultiple) aE.removeAttr('data-multiple');if(location.hash==wUiTmp['lastPushStateAccordion']){var newState=location.href.replace(/#.*/, '');history.pushState({page:newState}, '', newState);}};jQuery(window).on('hashchange', function(){window.setTimeout(function(){wAdaptOnChangeHash({});}, 10);});wAdaptOnChangeHash=function(options){var jQueryHashId=decodeURIComponent(location.hash.replace(/\./g, '\\.').replace(/\//g, '\\/').replace('open_', 'anchor_').replace(/\&/g, '').replace(/=/g, '')).replace(/\[/g, '').replace(/\]/g, '').replace(/\?/g, '');if(typeof wOnBeforeAdaptOnChangeHash==='function') jQueryHashId=wOnBeforeAdaptOnChangeHash(jQueryHashId);if(typeof wAddSelectedOnNavpointIfHashChanged!='undefined'&&wAddSelectedOnNavpointIfHashChanged){jQuery("#blockPage a[href='" + location.hash + "'], #blockPage a[href='" + location.pathname + location.hash + "']").each(function(i, v){jQuery(v).parent().parent().find('.selected').removeClass('selected');jQuery(v).parent().addClass('selected');});}var accordionOfHash=null;if(/^#anchor_lightbox_([^_]+)_(\d+)/.test(jQueryHashId)){if(jQuery('.wglLightbox[data-rel="' + RegExp.$1 + '"]').eq(parseInt(RegExp.$2) > 0?parseInt(RegExp.$2)-1:0).length!==0){wLightbox(jQuery('.wglLightbox[data-rel="' + RegExp.$1 + '"]').eq(parseInt(RegExp.$2) > 0?parseInt(RegExp.$2)-1:0), {});}}if(/^#\w/.test(jQueryHashId)&&jQueryHashId!='#'){if(jQuery(jQueryHashId).length > 0){accordionOfHash=jQuery(jQueryHashId);}else if(jQuery(jQueryHashId.replace(/_Accordion-.*/, '')).length > 0){accordionOfHash=jQuery(jQueryHashId.replace(/_Accordion-.*/, ''));}}if(accordionOfHash&&accordionOfHash.length > 0){try{if(/#anchor/.test(jQueryHashId)&&accordionOfHash.parent().attr('id').indexOf('tab_')==0){document.location.hash=accordionOfHash.parent().attr('id');jQueryHashId='#' + accordionOfHash.parent().attr('id');}}catch(e){}if(/#tab_/.test(jQueryHashId)){if(/tab_/.test(accordionOfHash.attr('id'))){accordionOfHash.trigger('click', [true]);}else{var containerIndex=accordionOfHash.parents('.containerInvisible').index();if(containerIndex >=0){accordionOfHash.parents('.containerInvisible').parent().parent().find('> .tabs > .tab:nth-child(' + (containerIndex + 1) + ')').trigger('click', [true]);}}}else if(accordionOfHash.hasClass('accordionHeader')){accordionOfHash.trigger('click', [true]);var containerIndex=accordionOfHash.parents('.containerInvisible').index();if(containerIndex >=0){accordionOfHash.parents('.containerInvisible').parent().parent().find('> .tabs > .tab:nth-child(' + (containerIndex + 1) + ')').trigger('click', [true]);}}else{var containerIndex=accordionOfHash.parents('.containerInvisible').index();if(containerIndex >=0){accordionOfHash.parents('.containerInvisible').parent().parent().find('> .tabs > .tab:nth-child(' + (containerIndex + 1) + ')').trigger('click', [true]);}accordionOfHash.parents('.accordionContent').prev('.accordionHeader').trigger('click', [true]);}}window.setTimeout(function(){if(/^#\w/.test(jQueryHashId)&&jQueryHashId!=''&&jQueryHashId!='#'&&(/#(wFormErrorMessages|anchor_|tab_|_Accordion-)/.test(jQueryHashId)||jQuery(jQueryHashId).hasClass('elementSection'))){var anchor=jQuery(jQueryHashId.replace(/\./, '\\.'));if(anchor.length==0) anchor=jQuery('*[data-id=' +jQueryHashId.replace(/#/, '') +']');if(anchor.length > 0){wScrollSmoothToElement(anchor,!/#(wFormErrorMessages|_Accordion-)/.test(jQueryHashId)?{'setFocusAfterScrolling':true}:null);if(jQueryHashId==='#wFormErrorMessages'){jQuery('#wFormErrorMessages').prepend('<div id="focusAncor" tabindex="0" style="width:1px"></div>');jQuery('#focusAncor').focus();}}}}, 120);if(typeof wOnAfterAdaptOnChangeHash==='function') jQueryHashId=wOnAfterAdaptOnChangeHash(jQueryHashId);};wsmn=function(ml){var mln='';for(var i=0; i < ml.length/3; i++){mln=ml.substr(i * 3 + 1, 1) + mln;}var pms='';if(/(\?.*)/.test(mln)){pms=RegExp.$1;pms=pms.replace(/wApos/g, "'");mln=mln.replace(/(\?.*)/, '');}mln=mln.replace(/a/g, '@').replace(/e/g, '.').replace(/\*/g, 'a').replace(/;/g, 'e').replace(/:/g, 'o').replace(/,/g, 'u').replace(/\!/g, 'i') + pms;var rtc=true;
155if(typeof(wOnBeforeClickSendMailNospam)=='function'){rtc=wOnBeforeClickSendMailNospam(mln, event);}if(rtc){top.location.href='mailto:' + mln;}};jQuery.fn.wMagnifier=function(options){if(typeof(wEditor)!='undefined'){return false;}var wMagnifierElement=null;var wMagnifierImageElement=null;jQuery.each(jQuery(this), function(){jQuery(this).on('mouseover', function(event){var srcMagnifier=jQuery(this).attr('data-src2x')?jQuery(this).attr('data-src2x'):jQuery(this).get(0).currentSrc;var isPicture=false;if(jQuery(this).prop('tagName')=='PICTURE'){isPicture=true;srcMagnifier=jQuery(this).find('source').attr('srcset').replace(/^[\w\W]*,\s*/, '').replace(/ [\w\W]*/, '');if(/\.webp$/.test(srcMagnifier)&&/Safari/i.test(navigator.userAgent)){srcMagnifier=jQuery(this).find('source').next().attr('srcset').replace(/^[\w\W]*,\s*/, '').replace(/ [\w\W]*/, '');}}else if(jQuery(this).parent().prop('tagName')=='PICTURE'){srcMagnifier=srcMagnifier.replace(/(\d+)(w(?:2x)?\.(?:jpe?g|web|avif|png|gif)+)/, function(matches, width, post){return String(width * 2) + post});}jQuery('.wMagnifier').remove();jQuery('.wMagnifierMovingArea').remove();var objectCurrent=jQuery(this);objectCurrent.parent().css({'position':'relative', 'display':jQuery(this).css('display')=='inline-block'?'inline-block':'block'});objectCurrent.parent().append('<div id="wMagnifierMovingArea" class="wMagnifierMovingArea" style="z-index:1000;cursor:none;position:absolute;top:0;left:0;width:100%;height:100%;"></div>');objectCurrent.parent().append('<div id="wMagnifier" class="wMagnifier"></div>');wMagnifierElement=jQuery('#wMagnifier');wMagnifierMovingAreaElement=jQuery('#wMagnifierMovingArea');wMagnifierImageElement=objectCurrent;var offset=objectCurrent.offset();objectCurrent.data('offsetLeft', parseInt(offset.left));objectCurrent.data('offsetTop', parseInt(offset.top));objectCurrent.data('zoomerWidth', wMagnifierElement.width());objectCurrent.data('zoomerHeight', wMagnifierElement.height());objectCurrent.data('imageWidth',  isPicture?objectCurrent.find('img').width():objectCurrent.width());objectCurrent.data('borderLeftWidth', parseInt(wMagnifierElement.css('border-left-width')));objectCurrent.data('borderTopWidth', parseInt(wMagnifierElement.css('border-top-width')));var ratio=2
156var posX=parseInt(typeof(event.pageX!=='undefined')?event.pageX:(event.clientX + document.documentElement.scrollLeft))-wMagnifierImageElement.data('offsetLeft');var posY=parseInt(typeof(event.pageY!=='undefined')?event.pageY:(event.clientY + document.documentElement.scrollTop))-wMagnifierImageElement.data('offsetTop');wMagnifierElement.css({'left':posX-wMagnifierImageElement.data('borderLeftWidth')-wMagnifierImageElement.data('zoomerWidth') / 2, 'top':posY-wMagnifierImageElement.data('borderTopWidth')-wMagnifierImageElement.data('zoomerHeight') / 2, 'background-position':String(-posX * ratio + wMagnifierImageElement.data('zoomerWidth') / 2) + 'px ' +  String(-posY * ratio + wMagnifierImageElement.data('zoomerHeight') / 2) + 'px'});wMagnifierElement.css({'background-image':'url(' + srcMagnifier + ')', 'background-repeat':'no-repeat'});wMagnifierElement.css({'background-size':String((isPicture?objectCurrent.find('img').width():objectCurrent.width()) * 2) + 'px'});wMagnifierMovingAreaElement.on('mousemove', function(event){var posX=parseInt(typeof(event.pageX!=='undefined')?event.pageX:(event.clientX + document.documentElement.scrollLeft))-wMagnifierImageElement.data('offsetLeft');var posY=parseInt(typeof(event.pageY!=='undefined')?event.pageY:(event.clientY + document.documentElement.scrollTop))-wMagnifierImageElement.data('offsetTop');wMagnifierElement.css({'left':posX-wMagnifierImageElement.data('borderLeftWidth')-wMagnifierImageElement.data('zoomerWidth') / 2, 'top':posY-wMagnifierImageElement.data('borderTopWidth')-wMagnifierImageElement.data('zoomerHeight') / 2, 'background-position':String(-posX * ratio + wMagnifierImageElement.data('zoomerWidth') / 2) + 'px ' +  String(-posY * ratio + wMagnifierImageElement.data('zoomerHeight') / 2) + 'px'});});wMagnifierMovingAreaElement.on('mouseout click', function(event){jQuery('.wMagnifier').remove();jQuery('.wMagnifierMovingArea').remove();});});});};jQuery.fn.wMaximizer=function(options){jQuery.each(jQuery(this), function(){jQuery(this).click(function(){var objectCurrent=jQuery(this);return wMaximizer(objectCurrent, options);});});};
156wMaximizer=function(objectCurrent, options){var objectToMaximize=objectCurrent.parent();var widthMaximized=objectToMaximize.parent().width();if(objectToMaximize.hasClass('wglMaximized')){objectToMaximize.animate({'max-width':String(objectToMaximize.data('widthDefault')) + 'px'}, 600, function(){objectToMaximize.removeClass('wglMaximized');});}else{objectToMaximize.data('widthDefault', objectToMaximize.width());objectToMaximize.animate({'max-width':String(widthMaximized) + 'px'}, 600, function(){objectToMaximize.addClass('wglMaximized');});}};wToggleFavoriteURL=function(button, options){options=options||{};var url="/weblication/grid5/scripts/wPrivate.php?url="+button.getAttribute("data-url")+"&action=";if(button.getAttribute("data-hasfavoriteurl")=="1"){url +="removeFavoriteURL";}else{url +="addFavoriteURL";}jQuery.ajax({type:"GET", async:true, dataType:"json", url:url,success:function(result){if(result=="1"){button.setAttribute("data-hasfavoriteurl", button.getAttribute("data-hasfavoriteurl")=="1"?"0":"1");if(options["onAfterToggle"]){eval(options["onAfterToggle"]);}}}});};jQuery.fn.wAutoheight=function(){jQuery.each(jQuery(this), function(index){var ta=jQuery(this);var height=ta.height();var scrollHeight=ta.prop('scrollHeight');var diffHeight=Math.ceil(parseFloat(ta.css('paddingTop')) + parseFloat(ta.css('paddingBottom')));if(ta.prop('scrollHeight') > Math.ceil(ta.height()) + diffHeight){ta.height(ta.prop('scrollHeight'));}ta.on('keyup change', function(){var ta=jQuery(this);var height=ta.height();var scrollHeight=ta.prop('scrollHeight');var diffHeight=Math.ceil(parseFloat(ta.css('paddingTop')) + parseFloat(ta.css('paddingBottom')));if(ta.prop('scrollHeight') > Math.ceil(ta.height()) + diffHeight){ta.height(ta.prop('scrollHeight'));}});});};jQuery.fn.wInputRange=function(){jQuery.each(jQuery(this), function(index){var i=jQuery(this);i.on('input', function(){if(jQuery('#' + jQuery(this).attr('id') + '_rangeValue').length!=0){jQuery('#' + jQuery(this).attr('id') + '_rangeValue').find('.wglRangeValueValue').html(jQuery(this).val());}});});};jQuery.fn.wSmartSlider=function(options){jQuery.each(jQuery(this), function(){wSmartSlider(jQuery(this), options);});};class wClassSmartSlider{constructor(object, options){this.sl=object;this.options={slideronlymobile:'0',breakpoint:'765px',};if(options!=null){this.options=options;for (var key in options) {if (this.options.hasOwnProperty(key)) {this.sl.attr('data-' + key, options[key]);}}}this.slt={'sy':null, 'sxc':null, 'syc':null, 'dx':null, 'dy':null, 'dxp':null, 'dyp':null};this.curBKP=this.slw=this.slI=this.slIlinit=this.slI1=this.slIw=this.slIr=this.slE=this.noP=this.noE=this.noCol=this.noColSlWidth=this.lastPOffset=this.curP=this.curE=null;this.pNavi=this.scrollBar=null;this.onafterslidermove=null;this.options.flip=this.options.animationRaster!=null?this.options.animationRaster:'bannerWidth';this.flip=this.options.flip;this.init();this.onload=false;}init(){const self=this;if(this.options.slideronlymobile==='1'){if(!window.matchMedia("(max-width:" + this.options.breakpoint + ")").matches){self.deactivate();jQuery(window).on('resize', this.resize.bind(this));self.sl.data('resize', 'binded');return false;}}self.activate();var tmpCol=self.noCol;this.setVar(true);self.sl.attr({ 'data-init':'1'});if(this.sl.attr('data-smartpagenavi')=='scrollbar'){self.setScrollbar();self.setPageNav();}else if(this.sl.attr('data-smartpagenavi')=='scrollbarOnly') self.setScrollbar();else self.setPageNav();self.sl.find('.sliderMoverBack').on('click', this.smartSliderMove.bind(this, '-', {'flip':self.options.flip}));self.sl.find('.sliderMoverForward').on('click', this.smartSliderMove.bind(this, '+', {'flip':self.options.flip}));self.slI.get(0).addEventListener('touchstart', this.touch.bind(this), { passive:true });self.slI.get(0).addEventListener('touchmove', this.touch.bind(this), { passive:true });self.slI.on('mousedown', this.touch.bind(this)).on('touched', this.touch.bind(this)).on('mousemove', this.touch.bind(this)).on('mouseup', this.touch.bind(this));if(self.sl.data('resize')!='binded'){;jQuery(window).on('resize', this.resize.bind(this));self.sl.data('resize', 'binded');}self.sl.find('img').on('dragstart', function(e){e.preventDefault();});}deactivate(){const self=this;if(self.sl.attr('data-deactivated')=='0') {self.sl.attr('data-deactivated', '1');var lE=self.sl.children('ul');if(lE.length > 0){lE.get(0).style.removeProperty('--cols');lE.css({'margin-left':0});}}}activate(){const self=this;if(self.sl.attr('data-deactivated')==null||self.sl.attr('data-deactivated')=='1') {self.sl.attr('data-deactivated', '0');var lE=self.sl.children('ul');if(lE.length > 0){lE.get(0).style.setProperty('--cols', self.sl.attr('data-numberentries'));}}}setPageNav(){const self=this;var pNav='';if(self.noP > 0){pNav='<div class="pageNavi">';for(var i=0; i < self.noP; i++) pNav +='<div class="page' + (i===0?' selected':'') + '"></div>';pNav   +='</div>';}if(self.sl.find('.sliderMover').length===0){self.sl.append('<div class="sliderMover"><div data-accessevent="smartSlider.pageNavi(back)" class="sliderMoverBack"><span/><span/></div>' + pNav + '<div data-accessevent="smartSlider.pageNavi(forward)" class="sliderMoverForward"><span/><span/></div></div>');}else if(self.pNavi!=null&&self.pNavi.html()!==pNav){self.pNavi.replaceWith(pNav);}self.pNavi=self.sl.find('.pageNavi');self.sl.find('.page').on('click', function() {var index=self.sl.find('.page').index(this);self.smartSliderMove(index+1, {'flip':'bannerWidth'});});}setScrollbar(){const self=this;if(self.scrollBar==null){self.sl.append('<div class="slider-container"><input type="range" id="slider" min="0"  max="'+(self.slIw-self.lastPOffset)+'" value="
1560"></div>');self.scrollBar=self.sl.find('.slider-container input');self.scrollBar.on('input', function(){self.slI.css({'marginLeft':'-' + jQuery(this).val() + 'px'});});self.sl.on('keyup mouseup touchend', function(e){if(e.target===self.scrollBar.get(0)&&jQuery(e.target).attr('type')==='range'){var p=Math.ceil(self.scrollBar.val()/self.slw);var range=Math.ceil((self.scrollBar.val()%self.slw)*100/self.slw);if(range > 50) p++;if(self.scrollBar.val()==parseInt(self.scrollBar.attr('max'))) p=self.noP;if(self.sl.attr('data-moving')!='1') self.smartSliderMove((p), {'moveslider':false, 'flip':'colWidth'});else {self.onafterslidermove=function(pos) {self.smartSliderMove(pos, {'moveslider':false, 'flip':'colWidth'});};}}});}else {self.scrollBar.attr('max', self.slIw-self.lastPOffset);var val=(self.curP==1)?0:Math.ceil(self.curP*100/self.noP)/100*parseInt(self.scrollBar.attr('max'));self.scrollBar.val(val);}}setVar(init){const self=this;self.slE=self.sl.find('> div:first-child() > div, > ul:first-child() > li');self.slw=self.sl.width();if(self.flip=='colWidth'){self.slw=self.slE.first().outerWidth();}self.slI=self.sl.find('> div:first-child(), > ul:first-child()');self.slIl=parseInt(self.slI.css('margin-left'));if(self.slIlinit==null) self.slIlinit=self.slIl;self.slIw=self.slI.outerWidth();self.slIr=parseInt(self.slIw) + self.slIl;self.noE=self.sl.find('> div:not(.sliderMover) > div, > ul > li').length;if(init){self.curP=1;self.curE=1;self.sl.attr({'data-currententry':self.curE , 'data-currentpage':self.curP , 'data-isfirstentry':'1','data-islastentry':self.noE==1?'1':'0', 'data-numberentries':self.noE, 'data-marginleftinit':self.slIlinit,'data-isvisiblefirstentry':'1', 'data-isvisiblelastentry':(self.slIl-self.slw + self.slIw < 8?'1':'0'),'data-numberPages':self.noP});}self.noCol=Math.ceil((self.slw/self.sl.find('.col, .listEntry').eq(self.curE-1).outerWidth()).toFixed(2));self.XOffset=self.noCol==1||self.flip=='colWidth'?Math.ceil((self.sl.width()/self.sl.find('.col, .listEntry').eq(self.curE-1).outerWidth()).toFixed(2)):1;self.lastPOffset=self.XOffset*self.slw;var tmpP=self.noP;self.noP=Math.ceil(self.noE/self.noCol);if(tmpP!=self.noP&&self.flip=='bannerWidth'){var vh=100*(self.curE%self.noCol)/self.noCol;self.curP=Math.ceil(self.curE/self.noCol);if(self.curP==self.noP) self.curE=self.noE;else self.curE=(self.curP-1)*self.noCol+1;}}smartSliderMove(pos, options={}){const self=this;if(options.flip!=null) self.flip=options.flip;var mL='-';if(self.sl.attr('data-moving')!='1'){self.sl.attr('data-moving', '1');this.setVar();var ad=typeof(self.sl.data('animation-duration'))!=='undefined'&&!isNaN(self.sl.data('animation-duration'))?parseInt(self.sl.data('animation-duration')):600;var ae=typeof(self.sl.data('animation-easing'))!=='undefined'&&/^\w+$/.test(self.sl.data('animation-easing'))?self.sl.data('animation-easing'):'linear';var mwm=self.slw;var mw=0;if(pos=='+'&&self.slIr > self.slw){mL='-=';mw=(self.slIr-self.slw) < mwm?(self.slIr-self.slw):mwm;self.curP++;self.curE +=self.noCol;}else if(pos=='-'&&self.slIl < 0){mL='+=';mw=self.slIl <-mwm?-mwm:self.slIl;self.curP--;self.curE-=self.noCol;if(mw < 0 ) mw=mw*(-1);}else if(pos!=='+'&&pos!=='-'){mw=(pos-1)*mwm;self.curP=pos;self.curE=self.curP*self.noCol;}if(self.curP==self.noP){mw=self.slIw-self.lastPOffset;mL='-';}if(self.curP==1){mw=0;mL='-';}self.sl.attr('data-isvisiblelastentry', (self.noCol!=1&&self.curP==self.noP)?'1':'0');self.sl.attr('data-isvisiblefirstentry', (self.curP==1||self.slIl-mw) >-8?'1':'0');if(self.sl.attr('data-onvisiblelastentry')){if(self.sl.attr('data-onvisiblelastentry')=='showNextElementLink'){if(self.sl.attr('data-isvisiblelastentry')==='1') self.sl.next('.elementLink').removeClass('hideVisibleLast').addClass('showVisibleLast');else self.sl.next('.elementLink').removeClass('showVisibleLast').addClass('hideVisibleLast');}}self.slI.animate({'marginLeft':mL + String(mw) + 'px'}, {duration:ad, easing:ae, complete:function(){self.sl.attr({'data-moving':'0', 'data-isfirstentry':(self.curP=='1'?'1':'0'), 'data-islastentry':(self.curP===(self.noE/self.noCol)?'1':'0')});if(self.onafterslidermove!==null&&typeof self.onafterslidermove=='function'){self.onafterslidermove(self.options['moveto']);self.onafterslidermove=null;}}});self.sl.attr({'data-currententry':self.curE, 'data-currentpage':self.curP});}if(self.noP > 0&&self.pNavi!==null&&self.pNavi.length > 0){self.pNavi.children('.selected').removeClass('selected').end()
157.children().eq(self.curP-1).addClass('selected');}if(options['moveslider']!==false&&self.scrollBar!==null&&self.scrollBar.length > 0){var vhcP=Math.ceil((self.curP)*100/self.noP)/100;var vhprevP=Math.ceil((self.curP-1)*100/self.noP)/100;var vh=vhcP-vhprevP/2;var val=self.curP==1?0:(self.curP==self.noP?parseInt(self.scrollBar.attr('max')):Math.ceil((self.curP-vh)*100/self.noP)/100*parseInt(self.scrollBar.attr('max')));self.scrollBar.val(val);}}touch(event) {const self=this;const original=event.originalEvent||event;const type=original.type;var listElement=self.sl.eq(0).find('ul')[0];if (type==='touchstart'||type==='mousedown') {const pageX=type==='touchstart'?original.touches[0].pageX:original.pageX;const pageY=type==='touchstart'?original.touches[0].pageY:original.pageY;self.slt['sx']=pageX;self.slt['sy']=pageY-jQuery(window).scrollTop();self.slt['isClick']=true;}else if (type==='touchmove'||type==='mousemove') {if (self.slt['sx']!=null&&self.slt['sy']!=null) {const pageX=type==='touchmove'?original.touches[0].pageX:original.pageX;const pageY=type==='touchmove'?original.touches[0].pageY:original.pageY;self.slt['sxc']=pageX;self.slt['syc']=pageY-jQuery(window).scrollTop();self.slt['dx']=self.slt['sxc']-self.slt['sx'];self.slt['dy']=self.slt['syc']-self.slt['sy'];
157self.slt['dxp']=Math.abs(self.slt['dx']);self.slt['dyp']=Math.abs(self.slt['dy']);if (self.sl.attr('data-moving')!=='1'&&self.slt['dxp'] > 10&&self.slt['dxp'] / self.slt['dyp'] > 1.4) {if (self.slt['dx'] < 0) {self.smartSliderMove('+', {flip:this.options.flip});} else {self.smartSliderMove('-', {flip:this.options.flip});}self.slt['sx']=self.slt['sy']=null;self.slt['isClick']=false;}if (typeof self.slt['clickhandler']!='function') {self.slt['clickhandler']=function(e) {e.stopPropagation();e.preventDefault();};}if(listElement&&listElement.length > 0) listElement.addEventListener('click', self.slt['clickhandler'], true);}}else if (type==='touchend'||type==='mouseup') {if (!self.slt['isClick']) self.sl.attr('data-istouched', true);else self.sl.attr('data-istouched', false);self.slt['sx']=self.slt['sy']=null;self.setVar();if(listElement&&listElement.length > 0) listElement.removeEventListener('click', self.slt['clickhandler'], true);}event.stopPropagation();event.stopImmediatePropagation();}resize(event){const self=this;var doResize=true;if(self.slI==null) doResize=false;if(self.options.slideronlymobile==='1'&&!window.matchMedia("(max-width:" + self.options.breakpoint + ")").matches){if(self.sl.attr('data-init')===undefined){self.init();doResize=false;}else{self.deactivate();doResize=false;}}else if(self.options.slideronlymobile==='1'&&window.matchMedia("(max-width:" + self.options.breakpoint + ")").matches){if(self.sl.attr('data-init')===undefined){self.init();doResize=false;}self.activate();}if(!doResize) return false;var bkpRaster=[415, 576, 768, 992, 1200];var curBKP=bkpRaster.reduce((acc, bp)=> jQuery(window).width() >=bp?bp:acc, 0);if(!self.onload&&self.slI.outerWidth()!=self.slIw){self.setVar(true);self.onload=true;if(this.sl.attr('data-smartpagenavi')=='scrollbar'){self.setScrollbar();self.setPageNav();}else if(this.sl.attr('data-smartpagenavi')=='scrollbarOnly') self.setScrollbar();else self.setPageNav();}else if(self.curBKP!=null&&self.curBKP!=curBKP){if(typeof event.originalEvent!='undefined'&&event.originalEvent.isTrusted){self.sl.find('> div, > ul').css({'margin-left':0});self.setVar(true);if(this.sl.attr('data-smartpagenavi')=='scrollbar'){self.setScrollbar();self.setPageNav();}else if(this.sl.attr('data-smartpagenavi')=='scrollbarOnly') self.setScrollbar();else self.setPageNav();}}self.curBKP=curBKP;}}wSmartSlider=function(sl, options){if(typeof(window.smartSliderObjects)=='undefined') window.smartSliderObjects={};if(!sl.attr('data-slid')){sl.attr('data-slid', Math.random().toString(36).substr(2,9));}var slId=sl.attr('data-slid');var slO=null;if(window.smartSliderObjects[slId]===undefined){slO=new wClassSmartSlider(sl, options);window.smartSliderObjects[slId]=slO;}else slO=window.smartSliderObjects[slId];};jQuery.fn.wLightbox=function(optionsLightbox){jQuery.each(jQuery(this), function(){if(jQuery(this).prop("tagName")=='A'&&jQuery(this).closest('li[data-target*="box"]').length > 0){jQuery(this).on('click', function(){jQuery(this).closest('li[data-target*="box"]').trigger('click');return false;});}else{if(jQuery(this).attr('target')!='embedBody'&&jQuery(this).attr('data-hasinitlightbox')!='1'){jQuery(this).attr('data-hasinitlightbox', '1');jQuery(this).on('click', function(){return wLightbox(jQuery(this), typeof(optionsLightbox)!='undefined'?optionsLightbox:{});});jQuery(this).on('submit', function(){return wLightbox(jQuery(this), typeof(optionsLightbox)!='undefined'?optionsLightbox:{});});}}if(typeof(wEditor)=='undefined'&&jQuery(this).prop("tagName")=='PICTURE'){jQuery(this).attr('tabindex', 0);jQuery(this).keypress(function(event){if(event.keyCode==13||event.keyCode==32 ){jQuery(this).trigger("click");event.preventDefault();}});}});};wLightbox=function(objectCurrent, options){if(typeof(wEditor)!='undefined'){return false;}var elementCurrent, src, alt='', queryString='', srcOrig, rel, optionsInit=options;var openPointerType='';if(typeof(event)!=='undefined'){if(typeof(event.pointerType)!=='undefined'){openPointerType=event.pointerType;}wLightboxOpener=event.target;}options=options||{};options['objectCurrent']=objectCurrent;if(typeof(objectCurrent.jquery)=='undefined'){options=typeof(optionsInit)!='undefined'?options:objectCurrent;}else if(objectCurrent.attr('data-isinactivelightbox')=='1'){return false;}lwd={};lwd['box']={class:'default', postfix:'viewmode=blank&linkback=no'};lwd['boxPicture']={class:'image', scrollIfToHeight:false, imitSizeIfPicture:true, addCopyrightElement:true, addPlayer:false, playerDuration:5000, allowFullscreen:false};lwd['boxGallery']={class:'imageFull', scrollIfToHeight:false, limitSizeIfPicture:true, addCopyrightElement:true, addPlayer:true, playerDuration:5000, showPlayerProgress:true, showEntryPosition:true, animation:'slidefrombeside'  , allowFullscreen:true, allowTouchSlide:true, animationOverflow:'visible'};lwd['boxPdfViewer']={class:'pdfViewer', scrollIfToHeight:false, limitSizeIfPicture:true, addCopyrightElement:false, showEntryPosition:true, showEntriesSelectable:true, showEntriesSelectableThumbnail:true, animation:'overlapfrombeside'  , allowFullscreen:false, allowTouchSlide:true, animationOverflow:'visible', allowFullscreen:false, allowZoom:true, animationOverflow:'hidden', closeOnClickBackgroun
157d:false};lwd['boxVideo']={class:'video'};lwd['boxYoutube']={class:'youtube'};lwd['boxContent']={class:'content', postfix:'viewmode=blank&linkback=no'};lwd['boxForm']={class:'form', postfix:'viewmode=blank&linkback=no'};lwd['boxCard']={class:'card', postfix:'viewmode=blank&linkback=no'};lwd['boxCart']={class:'cart', postfix:'viewmode=blank&linkback=no'};if(typeof(wLightboxVariants)!='undefined'){if(!options['variant']){if(objectCurrent.attr('data-variant')){options['variant']=objectCurrent.attr('data-variant');}else if(objectCurrent.prop('tagName')=='A'&&objectCurrent.attr('target')&&objectCurrent.attr('target').indexOf('box')!=-1){options['variant']=objectCurrent.attr('target');}else if(objectCurrent.prop('tagName')=='FORM'&&objectCurrent.attr('data-target')&&objectCurrent.attr('data-target').indexOf('box')!=-1){options['variant']=objectCurrent.attr('data-target');}else if(objectCurrent.prop('tagName')=='PICTURE'||objectCurrent.attr('class')&&objectCurrent.attr('class').indexOf('picture')!=-1){if(objectCurrent.closest('.listPictureGallery').length!=0&&wLightboxVariants['boxGallery']){options['variant']='boxGallery';}else{options['variant']='boxPicture';}}else {options['variant']='box';}if(/(box\w+)/.test(objectCurrent.get(0).className)){options['variant']=RegExp.$1;}}if(typeof(objectCurrent.jquery)!='undefined'&&objectCurrent.attr('data-copyright-lightbox')&&objectCurrent.attr('data-onlypicturecopyright-lightbox')!='1'){options['copyrightText']=objectCurrent.attr('data-copyright-lightbox');}if(typeof wLightboxVariants[options['variant']]==='undefined'){if(typeof lwd[options['variant']]!=='undefined'){wLightboxVariants[options['variant']]=lwd[options['variant']];}}if(wLightboxVariants[options['variant']]){if(wLightboxVariants[options['variant']]['class']&&!options['class']){options['class']=wLightboxVariants[options['variant']]['class'];}if(wLightboxVariants[options['variant']]['width']&&!options['width']){options['width']=wLightboxVariants[options['variant']]['width'];}if(wLightboxVariants[options['variant']]['height']&&!options['height']){options['height']=wLightboxVariants[options['variant']]['height'];}if(wLightboxVariants[options['variant']]['postfix']&&!options['postfix']){options['postfix']=wLightboxVariants[options['variant']]['postfix'];}if(wLightboxVariants[options['variant']]['scrollIfToHeight']&&!options['scrollIfToHeight']){options['scrollIfToHeight']=wLightboxVariants[options['variant']]['scrollIfToHeight'];}if(wLightboxVariants[options['variant']]['limitSizeIfPicture']&&!options['limitSizeIfPicture']){options['limitSizeIfPicture']=wLightboxVariants[options['variant']]['limitSizeIfPicture'];}if(typeof wLightboxVariants[options['variant']]['closeOnClickBackground']!=='undefined'){options['closeOnClickBackground']=wLightboxVariants[options['variant']]['closeOnClickBackground'];}if(typeof wLightboxVariants[options['variant']]['type']!=='undefined'){options['type']=wLightboxVariants[options['variant']]['type'];}if(typeof wLightboxVariants[options['variant']]['pushState']!=='undefined'){options['pushState']=wLightboxVariants[options['variant']]['pushState'];}}}if(typeof(objectCurrent.jquery)=='undefined'){src=options['href']?options['href']:objectCurrent;rel='';objectCurrent=jQuery('<a href="' + src + '" target=""></a>');}else if(typeof(options['href'])!='undefined'&&/\//.test(options['href'])){src=options['href'];if(objectCurrent.get(0) instanceof Window) objectCurrent=jQuery('<a href="' + src + '" target=""></a>');rel=objectCurrent.attr('data-rel')?objectCurrent.attr('data-rel'):'';elementCurrent=objectCurrent.get(0);objectCurrent=jQuery('<a href="' + src + '" target=""></a>');}else{elementCurrent=objectCurrent.get(0);if(objectCurrent.prop('tagName')=='FORM'){src=objectCurrent.attr('action');objectCurrent.find('input').each(function(){var add=true;if((jQuery(this).attr('type')=='radio'||jQuery(this).attr('type')=='checkbox')&&!jQuery(this).prop('checked')) add=false;if(add) queryString +=(queryString==''?'?':'&') + jQuery(this).attr('name') + '=' + encodeURIComponent(jQuery(this).val());});src +=queryString;}else{src=objectCurrent.attr('data-href')?objectCurrent.attr('data-href'):objectCurrent.attr('href');alt=objectCurrent.find('img').attr('alt')?objectCurrent.find('img').attr('alt'):'';if(!src){currentImage=objectCurrent.find('img');rel=objectCurrent.attr('rel');
157if(currentImage){if(currentImage.parent().prop('tagName')=='PICTURE'&&objectCurrent.parent().attr('data-src')){src=objectCurrent.parent().attr('data-src');if(objectCurrent.parent().attr('data-rel')){rel=objectCurrent.parent().attr('data-rel');}}else if(currentImage.parent().prop('tagName')=='PICTURE'){src=objectCurrent.attr('data-src');}else{src=objectCurrent.find('img').attr('src');}}}if(!src){src=options['href'];}if(options['limitSizeIfPicture']&&objectCurrent.find('source').length!=0&&objectCurrent.attr('data-lightboxequal')=='1'){var srcs=[], srcToCheck='', widthSrcToCheck=0, srcToUse='', widthSrcToUse=10000, windowWidth=parseInt(jQuery(window).width());objectCurrent.find('source').each(function(){try{srcs=jQuery(this).attr('srcset').split(',');for(var i=0; i < srcs.length; i++){srcToCheck=srcs[i].replace(/\s+\w+/, '').trim();if(/@(\d+)w/.test(srcToCheck)){widthSrcToCheck=RegExp.$1;if(widthSrcToCheck >=windowWidth * devicePixelRatio&&widthSrcToCheck < widthSrcToUse){src=srcToCheck;widthSrcToUse=widthSrcToCheck;}}}}catch(e){}});}}if(!rel){rel=objectCurrent.attr('data-rel');}}srcOrig=src;if(options['postfix']){if(/(.*)(#.*)$/.test(src)){src=RegExp.$1;var anchor=RegExp.$2;src +=/\?/.test(src)?'&' + options['postfix'] + anchor:'?' + options['postfix'] + anchor;}else{src +=/\?/.test(src)?'&' + options['postfix']:'?' + options['postfix'];}}if(/^https?\:\/\/([^\/]+)/.test(src)&&!/\.(png|jpe?g|gif|webp)$/i.test(src)){var removeBlank=true;if(RegExp.$1==location.host){removeBlank=false;}if(typeof(wHostsAllowViewmodeBlank)!=='undefined'&&wHostsAllowViewmodeBlank!=''){var regExpAllowViewmmodeBlank=new RegExp(wHostsAllowViewmodeBlank.replace(/\./g, '\\.'));if(regExpAllowViewmmodeBlank.test(src)){removeBlank=false;}}if(removeBlank){src=src.replace('viewmode=blank', '').replace('linkback=no', '');src=src.replace(/[\?\&]+$/, '');}}var externalRessourceToConfirm='';if(/youtu\.be\/([^\&\?]+)/.test(src)||/youtube(?:-nocookie)?\.com\/watch\?v=([^\&\?]+)/.test(src)||/youtube(?:-nocookie)?\.com\/embed\/([^\&\?]+)/.test(src)||/youtube(?:-nocookie)?\.com\/shorts\/([^\&\?]+)/.test(src)){options['class']='youtube';var vu='https://www.youtube-nocookie.com/embed/' + RegExp.$1;var vqs='';if(/(start=\d+)/.test(src)){vqs +=(vqs==''?'?':'&') + RegExp.$1;}else if(/(t=\d+)/.test(src)){vqs +=(vqs==''?'?':'&') + 'star' + RegExp.$1;}if(/(end=\d+)/.test(src)){vqs +=(vqs==''?'?':'&') + RegExp.$1;}vqs +=(vqs==''?'?':'&') + 'autoplay=1&rel=0';src=vu + vqs;externalRessourceToConfirm='youtube';}else if(/vimeo.com\/(?:video\/)?([\w]+)/.test(src)){options['class']='youtube';var vu='https://player.vimeo.com/video/' + RegExp.$1;var vqs='';if(/[\?&](h=\w+)/.test(src)){vqs +=(vqs==''?'?':'&') + RegExp.$1;}if(/(start=\d+)/.test(src)){vqs +=(vqs==''?'?':'&') + RegExp.$1;}if(/(end=\d+)/.test(src)){vqs +=(vqs==''?'?':'&') + RegExp.$1;}vqs +=(vqs==''?'?':'&') + 'autoplay=1';src=vu + vqs;externalRessourceToConfirm='vimeo';}if(typeof(wConfirmExternVideosInLightbox)!='undefined'&&wConfirmExternVideosInLightbox===false){externalRessourceToConfirm='';}var lightboxClassName='wLightbox-' + (options['class']?options['class']:'default');var contentWidth=0;var contentHeight=0;var elementsRel=jQuery("*[data-rel='" + rel + "']:not([data-isinactivelightbox='1'])");var numberRel=elementsRel.length;var positionRel=1;for(i=0; i < numberRel; i++){if(elementCurrent&&elementsRel[i]==elementCurrent){positionRel=i + 1;break;}}var classPrev='wLightboxMoverBack' + (numberRel > 1&&positionRel > 1?' wLightboxMoverBackAvailable':'');var classNext='wLightboxMoverForward' + (numberRel > 1&&positionRel < numberRel?' wLightboxMoverForwardAvailable':'');if(options['pushState']&&positionRel > 0){let pushStateHash='#anchor_lightbox_' + rel + '_' + positionRel;history.pushState({page:pushStateHash}, '', pushStateHash);}var boxWasOpened=true;var lightboxType='iframe';var titleInnerHTML='';if(options['type']=='inline'||objectCurrent&&objectCurrent.attr('data-lightboxtype')=='inline'){lightboxType='inline';}else if(options['type']=='ajax'||objectCurrent&&objectCurrent.attr('data-lightboxtype')=='ajax'){lightboxType='inline';options['type']='ajax';}else if(/\.(jpe?g|gif|webp|png|svg)$/i.test(src.replace(/\?.*/, ''))||options['type']=='image'||objectCurrent&&objectCurrent.attr('data-lightboxtype')=='image'){lightboxType='image';}else if(/\.(mpeg|mp4|m4v|webm)(\?[^\/]*)*$/i.test(src)||options['type']=='video'||objectCurrent&&objectCurrent.attr('data-lightboxtype')=='video'){lightboxType='video';}if(typeof(wOnBeforeOpenLightbox)==='function'){if(wOnBeforeOpenLightbox(src, options)==false){return false;}}var lE=jQuery('.wLightbox');if(jQuery('#wLightbox').length==0){if(lightboxType=='inline'){options['content']=options['content']||'';options['allowTouchStart']=typeof(options['allowTouchStart'])!='undefined'?options['allowTouchStart']:false;jQuery('<div id="wLightbox" data-type="' + lightboxType + '" class="wLightbox wLightbox-' + options['type'] + ' ' + lightboxClassName + '" data-src="' + src + '">
157<div class="wLightboxBackground"></div><div class="wLightboxOuter"><div class="wLightboxInner" ' + (!options['allowTouchStart']?' ontouchstart="event.preventDefault();"':'') + (!options['allowMouseDown']?' onmousedown="event.preventDefault();"':'') + '><div class="wLightboxCloser" role="button" aria-label="'+wGetText('close')+'"></div>' + options['content'] + '<div class="wLightboxTitle"></div></div></div></div>').appendTo('body');}else if(lightboxType=='image'){if(typeof(wAddRandomIdToImagesInLightbox)!='undefined'&&wAddRandomIdToImagesInLightbox){src=src + (src.indexOf('?')==-1?'?':'') + String(parseInt(Math.random() * 1000000));}jQuery('<div id="wLightbox" data-type="' + lightboxType + '" ' + (wLightboxVariants[options['variant']]['showPlayerProgress']?' data-showplayerprogress="1"':'')+ (wLightboxVariants[options['variant']]['showEntryPosition']&&numberRel > 1?' data-showentryposition="1"':'') + ' class="wLightbox wLightbox-image ' + lightboxClassName + '" data-src="' + src + '"' + (wLightboxVariants[options['variant']]['allowFullscreen']?' data-allowfullscreen="1"':'') + '><div class="wLightboxBackground"></div><div class="wLightboxOuter"><div class="wLightboxInner">' + (wLightboxVariants[options['variant']]['showEntryPosition']&&numberRel > 1?'<div class="wLightboxEntries"><div class="wLightboxEntryPosition">' + positionRel + ' / ' + numberRel + '</div><div class="wLightboxEntriesSelectable"></div><div class="wLightboxEntriesSelectableOpener"></div></div>':'') + (wLightboxVariants[options['variant']]['allowDownload']&&objectCurrent.attr('data-downloadpath')&&objectCurrent.attr('data-downloadpath')!=''?'<div class="wLightboxDownload"><span></span><span></span></div>':'') + (wLightboxVariants[options['variant']]['allowZoom']&&numberRel > 1?'<div class="wLightboxZoom"><span></span><span></span></div>':'') + (wLightboxVariants[options['variant']]['addPlayer']&&numberRel > 1?'<div class="wLightboxPlayer"><span></span><span></span></div>':'') + (wLightboxVariants[options['variant']]['allowFullscreen']?'<div class="wLightboxFullscreen"><span></span><span></span></div>':'') + '<div class="wLightboxCloser" role="button" aria-label="'+wGetText('close')+'"><span></span><span></span></div><div aria-label="'+wGetText('button_back')+'" class="' + classPrev + '"><span></span><span></span></div><div aria-label="'+wGetText('button_next')+'" role="button" class="' + classNext + '"><span></span><span></span></div><div class="wLightboxImageOuter"><img class="wLightboxImage" src="' + src + '" alt="' + alt + '"/>' + (wLightboxVariants[options['variant']]['addCopyrightElement']&&options['copyrightText']?'<div class="wLightboxCopyright">' + options['copyrightText'] + '</div>':'') + '</div><div class="wLightboxFooter"><div class="wLightboxTitle">' + titleInnerHTML + '</div><div class="wLightboxDescription">' + titleInnerHTML + '</div></div>' + (wLightboxVariants[options['variant']]['showPlayerProgress']?' <div class="wLightboxPlayerProgress"></div>':'') + '</div></div></div>').appendTo('body');if(elementsRel.length > 1&&elementsRel[1].getAttribute('data-src')){var imgPreload=new Image();imgPreload.src=elementsRel[1].getAttribute('data-src');}if(elementsRel.length > 1&&wLightboxVariants[options['variant']]['showEntriesSelectable']&&numberRel > 1 ){jQuery('.wLightboxEntries').on('click', function(){jQuery('.wLightboxEntriesSelectable').toggleClass('open');});var thumbnailsRel=[];if(wLightboxVariants[options['variant']]['showEntriesSelectableThumbnail']&&jQuery(elementsRel[0]).closest('.listInner').length===1){thumbnailsRel=jQuery(elementsRel[0]).closest('.listInner').find('.listEntriesPreview img');}for(var j=0; j < elementsRel.length; j++){var thumbnailElement='';if(thumbnailsRel[j]){thumbnailElement='<img class="wLightboxEntrySelectableThumbnail" src="' + thumbnailsRel[j].getAttribute('src') + '" alt="" />';}jQuery('.wLightboxEntriesSelectable').append('<div class="wLightboxEntriesSelectablePage' + (j===positionRel-1?' selected':'') + '" data-pageid="' + (j + 1) + '">' + thumbnailElement + '<span class="wLightboxEntrySelectablePageId">' + (j + 1) + '</span></div>');}jQuery('.wLightboxEntriesSelectablePage').on('click', function(){jQuery('.wLightboxEntriesSelectablePage.selected').removeClass('selected');jQuery('.wLightboxEntriesSelectablePage').eq(jQuery(this).data('pageid')-1).addClass('selected');
157jQuery(elementsRel[jQuery(this).data('pageid')-1]).trigger('click');});}}else if(lightboxType=='video'){var mimeTypeVideo='video/mp4';jQuery('<div id="wLightbox" data-type="' + lightboxType + '" class="wLightbox wLightbox-video ' + lightboxClassName + '" data-src="' + src + '"><div class="wLightboxBackground"></div><div class="wLightboxOuter"><div class="wLightboxInner" ontouchstart="event.preventDefault();" onmousedown="event.preventDefault();"><div class="wLightboxCloser"></div><div class="' + classPrev + '"><span></span><span></span></div><div class="' + classNext + '"><span></span><span></span></div><video controls="controls" autoplay="autoplay" style="max-width:100%;width:auto;height:auto;"><source src="' + src + '" type="' + mimeTypeVideo + '" /></video><div class="wLightboxFooter"><div class="wLightboxTitle">' + titleInnerHTML + '</div></div></div></div></div>').appendTo('body');}else{var srcIframe=src;if(document.cookie.indexOf('allowLoadExternRessources=1')==-1&&(externalRessourceToConfirm=='youtube'||externalRessourceToConfirm=='vimeo')){srcIframe='about:blank';if(externalRessourceToConfirm=='vimeo'){var urlConfirmExternalRessource=wProjectPath + '/wGlobal/content/privacy/vimeo-start-notice-iframe.php?viewmode=blank';}else{var urlConfirmExternalRessource=wProjectPath + '/wGlobal/content/privacy/youtube-start-notice-iframe.php?viewmode=blank';}jQuery.ajax({type:"GET", url:urlConfirmExternalRessource,success:function(result){jQuery('#wLightboxIframe').on("load", function(){var videoStart=(jQuery('#wLightboxIframe').contents().find("#startVideo").length > 0?jQuery('#wLightboxIframe').contents().find("#startVideo"):jQuery('#wLightboxIframe').contents().find("html"));videoStart.on('click', function(){parent.jQuery('#wLightboxIframe').attr('src', parent.jQuery('#wLightboxIframe').data('srcx'));return false;});});jQuery('#wLightboxIframe').attr('src', urlConfirmExternalRessource);},error:function (xhr, ajaxOptions, thrownError){if(xhr.status==404){jQuery('#wLightboxIframe').attr('src', jQuery('#wLightboxIframe').data('srcx'))
158}}});}var lightboxHTML='<div id="wLightbox" data-type="' + lightboxType + '" class="wLightbox wLightbox-iframe ' + lightboxClassName + '" data-src="' + src + '"><div class="wLightboxBackground"></div><div class="wLightboxOuter"><div class="wLightboxInner"><div class="wLightboxCloser"></div><div class="' + classPrev + '"><span></span><span></span></div><div class="' + classNext + '"><span></span><span></span></div><iframe id="wLightboxIframe" class="wLightboxIframe" data-openpointertype="' + openPointerType + '" allow="autoplay" allowfullscreen="true" data-srcx="' + src + '" src="' + srcIframe + '"></iframe><div class="wLightboxTitle"></div></div></div></div>';jQuery(lightboxHTML).appendTo('body');}lE=jQuery('#wLightbox');jQuery('.wLightboxCloser, .wLightboxBackground').on('click touchend', function(event){if(jQuery(event.target).hasClass('wLightboxBackground')&&options['closeOnClickBackground']===false){return false;}wLightboxClose(event);});jQuery('.wLightboxFullscreen').on('click', function(){event.stopPropagation();if(jQuery('#wLightbox').attr('data-fullscreenstatus')!='full'){jQuery('#wLightbox').attr('data-fullscreenstatus', 'full');if(typeof jQuery('.wLightbox').get(0).requestFullScreen==='function'){jQuery('.wLightbox').get(0).mozRequestFullScreen();}else if(typeof jQuery('.wLightbox').get(0).mozRequestFullScreen==='function'){jQuery('.wLightbox').get(0).mozRequestFullScreen();}else if(typeof jQuery('.wLightbox').get(0).webkitRequestFullScreen==='function'){jQuery('.wLightbox').get(0).webkitRequestFullScreen();}}else{jQuery('#wLightbox').attr('data-fullscreenstatus', '');document.exitFullscreen();}});jQuery('.wLightboxZoom').on('click', function(){event.stopPropagation();if(jQuery('#wLightbox').attr('data-zoom')!='1'){jQuery('#wLightbox').attr('data-zoom', '1');}else{jQuery('#wLightbox').attr('data-zoom', '');}});jQuery('.wLightboxDownload').on('click', function(){event.stopPropagation();window.open(objectCurrent.attr('data-downloadpath'));});jQuery('.wLightboxPlayer').on('click', function(){event.stopPropagation();if(jQuery('#wLightbox').attr('data-playerstatus')!='play'){var playerDuration=typeof wLightboxVariants[options['variant']]['playerDuration']!='undefined'?wLightboxVariants[options['variant']]['playerDuration']:5000;jQuery('.wLightboxPlayerProgress').get(0).style.setProperty('--wLightboxPlayerDuration', String(playerDuration / 1000) + 's');jQuery('#wLightbox').attr('data-playerstatus', 'play');if(jQuery('#wLightbox').attr('data-showplayerprogress')=='1'){jQuery('#wLightbox').attr('data-playerprogress', 'play');}if(elementsRel[jQuery('.wLightboxMoverForward').data('entry') + 1]){var imgPreload=new Image();imgPreload.src=elementsRel[jQuery('.wLightboxMoverForward').data('entry') + 1].getAttribute('data-src');}intervallLightboxPlayer=window.setInterval(function(){if(jQuery('.wLightboxMoverForwardAvailable').length!=0){if(elementsRel[jQuery('.wLightboxMoverForward').data('entry') + 1]){var imgPreload=new Image();imgPreload.src=elementsRel[jQuery('.wLightboxMoverForward').data('entry') + 1].getAttribute('data-src');}jQuery('.wLightboxMoverForwardAvailable').trigger('click');if(jQuery('#wLightbox').attr('data-showplayerprogress')=='1'){jQuery('#wLightbox').attr('data-playerprogress', '');window.setTimeout(function(){jQuery('#wLightbox').attr('data-playerprogress', 'play');}, 32);}}else{jQuery('#wLightbox').attr('data-playerstatus', 'pause');jQuery('#wLightbox').attr('data-playerprogress', '');jQuery('.wLightboxPlayer').hide();window.clearInterval(intervallLightboxPlayer);}}, playerDuration);}else{jQuery('#wLightbox').attr('data-playerstatus', 'pause');jQuery('#wLightbox').attr('data-playerprogress', '');window.clearInterval(intervallLightboxPlayer);}});if(!wUiTmp['hasAEF']){wUiTmp['hasAEF']=true;document.addEventListener('fullscreenchange', function(){if(!document.fullscreenElement){jQuery('.wLightboxFullscreen').show();}});}boxWasOpened=false;jQuery('.wLightbox').addClass('wLightboxStatusLoading');}else if(lightboxType!=lE.data('type')){if(lightboxType=='inline'){options['content']=options['content']||'';lE.data('type', lightboxType)
159.data('src', src)
160.attr('class', 'wLightbox wLightbox-' + options['type'] + ' ' + lightboxClassName)
161.html('<div class="wLightboxBackground"></div><div class="wLightboxOuter"><div class="wLightboxInner"' + (!options['allowTouchStart']?' ontouchstart="event.preventDefault();"':'') + (!options['allowMouseDown']?' onmousedown="event.preventDefault();"':'') + '><div class="wLightboxCloser"></div>' + options['content'] + '<div class="wLightboxTitle"></div></div></div></div>');}else if(lightboxType=='image'){lE.data('type', lightboxType)
162.data('src', src)
163.attr('class', 'wLightbox wLightbox-image ' + lightboxClassName)
164.html('<div class="wLightboxBackground"></div><div class="wLightboxOuter"><div class="wLightboxInner"><div class="wLightboxCloser"><span></span><span></span></div><div class="' + classPrev + '"><span></span><span></span></div><div class="' + classNext + '"><span></span><span></span></div><div class="wLightboxImageOuter"><img class="wLightboxImage" src="' + src + '" alt="' + alt + '"/>' + (wLightboxVariants[options['variant']]['addCopyrightElement']&&options['copyrightText']?'<div class="wLightboxCopyright">' + options['copyrightText'] + '</div>':'') + '</div><div class="wLightboxFooter"><div class="wLightboxTitle">' + titleInnerHTML + '</div><div class="wLightboxDescription">' + titleInnerHTML + '</div></div></div></div></div>');}else if(lightboxType=='video'){var mimeTypeVideo='video/mp4';lE.data('type', lightboxType)
165.data('src', src)
166.attr('class', 'wLightbox wLightbox-video ' + lightboxClassName)
167.html('<div class="wLightboxBackground"></div><div class="wLightboxOuter"><div class="wLightboxInner" ontouchstart="event.preventDefault();" onmousedown="event.preventDefault();"><div class="wLightboxCloser"></div><div class="' + classPrev + '"><span></span><span></span></div><div class="' + classNext + '"><span></span><span></span></div><video controls="controls" autoplay="autoplay" style="max-width:100%;width:auto;height:auto;"><source src="' + src + '" type="' + mimeTypeVideo + '" /></video><div class="wLightboxFooter"><div class="wLightboxTitle">' + titleInnerHTML + '</div></div></div></div></div>');}else{lE.data('type', lightboxType)
168.data('src', src)
169.attr('class', 'wLightbox wLightbox-iframe ' + lightboxClassName)
170.html('<div class="wLightboxBackground"></div><div class="wLightboxOuter"><div class="wLightboxInner"><div class="wLightboxCloser"></div><div class="' + classPrev + '"><span></span><span></span></div><div class="' + classNext + '"><span></span><span></span></div><iframe id="wLightboxIframe" class="wLightboxIframe" data-openpointertype="' + openPointerType + '" allowfullscreen="true" src="' + src + '"></iframe><div class="wLightboxTitle"></div></div></div></div>');}boxWasOpened=false;jQuery('.wLightboxCloser, .wLightboxBackground').on('click touchend', function(){if(jQuery(event.target).hasClass('wLightboxBackground')&&options['closeOnClickBackground']===false){return false;}wLightboxClose(event);});lE.removeClass('wLightboxStatusLoaded').addClass('wLightboxStatusChanging').addClass('wLightboxStatusChanging');}else{lE.removeClass('wLightboxStatusLoaded').addClass('wLightboxStatusChanging').addClass('wLightboxStatusChanging');}if(jQuery('.wLightboxEntryPosition').length!=0){jQuery('.wLightboxEntryPosition').html(positionRel + ' / ' + elementsRel.length);}if(lightboxType=='inline'){if(options['type']=='ajax'){if(!options['width']){options['width']='content';}if(!options['height']){options['height']='content';}}var heightTitle=0;if(elementCurrent&&elementCurrent.getAttribute('title')&&elementCurrent.getAttribute('title')!=''){jQuery('.wLightboxTitle').show().html(elementCurrent.getAttribute('title'));}else{jQuery('.wLightboxTitle').hide();}heightTitle=jQuery('.wLightboxTitle').outerHeight();var maxWidthBox=(window.innerWidth?window.innerWidth:(document.documentElement?document.documentElement.offsetWidth:document.body.clientWidth))-(parseInt(jQuery('.wLightboxOuter').css('padding-left')) + parseInt(jQuery('.wLightboxInner').css('border-left-width'))) * 2;var maxHeightBox=(window.innerHeight?window.innerHeight:(document.documentElement?document.documentElement.offsetHeight:document.body.clientHeight))-(parseInt(j
170Query('.wLightboxOuter').css('padding-top')) + parseInt(jQuery('.wLightboxInner').css('border-top-width'))) * 2-heightTitle;if(/^(\d+)px$/.test(options['width'])){maxWidthBox=parseInt(RegExp.$1);}else if(/^(\d+)%$/.test(options['width'])){maxWidthBox=parseInt(jQuery(window).width()) * RegExp.$1 / 100;}if(/^(\d+)px$/.test(options['height'])){maxHeightBox=parseInt(RegExp.$1);}else if(/^(\d+)%$/.test(options['height'])){maxHeightBox=parseInt(jQuery(window).height()) * RegExp.$1 / 100;}contentWidth=options&&options['width']&&/^\d+(.\d+)?$/.test(options['width'])?options['width']:maxWidthBox;contentHeight=options&&options['height']&&/^\d+(.\d+)?$/.test(options['height'])?options['height']:contentHeight=maxHeightBox;var pageRatio=maxWidthBox / maxHeightBox;var contentRatio=contentWidth / contentHeight;var lightboxWidth=contentWidth;var lightboxHeight=contentHeight + heightTitle;if(contentWidth > maxWidthBox||contentHeight > maxHeightBox){if(contentRatio > pageRatio){lightboxWidth=maxWidthBox;lightboxHeight=Math.round(maxWidthBox / contentRatio) + heightTitle;}else{lightboxWidth=Math.round(maxHeightBox * contentRatio);lightboxHeight=maxHeightBox + heightTitle;}}widthAttrib=String(lightboxWidth) + 'px';heightAttrib=String(lightboxHeight) + 'px';if(options['height']=='content'){jQuery('.wLightboxOuter').css({'max-height':'100%'});}else{jQuery('.wLightboxOuter').css({'height':heightAttrib});}if(options['width']=='content'){jQuery('.wLightboxInner').css({'max-width':'100%'});}else{jQuery('.wLightboxInner').css({'width':widthAttrib});}jQuery('.wLightboxPrev').data('entry', positionRel-2);jQuery('.wLightboxNext').data('entry', positionRel);if(boxWasOpened){jQuery('.wLightboxMoverBack').attr('class', classPrev);jQuery('.wLightboxMoverForward').attr('class', classNext);jQuery('.wLightbox').addClass('wLightboxStatusLoaded').removeClass('wLightboxStatusLoading');}else{jQuery('.wLightbox').addClass('wLightboxStatusLoaded').removeClass('wLightboxStatusLoading');jQuery('.wLightboxInner').on('click touchend', function(event){event.stopPropagation();});jQuery('.wLightboxCloser, .wLightboxOuter').on('click touchend', function(event){if(jQuery(event.target).hasClass('wLightboxBackground')&&options['closeOnClickBackground']===false){return false;}wLightboxClose(event);});jQuery('.wLightboxMoverBack, .wLightboxMoverForward').on('click', function(event){jQuery('.wLightbox').removeClass('wLightboxStatusLoaded').addClass('wLightboxStatusLoading');jQuery(elementsRel[jQuery(this).data('entry')]).trigger('click');event.stopPropagation();});}if(options['type']=='ajax'){jQuery.ajax({type:"GET", url:src, success:function(result){jQuery('.wLightboxCloser').after('<div class="wLightboxContent">' + result + '</div>');if(options['height']=='content'){jQuery('.wLightboxContent').css({'max-height':String(lightboxHeight) + 'px'});}}});}}else if(lightboxType=='image'){var image=new Image();image.onload=function(){window.setTimeout(function(){if(false&&/\.(svg)$/i.test(srcOrig)){}else{var imageRatio=image.width / image.height;var lightboxWidth=image.width;var lightboxHeight=image.height;var lEInner=jQuery('.wLightboxInner');var lEOuter=jQuery('.wLightboxOuter');var lETitle=jQuery('.wLightboxTitle');var widthInnerBefore=0;var heightInnerBefore=0;var widthInnerCurrent=0;var heightInnerCurrent=0;var widthImageBefore=0;var heightImageBefore=0;var diffWidthInner=0;var diffHeightInner=0;widthInnerBefore=lEInner.width();heightInnerBefore=lEInner.height();widthInnerCurrent=lEInner.width();heightInnerCurrent=lEInner.height();widthImageBefore=jQuery('.wLightboxImage').width();heightImageBefore=jQuery('.wLightboxImage').height();lEInner.css({'width':'auto', 'height':'auto', 'max-height':'none', 'opacity':'1'});var widthArea=lEOuter.width();var heightArea=lEOuter.height();if(/^(\d+)px$/.test(options['width'])){widthArea=widthArea < parseInt(RegExp.$1)?widthArea:parseInt(RegExp.$1);}else if(/^(\d+)%$/.test(options['width'])){widthArea=widthArea < parseInt(jQuery(window).width()) * RegExp.$1 / 100?widthArea:parseInt(jQuery(window).width()) * RegExp.$1 / 100;}var computedStyle=window.getComputedStyle(lEInner.get(0));widthArea=parseInt(computedStyle['max-width']) < widthArea?parseInt(computedStyle['max-width']):widthArea;heightArea=parseInt(computedStyle['max-height']) < heightArea?parseInt(computedStyle['max-height']):heightArea;widthArea-=(lEInner.outerWidth()-lEInner.width());heightArea-=(lEInner.outerHeight()-lEInner.height());jQuery('.wLightboxFooter').css({'max-width':String(lEInner.width()) + 'px'});var areaRatio=widthArea / heightArea;if(elementCurrent&&elementCurrent.getAttribute('data-title')&&elementCurrent.getAttribute('data-title')!=''){lETitle.show().html(elementCurrent.getAttribute('data-title'));}else if(elementCurrent&&elementCurrent.getAttribute('title')&&elementCurrent.getAttribute('title')!=''){lETitle.show().html(elementCurrent.getAttribute('title'));}else{lETitle.hide();}if(elementCurrent&&elementCurrent.getAttribute('data-description')!=''){jQuery('.wLightboxDescription').show();
170var diffWidthDescription=parseInt(jQuery('.wLightboxInner').width()-jQuery('.wLightboxDescription').width());jQuery('.wLightboxDescription').css({'width':widthArea-diffWidthDescription, 'visibility':'hidden'}).show().html(elementCurrent.getAttribute('data-description'));}else{jQuery('.wLightboxDescription').hide();}if(wLightboxVariants[options['variant']]&&wLightboxVariants[options['variant']]['addCopyrightElement']&&options['copyrightText']){if(jQuery('.wLightboxCopyright').length==0){jQuery('.wLightboxImageOuter').append('<div class="wLightboxCopyright"/>');}jQuery('.wLightboxCopyright').show();jQuery('.wLightboxCopyright').html(options['copyrightText']);}else{jQuery('.wLightboxCopyright').hide();}if(objectCurrent&&objectCurrent.attr('data-lightboxdownloadable')=='1'){jQuery('.wLightboxDownload').remove();var srcDownload=src;if(objectCurrent.attr('data-srcdownload')){srcDownload=objectCurrent.attr('data-srcdownload');}jQuery('.wLightboxFooter').addClass('wLightboxFooterHasDownload').append('<div class="wLightboxDownload" data-src="' + srcDownload + '" title="Download"></div>');jQuery('.wLightboxDownload').on('click', function (event){window.open(jQuery(this).data('src'));});}else{jQuery('.wLightboxFooter').removeClass('wLightboxFooterHasDownload');}jQuery('.wLightboxDescription').css({'width':'', 'height':'', 'max-height':'', 'visibility':''});if(lEInner.height() >=jQuery(window).height()){jQuery('.wLightboxDescription').css({'max-height':'200px', 'overflow-y':'auto'});}heightFooter=jQuery('.wLightboxFooter').outerHeight();diffHeight=lEInner.outerHeight()-lEInner.height();if(image.width > widthArea||image.height > heightArea){if(imageRatio > areaRatio){lightboxWidth=widthArea;lightboxHeight=Math.round(widthArea / imageRatio) + heightFooter;}else{lightboxWidth=Math.round((heightArea-heightFooter) * imageRatio);lightboxHeight=heightArea;}lEInner.css({'width':String(lightboxWidth) + 'px', 'height':String(lightboxHeight) + 'px', 'max-height':String(lightboxHeight + diffHeight) + 'px'});}else{lightboxWidth=image.width;lightboxHeight=image.height + heightFooter;lEInner.css({'width':String(lightboxWidth) + 'px', 'height':String(lightboxHeight) + 'px', 'max-height':String(lightboxHeight + diffHeight) + 'px'});}heightFooter=jQuery('.wLightboxFooter').outerHeight();var widthArea=lEOuter.width();var heightArea=lEOuter.height();widthInnerCurrent=lEInner.width();heightInnerCurrent=lEInner.height();if(/^(\d+)px$/.test(options['width'])){widthArea=widthArea < parseInt(RegExp.$1)?widthArea:parseInt(RegExp.$1);}else if(/^(\d+)%$/.test(options['width'])){widthArea=widthArea < parseInt(jQuery(window).width()) * RegExp.$1 / 100?widthArea:parseInt(jQuery(window).width()) * RegExp.$1 / 100;}try{var computedStyle=window.getComputedStyle(lEInner.get(0));widthArea=parseInt(computedStyle['max-width']) < widthArea?parseInt(computedStyle['max-width']):widthArea;heightArea=parseInt(computedStyle['max-height']) < heightArea?parseInt(computedStyle['max-height']):heightArea;widthArea-=(lEInner.outerWidth()-lEInner.width());heightArea-=(lEInner.outerHeight()-lEInner.height());var areaRatio=widthArea / heightArea;if(image.width > widthArea||image.height > heightArea){if(imageRatio > areaRatio){lightboxWidth=widthArea;lightboxHeight=Math.round(widthArea / imageRatio) + heightFooter;}else{lightboxWidth=Math.round((heightArea-heightFooter) * imageRatio);lightboxHeight=heightArea;}lEInner.css({'width':String(lightboxWidth) + 'px', 'height':String(lightboxHeight) + 'px', 'max-height':String(lightboxHeight + diffHeight) + 'px'});}else{lightboxHeight=image.height + heightFooter;}}catch(e){}jQuery('.wLightboxMoverBack').data('entry', positionRel-2);jQuery('.wLightboxMoverForward').data('entry', positionRel);lEInner.on('transitionend', function(event){if(lEInner.data('transisionended')!='1'){lEInner.data('transisionended', '1');heightFooter=jQuery('.wLightboxFooter').outerHeight();var widthArea=jQuery('.wLightboxOuter').width();var heightArea=jQuery('.wLightboxOuter').height();if(/^(\d+)px$/.test(options['width'])){widthArea=widthArea < parseInt(RegExp.$1)?widthArea:parseInt(RegExp.$1);}else if(/^(\d+)%$/.test(options['width'])){widthArea=widthArea < parseInt(j
170Query(window).width()) * RegExp.$1 / 100?widthArea:parseInt(jQuery(window).width()) * RegExp.$1 / 100;}var computedStyle=window.getComputedStyle(lEInner.get(0));widthArea=parseInt(computedStyle['max-width']) < widthArea?parseInt(computedStyle['max-width']):widthArea;heightArea=parseInt(computedStyle['max-height']) < heightArea?parseInt(computedStyle['max-height']):heightArea;widthArea-=(lEInner.outerWidth()-lEInner.width());heightArea-=(lEInner.outerHeight()-lEInner.height());var areaRatio=widthArea / heightArea;if(image.width > widthArea||image.height > heightArea){if(imageRatio > areaRatio){lightboxWidth=widthArea;lightboxHeight=Math.round(widthArea / imageRatio) + heightFooter;}else{lightboxWidth=Math.round((heightArea-heightFooter) * imageRatio);lightboxHeight=heightArea;}lEInner.css({'width':String(lightboxWidth) + 'px', 'height':String(lightboxHeight) + 'px', 'max-height':String(lightboxHeight + diffHeight) + 'px'});}else{lightboxHeight=image.height + heightFooter;}}});}if(boxWasOpened){jQuery('.wLightboxMoverBack').attr('class', classPrev);jQuery('.wLightboxMoverForward').attr('class', classNext);var animationOverflow=typeof wLightboxVariants[options['variant']]['animationOverflow']!=='undefined'?wLightboxVariants[options['variant']]['animationOverflow']:'hidden';var animationDistFactorDefault=120;var animationDurationDefault=600;var animationEasingDefault='linear';var animationDistFactorIn=typeof wLightboxVariants[options['variant']]['animationDistFactor']!=='undefined'?(typeof wLightboxVariants[options['variant']]['animationDistFactorIn']!=='undefined'?wLightboxVariants[options['variant']]['animationDistFactorIn']:wLightboxVariants[options['variant']]['animationDistFactor']):animationDistFactorDefault;var animationDistFactorOut=typeof wLightboxVariants[options['variant']]['animationDistFactor']!=='undefined'?(typeof wLightboxVariants[options['variant']]['animationDistFactorOut']!=='undefined'?wLightboxVariants[options['variant']]['animationDistFactorOut']:wLightboxVariants[options['variant']]['animationDistFactor']):animationDistFactorDefault;var animationDurationIn=typeof wLightboxVariants[options['variant']]['animationDuration']!=='undefined'?(typeof wLightboxVariants[options['variant']]['animationDurationIn']!=='undefined'?wLightboxVariants[options['variant']]['animationDurationIn']:wLightboxVariants[options['variant']]['animationDuration']):animationDurationDefault;var animationDurationOut=typeof wLightboxVariants[options['variant']]['animationDuration']!=='undefined'?(typeof wLightboxVariants[options['variant']]['animationDurationOut']!=='undefined'?wLightboxVariants[options['variant']]['animationDurationOut']:wLightboxVariants[options['variant']]['animationDuration']):animationDurationDefault;var animationEasingIn=typeof wLightboxVariants[options['variant']]['animationEasing']!=='undefined'?(typeof wLightboxVariants[options['variant']]['animationEasingIn']!=='undefined'?wLightboxVariants[options['variant']]['animationEasingIn']:wLightboxVariants[options['variant']]['animationEasing']):animationEasingDefault;var animationEasingOut=typeof wLightboxVariants[options['variant']]['animationEasing']!=='undefined'?(typeof wLightboxVariants[options['variant']]['animationEasingOut']!=='undefined'?wLightboxVariants[options['variant']]['animationEasingOut']:wLightboxVariants[options['variant']]['animationEasing']):animationEasingDefault;var lastDirection=jQuery('.wLightbox').attr('data-lastdirection');var animation=wLightboxVariants[options['variant']]['animation']?wLightboxVariants[options['variant']]['animation'].toLowerCase():'';if(animation=='slidefrombeside'){animation=lastDirection=='back'?'slidefromleft':'slidefromright';}else if(animation=='overlapfrombeside'){animation=lastDirection=='back'?'overlapfromleft':'overlapfromright';}else if(animation=='slideout'){animation=lastDirection=='back'?'slideoutright':'slideoutleft';}diffWidthInner=Math.round((widthInnerBefore-lEInner.width()) * 1000) / 1000;diffHeightInner=Math.round((heightInnerBefore-lEInner.height()) * 1000) / 1000;if(animation=='fadein'){if(jQuery('.wLightboxInner').data('entryactive')=='1'){return;}jQuery('.wLightboxInner').data('entryactive', '1');if(animationOverflow=='visible'){animationDistFactorDefault=150;animationDurationDefault=600;animationEasingDefault='wEaseOut';jQuery('.wLightboxInner').css({'overflow':'visible'});}var lightboxImageNew=jQuery('.wLightboxImage').attr('id', 'wLightboxImageCurrent').clone();var widthBefore=widthImageBefore > 0?widthImageBefore:jQuery('#wLightboxImageCurrent').width();var heightBefore=heightImageBefore > 0?heightImageBefore:jQuery('#wLightboxImageCurrent').height();
170var diffMarginLeft=String(-diffWidthInner / 2) + 'px';var diffMarginTop=String(-diffHeightInner / 2) + 'px';if(widthInnerBefore > widthInnerCurrent + 1){animationDistFactorOut=animationDistFactorOut * widthInnerBefore / widthInnerCurrent;}lightboxImageNew.attr('id', 'wLightboxImageNew').attr('src', src).attr('alt', alt).css({'z-index':'1', 'position':'relative', 'opacity':'0'}).insertBefore("#wLightboxImageCurrent");var heightNew=lightboxImageNew.height();var leftCurrent=diffMarginLeft;var topCurrent=diffMarginTop;jQuery('#wLightboxImageCurrent').css({'z-index':'0', position:'absolute', width:widthBefore, height:heightBefore, top:topCurrent, 'margin-left':leftCurrent, 'max-height':'none', 'max-width':'none'});jQuery('#wLightboxImageCurrent').animate({'opacity':'0.5'}, {duration:animationDurationIn, easing:animationEasingIn, complete:function(){jQuery('.wLightboxInner').data('entryactive', '');jQuery('#wLightboxImageNew').attr('id', '');jQuery('#wLightboxImageCurrent').remove();}});lightboxImageNew.animate({'opacity':'1'}, {duration:animationDurationOut, easing:animationEasingOut, complete:function(){}});}else if(animation=='slideoutleft'|| animation=='slideoutright'){if(jQuery('.wLightboxInner').data('entryactive')=='1'){return;}jQuery('.wLightboxInner').data('entryactive', '1');if(animationOverflow=='visible'){animationDistFactorDefault=150;animationDurationDefault=600;animationEasingDefault='wEaseOut';jQuery('.wLightboxInner').css({'overflow':'visible'});}var lightboxImageNew=jQuery('.wLightboxImage').attr('id', 'wLightboxImageCurrent').clone();var widthBefore=widthImageBefore > 0?widthImageBefore:jQuery('#wLightboxImageCurrent').width();var heightBefore=heightImageBefore > 0?heightImageBefore:jQuery('#wLightboxImageCurrent').height();var diffMarginLeft=String(-diffWidthInner / 2) + 'px';var diffMarginTop=String(-diffHeightInner / 2) + 'px';if(widthInnerBefore > widthInnerCurrent + 1){animationDistFactorOut=animationDistFactorOut * widthInnerBefore / widthInnerCurrent;}var marginLeftInit=String(animationDistFactorIn) + '%';var marginLeftCurrentOut='-' + String(animationDistFactorOut) + '%';if(animation=='slideoutleft'){marginLeftInit='calc(' + String(animationDistFactorIn) + '% + ' + String(diffWidthInner / 2) + 'px)';}else{marginLeftInit='calc(-' + String(animationDistFactorIn) + '% ' + '-' + ' ' + String(diffWidthInner / 2) + 'px)';}lightboxImageNew.attr('id', 'wLightboxImageNew').attr('src', src).attr('alt', alt).insertBefore("#wLightboxImageCurrent");var heightNew=lightboxImageNew.height();var leftCurrent=diffMarginLeft;var topCurrent=diffMarginTop;jQuery('#wLightboxImageCurrent').css({position:'absolute', width:widthBefore, height:heightBefore, top:topCurrent, 'margin-left':leftCurrent, 'max-height':'none', 'max-width':'none'});jQuery('#wLightboxImageCurrent').animate({'left':(animation=='slideoutleft'?marginLeftCurrentOut:String(animationDistFactorOut) + '%')}, {duration:animationDurationIn, easing:animationEasingIn, complete:function(){jQuery('.wLightboxInner').data('entryactive', '');jQuery('#wLightboxImageNew').attr('id', '');jQuery('#wLightboxImageCurrent').remove();}});}else if(animation=='overlapfromleft'|| animation=='overlapfromright'){if(jQuery('.wLightboxInner').data('entryactive')=='1'){return;}jQuery('.wLightboxInner').data('entryactive', '1');if(animationOverflow=='visible'){animationDistFactorDefault=150;animationDurationDefault=600;animationEasingDefault='wEaseOut';jQuery('.wLightboxInner').css({'overflow':'visible'});}var lightboxImageNew=jQuery('.wLightboxImage').attr('id', 'wLightboxImageCurrent').clone();var widthBefore=widthImageBefore > 0?widthImageBefore:jQuery('#wLightboxImageCurrent').width();var heightBefore=heightImageBefore > 0?heightImageBefore:jQuery('#wLightboxImageCurrent').height();var diffMarginLeft=String(-diffWidthInner / 2) + 'px';var diffMarginTop=String(-diffHeightInner / 2) + 'px';if(widthInnerBefore > widthInnerCurrent + 1){animationDistFactorOut=animationDistFactorOut * widthInnerBefore / widthInnerCurrent;}var marginLeftInit=String(animationDistFactorIn) + '%';if(animation=='overlapfromright'){marginLeftInit='calc(' + String(animationDistFactorIn) + '% + ' + String(diffWidthInner / 2) + 'px)';}else{marginLeftInit='calc(-' + String(animationDistFactorIn) + '% ' + '-' + ' ' + String(diffWidthInner / 2) + 'px)';}lightboxImageNew.attr('id', 'wLightboxImageNew').attr('src', src).attr('alt', alt).css({'z-index':'1', 'position':'relative', 'margin-left':marginLeftInit}).insertBefore("#wLightboxImageCurrent");var heightNew=lightboxImageNew.height();var leftCurrent=diffMarginLeft;var topCurrent=diffMarginTop;jQuery('#wLightboxImageCurrent').css({'z-index':'0', position:'absolute', width:widthBefore, height:heightBefore, top:topCurrent, 'margin-left':leftCurrent, 'max-height':'none', 'max-width':'none'});jQuery('#wLightboxImageCurrent').animate({'opacity':'0.5'}, {duration:animationDurationIn, easing:animationEasingIn, complete:function(){jQuery('.wLightboxInner').data('entryactive', '');jQuery('#wLightboxImageNew').attr('id', '');jQuery('#wLightboxImageCurrent').remove();}});lightboxImageNew.animate({'margin-left':'0'}, {duration:animationDurationOut, easing:animationEasingOut, complete:function(){}});}else if(animation=='slidefromright'|| animation=='slidefromleft'){if(jQuery('.wLightboxInner').data('entryactive')=='1'){return;}jQuery('.wLightboxInner').data('entryactive', '1');if(animationOverflow=='visible'){animationDistFactorDefault=150;animationDurationDefault=600;animationEasingDefault='wEaseOut';jQuery('.wLightboxInner').css({'overflow':'visible'});}var lightboxImageNew=jQuery('.wLightboxImage').attr('id', 'wLightboxImageCurrent').clone();var widthBefore=widthImageBefore > 0?widthImageBefore:jQuery('#wLightboxImageCurrent').width();var heightBefore=heightImageBefore > 0?heightImageBefore:jQuery('#wLightboxImageCurrent').height();
170var diffMarginLeft=String(-diffWidthInner / 2) + 'px';var diffMarginTop=String(-diffHeightInner / 2) + 'px';if(widthInnerBefore > widthInnerCurrent + 1){animationDistFactorOut=animationDistFactorOut * widthInnerBefore / widthInnerCurrent;}var marginLeftInit=String(animationDistFactorIn) + '%';var marginLeftCurrentOut='-' + String(animationDistFactorOut) + '%';if(animation=='slidefromright'){marginLeftInit='calc(' + String(animationDistFactorIn) + '% + ' + String(diffWidthInner / 2) + 'px)';}else{marginLeftInit='calc(-' + String(animationDistFactorIn) + '% ' + '-' + ' ' + String(diffWidthInner / 2) + 'px)';}lightboxImageNew.attr('id', 'wLightboxImageNew').attr('src', src).attr('alt', alt).css({'margin-left':marginLeftInit}).insertBefore("#wLightboxImageCurrent");var heightNew=lightboxImageNew.height();var leftCurrent=diffMarginLeft;var topCurrent=diffMarginTop;jQuery('#wLightboxImageCurrent').css({position:'absolute', width:widthBefore, height:heightBefore, top:topCurrent, 'margin-left':leftCurrent, 'max-height':'none', 'max-width':'none'});jQuery('#wLightboxImageCurrent').animate({'left':(animation=='slidefromright'?marginLeftCurrentOut:String(animationDistFactorOut) + '%')}, {duration:animationDurationIn, easing:animationEasingIn, complete:function(){jQuery('.wLightboxInner').data('entryactive', '');jQuery('#wLightboxImageNew').attr('id', '');jQuery('#wLightboxImageCurrent').remove();}});lightboxImageNew.animate({'margin-left':'0'}, {duration:animationDurationOut, easing:animationEasingOut, complete:function(){}});}else{jQuery('.wLightboxImage').attr('src', src);}}else{var animation=wLightboxVariants[options['variant']]['animation']?wLightboxVariants[options['variant']]['animation'].toLowerCase():'';var allowTouchSlide=false;if(animation=='slidefrombeside'|| animation=='slideout'){if(wLightboxVariants[options['variant']]['allowTouchSlide']!==false){allowTouchSlide=true;}}else if(wLightboxVariants[options['variant']]['allowTouchSlide']===true){allowTouchSlide=true;}if(allowTouchSlide){var sl=jQuery('.wLightboxOuter');var slI=jQuery('.wLightboxInner');slI.on('touchstart', function(event){wUiTmp['sltsx']=typeof(event.originalEvent.touches)!='undefined'?event.originalEvent.touches[0].pageX:event.pageX;wUiTmp['sltsy']=(typeof(event.originalEvent.touches)!='undefined'?event.originalEvent.touches[0].pageY:event.pageY)-jQuery(window).scrollTop();});slI.on('touchmove', function(event){if(!isNaN(wUiTmp['sltsx'])&&!isNaN(wUiTmp['sltsy'])&&wUiTmp['sltsx']&&wUiTmp['sltsy']){wUiTmp['sltsxc']=typeof(event.originalEvent.touches)!='undefined'?event.originalEvent.touches[0].pageX:event.pageX;wUiTmp['sltsyc']=(typeof(event.originalEvent.touches)!='undefined'?event.originalEvent.touches[0].pageY:event.pageY)-jQuery(window).scrollTop();wUiTmp['sltdx']=wUiTmp['sltsxc']-wUiTmp['sltsx'];wUiTmp['sltdy']=wUiTmp['sltsyc']-wUiTmp['sltsy'];wUiTmp['sltdxp']=Math.sqrt(Math.pow(parseInt(wUiTmp['sltdx']), 2));wUiTmp['sltdyp']=Math.sqrt(Math.pow(parseInt(wUiTmp['sltdy']), 2));if(sl.attr('data-moving')!='1'&&wUiTmp['sltdxp'] > 10&&wUiTmp['sltdxp'] / wUiTmp['sltdyp'] > 1.4){if(wUiTmp['sltdx'] > 0){wUiTmp['sltsx']=null;wUiTmp['sltsy']=null;jQuery('.wLightboxMoverBackAvailable').trigger('click');}else if(wUiTmp['sltdx'] < 0){wUiTmp['sltsx']=null;wUiTmp['sltsy']=null;jQuery('.wLightboxMoverForwardAvailable').trigger('click');}}}});slI.on('touchend', function(event){wUiTmp['sltsx']=null;wUiTmp['sltsy']=null;});}jQuery('.wLightboxOuter, .wLightboxBackground').on('click touchend', function(event){if(jQuery(event.target).hasClass('wLightboxBackground')&&options['closeOnClickBackground']===false){return false;}wLightboxClose(event);});jQuery('.wLightboxInner').on('click touchend', function(event){event.stopPropagation();});jQuery('.wLightboxMoverBack, .wLightboxMoverForward').on('click', function(event){var lastDirection=event.target.closest('.wLightboxMoverBack')?'back':'next';jQuery('.wLightbox').attr('data-lastdirection', lastDirection);jQuery('.wLightbox').removeClass('wLightboxStatusLoaded').addClass('wLightboxStatusLoading');if(event.originalEvent&&event.originalEvent.isTrusted){if(jQuery('.wLightboxPlayer').length!=0&&jQuery('#wLightbox').attr('data-playerstatus')=='play'){jQuery('.wLightboxPlayer').trigger('click');}if(elementsRel[jQuery('.wLightboxMoverForward').data('entry') + 1]){var imgPreload=new Image();imgPreload.src=elementsRel[jQuery('.wLightboxMoverForward').data('entry') + 1].getAttribute('data-src');}}jQuery(elementsRel[jQuery(this).data('entry')]).trigger('click');event.stopPropagation();});}jQuery('.wLightbox').addClass('wLightboxStatusLoaded').removeClass('wLightboxStatusLoading').removeClass('wLightboxStatusChanging');
170if(typeof(wOnAfterInitLightbox)==='function'){wOnAfterInitLightbox(objectCurrent, elementsRel);}}, 32);};image.src=src;}else if(lightboxType=='video'){var videoWidth=0, videoHeight=0, videoRatio=0;if(elementCurrent&&elementCurrent.getAttribute('title')&&elementCurrent.getAttribute('title')!=''){jQuery('.wLightboxTitle').show().html(elementCurrent.getAttribute('title'));}else{jQuery('.wLightboxTitle').hide();}if(objectCurrent&&objectCurrent.attr('data-lightboxdownloadable')=='1'){jQuery('.wLightboxDownload').remove();jQuery('.wLightboxFooter').addClass('wLightboxFooterHasDownload').append('<div class="wLightboxDownload" data-src="' + src + '" title="Download"></div>');jQuery('.wLightboxDownload').on('click', function (event){window.open(jQuery(this).data('src'));});}else{jQuery('.wLightboxFooter').removeClass('wLightboxFooterHasDownload');}var heightFooter=jQuery('.wLightboxFooter').outerHeight();var maxWidthBox=(window.innerWidth?window.innerWidth:(document.documentElement?document.documentElement.offsetWidth:document.body.clientWidth))-(parseInt(jQuery('.wLightboxOuter').css('padding-left')) + parseInt(jQuery('.wLightboxInner').css('border-left-width'))) * 2;var maxHeightBox=(window.innerHeight?window.innerHeight:(document.documentElement?document.documentElement.offsetHeight:document.body.clientHeight))-(parseInt(jQuery('.wLightboxOuter').css('padding-top')) + parseInt(jQuery('.wLightboxInner').css('border-top-width'))) * 2-heightFooter;if(/^(\d+)px$/.test(options['width'])){maxWidthBox=parseInt(RegExp.$1);}else if(/^(\d+)%$/.test(options['width'])){maxWidthBox=parseInt(jQuery(window).width()) * RegExp.$1 / 100;}var pageRatio=maxWidthBox / maxHeightBox;if(boxWasOpened){jQuery('.wLightbox source').attr('src', src);jQuery('.wLightbox video').get(0).load();}jQuery('.wLightbox video').on('loadedmetadata', function(event){videoWidth=jQuery(this).get(0).videoWidth;videoHeight=jQuery(this).get(0).videoHeight;videoRatio=videoWidth / videoHeight;lightboxWidth=videoWidth;lightboxHeight=videoHeight;if(videoWidth > maxWidthBox||videoHeight > maxHeightBox){if(videoRatio > pageRatio){lightboxWidth=maxWidthBox;lightboxHeight=Math.round(maxWidthBox / videoRatio) + heightFooter;}else if(videoHeight > maxHeightBox){lightboxHeight=maxHeightBox-32;lightboxWidth=Math.round(lightboxHeight * videoRatio);}else{lightboxWidth=Math.round(maxHeightBox * videoRatio);lightboxHeight=maxHeightBox + heightFooter;}}else{lightboxHeight=lightboxHeight + heightFooter;}widthAttrib=String(lightboxWidth)  + 'px';heightAttrib=String(lightboxHeight) + 'px';jQuery('.wLightboxInner').css({'height':heightAttrib});jQuery('.wLightboxInner').css({'width':widthAttrib});jQuery('.wLightboxMoverBack').data('entry', positionRel-2);jQuery('.wLightboxMoverForward').data('entry', positionRel);if(boxWasOpened){jQuery('.wLightboxMoverBack').attr('class', classPrev);jQuery('.wLightboxMoverForward').attr('class', classNext);jQuery('.wLightbox').addClass('wLightboxStatusLoaded').removeClass('wLightboxStatusLoading');}else{jQuery('.wLightbox').addClass('wLightboxStatusLoaded').removeClass('wLightboxStatusLoading');jQuery('.wLightboxOuter, .wLightboxBackground').on('click touchend', function(event){if(jQuery(event.target).hasClass('wLightboxBackground')&&options['closeOnClickBackground']===false){return false;}wLightboxClose(event);});jQuery('.wLightboxInner').on('click touchend', function(event){event.stopPropagation();});jQuery('.wLightboxMoverBack, .wLightboxMoverForward').on('click', function(event){jQuery('.wLightbox').removeClass('wLightboxStatusLoaded').addClass('wLightboxStatusLoading');jQuery(elementsRel[jQuery(this).data('entry')]).trigger('click');event.stopPropagation();});}});if(typeof(wOnAfterInitLightbox)==='function'){wOnAfterInitLightbox();}}else{var heightTitle=0;if(elementCurrent&&elementCurrent.getAttribute('title')!=''){jQuery('.wLightboxTitle').show().html(elementCurrent.getAttribute('title'));}else{jQuery('.wLightboxTitle').hide();}heightTitle=jQuery('.wLightboxTitle').outerHeight();var setSize=false;var maxWidthBox=(window.innerWidth?window.innerWidth:(document.documentElement?document.documentElement.offsetWidth:document.body.clientWidth))-(p
170arseInt(jQuery('.wLightboxOuter').css('padding-left')) + parseInt(jQuery('.wLightboxInner').css('border-left-width'))) * 2;var maxHeightBox=(window.innerHeight?window.innerHeight:(document.documentElement?document.documentElement.offsetHeight:document.body.clientHeight))-(parseInt(jQuery('.wLightboxOuter').css('padding-top')) + parseInt(jQuery('.wLightboxInner').css('border-top-width'))) * 2-heightTitle;if(/^(\d+)px$/.test(options['width'])){maxWidthBox=parseInt(RegExp.$1);setSize=true;}else if(/^(\d+)%$/.test(options['width'])){maxWidthBox=parseInt(jQuery(window).width()) * RegExp.$1 / 100;setSize=true;}if(/^(\d+)px$/.test(options['height'])){maxHeightBox=parseInt(RegExp.$1);setSize=true;}else if(/^(\d+)%$/.test(options['height'])){maxHeightBox=parseInt(jQuery(window).height()) * RegExp.$1 / 100;setSize=true;}if(options['width']&&/^\d+(.\d+)?$/.test(options['width'])){contentWidth=options['width'];setSize=true;}else{contentWidth=maxWidthBox;}if(options['height']&&/^\d+(.\d+)?$/.test(options['height'])){contentHeight=options['height'];setSize=true;}else{contentHeight=maxHeightBox;}if(setSize){var pageRatio=maxWidthBox / maxHeightBox;var contentRatio=contentWidth / contentHeight;var lightboxWidth=contentWidth;var lightboxHeight=contentHeight + heightTitle;if(contentWidth > maxWidthBox||contentHeight > maxHeightBox){if(contentRatio > pageRatio){lightboxWidth=maxWidthBox;lightboxHeight=Math.round(maxWidthBox / contentRatio) + heightTitle;}else{lightboxWidth=Math.round(maxHeightBox * contentRatio);lightboxHeight=maxHeightBox + heightTitle;}}widthAttrib=String(lightboxWidth) + 'px';heightAttrib=String(lightboxHeight) + 'px';jQuery('.wLightboxInner').css({'height':heightAttrib});jQuery('.wLightboxInner').css({'width':widthAttrib});}jQuery('.wLightboxMoverBack').data('entry', positionRel-2);jQuery('.wLightboxMoverForward').data('entry', positionRel);if(boxWasOpened){jQuery('.wLightboxMoverBack').attr('class', classPrev);jQuery('.wLightboxMoverForward').attr('class', classNext);jQuery('.wLightboxIframe').attr('src', src);}else{jQuery('.wLightboxOuter, .wLightboxBackground').on('click touchend', function(event){if(jQuery(event.target).hasClass('wLightboxBackground')&&options['closeOnClickBackground']===false){return false;}wLightboxClose(event);});jQuery('.wLightboxInner').on('click touchend', function(event){event.stopPropagation();});jQuery('.wLightboxMoverBack, .wLightboxMoverForward').on('click', function(event){jQuery('.wLightbox').removeClass('wLightboxStatusLoaded').addClass('wLightboxStatusLoading');jQuery(elementsRel[jQuery(this).data('entry')]).trigger('click');event.stopPropagation();});}jQuery('.wLightbox').addClass('wLightboxStatusLoaded').removeClass('wLightboxStatusLoading').removeClass('wLightboxStatusChanging');if(typeof(wOnAfterInitLightbox)==='function'){wOnAfterInitLightbox();}}if(typeof(wOnAfterInitLightbox)==='function'){wOnAfterInitLightbox();}jQuery('html').addClass('wglBox');jQuery('body').addClass('wglBox');if(typeof(wAccessibility)!=='undefined'&&wAccessibility['accessEventHandler']!=null&&wAccessibility['accessEventHandler'].active&&(lightboxType=='iframe'||lightboxType=='image'||lightboxType=='video')){aEKey=(lightboxType=='iframe')?'wLightboxIframe':(lightboxType=='video'?'wLightboxVideo':'wLightbox');var aEObject=Object.assign({}, wAccessEvents[aEKey], {element:jQuery('html.wglBox'),elementsRel:elementsRel,openedByElement:objectCurrent,});wAccessHandler.addEvent(aEObject);}else{jQuery('.wLightboxCloser, .wLightboxMoverBack, .wLightboxMoverForward').attr('tabindex', 0);lE.get(0).focus({preventScroll:true});lE.attr('tabindex', 0);jQuery('html.wglBox').on('keydown', function(e){var lE=jQuery('.wLightbox');var cE=jQuery(e.target);var last=lE.find('[role=button]:visible:last');var move='';var moveObject={ next:jQuery('.wLightboxMoverForward'), back:jQuery('.wLightboxMoverBack')};if(e.keyCode==9&&(!jQuery(lE).is('#wLightbox')||!jQuery(cE).is('#wLightbox *')||last.length > 0&&cE.get(0)===last.get(0))){lE.attr('tabindex', 0).focus();}else if(e.keyCode==39||e.keyCode==13&&cE.is('.wLightboxMoverForward')){move='next';}else if(e.keyCode==37||e.keyCode==13&&cE.is('.wLightboxMoverBack')){move='back';}else if(e.keyCode==27||e.keyCode==13&&cE.is('.wLightboxCloser')){wLightboxClose(event);}if(move!=''){jQuery(elementsRel[parseInt(moveObject[move].data('entry'))]).trigger('click');lE.attr('data-lastdirection', move);moveObject[move].focus();}e.stopPropagation();e.stopImmediatePropagation();});}return false;};wLightboxClose=function(event){if(typeof event!=='undefined'){event.preventDefault();event.stopPropagation();}if(typeof(wOnBeforeCloseLightbox)==='function'){if(wOnBeforeCloseLightbox(event)==false) {return;}}var lE=jQuery('.wLightbox');if(lE.length===0){return false;}
170var triggeredO=jQuery('html picture[data-src^="' + lE.attr('data-src').split('?')[0] + '"]');if(triggeredO.length==0) triggeredO=jQuery('html picture[data-href^="' + lE.attr('data-src').split('?')[0] + '"]');if(triggeredO.length==1) triggeredO.get(0).focus();lE.remove();jQuery('html').removeClass('wglBox');jQuery('body').removeClass('wglBox');jQuery(document).off('keydown');if(typeof intervallLightboxPlayer!='undefined'){window.clearInterval(intervallLightboxPlayer);}if(typeof(wOnAfterCloseLightbox)==='function'){wOnAfterCloseLightbox(event);}};wStartReadingText=function(element, readerPanelEmbed, options){var tmp='';var options=options||{};var elementsAll=document.querySelectorAll('*[data-hasconsideredreader="1"]');for(var i=0; i < elementsAll.length; i++){elementsAll[i].removeAttribute('data-hasconsideredreader');}if(readerPanelEmbed&&readerPanelEmbed.className.indexOf('wReaderPanelEmbed')!=-1){readerPanelEmbed.className='wReaderPanelEmbed isReading';}else if(readerPanelEmbed&&readerPanelEmbed.className.indexOf('wAiReader')!=-1){readerPanelEmbed.className='wAiReader isReading';jQuery('.wAiReader .wAiReaderPauseReading').focus();}jQuery('html').addClass('isReading');var elementToReadRoot=element;var textOfElementToRead='';var elementsToReadAll=elementToReadRoot.querySelectorAll('*');for(var i=elementsToReadAll.length-1; i >=0; i--){tmp=elementsToReadAll[i];if(!(tmp.offsetWidth||tmp.offsetHeight||tmp.getClientRects().length)){tmp.setAttribute('data-ignoreinreader', '1');}if(tmp.elementName=='SUP'){tmp.setAttribute('data-unwrapinreader', '1');}if(tmp.className&&typeof tmp.className==='string'&&tmp.className.indexOf('wglButton')!==-1){tmp.setAttribute('data-ignoreinreader', '1');}}var elementsToReadAll=elementToReadRoot.querySelectorAll('*');var elementsToRead=[];for(var i=0; i < elementsToReadAll.length; i++){tmp=elementsToReadAll[i];var hasTextNodes=0;for(var j=0; j < tmp.childNodes.length; j++){if(tmp.childNodes[j].nodeType==3){hasTextNodes=1;break;}}if(/(wglButton)/.test(tmp.className)){}else if(/(elementSection|elementBox|elementContainer|sectionInner|elementList|listDefault|listEntryInner)/.test(tmp.className)){}else if(tmp.firstChild&&/(element)/.test(tmp.firstChild.className)){}else if(tmp.firstChild&&tmp.firstChild==tmp.lastChild&&tmp.firstChild.nodeType===1){}else if(tmp.nodeName=='FIGURE'&&!tmp.closest('*[data-hasconsideredreader="1"]')&&tmp.getAttribute('data-ignoreinreader')!='1'){if(jQuery(tmp).find('figcaption').length!==0){jQuery(tmp).find('figcaption > *:not([data-ignoreinreader=1])').each(function() {elementsToRead.push(this);});}else{elementsToRead.push(tmp);}}else if(tmp.nodeName=='IMG'&&!tmp.closest('*[data-hasconsideredreader="1"]')&&tmp.getAttribute('data-ignoreinreader')!='1'){elementsToRead.push(tmp);}else if(hasTextNodes&&!tmp.closest('*[data-hasconsideredreader="1"]')&&tmp.getAttribute('data-ignoreinreader')!='1'){elementsToRead.push(tmp);tmp.setAttribute('data-hasconsideredreader', '1');}}for(var i=0; i < elementsToRead.length; i++){if(!jQuery(elementsToRead[i]).attr('data-read-pos')){jQuery(elementsToRead[i]).on('click', function(){wReadTextElementPos(jQuery(this).attr('data-read-pos'));});}jQuery(elementsToRead[i]).addClass('wglElementCanBeRead').attr('data-read-pos', String(i));}wUiTmp['readerPanelEmbed']=readerPanelEmbed;wUiTmp['elementsToReadStack']=elementsToRead;wUiTmp['elementsToReadStackOptions']=options;wReadTextElementNext();};wReadTextElementPos=function(position){readerPanelEmbed=wUiTmp['readerPanelEmbed'];if(readerPanelEmbed&&readerPanelEmbed.className.indexOf('wReaderPanelEmbed')!=-1){readerPanelEmbed.className='wReaderPanelEmbed isReading';}else if(readerPanelEmbed&&readerPanelEmbed.className.indexOf('wAiReader')!=-1){readerPanelEmbed.className='wAiReader isReading';jQuery('.wAiReader .wAiReaderPauseReading').focus();}jQuery('.wglElementIsBeingRead').removeClass('wglElementIsBeingRead');if(wUiTmp['elementsToReadStack']){var options=wUiTmp['elementsToReadStackOptions'];wUiTmp['elementsToReadStackPosition']=parseInt(position);if(wUiTmp['elementsToReadStackPosition'] < wUiTmp['elementsToReadStack'].length){jQuery('.wglTextIsBeingRead').removeClass('wglTextIsBeingRead');if(window.speechSynthesis&&window.speechSynthesis.speaking){window.speechSynthesis.cancel();}wUiTmp['forceElementReader']=true;window.setTimeout(function(){wUiTmp['forceElementReader']=false;wReadTextOfElement(wUiTmp['elementsToReadStack'][wUiTmp['elementsToReadStackPosition']], options);}, 800);}}};wReadTextElementNext=function(){jQuery('.wglElementIsBeingRead').removeClass('wglElementIsBeingRead');if(wUiTmp['elementsToReadStack']){var options=wUiTmp['elementsToReadStackOptions'];if(window.speechSynthesis&&window.speechSynthesis.paused){}else{wUiTmp['elementsToReadStackPosition']=wUiTmp['elementsToReadStackPosition'] >=0?wUiTmp['elementsToReadStackPosition'] + 1:0;}if(wUiTmp['elementsToReadStackPosition'] < wUiTmp['elementsToReadStack'].length){wReadTextOfElement(wUiTmp['elementsToReadStack'][wUiTmp['elementsToReadStackPosition']], options);}else{wUiTmp['elementsToReadStack']=null;wUiTmp['elementsToReadStackPosition']=-1;jQuery('.wglElementCanBeRead').removeClass('wglElementCanBeRead');readerPanelEmbed=wUiTmp['readerPanelEmbed'];if(readerPanelEmbed&&readerPanelEmbed.className.indexOf('wReaderPanelEmbed')!=-1){readerPanelEmbed.className='wReaderPanelEmbed';}else if(readerPanelEmbed&&readerPanelEmbed.className.indexOf('wAiReader')!=-1){readerPanelEmbed.className='wAiReader';jQuery('.wAiReader .wAiReaderStartReading').focus();}}}};wReadTextOfElement=function(element, options){var textOfElementToRead='';var elementToRead=element.cloneNode(true);var lastElementToReadType='';wUiTmp['lastElementToReadType']=wUiTmp['lastElementToReadType']??'';wUiTmp['lastElementToReadText']=wUiTmp['lastElementToReadText']??'';if(elementToRead.getAttribute('data-ignoreinreader')=='1'){}else if(elementToRead.nodeName=='IMG'){var documentLang=document.documentElement.lang.toLowerCase();documentLang=/^\w+$/.test(documentLang)?documentLang + '-' + documentLang:documentLang;textOfElementToRead=(documentLang.substr(0, 2)=='de'?'Bild:':'') + elementToRead.getAttribute('alt');lastElementToReadType='img';}else{textOfElementToRead=elementToRead.innerHTML;lastElementToReadType='element';var strArray=textOfElementToRead.split(/<script[^>]*>
170/);if(strArray.length > 1){var tmp='';for(var i=0; i < strArray.length; i++){strArray[i]=strArray[i].replace(/[\s\S]*<\/script[^>]*>/, '');tmp +=strArray[i];}textOfElementToRead=tmp;}textOfElementToRead=textOfElementToRead.replace(/<sup>(®|©|™)<\/sup>/gi, "");textOfElementToRead=textOfElementToRead.replace(/<img[^>]*alt="([^"]+)"[^>]*>/gi, "<p>\n$1\n</p>");textOfElementToRead=textOfElementToRead.replace(/<\/?sup>/gi, "");textOfElementToRead=textOfElementToRead.replace(/\n/gi, " ");textOfElementToRead=textOfElementToRead.replace(/&amp;/gi, "&");textOfElementToRead=textOfElementToRead.replace(/&(nbsp|lt|gt|quot|apos);/gi, " ");textOfElementToRead=textOfElementToRead.replace(/ +/gi, " ");textOfElementToRead=textOfElementToRead.replace(/<\/p>/gi, "\n\n");textOfElementToRead=textOfElementToRead.replace(/(<div[^>]*class="element)/gi, "\n$1");textOfElementToRead=textOfElementToRead.replace(/<\/div>/gi, "\n");textOfElementToRead=textOfElementToRead.replace(/<[^>]*>/g, " ");textOfElementToRead=textOfElementToRead.replace(/ +/gi, " ");textOfElementToRead=textOfElementToRead.replace(/\n\s+\n/gi, "\n\n");textOfElementToRead=textOfElementToRead.replace(/\n +/gi, "\n");textOfElementToRead=textOfElementToRead.trim();}if(wUiTmp['lastElementToReadType']==='img'){if(wUiTmp['lastElementToReadText'].replace(/^\w+\:/, '').trim()===textOfElementToRead.trim()){textOfElementToRead='';}}wUiTmp['lastElementToReadType']=lastElementToReadType;wUiTmp['lastElementToReadText']=textOfElementToRead;if(textOfElementToRead!=''){jQuery(element).addClass('wglElementIsBeingRead');var scrollTopOffset=80;var winHeight=window.innerHeight;var elementHeight=jQuery(element).height();if(winHeight > 640){if(winHeight > elementHeight + 160){scrollTopOffset=parseInt((winHeight-elementHeight) / 2);}}wScrollSmoothToElement(element, {'scrollTopOffset':scrollTopOffset});wReadText(textOfElementToRead, options);}else{if(wUiTmp['elementsToReadStack'].length > wUiTmp['elementsToReadStackPosition']-1){if(!wUiTmp['forceElementReader']){wReadTextElementNext();}}}};wReadText=function(textToRead, options){if(window.speechSynthesis){if(!window.speechSynthesis.speaking){var textToSpeak=new SpeechSynthesisUtterance(textToRead);if(options['rate']){textToSpeak.rate=options['rate'];}var documentLang=document.documentElement.lang;if(documentLang!=''){documentLang=/^\w+$/.test(documentLang)?documentLang + '-' + documentLang:documentLang.toLowerCase();documentLang=documentLang.replace('en-en', 'en-us');textToSpeak.lang=documentLang;var synth=window.speechSynthesis;var voices=synth.getVoices();for(var i=0; i < voices.length; i++){if(documentLang==voices[i].lang.toLowerCase()&&!/(synthesis|eloquence)/.test(voices[i].voiceURI)){textToSpeak.voice=voices[i];textToSpeak.lang=voices[i].lang;break;}}}textToSpeak.onend=function(event){window.setTimeout(function(){if(!wUiTmp['forceElementReader']){wReadTextElementNext();}}, 300);};window.speechSynthesis.speak(textToSpeak);}else if(window.speechSynthesis.paused){window.speechSynthesis.resume();}}else{alert('Die Vorlesefunktion wird von Ihrem Browser leider nicht unterstützt!');}};wPauseReadingText=function(element, readerPanelEmbed){if(readerPanelEmbed&&readerPanelEmbed.className.indexOf('wReaderPanelEmbed')!=-1){readerPanelEmbed.className='wReaderPanelEmbed pauseReading';}else if(readerPanelEmbed&&readerPanelEmbed.className.indexOf('wAiReader')!=-1){readerPanelEmbed.className='wAiReader pauseReading';jQuery('.wAiReader .wAiReaderStartReading').focus();}jQuery('html').addClass('pauseReading');if(window.speechSynthesis){window.speechSynthesis.pause();}};wStopReadingText=function(element, readerPanelEmbed){if(readerPanelEmbed&&readerPanelEmbed.className.indexOf('wReaderPanelEmbed')!=-1){readerPanelEmbed.className='wReaderPanelEmbed';}else if(readerPanelEmbed&&readerPanelEmbed.className.indexOf('wAiReader')!=-1){readerPanelEmbed.className='wAiReader';jQuery('.wAiReader .wAiReaderStartReading').focus();}jQuery('.wglTextIsBeingRead').removeClass('wglTextIsBeingRead');jQuery('.wglElementCanBeRead').removeClass('wglElementCanBeRead');jQuery('html').removeClass('isReading').removeClass('pauseReading');if(window.speechSynthesis&&window.speechSynthesis.speaking){window.speechSynthesis.cancel();}wUiTmp['elementsToReadStack']=null;wUiTmp['elementsToReadStackPosition']=-1;};var rwids={};jQuery(window).on('load', function(){if(location.search.indexOf('wContentToDisplay=draft')!=-1){return;}if(typeof wDoNotFeedbackImageSizes!=='undefined'&&wDoNotFeedbackImageSizes){}else if(typeof(wBrowseEditMode)=='undefined'){var elementSizesStr='';var simulationWidth=0;var winWidth=wUiTmp['lastWindowWidth']??jQuery(window).width();var winWidthSim='';var imageElement=null;const groups={};jQuery('[data-htgr="1"][data-rwid]').each(function () {const rwid=this.dataset.rwid;(groups[rwid]=groups[rwid]||[]).push(this);});function getArea(el) {const rect=el.getBoundingClientRect();let w=rect.width;let h=rect.height;
170if (!w||!h) {w=el.naturalWidth||parseInt(el.getAttribute('width'), 10)||0;h=el.naturalHeight||parseInt(el.getAttribute('height'), 10)||0;}return w * h;}jQuery.each(groups, function (_, els) {if (els.length < 2) return;let largest=els[0];let maxArea=getArea(largest);for (let i=1; i < els.length; i++) {const area=getArea(els[i]);if (area > maxArea) {maxArea=area;largest=els[i];}}els.forEach(el=> {if (el!==largest) el.setAttribute('data-htgr', '0');});});jQuery('*[data-htgr="1"]').each(function(){var i, sources=[], url='', pathCSS='', cssTags=null, mediaSizeType=''; widthMedia=0, minHeight='', element=jQuery(this).get(0), rwid='', elementWidth=0, elementHeight=0, pictureRatio=0, outerElement=null, outerWidth=0, breakpointRanges={}, breakpoint;try{rwid=element.getAttribute('data-rwid');if(!rwids[rwid]){rwids[rwid]=true;sources=element.getElementsByTagName('source');wSimulationElementWidthOffest=typeof wSimulationElementWidthOffest!='undefined'?wSimulationElementWidthOffest:0;for(i=0; i < sources.length; i++){if(/(min|max)-width\:\s*(\d+)px/.test(sources[i].getAttribute('media'))){mediaSizeType=RegExp.$1;widthMedia=RegExp.$2;breakpointRanges[mediaSizeType + ' ' + widthMedia]={};if(mediaSizeType=='max'){breakpointRanges[mediaSizeType + ' ' + widthMedia]['type']='max';breakpointRanges[mediaSizeType + ' ' + widthMedia]['min']=0;breakpointRanges[mediaSizeType + ' ' + widthMedia]['max']=parseInt(widthMedia);}else{breakpointRanges[mediaSizeType + ' ' + widthMedia]['type']='min';breakpointRanges[mediaSizeType + ' ' + widthMedia]['min']=parseInt(widthMedia);}}}for(i=0; i < sources.length; i++){if(/(min|max)-width\:\s*(\d+)px/.test(sources[i].getAttribute('media'))){mediaSizeType=RegExp.$1;widthMedia=RegExp.$2;smallestMin=16000;if(mediaSizeType=='min'){for(key in breakpointRanges){if(breakpointRanges[key]['min'] > widthMedia&&breakpointRanges[key]['min'] < smallestMin){smallestMin=breakpointRanges[key]['min'];}}breakpointRanges['min ' + widthMedia]['max']=parseInt(smallestMin)-1;}}}for(i=0; i < sources.length; i++){if(sources[i].getAttribute('data-sp')&&/(min|max)-width\:\s*(\d+)px/.test(sources[i].getAttribute('media'))){mediaSizeType=RegExp.$1;widthMedia=RegExp.$2;var breakpoint=breakpointRanges[mediaSizeType + ' ' + widthMedia];if(breakpoint&&winWidth >=breakpoint['min']&&winWidth <=breakpoint['max']){simulationWidth=sources[i].getAttribute('data-sp');var hasMaxwidth=false;document.documentElement.style.maxWidth='none';document.documentElement.style.width=String(simulationWidth) + 'px';document.body.style.maxWidth='none';document.body.style.width=String(simulationWidth) + 'px';if(element.nodeName=='PICTURE'){imageElement=(element.getElementsByTagName('img'))[0];if(element.parentNode.nodeName=='FIGURE'&&document.defaultView.getComputedStyle(element.parentNode, null).getPropertyValue('display')=='inline-block'){boundingClientRect=imageElement.getBoundingClientRect();elementWidth=Math.ceil(boundingClientRect.width) + wSimulationElementWidthOffest;elementHeight=Math.ceil(boundingClientRect.height);elementRatio=elementWidth / elementHeight;outerElement=element.parentNode.parentNode;if(element.parentNode.parentNode.nodeName=='A'&&document.defaultView.getComputedStyle(element.parentNode.parentNode, null).getPropertyValue('display')=='inline'){outerElement=element.parentNode.parentNode.parentNode;}if(typeof(window.getComputedStyle(element.parentNode)['max-width'])!=='undefined'&&window.getComputedStyle(element.parentNode)['max-width']!=='100%'){hasMaxwidth=true;}}else{boundingClientRect=imageElement.getBoundingClientRect();elementWidth=Math.ceil(boundingClientRect.width) + wSimulationElementWidthOffest;elementHeight=Math.ceil(boundingClientRect.height);elementRatio=elementWidth / elementHeight;outerElement=element.parentNode;if(typeof(window.getComputedStyle(element)['max-width'])!=='undefined'&&window.getComputedStyle(element)['max-width']!=='100%'){hasMaxwidth=true;}}if(imageElement.currentSrc){if(document.defaultView.getComputedStyle(imageElement, null).getPropertyValue('object-fit')=='cover'){minHeight=elementHeight;}}}else{imageElement=element;boundingClientRect=element.getBoundingClientRect();elementWidth=Math.ceil(boundingClientRect.width) + wSimulationElementWidthOffest;elementHeight=Math.ceil(boundingClientRect.height);outerElement=element.parentNode.parentNode;}if(elementWidth < 8&&outerElement.offsetWidth < 16){var hasHideIfViewport, anc=outerElement.parentNode, to=32;while(anc&&anc.parentNode&&to > 0){if(anc.className.indexOf('hideIfViewport')!=-1){to=0;hasHideIfViewport=true;outerElement=anc.parentNode;}anc=anc.parentNode;to--;}if(!hasHideIfViewport){document.documentElement.style.maxWidth='';document.documentElement.style.width='';document.body.style.maxWidth='';document.body.style.width='';
170continue;}}if(hasMaxwidth){}else if(outerElement.offsetWidth > elementWidth){pictureRatio=elementWidth / elementHeight;elementWidth=Math.ceil(outerElement.offsetWidth) + wSimulationElementWidthOffest;elementHeight=elementWidth / pictureRatio;}if(typeof wMaxWidthImages!='undefined'&&!isNaN(wMaxWidthImages)&&wMaxWidthImages > 0&&elementWidth > wMaxWidthImages){elementWidth=wMaxWidthImages;}if(elementWidth > 0&&elementHeight > 0){winWidthSim=document.body.offsetWidth;elementSizesStr +=(elementSizesStr==''?'':';') + rwid + ':w' + elementWidth + ',h' + elementHeight + (minHeight!=''&&!isNaN(minHeight)?',mh' + minHeight:'');document.documentElement.style.maxWidth='';document.documentElement.style.width='';document.body.style.maxWidth='';document.body.style.width='';return;}document.documentElement.style.maxWidth='';document.documentElement.style.width='';document.body.style.maxWidth='';document.body.style.width='';}}}}}catch(e){document.documentElement.style.maxWidth='';document.documentElement.style.width='';document.body.style.maxWidth='';document.body.style.width='';}});if(elementSizesStr!=''&&imageElement){cssTags=jQuery("link[href*='/optimized/']");if(cssTags.length > 0){pathCSS=cssTags.get(0).getAttribute('href').replace(/\/optimized\/.*/, '') + '/design.css';var variantCSS=jQuery('picture[data-htgr="1"]').attr('data-csn');if(variantCSS&&/^\w+$/.test(variantCSS)){pathCSS=pathCSS.replace(/\.css$/, '_var' + variantCSS + '.css');}var imgTmp=new Image();imgTmp.src=imageElement.src;imgTmp.onload=function(){if(imgTmp.width > 8){url='/weblication/grid5/scripts/wImage.php?path=' + pathCSS + '&referrer=' + encodeURIComponent(location.href.replace(/[\?\&]createImageRaster=1/, '')) + '&action=feedbackImageSizes&sw=' + simulationWidth + '&vw=' + winWidth + '(' + winWidthSim + ')' + '&sizes=' + elementSizesStr;jQuery.ajax({type:"GET", url:url, dataType:'json', success:function(resultData){}});}};}}}});wAddFieldsetMultiple=function (fs){var fs=jQuery(fs);var p=fs.parent();var a=fs.closest('form').attr('action');var cfs=fs.clone();if(typeof(wOnBeforeAddFieldsetMultiple)=='function'){var cfsTmp=wOnBeforeAddFieldsetMultiple(fs, cfs);if(cfsTmp!==undefined&&cfsTmp!==null) {cfs=cfsTmp;}}var ep=cfs.attr('data-entrypos')?parseInt(cfs.attr('data-entrypos')) + 1:1;var nem=cfs.attr('data-numberentriesmax')?parseInt(cfs.attr('data-numberentriesmax')):64;var ai=cfs.attr('data-updateindex')=='1';var ka=cfs.attr('data-keepdataonadd')=='1';var n=[];fs.find('input, select, textarea').each(function(i){if(jQuery(this).attr('name')!='wFormToken'){n.push(jQuery(this).attr('name').replace(/\-\d+(\[\])?$/, '$1'));}});n=[...new Set(n)];if(!ka){jQuery(cfs).find('input, select, textarea').each(function(i){if(jQuery(this).attr('name')=='wFormToken'){jQuery(this).remove();}else{var posNew=ai?(Math.floor(Math.random() * (2000-1000 + 1)) + 1000):ep
171if(jQuery(this).attr('id')&&jQuery(this).attr('id')!=''){jQuery(this).attr('id', (jQuery(this).attr('id').replace(/\-\d+(\[\])?$/, '$1') + '-' + posNew).replace(/(\[\])(\-\d)/, '$2$1'));}jQuery(this).attr('name', (jQuery(this).attr('name').replace(/\-\d+(\[\])?$/, '$1') + '-' + posNew).replace(/(\[\])(\-\d)/, '$2$1'));if(jQuery(this).attr('type')=='checkbox'){jQuery(this).prop("checked", false);}else if(jQuery(this).attr('type')=='radio'){jQuery(this).prop("checked", false);}else if(jQuery(this).prop('nodeName')=='SELECT'){jQuery(this).val('');jQuery(this).attr('value', '');}else if(jQuery(this).prop('nodeName')=='INPUT'){jQuery(this).val('');jQuery(this).attr('value', '');}else{jQuery(this).val('');jQuery(this).attr('value', '');jQuery(this).html('');}}});}cfs.find('.wglErrorMessageInline').remove();cfs.find('.wglValidationStatusOK').remove();cfs.find('.wglContainsErrorMessageInline').removeClass('wglContainsErrorMessageInline');cfs.find('.wglContainsErrorMessageInline').removeClass('wglContainsErrorMessageInline');cfs.find('.wglIsInvalid').removeClass('wglIsInvalid');cfs.find('.hasDatepicker').removeClass('hasDatepicker');fs.after(cfs);wFormElement(cfs);jQuery(cfs).find('input, textarea, select').each(function(){if(jQuery(this).attr('data-validators')&&jQuery(this).attr('data-validators')!=''&&jQuery(this).attr('name')!='captchaInput'){wAddInlineValidator(jQuery(this));}});cfs.find('.wglUploaderForm').each(function(){var srcIframe=jQuery(this).attr('src');
171if(/&element=([^&]+)/.test(srcIframe)){var nameNew=(RegExp.$1.replace(/\-\d+(\[\])?$/, '$1') + '-' + ep).replace(/(\[\])(\-\d)/, '$2$1');srcIframe=srcIframe.replace(/&element=([^&]+)/, '&element=' + nameNew);}jQuery(this).attr('src', srcIframe);});var url=a + '?action=ce&ep=' + ep + '&ai=' + (ai?'1':'0') + '&en=' + n.join('|');jQuery.ajax({type:"GET", async:true, dataType:"json", url:url, success:function(r){if(typeof(wOnAfterAddFieldsetMultiple)==='function'){wOnAfterAddFieldsetMultiple(cfs, ep);}}});var ne=p.find('.containerFormElementsMultiple').length;cfs.attr('data-allowadd', ne < nem?'1':'0');var csids={}, hasCsids=false;p.find('.containerFormElementsMultiple').each(function(i){csids[jQuery(this).data('containermultiplesid')]=true;hasCsids=true;});if(!hasCsids){csids['wNoCsid']=true;}for(csid in csids){var entries=p.find(csid=='wNoCsid'?'.containerFormElementsMultiple':'.containerFormElementsMultiple[data-containermultiplesid="' + csid + '"]');for(var j=entries.length-1; j >=0; j--){var entry=jQuery(entries[j]);var ene=p.find(csid=='wNoCsid'?'.containerFormElementsMultiple':'.containerFormElementsMultiple[data-containermultiplesid="' + csid + '"]').length;var enem=entry.attr('data-numberentriesmax')?parseInt(entry.attr('data-numberentriesmax')):64;if(j >=1){var additionalentryId=j + 1;entry.attr('data-entrypos', additionalentryId);entry.attr('data-islast', additionalentryId==ne?'1':'0');entry.attr('data-allowadd', (ene < enem)?'1':'0');entry.attr('data-allowdelete', (ai||additionalentryId==ene)?'1':'0');if(ai){entry.find('label').each(function(i){if(jQuery(this).attr('for')&&jQuery(this).attr('for')!=''){jQuery(this).attr('for', (jQuery(this).attr('for').replace(/\-\d+(\[\])?$/, '$1') + '-' + additionalentryId).replace(/(\[\])(\-\d)/, '$2$1'));}});entry.find('input, textarea, select').each(function(){if(jQuery(this).attr('id')&&jQuery(this).attr('id')!=''){jQuery(this).attr('id', (jQuery(this).attr('id').replace(/\-\d+(\[\])?$/, '$1') + '-' + additionalentryId).replace(/(\[\])(\-\d)/, '$2$1'));}jQuery(this).attr('name', (jQuery(this).attr('name').replace(/\-\d+(\[\])?$/, '$1') + '-' + additionalentryId).replace(/(\[\])(\-\d)/, '$2$1'));});}entry.find('buttonFormElementsMultipleDelete').each(function(){jQuery(this).html(jQuery(this).html().replace(/<!--wPlaceholderFieldsetMultiple:position-->\d*<\!--\/wPlaceholderFieldsetMultiple:position-->/g, '<!--wPlaceholderFieldsetMultiple:position-->' + String(additionalentryId) + '<!--/wPlaceholderFieldsetMultiple:position-->'));});entry.find('buttonFormElementsMultipleAdd').each(function(){jQuery(this).html(jQuery(this).html().replace(/<!--wPlaceholderFieldsetMultiple:position-->\d*<\!--\/wPlaceholderFieldsetMultiple:position-->/g, '<!--wPlaceholderFieldsetMultiple:position-->' + String(additionalentryId) + '<!--/wPlaceholderFieldsetMultiple:position-->'));});entry.find('label').each(function(){jQuery(this).html(jQuery(this).html().replace(/<!--wPlaceholderFieldsetMultiple:position-->\d*<\!--\/wPlaceholderFieldsetMultiple:position-->/g, '<!--wPlaceholderFieldsetMultiple:position-->' + String(additionalentryId) + '<!--/wPlaceholderFieldsetMultiple:position-->'));});}else{entry.attr('data-entrypos', '1');entry.attr('data-islast', ene < 2?'1':'0');entry.attr('data-allowadd', (ene < enem)?'1':'0');entry.attr('data-allowdelete', '0');entry.find('buttonFormElementsMultipleDelete').each(function(){jQuery(this).html(jQuery(this).html().replace(/<!--wPlaceholderFieldsetMultiple:position-->\d*<\!--\/wPlaceholderFieldsetMultiple:position-->/g, '<!--wPlaceholderFieldsetMultiple:position-->' + String(1) + '<!--/wPlaceholderFieldsetMultiple:position-->'));});entry.find('buttonFormElementsMultipleAdd').each(function(){jQuery(this).html(jQuery(this).html().replace(/<!--wPlaceholderFieldsetMultiple:position-->\d*<\!--\/wPlaceholderFieldsetMultiple:position-->/g, '<!--wPlaceholderFieldsetMultiple:position-->' + String(1) + '<!--/wPlaceholderFieldsetMultiple:position-->'));});entry.find('label').each(function(){jQuery(this).html(jQuery(this).html().replace(/<!--wPlaceholderFieldsetMultiple:position-->\d*<\!--\/wPlaceholderFieldsetMultiple:position-->/g, '<!--wPlaceholderFieldsetMultiple:position-->' + String(1) + '<!--/wPlaceholderFieldsetMultiple:position-->'));});}entry.find('.wglDatepicker').wDatepicker();}}};wRemoveFieldsetMultiple=function (fs){var fs=jQuery(fs);var p=fs.parent();var a=fs.closest('form').attr('action');var cfs=fs;var ep=cfs.attr('data-entrypos')?parseInt(cfs.attr('data-entrypos')):1;var nem=cfs.attr('data-numberentriesmax')?parseInt(cfs.attr('data-numberentriesmax')):64;var ai=cfs.attr('data-updateindex')=='1';var n=[];var ne=p.find('.containerFormElementsMultiple').length;if(typeof(wOnBeforeRemoveFieldsetMultiple)=='function'){wOnBeforeRemoveFieldsetMultiple(fs);}if(ne==1){fs.find('input, textarea, select').each(function(){if(jQuery(this).attr('name')!=='wFormToken'){if(jQuery(this).attr('type')==='checkbox'|| jQuery(this).attr('type')==='radio'){jQuery(this).prop('checked', false);}else{jQuery(this).val('');}}});return;}else{fs.find('input, select, textarea').each(function(i){if(jQuery(this).attr('name')==='wFormToken'){jQuery(this).closest('form').prepend(jQuery(this));}n.push(jQuery(this).attr('name').replace(/\-\d+(\[\])?$/, '$1'));});fs.remove();var url=a + '?action=re&ep=' + ep + '&ai=' + (ai?'1':'0') + '&en=' + n.join('|') ;jQuery.ajax({type:"GET", async:true, dataType:"json", url:url, success:function(r){jQuery(fs).remove();if(typeof(wOnAfterRemoveFieldsetMultiple)==='function'){wOnAfterRemoveFieldsetMultiple(p, ep);}}});}ne=p.find('.containerFormElementsMultiple').length;cfs.attr('data-allowadd', ne < nem?'1':'0');var csids={}, hasCsids=false;p.find('.containerFormElementsMultiple').each(function(i){csids[jQuery(this).data('containermultiplesid')]=true;hasCsids=true;});if(!hasCsids){csids['wNoCsid']=true;}for(csid in csids){var i=0;p.find(csid=='wNoCsid'?'.containerFormElementsMultiple':'.containerFormElementsMultiple[data-containermultiplesid="' + csid + '"]').each(function(i){var ene=p.find(csid=='wNoCsid'?'.containerFormElementsMultiple':'.containerFormElementsMultiple[data-containermultiplesid="' + csid + '"]').length;
171var enem=jQuery(this).attr('data-numberentriesmax')?parseInt(jQuery(this).attr('data-numberentriesmax')):64;if(i >=1){var additionalentryId=i + 1;jQuery(this).attr('data-entrypos', additionalentryId);jQuery(this).attr('data-islast', additionalentryId==ene?'1':'0');jQuery(this).attr('data-allowadd', (ai||additionalentryId==ene)?'1':'0');jQuery(this).attr('data-allowdelete', (ai||additionalentryId==ene)?'1':'0');if(ai){jQuery(this).find('label').each(function(i){if(jQuery(this).attr('for')&&jQuery(this).attr('for')!=''){jQuery(this).attr('for', (jQuery(this).attr('for').replace(/\-\d+(\[\])?$/, '$1') + '-' + additionalentryId).replace(/(\[\])(\-\d)/, '$2$1'));}});jQuery(this).find('input, textarea, select').each(function(){if(jQuery(this).attr('id')&&jQuery(this).attr('id')!=''){jQuery(this).attr('id', (jQuery(this).attr('id').replace(/\-\d+(\[\])?$/, '$1') + '-' + additionalentryId).replace(/(\[\])(\-\d)/, '$2$1'));}jQuery(this).attr('name', (jQuery(this).attr('name').replace(/\-\d+(\[\])?$/, '$1') + '-' + additionalentryId).replace(/(\[\])(\-\d)/, '$2$1'));});}jQuery(this).find('buttonFormElementsMultipleDelete').each(function(){jQuery(this).html(jQuery(this).html().replace(/<!--wPlaceholderFieldsetMultiple:position-->\d*<\!--\/wPlaceholderFieldsetMultiple:position-->/g, '<!--wPlaceholderFieldsetMultiple:position-->' + String(additionalentryId) + '<!--/wPlaceholderFieldsetMultiple:position-->'));});jQuery(this).find('buttonFormElementsMultipleAdd').each(function(){jQuery(this).html(jQuery(this).html().replace(/<!--wPlaceholderFieldsetMultiple:position-->\d*<\!--\/wPlaceholderFieldsetMultiple:position-->/g, '<!--wPlaceholderFieldsetMultiple:position-->' + String(additionalentryId) + '<!--/wPlaceholderFieldsetMultiple:position-->'));});jQuery(this).find('label').each(function(){jQuery(this).html(jQuery(this).html().replace(/<!--wPlaceholderFieldsetMultiple:position-->\d*<\!--\/wPlaceholderFieldsetMultiple:position-->/g, '<!--wPlaceholderFieldsetMultiple:position-->' + String(additionalentryId) + '<!--/wPlaceholderFieldsetMultiple:position-->'));});}else{jQuery(this).attr('data-entrypos', '1');jQuery(this).attr('data-islast', ene < 2?'1':'0');jQuery(this).attr('data-allowadd', ai||ene < 2?'1':'0');jQuery(this).attr('data-allowdelete', '0');if(ai){jQuery(this).find('input, textarea, select').each(function(){if(jQuery(this).attr('id')&&jQuery(this).attr('id')!=''){jQuery(this).attr('id', (jQuery(this).attr('id').replace(/\-\d+(\[\])?$/, '$1')));}jQuery(this).attr('name', (jQuery(this).attr('name').replace(/\-\d+(\[\])?$/, '$1')));});}jQuery(this).find('buttonFormElementsMultipleDelete').each(function(){jQuery(this).html(jQuery(this).html().replace(/<!--wPlaceholderFieldsetMultiple:position-->\d*<\!--\/wPlaceholderFieldsetMultiple:position-->/g, '<!--wPlaceholderFieldsetMultiple:position-->' + String(1) + '<!--/wPlaceholderFieldsetMultiple:position-->'));});jQuery(this).find('buttonFormElementsMultipleAdd').each(function(){jQuery(this).html(jQuery(this).html().replace(/<!--wPlaceholderFieldsetMultiple:position-->\d*<\!--\/wPlaceholderFieldsetMultiple:position-->/g, '<!--wPlaceholderFieldsetMultiple:position-->' + String(1) + '<!--/wPlaceholderFieldsetMultiple:position-->'));});jQuery(this).find('label').each(function(){jQuery(this).html(jQuery(this).html().replace(/<!--wPlaceholderFieldsetMultiple:position-->\d*<\!--\/wPlaceholderFieldsetMultiple:position-->/g, '<!--wPlaceholderFieldsetMultiple:position-->' + String(1) + '<!--/wPlaceholderFieldsetMultiple:position-->'));});}});}};showNoticeExternalLinks=function (){if(typeof(wEditor)==='undefined'){if(typeof wShowNoticeExternalLinks!=='undefined'&&wShowNoticeExternalLinks===true&&(wcsrft)){var pathNotice=wProjectPath + '/wGlobal/content/privacy/externallink-notice.php';var excludedUrls=[];if(typeof wExcludeExternalUrlFromNotice!=='undefined'&&wExcludeExternalUrlFromNotice!==''){excludedUrls=wExcludeExternalUrlFromNotice.split('|');}var links=jQuery('a');links.each(function (){var curLink=jQuery(this);var curLinkHref=curLink.attr('href');if(curLinkHref&&curLinkHref.length > 0){var isExternal=curLinkHref.match(/^(http[s]?:\/\/)/g);var isExcluded=curLink.attr('data-excludeExternalUrl')==='1';for(var e=0; e < excludedUrls.length; e++ ){var excludedUrl=excludedUrls[e];var re=new RegExp(excludedUrl, 'g');if(curLinkHref.match(re)){isExcluded=true;}}if(isExternal&&isExcluded===false){curLink.on('click', function (e){e.preventDefault();var targetUrl=pathNotice + '?l=' + encodeURIComponent(curLinkHref) + '&wcsrf=' + wcsrft;var clickObj=jQuery('<a href="'+targetUrl+'" target="box"></a>');clickObj.wLightbox();clickObj.trigger('click');})
172}}});}}};var dFactor1=0.0;var sDefaults='|admin|weblication|cms|user|root|system|test|tester|testa|testo|testi|testu|asdf|abcdefg|abcdef|abcde|abcd|abc|123|1234|12345|login|demo|qwer|qwert|qwerz|qwery|qwertz|qwerty|';var sTypeAlphaL='abcdefghijklmnopqrstuvwxyz';var sTypeAlphaU='ABCDEFGHIJKLMNOPQRSTUVWXYZ';var sTypeNumeric='0123456789';wGetPwdQuality=function(sPwd, userName){if(sPwd=='[$WPASSWORD]'){sPwd=''
173}if(sPwd){var sDefaultsTmp=sDefaults;if(userName.length > 3){sDefaultsTmp +=userName.toLowerCase() + '|';}sPwd=sPwd.replace(/20(10|11|12|13|14|15|16|17|18|19|20)$/, '');
173sDefaultsTmp=sDefaultsTmp.replace(/^\|/, '').replace(/\|$/, '');defaultRegExpStrict=new RegExp('^('+ sDefaultsTmp + ')$');defaultRegExp=new RegExp('('+ sDefaultsTmp + ')');sPwd=sPwd.replace(defaultRegExp, '');var lTypeAlphaL=0;var lTypeAlphaU=0;var lTypeNumeric=0;var lTypeSpecial=0;var sChars='';for(var nCount=0; nCount < sPwd.length; nCount++){var sChar=sPwd.substring(nCount, nCount + 1);if((sChar==' ')){}else{if(sChars.indexOf(sChar) < 0){sChars +=sChar;}if(sTypeAlphaL.indexOf(sChar) >=0){lTypeAlphaL  +=1;}else if(sTypeAlphaU.indexOf(sChar) >=0){lTypeAlphaU  +=1;}else if(sTypeNumeric.indexOf(sChar) >=0){lTypeNumeric +=1;}else{lTypeSpecial +=1;}}}var a=lTypeAlphaL  * 6;var b=lTypeAlphaU  * 8;var c=lTypeNumeric * 9;var d=lTypeSpecial * 12;var tmp=parseInt((((a + b + c + d) * Math.pow(10, 1)) + 0.5)) / Math.pow(10, 1);if(lTypeAlphaL==0){tmp-=5;}if(lTypeAlphaU==0){tmp-=5;}if(lTypeNumeric==0){tmp-=5;}if(lTypeSpecial==0){tmp-=5;}if(defaultRegExp.test(sPwd.toLowerCase())){tmp=parseInt(tmp / 2)-32;if(tmp < 0){tmp=-1;}}if(lTypeAlphaL==0){tmp-=5;}if(lTypeAlphaU==0){tmp-=5;}if(lTypeNumeric==0){tmp-=5;}if(lTypeSpecial==0){tmp-=5;}if(tmp < 0){tmp=0;}return tmp;}else{return '0';}};jQuery.fn.wAddSelectAndClickableWithReturn=function(options){jQuery.each(jQuery(this), function(){if(jQuery(this).attr('aria-hidden')!=='true'){jQuery(this).attr('tabindex', '0');}jQuery(this).on('keydown', function(event){if(event.key==="Enter"||event.key===" "){jQuery(this).click()}});});};jQuery.fn.wRemoveSelectAndClickableWithReturn=function(options){jQuery.each(jQuery(this), function(){jQuery(this).removeAttr('tabindex');jQuery(this).off('keydown', function(){});});};wToggleWaiMenu=function(){if(typeof(wEditor)=='undefined'){if(!jQuery('#wAiMenu').hasClass('open')){wOpenWaiMenu();}else{wCloseWaiMenu();}}};wOpenWaiMenu=function(){if(typeof(wEditor)=='undefined'){if(typeof(wHasTextsEasyLanguage)!=='undefined'&&wHasTextsEasyLanguage){jQuery('#wAiSectionEasyLanguage').show();}else{jQuery('#wAiSectionEasyLanguage').hide();}jQuery('#wAiMenu').addClass('open');jQuery('#wAiMenu *[onclick]').wAddSelectAndClickableWithReturn();window.setTimeout(function(){jQuery('.wAiMenuCloser').focus();}, 100);wEventEscWaiMenu=function(e){if(e.key==='Escape'){event.preventDefault();jQuery(document).off('keydown', wEventEscWaiMenu);wCloseWaiMenu();}};wEventKeydownWaiMenu=function(e){if(wAccessHandler.isLastFocusableElement({element:jQuery('#wAiMenu')}, jQuery(e.target))){jQuery(document).off('keydown', wEventEscWaiMenu);wCloseWaiMenu();}};jQuery(document).on('keydown', wEventEscWaiMenu);jQuery('#wAiMenu').on('keydown', wEventKeydownWaiMenu);jQuery('.wAiIcon').attr('aria-expanded', 'true').focus();if(jQuery('.wAiIconLabel').length > 0) jQuery('.wAiIconLabel').attr('aria-expanded', 'true');}};wCloseWaiMenu=function(setFocus=true){if(typeof(wEditor)=='undefined'){jQuery('#wAiMenu').removeClass('open');jQuery('#wAiMenu *[onclick]').wRemoveSelectAndClickableWithReturn();jQuery('#wAiMenu *[onclick]').on('keydown', function(){});jQuery('.wAiIcon').attr('aria-expanded', 'false');if(jQuery('.wAiIconLabel').length > 0) jQuery('.wAiIconLabel').attr('aria-expanded', 'false');if(setFocus) jQuery('.wAiIcon').focus();}};wPersonalizeAccessibility=function(name, value, options){if(typeof(name)!=='undefined'&&typeof wOnBeforeChangeAccessibility==='function'){wOnBeforeChangeAccessibility(name, value, options);}var options=options||'';if(name=='fontSize'){if(value=='toggle'){value=/waFontSize=(l|xl)/.test(document.cookie)?'':'l';}document.cookie='waFontSize=' + value + (options!=''?',' + options:'') + ';path=/;sameSite=Lax';}else if(name=='contrast'){if(value=='toggle'){value=/waContrast=l/.test(document.cookie)?'':'l';}
173if(options.indexOf('onSelectContrastResetDarkMode:1')!=-1){if(/waDarkMode=1,type:js/.test(document.cookie)){document.cookie='waDarkMode=0,type:js;path=/;sameSite=Lax';}else{document.cookie='waDarkMode=0;path=/;sameSite=Lax';}}document.cookie='waContrast=' + value + (options!=''?',' + options:'') + ';path=/;sameSite=Lax';}else if(name=='darkMode'){if(value=='toggle'){value=/waDarkMode=1/.test(document.cookie)?'0':'1';}if(options.indexOf('onSelectDarkModeResetContrast:1')!=-1){if(/waContrast=1,type:js/.test(document.cookie)){document.cookie='waContrast=0,type:js;path=/;sameSite=Lax';}else{document.cookie='waContrast=0;path=/;sameSite=Lax';}}document.cookie='waDarkMode=' + value + (options!=''?',' + options:'') + ';path=/;sameSite=Lax';}else if(name=='hideImages'){if(value=='toggle'){value=/waHideImages=1/.test(document.cookie)?'0':'1';}document.cookie='waHideImages=' + value + (options!=''?',' + options:'') + ';path=/;sameSite=Lax';}else if(name=='avoidAnimations'){if(value=='toggle'){value=/waAvoidAnimations=1/.test(document.cookie)?'0':'1';}document.cookie='waAvoidAnimations=' + value + (options!=''?',' + options:'') + ';path=/;sameSite=Lax';}else if(name=='easyLanguageMode'){if(value=='toggle'){value=/waEasyLanguageMode=1/.test(document.cookie)?'0':'1';}document.cookie='waEasyLanguageMode=' + value + (options!=''?',' + options:'') + ';path=/;sameSite=Lax';wSetParameterAndReload('easyLanguageMode', value=='1'?'1':'0');return;}if(/easyLanguageMode=1/.test(location.search)&&!/waEasyLanguageMode=1/.test(document.cookie)){document.cookie='waEasyLanguageMode=1;path=/;sameSite=Lax';}wConsiderPesonalizeAccessibility();if(typeof(name)!=='undefined'&&typeof wOnAfterChangeAccessibility==='function'){wOnAfterChangeAccessibility(name, value, options);}};wConsiderPesonalizeAccessibility=function(){if(typeof(wEditor)!='undefined'){return;}var waFontSize='';var waContrast='';var waDarkMode='';var waHideImages='';var waAvoidAnimations='';var waEasyLanguageMode='';var styleSheet=null;for(var i=0; i < document.styleSheets.length; i++) {styleSheet=document.styleSheets[i];try{if(styleSheet.cssRules!==undefined&&styleSheet.href!==undefined&&styleSheet.href!==null) break;}catch(e){}}if(/waFontSize=(\w*)/.test(document.cookie)){waFontSize=RegExp.$1;if(waFontSize!=''){jQuery('html').addClass('waFontSize-' + waFontSize);}var computedStyle=window.getComputedStyle(document.documentElement);var fontSize=computedStyle.fontSize;if(typeof wUiTmp['waFontSizeOrig']==='undefined'){wUiTmp['waFontSizeOrig']=fontSize;}if(waFontSize=='l'){document.documentElement.style.fontSize='21px';jQuery('html').removeClass('waFontSize-xl');}else if(waFontSize=='xl'){document.documentElement.style.fontSize='23px';jQuery('html').removeClass('waFontSize-l');}else if(typeof wUiTmp['waFontSizeOrig']!=='undefined'){jQuery('html').removeClass('waFontSize-l').removeClass('waFontSize-xl');document.documentElement.style.fontSize=wUiTmp['waFontSizeOrig'];}}else if(typeof wUiTmp['waFontSizeOrig']!=='undefined'){jQuery('html').removeClass('waFontSize-l').removeClass('waFontSize-xl');document.documentElement.style.fontSize=wUiTmp['waFontSizeOrig'];}jQuery('span[data-wafontsize]').each(function(){if(jQuery(this).data('wafontsize')==waFontSize){jQuery(this).addClass('wAiRangeSelected');}else{jQuery(this).removeClass('wAiRangeSelected');}});if(/waContrast=l/.test(document.cookie)||/waContrast=l/.test(location.href)){jQuery('html').addClass('waContrast-l');waContrast='l';if(!wUiTmp['hasAddWaContrastRules']){if(styleSheet){var rules=styleSheet.cssRules;for(var i=0; i < rules.length; i++){if(rules[i].type===CSSRule.MEDIA_RULE&&rules[i].conditionText.indexOf("prefers-contrast")!=-1){rules[i].media.mediaText="(min-width:17px)";}}}}wUiTmp['hasAddWaContrastRules']=true;if(/waContrast=l,type:js/.test(document.cookie)){jQuery(typeof(wSelectorsAddContrast)!=='undefined'&&wSelectorsAddContrast!==''?wSelectorsAddContrast:'#blockMain, #blockHeader, #blockBody, #blockFooter').css({'filter':'contrast(1.2)'});}}else if(/waContrast=/.test(document.cookie)){jQuery('html').removeClass('waContrast-l');if(styleSheet){var rules=styleSheet.cssRules;for(var i=0; i < rules.length; i++){if(rules[i].type===CSSRule.MEDIA_RULE&&rules[i].conditionText.indexOf("17px")!=-1){rules[i].media.mediaText="(prefers-contrast:more)";}}if(/waContrast=0?,type:js/.test(document.cookie)){jQuery(typeof(wSelectorsAddContrast)!=='undefined'&&wSelectorsAddContrast!==''?wSelectorsAddContrast:'#blockMain, #blockHeader, #blockBody, #blockFooter').css({'filter':''});}}wUiTmp['hasAddWaContrastRules']=false;document.cookie='waContrast=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/;sameSite=lax';}jQuery('span[data-wacontrast]').each(function(){if(jQuery(this).data('wacontrast')==waContrast){jQuery(this).addClass('wAiRangeSelected');}else{jQuery(this).removeClass('wAiRangeSelected');}});if(/waDarkMode=1/.test(document.cookie)){waDarkMode='1';jQuery('html').addClass('waDarkMode-1').addClass('waDarkmode-1');if(!wUiTmp['hasAddWaDarkmodeRules']){if(styleSheet){var rules=styleSheet.cssRules;for(var i=0; i < rules.length; i++){if(rules[i].type===CSSRule.MEDIA_RULE&&rules[i].conditionText.indexOf("prefers-color-scheme")!=-1){rules[i].media.mediaText="(min-width:18.1px)";}}}}wUiTmp['hasAddWaDarkmodeRules']=true;if(/waDarkMode=1,type:js/.test(document.cookie)){document.body.style.filter='invert(1)';jQuery('img').css({'filter':'invert(1)'});}
173else if(/waDarkMode=1,type:js1/.test(document.cookie)){var styleSheet=document.styleSheets[0].href?document.styleSheets[0]:document.styleSheets[1];var rulesTmp=[];if(styleSheet){var rules=styleSheet.cssRules;for(var i=0; i < rules.length; i++){if(rules[i].type===window.CSSRule.MEDIA_RULE){var mediaRules=rules[i].cssRules||rules[i].rules;for(var j=0; j < mediaRules.length; j++){if(mediaRules[j].style){rulesTmp.push(mediaRules[j]);}}}else if(rules[i].style){rulesTmp.push(rules[i]);}}}rules=rulesTmp;for(var i=0; i < rules.length; i++){if(typeof(rules[i].style)!=='undefined'){if(rules[i].style.color){rules[i].style.color='#ffffff';}if(rules[i].style.background){rules[i].style.backgroundColor='#000000';}if(rules[i].style.backgroundColor){rules[i].style.backgroundColor='#000000';}if(rules[i].style.opacity){rules[i].style.opacity='1';}if(rules[i].style.boxShadow){rules[i].style.boxShadow='none';}if(rules[i].style.borderColor){rules[i].style.borderColor='#ffffff';}}}}}else if(/waDarkMode=/.test(document.cookie)){jQuery('html').removeClass('waDarkMode-1').removeClass('waDarkmode-1');if(styleSheet){var rules=styleSheet.cssRules;for(var i=0; i < rules.length; i++){if(rules[i].type===CSSRule.MEDIA_RULE&&rules[i].conditionText.indexOf("18.1px")!=-1){rules[i].media.mediaText="(prefers-color-scheme:dark)";}}}if(/waDarkMode=0?,type:js/.test(document.cookie)){document.body.style.filter='';jQuery('img').css({'filter':''});document.cookie='waDarkMode=;path=/;sameSite=Lax';}wUiTmp['hasAddWaDarkmodeRules']=false;document.cookie='waDarkMode=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/;sameSite=lax';}jQuery('span[data-wadarkmode]').each(function(){if(jQuery(this).data('wadarkmode')==waDarkMode){jQuery(this).addClass('wAiRangeSelected');}else{jQuery(this).removeClass('wAiRangeSelected');}});if(/waHideImages=1/.test(document.cookie)){jQuery('html').addClass('waHideImages');waHideImages='1';if(!wUiTmp['hasAddWaHideImages']){jQuery('#blockBody img').each(function(){jQuery(this).attr('data-wahashide', '1');jQuery(this).css({'opacity':'0'});var eA=jQuery('<div class="wglWaHiddenImageAlt"></div>').text(jQuery(this).attr('alt'));var eB=jQuery(this).parent().is('picture')?jQuery(this).parent():jQuery(this);eA.css({'max-width':String(eB.parent().innerWidth()) + 'px'})
174eB.before(eA);});jQuery('#blockBody .elementVideo, #blockBody .listEntry[data-hasvideo="1"] .listEntryInner').each(function(){var tmpHasHideE=jQuery(this).find('.listEntryVideo');var hashHideE=jQuery(this);if(jQuery(this).hasClass('listEntryInner')&&tmpHasHideE.length > 0){hashHideE=tmpHasHideE;}hashHideE.attr('data-wahashide', '1').attr('data-waopacitybefore', hashHideE.css('opacity')).css({'opacity':'0'});});if(typeof(wAiHideImagesBackground)==='undefined'||wAiHideImagesBackground){window.setTimeout(function(){jQuery('#blockBody *').each(function(){var currentBackground=jQuery(this).css('background-image');if(currentBackground!=='none'){jQuery(this).attr('data-wobg', currentBackground);jQuery(this).css('background-image', 'none');}});}, 50);window.setTimeout(function(){jQuery('#blockBody *').each(function(){var currentBackground=jQuery(this).css('background-image');if(currentBackground!=='none'){jQuery(this).attr('data-wobg', currentBackground);jQuery(this).css('background-image', 'none');}});}, 200);}}wUiTmp['hasAddWaHideImages']=true;}else if(/waHideImages=/.test(document.cookie)){jQuery('html').removeClass('waHideImages');jQuery('#blockBody img[data-wahashide="1"], #blockBody .elementVideo, #blockBody .listEntry[data-hasvideo="1"] .listEntryInner').each(function(){var tmpHasHideE=jQuery(this).find('.listEntryVideo');var hashHideE=jQuery(this);if(jQuery(this).hasClass('listEntryInner')&&tmpHasHideE.length > 0){hashHideE=tmpHasHideE;}hashHideE.removeAttr('data-wahashide').css({'opacity':(hashHideE.attr('data-waopacitybefore')?hashHideE.attr('data-waopacitybefore'):'1')});jQuery('.wglWaHiddenImageAlt').remove();});if(typeof(wAiHideImagesBackground)==='undefined'||wAiHideImagesBackground){jQuery('#blockBody *[data-wobg]').each(function(){var originalBackground=jQuery(this).attr('data-wobg');jQuery(this).removeAttr('data-wobg');
174jQuery(this).css('background-image', originalBackground);});}wUiTmp['hasAddWaHideImages']=false;document.cookie='waHideImages=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/;sameSite=lax';}jQuery('span[data-wahideimages]').each(function(){if(jQuery(this).data('wahideimages')==waHideImages){jQuery(this).addClass('wAiRangeSelected');}else{jQuery(this).removeClass('wAiRangeSelected');}});if(/waAvoidAnimations=1/.test(document.cookie)){waAvoidAnimations='1';if(!wUiTmp['hasAddWaAvoidAnimations']){jQuery('html').addClass('waAvoidAnimations');if(typeof bannerSliderPauseAnimationAll=='function'){bannerSliderPauseAnimationAll();}if(styleSheet){var rules=styleSheet.cssRules;for(var i=0; i < rules.length; i++){if(rules[i].type===CSSRule.MEDIA_RULE&&rules[i].conditionText.indexOf("prefers-reduced-motion")!=-1){rules[i].media.mediaText="(min-width:18.1px)";}}}}wUiTmp['hasAddWaAvoidAnimations']=true;}else if(/waAvoidAnimations=/.test(document.cookie)){jQuery('html').removeClass('waAvoidAnimations');if(typeof bannerSliderResumeAnimationAll=='function'){bannerSliderResumeAnimationAll();}if(styleSheet){var rules=styleSheet.cssRules;for(var i=0; i < rules.length; i++){if(rules[i].type===CSSRule.MEDIA_RULE&&rules[i].conditionText.indexOf("18.1px")!=-1){rules[i].media.mediaText="(prefers-reduced-motion:reduce)";}}}wUiTmp['hasAddWaAvoidAnimations']=false;document.cookie='waAvoidAnimations=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/;sameSite=lax';}jQuery('span[data-waavoidanimations]').each(function(){if(jQuery(this).data('waavoidanimations')==waAvoidAnimations){jQuery(this).addClass('wAiRangeSelected');}else{jQuery(this).removeClass('wAiRangeSelected');}});if(/waEasyLanguageMode=1/.test(document.cookie)){waEasyLanguageMode='1';if(/waEasyLanguageMode=1,addClassHtml:1/.test(document.cookie)){document.documentElement.className=document.documentElement.className.replace(' wEasyLanguageMode', '') + ' wEasyLanguageMode';}window.setTimeout(function(){wArrangeAdditionalPictureWai();}, 320);window.setTimeout(function(){wGetMissingEasyLanguages();}, 128);}jQuery('span[data-waeasylanguagemode]').each(function(){if(jQuery(this).data('waeasylanguagemode')==waEasyLanguageMode){jQuery(this).addClass('wAiRangeSelected');}else{jQuery(this).removeClass('wAiRangeSelected');}});if(waFontSize!=''|| waContrast!=''|| waDarkMode!=''|| waEasyLanguageMode!=''||waHideImages!=''||waAvoidAnimations!=''){jQuery('.wAiIcon').addClass('hasMadeSelection');}else{jQuery('.wAiIcon').removeClass('hasMadeSelection');}};wGetMissingEasyLanguages=function(){if(typeof wUiTmp['hasGetEl']==='undefined'){var rootEasyLanguages='#blockContent';wUiTmp['elcpids']=[];jQuery((rootEasyLanguages!=''?rootEasyLanguages + ' ':'') + '*[data-elcpid]').each(function(){wUiTmp['elcpids'].push(jQuery(this).data('elcpid'));});wUiTmp['hasGetEl']=true;}if(wUiTmp['elcpids'].length!=0){var elcpid=wUiTmp['elcpids'].shift();var ajaxURL='/weblication/grid5/scripts/wContent.php?action=getTextEasyLanguage&id=' + elcpid + (jQuery('*[data-elcpid="' + elcpid + '"]').hasClass('elementHeadline')||jQuery('*[data-elcpid="' + elcpid + '"]').attr('data-isheadline')==='1'?'&type=headline':'');var buttonQe=jQuery('*[data-elcpid="' + elcpid + '"]').find('.wglButtonEditEmbedElement');buttonQe.addClass('elprogress');buttonQe=buttonQe.clone();jQuery.ajax({type:"GET", url:ajaxURL, dataType:'json', async:true, success:function(result){buttonQe=jQuery('*[data-elcpid="' + elcpid + '"]').find('.wglButtonEditEmbedElement');if(result['status']=='ok'){if(jQuery('*[data-elcpid="' + elcpid + '"]').hasClass('elementHeadline')){jQuery('*[data-elcpid="' + elcpid + '"]').find('h1, h2, h3, h4, h5, h6, .he').html(result['text']).attr('data-wait', '1');}else{jQuery('*[data-elcpid="' + elcpid + '"]').html(result['text']).attr('data-wait', '1');}jQuery('*[data-elcpid="' + elcpid + '"]').append('<div class="wglInfoAiGeneratedText" aria-hidden="true"></div>');}if(buttonQe.length!=0){jQuery('*[data-elcpid="' + elcpid + '"]').prepend(buttonQe);buttonQe.removeClass('elprogress').addClass('wglButtonEditEmbedElementHasWaiTextAvailableOnTheFly');buttonQe.find('.wglButtonEditEmbedElementExtended').attr('title', 'Der Text wird von der KI generiert in Leichter Sprache zur Verfügung gestellt. Klicken Sie hier, um den Modus Leichte Sprache zu verlassen.');buttonQe.parent().attr('data-wais', '1');}if(wUiTmp['elcpids'].length!=0){window.setTimeout(function(){wGetMissingEasyLanguages();}, 20);}}});}};wArrangeAdditionalPictureWai=function(){jQuery('#blockContent .elementText').each(function(index){var bai=0, pe=null, he=0, hp=false, otlb=0, pb='', et=jQuery(this);if(et.find('.additionalPictureWai').length > 0){pb=et.css('position');et.css({'position':'relative'});pe=et.find('.additionalPictureWai').parent().parent();et.find('.additionalPictureWai[data-pos]:not([data-pos=""])').each(function(index){hp=true;var pi=jQuery(this).data('pos');var pit=jQuery(this).offset()['top'];if(/^\d+$/.test(pi)){var pp=pe.find('p:nth-of-type(' + pi + ')');if(pp.length===1){ppt=pp.offset()['top'];if(ppt > pit){jQuery(this).css({'margin-top':String(ppt-pit) + 'px'});}else{otlb=jQuery(this).offset()['top'];pp.css({'padding-top':String(otlb-ppt) + 'px'});}}}});et.find('.additionalPictureWai').each(function(index){var bi=jQuery(this).position().top + jQuery(this).height();bai=bi;he=pe.height();});if(bai > he){pe.css({'padding-bottom':String(parseInt(bai-he)) + 'px'});}et.css({'position':pb});}});};wGetText=function(id){id=typeof(id)!=='undefined'?id:'';if(typeof wTexts=='undefined') wTexts={};return (wTexts[id]!=null&&wUiTmp['lang']!=null&&wTexts[wUiTmp['lang']][id]!=null)?wTexts[wUiTmp['lang']][id]:((wTexts[id]!=null&&wUiTmp['lang']!=null&&wTexts[id][wUiTmp['lang']])?wTexts[id][wUiTmp['lang']]:(wTexts[id]!=null?wTexts[id]:id));};wSubmitFormAjax=function(){var currentForm=event.target;var formData=new FormData(currentForm);formData.append('wSubmitFormAjax', '1');jQuery.ajax({url:currentForm.getAttribute('action'),type:currentForm.getAttribute('method'),data:formData,dataType:'json',processData:false,contentType:false,success:function(response){if(typeof(wOnAfterSubmitFormAjaxSuccess)==='function'){wOnAfterSubmitFormAjaxSuccess(response);}else{if(response['redirect']){location.href=location.href!==response['redirect']?response['redirect']:wSetParameter(response['redirect'], 'wfr', new Date().getTime());}}},error:function(xhr, status, error){if(typeof(wOnAfterSubmitFormAjaxError)==='function'){var errorData={'xhrStatus':status, 'xhrError':status};wOnAfterSubmitFormAjaxError(errorData);}else{alert('Es ist ein Fehler aufgetreten. Ggf. ist die Netzwerkverbinung gerade unterbrochen. Prüfen Sie die Netzwerkverbindung und versuchen Sie es anschließend noch einmal.');}}});return false;};wLoadScript=function(src, callbackOnLoad, cO, options){let scriptObj=document.createElement('script');scriptObj.src=src;if(options['defer']!=undefined) scriptObj.setAttribute('defer', 'defer');scriptObj.onload=function(){if(typeof window[callbackOnLoad]=='function') window[callbackOnLoad](cO, options);};document.head.appendChild(scriptObj);};jQuery(document).on('mousedown', function(e){wUiTmp['lastActionSource']='mouse';});jQuery(document).on('keydown', function(e){if(e.key==='Escape'){if(jQuery('#cookieNotice').is(':visible')){event.preventDefault();if(typeof closeCookieNotice==='function'){closeCookieNotice();}else{jQuery('#cookieNotice').hide();}}else if(jQuery('.accordionCloserContent').is(':visible')){event.preventDefault();jQuery('.accordionCloserContent:visible').parent().prev('.accordionHeader').focus();}}wUiTmp['lastActionSource']='keyboard';wUiTmp['lastKey']=e.key;});class wClassAccessHandler {constructor(options){this.objects=[];this.objGroups=[];this.idCount=0;this.activeListenerObjects=[];this.listenerObjects=[];window.addEventListener('DOMContentLoaded', function() {const focusId=sessionStorage.getItem('accessHandlerFocusId');if (focusId) {const el=document.getElementById(focusId);if (el) el.focus();sessionStorage.removeItem('accessHandlerFocusId');}});};addEvent(cO, options=[]){var self=this;var add=true;var idPrefix=options['idPrefix']!=null?options['idPrefix']:'accessEvent';if(cO.id==null) cO.id=idPrefix + '_' + self.idCount;if(cO.id in self.objects&&self.objects[cO.id]!=null) add=false;if(cO.element==null){console.log('The Event has no Element:' + cO.id);add=false;}else if(cO.accessibilityRules!=null){if(cO.element.attr('aria-label')==null) cO.element.attr('aria-label', cO.element.attr('data-aria-label'));cO.element.removeAttr('data-aria-label');var accessRules=options['accessibilityRules']!=null?options['accessibilityRules']:{active:false};if(accessRules.active&&(accessRules.type!=null||accessRules.links!=null)){self.accessiblityRulesLinks(cO, accessRules);}}if(add){var eventStatus=true;if(cO.onready!=null)  eventStatus=cO.onready(cO);if(cO.onresize!=null)  jQuery(window).on('resize', function(e){cO.onresize(cO);});if(eventStatus){var events=["onkeyup", "onkeydown", "onleave", "onclick", "onmouseout", "onmouseover", "onfocusout", "onfocusin"];
174events.forEach(event=> {if(cO[event]!=null&&typeof self[event]==="function"){self[event](cO);}});}cO.init=true;self.objects[cO.id]=cO;if(self.objGroups[idPrefix]==null) self.objGroups[idPrefix]=[];self.objGroups[idPrefix].push(cO);}self.idCount++;}accessiblityRulesLinks(cO, accessRules){cO.element.find('a').each(function(){var cE=jQuery(this);var linkRules=accessRules.links!=null?accessRules.links:(accessRules.type==='strict'?'redundantTitle|filetypes|unterlinedText':'redundantTitle' );if(linkRules.indexOf('redundantTitle')!==-1&&cE.attr('title')==cE.text()) cE.removeAttr('title');if(linkRules.indexOf('filetypes')!==-1&&cE.attr('href')!=undefined){var baseHref=cE.attr('href').indexOf('wLinkDetailsSource')!==-1?cE.attr('href').split('wLinkDetailsSource=')[1]:cE.attr('href');baseHref=baseHref!==-1?baseHref.split('?')[0]:baseHref;if(baseHref.indexOf('.')===-1) baseHref='';var excludeStr=['#wEmpty', 'http://', 'https://', '#'];if(excludeStr.some(extStr=> baseHref.indexOf(extStr)!==-1)) baseHref='';var exclude=['.svg', '.html', '.php', '/'];if(exclude.some(ext=> baseHref.endsWith(ext))) baseHref='';if(baseHref!=''){var tmpExt=baseHref.split('.');if(tmpExt.length > 1){var ext=tmpExt.pop().toLowerCase();var txtE=cE;if(cE.find('*[data-aeListEntryText="1"]').length > 0) txtE=cE.find('*[data-aeListEntryText="1"]');else if(cE.children('span.linkEntryText').length > 0) txtE=cE.children('span.linkEntryText');if(txtE.text().toLowerCase().indexOf(ext)===-1) txtE.text(txtE.text().trim() + ' (' + ext.toUpperCase() + ')');}};}if(linkRules.indexOf('underlinedText')!==-1){if(cE[0].attributes.length > 0&&cE.attr('href')!='#wEmpty'&&cE.css('text-decoration').includes('underline')&&cE.first('span').length==1) cE.text(cE.first('span').text());}});}getEvent(id){return this.objects[id]!=null?this.objects[id]:{};}getEventGroup(id){return this.objGroups[id]!=null?this.objGroups[id]:[];}onkeydown(cO){var self=this;var evtO=cO.onkeydown;cO.element.attr('tabindex', cO.onkeydown.tabindex!=null?cO.onkeydown.tabindex:'0');cO.element.on('keydown.' + cO.id, function(e){self.reset(cO);const keyEvent='key' + (e.key==' '?'Space':e.key) + (e.shiftKey?'Shift':'');if(keyEvent&&typeof evtO[keyEvent]==='object'&&evtO[keyEvent].trigger=='onclick') {cO.element.data('leave', evtO[keyEvent].leave);if(evtO[keyEvent].element!==undefined) evtO[keyEvent].element.trigger('click');else cO.element.trigger('click');if(typeof evtO[keyEvent].onafterclick==='function') evtO[keyEvent].onafterclick(cO, e);evtO[keyEvent].clicked=evtO[keyEvent].clicked===undefined?true:!evtO[keyEvent].clicked;}if (keyEvent&&typeof evtO[keyEvent]==='function') {evtO[keyEvent](cO, e);}if(typeof evtO.onafterkeydown=='function') evtO.onafterkeydown(cO, e);});}onkeyup(cO){var self=this;var evtO=cO.onkeyup;cO.element.attr('tabindex', cO.onkeyup.tabindex!=null?cO.onkeyup.tabindex:'0');cO.element.on('keyup.' + cO.id, function(e){self.reset(cO);const keyEvent='key' + (e.key==' '?'Space':e.key) + (e.shiftKey?'Shift':'');if(keyEvent&&typeof evtO[keyEvent]==='object'&&evtO[keyEvent].trigger=='onclick') {cO.element.data('leave', evtO[keyEvent].leave);if(evtO[keyEvent].element!==undefined) evtO[keyEvent].element.trigger('click');else cO.element.trigger('click');if(typeof evtO[keyEvent].onafterclick==='function') evtO[keyEvent].onafterclick(cO, e);evtO[keyEvent].clicked=evtO[keyEvent].clicked===undefined?true:!evtO[keyEvent].clicked;}if (keyEvent&&typeof evtO[keyEvent]==='function') {evtO[keyEvent](cO, e);}if(typeof evtO.onafterkeyup=='function') evtO.onafterkeyup(cO, e);});}onleave(cO){var self=this;var events='';const eventNames=['keydown', 'mouseout', 'blur'];for (const eventName of eventNames) {if(!cO.onleave.events||cO.onleave.events[eventName]===undefined||cO.onleave.events[eventName])  events +=' '+eventName + '.' + cO.id;}cO.element.on(events, function(e){var leave=false;var off=cO.onleave.off!==undefined?cO.onleave.off:false;if(cO.onleave.element==null) cO.onleave.element=cO.element;if((e.key=='Tab'||e.key=='Escape'||e.key===undefined)&&(!cO.hasLeft||cO.hasleft!==true)) leave=true;if(leave){cO.hasleft=true;cO.onleave.element.data('leave', cO.hasleft);if(typeof cO.onleave=='function') cO.onleave(cO, e);else if(typeof cO.onleave==='object'&&typeof cO.onleave.function=='function') cO.onleave.function(cO, e);else if(typeof cO.onleave==='object'&&cO.onleave.trigger=='onclick') {cO.onleave.element.trigger('click');}if(off) cO.element.off(events);if(cO.onleave.stop===true){e.stopPropagation();e.stopImmediatePropagation();e.preventDefault();cO.onleave.element.data('stop', true);}}});}onclick(cO){var self=this;var events='';const eventNames=cO.onclick!=null&&cO.onclick.events!=null?cO.onclick.events:['click'];var passivListener='';for (const eventName of eventNames) {if(eventName==='touchstart'){passivListener +=eventName;}else events +=' '+eventName + '.' + cO.id;}if(passivListener!==''){cO.element.get(0).addEventListener('touchstart', function(e){cO.leave=cO.element.data('leave');cO.stop=cO.element.data('stop');if(typeof cO.onclick=='function') cO.onclick(cO, e);else if(typeof cO.onclick==='object'&&typeof cO.onclick.function=='function') cO.onclick.function(cO, e);self.reset(cO);}, { passive:true });}if(events!=''){cO.element.on(events, function(e){cO.leave=cO.element.data('leave');cO.stop=cO.element.data('stop');if(typeof cO.onclick=='function') cO.onclick(cO, e);else if(typeof cO.onclick==='object'&&typeof cO.onclick.function=='function') cO.onclick.function(cO, e);self.reset(cO);});}};onmouseout(cO){var self=this;cO.element.on('mouseout.' + cO.id, function(e){if(typeof cO.onmouseout=='function'){cO.onmouseout(cO, e);}});};onmouseover(cO){var self=this;cO.element.on('mouseover.' + cO.id, function(e){if(typeof cO.onmouseover=='function'){cO.onmouseover(cO, e);}});};onfocusout(cO){var self=this;cO.element.on('focusout.' + cO.id, function(e){if(typeof cO.onfocusout=='function'){setTimeout(()=> {const active=document.activeElement;if (!jQuery(this).get(0).contains(active)) {cO.onfocusout(cO, e);}}
174, 0);}});};onfocusin(cO){var self=this;cO.element.on('focusin.' + cO.id, function(e){if(typeof cO.onfocusin=='function'){setTimeout(()=> {const active=document.activeElement;if(jQuery(this).get(0).contains(active)) {cO.onfocusin(cO, e);}}, 0);}});};deactivateTabindex(element){var focusable='input, textarea, select, button, a[href], [tabindex], [aria-role="button"]';jQuery(element).find(focusable).attr('tabindex',-1);}activateTabindex(element){var focusable='input, textarea, select, button, a[href], [tabindex], [aria-role="button"]';jQuery(element).find(focusable).attr('tabindex', 0);}setFocusToCurElement(elementTarget, options={}){var self=this;var curFocusedE=jQuery(document.activeElement);var setFocus=false
175if(curFocusedE!==elementTarget&&jQuery('#blockPageInner').find(elementTarget).length > 0) setFocus=true;if(setFocus){var focusElement=null
176if(self.isFocusableElement(elementTarget)) focusElement=elementTarget;else focusElement=self.getNextFocusableElement({element:elementTarget});focusElement.data('tabindex', focusElement.attr('tabindex'));if(focusElement.length==1) focusElement.attr('tabindex', 0).focus();focusElement.data('tabindex')==undefined?focusElement.removeAttr('tabindex'):focusElement.attr('tabindex', focusElement.data('tabindex'));}}isFocusableElement(element){var curE=jQuery(element);if(curE.length===0||curE==null) return false;var result=true;if(curE.is(':hidden')||curE.css('visiblity')==='hidden') result=false;var nodeName=curE[0].nodeName.toLowerCase();var tabIndex=curE.attr('tabindex');const focusableTags=['input', 'select', 'textarea', 'button', 'object', 'a'];if(focusableTags.indexOf(nodeName)!==-1){if(curE.disabled) result=false;if(nodeName==="a"&&!curE.get(0).hasAttribute('href')) result=false;}if(tabIndex!=null&&tabIndex==='-1') result=false;return result;}reset(cO){cO.element.data({'leave':false, 'stop':false});cO.leave=false;cO.stop=false;}setFocusOnReload(id){sessionStorage.setItem('accessHandlerFocusId', id);}isLastFocusableElement(cO, element){var self=this;var focusable='input, textarea, select, button, a[href], [tabindex="0"], [aria-role="button"], video[controls=controls]';var fE=cO.element.find(focusable).filter(':visible');var lastFE=fE.last();if(lastFE.is(element)) return true;return false;}isFirstFocusableElement(cO, element){var self=this;var focusable='input, textarea, select, button, a[href], [tabindex="0"], [aria-role="button"], video[controls=controls]';var fE=cO.element.find(focusable).filter(':visible');var firstFE=fE.first();if(firstFE.is(element)) return true;return false;}getNextFocusableElement(cO, ancestors='', noSelf=false){var self=this;var focusable='input, textarea, select, button, a[href], [tabindex="0"], [aria-role="button"]';var result=cO.element;var nextElements=cO.element.find(focusable);if(!noSelf&&nextElements.length > 0){result=nextElements.first();}else{ancestors=Array.isArray(ancestors.split("|"))?ancestors.split('|'):[ancestors];for (let i=0; i < ancestors.length; i++) {var nextElement=cO.element.closest(ancestors[i]).next();if(nextElement.length > 0&&!wAccessHandler.isFocusableElement(nextElement)){var nextElements=nextElement.find(focusable);if(nextElements.length!==0){result=nextElements.first();break;}}else if(nextElement.length > 0){result=nextElement;break;}}}return result;}activateLayerListener(cO, e){var layerE=cO.element;var id=cO.id;var self=this;var eventObject=jQuery(document);var focusAfterOpen=null;if(self.activeListenerObjects!=null&&self.activeListenerObjects.indexOf(id)===-1) self.activeListenerObjects.push(id);if(self.listenerObjects[id]==null) self.listenerObjects[id]=cO;if(self.activeListenerObjects.indexOf(id)!==-1){window.setTimeout(function(){eventObject.off('keydown.layerListener click.keydown.layerListener').on('keydown.layerListener click.keydown.layerListener', {id:id}, function(e){var layerO=wAccessHandler.listenerObjects[e.data.id];var close=false;var target=jQuery(e.target);var isDesc=layerO.element.find(target).length > 0;var isToggler=target.is(layerO.toggler);var isWall=layerO.isWall!=null?layerO.isWall:false;var closeOnClickList=Array.isArray(layerO.closeOnClick)?layerO.closeOnClick:[layerO.closeOnClick];var closeOnClick=false;closeOnClickList.forEach(function(closeOnClickE){if(closeOnClickE!=null&&closeOnClickE.is(target)) closeOnClick=true;});if(!isWall&&e.type=='click'&&!closeOnClick&&!isToggler) close=false;else if(!isWall&&e.type==='click'&&(!isDesc||isToggler|closeOnClick)) close=true;else if(!isWall&&e.key==='Enter'&&isToggler) close=true;else if(!isWall&&e.key==='Escape'){ close=true; }else if(e.key==='Tab'){var focus=false;if(!isDesc) focus=true;else if(wAccessHandler.isLastFocusableElement(layerO, target)) focus=true;if(focus){e.preventDefault();if(cO.focusAfterOpen!=null) cO.focusAfterOpen.focus();else layerE.attr('tabindex', '0').focus();e.stopPropagation();e.stopImmediatePropagation();}}if(close){if(typeof cO.closeLayer==='function') cO.closeLayer(cO, e);else if(cO.toggler!=null){self.deactivateLayerListener(cO, e);cO.toggler.trigger('click');}}e.stopPropagation();e.stopImmediatePropagation();});}, 10);}}deactivateLayerListener(cO, e){var self=this;var eventObject=jQuery(document);self.activeListenerObjects=self.activeListenerObjects.filter(item=> item!==cO.id);eventObject.off('keydown.layerListener click.keydown.layerListener');if(self.activeListenerObjects.length > 0){self.activateLayerListener(self.listenerObjects[self.activeListenerObjects[self.activeListenerObjects.length-1]], e);}}};var wAccessHandler=new wClassAccessHandler();var wAccessEvents=[];if(wTexts==null)  var wTexts=[];if(wTexts['de']==null)  wTexts['de']=[];if(wTexts['en']==null)  wTexts['en']=[];wAccessEvents['searchbox']={id:'searchbox',element:jQuery('.searchBoxLabel'),onclick:function(cO, e){if(cO.leave||cO.stop) cO.element.closest('.searchBoxContainer').removeClass('open');else cO.element.closest('.searchBoxContainer').addClass('open');},onkeydown:{keyEscape:{trigger:'onclick', leave:true},keyEnter:{trigger:'onclick'}}};wAccessEvents['searchinput']={id:'searchinput',element:jQuery('.searchBoxContainer').find('input.searchTerm'),onleave:{trigger:'onclick', stop:true, element:jQuery('.searchBoxLabel'), events:{mouseout:false}}};wAccessEvents['global.select']={id:'global.selector',element:null,containerOptions:[],isOpened:false,onclick:function(cO, e){var target=jQuery(e.target);if(!cO.isOpened&&cO.containerOptions.find(target).length===0) cO.open(cO, e);else cO.close(cO, e);if(cO.isOpened){cO.element.on('mouseout', function(e){cO.close(cO, e);});}},onkeydown:{keyEnter:{ trigger:'onclick' },keyTab:function(cO, e){var target=jQuery(e.target);var close=false;if(cO.containerOptions.find(target).length > 0){if(wAccessHandler.isLastFocusableElement({element:cO.containerOptions}, target)) close=true;}if(close){cO.close(cO, e);}},keyEscape:function(cO, e){cO.close(cO, e);}}};wAccessEvents['languageSelector']=Object.assign(wAccessEvents['global.select'], {id:'languageSelector',onready:function (cO, e){var langSel=cO.element.find('#languageSelected');if(langSel.length > 0){langSel.attr('tabindex', 0).find('span.opener').removeAttr('tabindex');}var langSelectable=cO.element.find('#languageSelectable');cO.containerOptions=langSelectable;cO.onkeydown.tabindex=-1;return true;},open:function(cO, e){cO.isOpened=true;cO.element.addClass('open');},close:function (cO, e){cO.isOpened=false;cO.element.removeClass('open');}});wAccessEvents['cookieNotice']={element:jQuery('#cookieNotice'),toggler:jQuery('#cookieNotice').find('#cookieNoticeCloser'),closeOnClick:[jQuery('#cookieNotice').find('div#cookieNoticeInner')],focusAfterOpen:jQuery('#cookieNotice').find('div#cookieNoticeInner'),isActive:undefined,activate:function(cO, options=[], e) {cO.isActive=true;cO.isWall=options['isWall']!=null?options['isWall']:false;var focusElement=jQuery('#cookieNoticeCloser');if(!wAccessHandler.isFocusableElement(focusElement)) focusElement=wAccessHandler.getNextFocusableElement({element:focusElement.next()}, cO.focusOpen);cO.focusAfterOpen=focusElement;wAccessHandler.activateLayerListener(cO, e);},deactivate:function(cO,e){cO.isActive=false;wAccessHandler.deactivateLayerListener(cO, e);}};wAccessEvents['container.box.infoLayerWithToggler']={toggler:null,cookieSet:false,onready:function(cO, e){var id=cO.element.attr('data-infoid')!=null?cO.element.attr('data-infoid'):cO.id;var curE=cO.element;curE.prepend('<div class="boxInnerToggler" tabindex="0"></div>');cO.cookieId='hasShownInfo' + id;cO.showOnlyOnce=curE.attr('data-showonlyonce')!=null?curE.attr('data-showonlyonce'):'';cO.timeToHideAuto=curE.attr('data-timehideauto')!=null?curE.attr('data-timehideauto') * 1000:0;cO.classToAddAfterTime=curE.attr('data-classtoaddaftertime')!=null?curE.attr('data-classtoaddaftertime'):'isOpen';cO.classToRemoveAfterTime=curE.attr('data-classtoremoveaftertime')!=null?curE.attr('data-classtoremoveaftertime'):'isClosed';cO.animateAfterTime=curE.attr('data-animateaftertime')!=null?curE.attr('data-animateaftertime') * 1000:0;if(typeof(wEditor)=='undefined'&&document.cookie.indexOf(cO.cookieId + '=1')!=-1){curE.attr('data-hasshownonce', '1');}if(cO.animateAfterTime!==0&&(cO.showOnlyOnce!=='1'||document.cookie.indexOf(cO.cookieId + '=1')==-1)){window.setTimeout(function(){cO.openLayer(cO);}, cO.animateAfterTime);}else cO.openLayer(cO);if(cO.timeToHideAuto!==0){window.setTimeout(function(){cO.closeLayer(cO);}, cO.timeToHideAuto);}return true;},onclick:function(cO, e){cO.setCookie(cO, e);},openLayer:function(cO, e) {self=this;cO.element.addClass(cO.classToAddAfterTime).removeClass(cO.classToRemoveAfterTime);cO.toggler=cO.element.find('.boxInnerToggler');cO.setCookie(cO, e);wAccessHandler.activateLayerListener(cO, e);},closeLayer:function (cO, e){cO.element.removeClass(cO.classToAddAfterTime).addClass(cO.classToRemoveAfterTime);cO.setCookie(cO, e);wAccessHandler.deactivateLayerListener(cO, e);},setCookie:function(cO, e){var self=this;var executeCookieSet=function() {if(typeof(wEditor)==='undefined'&&!self.cookieSet&&!wAccessEvents['cookieNotice'].isActive) {document.cookie=cO.cookieId + '=1;path=/;sameSite=lax';self.cookieSet=true;}};if(jQuery('#cookieNotice').length > 0) {var waitForCookieNotice=function() {if(typeof wAccessEvents['cookieNotice'].isActive==='undefined') {setTimeout(waitForCookieNotice, 100);return;}executeCookieSet();};waitForCookieNotice();}else executeCookieSet();}}
176;wAccessEvents['global.listEntry']={accessibilityRules:'standard',onready:function(cO){if(typeof cO.onBeforeReady=='function') cO.onBeforeReady(cO);if(cO.element.find('[href="'+cO.element.attr('data-url')+'"]').length > 0){cO.element.removeAttr('aria-label').on('click', function(e){cO.onclick(cO, e);});return false;}else if(cO.element.find('a').length==0) cO.element.attr('role', 'link');return true;},onclick:function(cO, e){if (e.target.tagName==='A') return false;wOpenURL(cO.element.attr('data-url'), cO.element.attr('data-target'), typeof cO.getOpenUrlElement==='function'?cO.getOpenUrlElement(cO):cO.element.get(0));return false;},onkeydown:{keyEnter:{ trigger:'onclick' }}};wAccessEvents['default.listEntry']=Object.assign({onBeforeReady:function(cO){if(cO.element.find('[data-accessevent="default.listEntry"]').length==0) cO.element.removeAttr('onclick');},getOpenUrlElement:function(cO){return cO.element.hasClass('listEntryInner')?cO.element.parent().get(0):cO.element.get(0);}}, wAccessEvents['global.listEntry']);wAccessEvents['bannerSlider.listEntry']=Object.assign({onBeforeReady:function(cO){if(cO.element.find('[data-accessevent="bannerSlider.listEntry"]').length==0) cO.element.removeAttr('onclick').removeAttr('onkeyup').removeAttr('tabindex');},}, wAccessEvents['global.listEntry']);wAccessEvents['container.box.standard']={accessibilityRules:'standard',onready:function(cO){var result=true;if(cO.element.find('[data-accessevent="container.box.standard"]').length==0) cO.element.removeAttr('onclick').removeAttr('onkeyup').removeAttr('tabindex');if(cO.element.find('[href="'+cO.element.attr('data-url')+'"]').length > 0){cO.element.removeAttr('aria-label').on('click', function(e){cO.onclick(cO, e);});result=false;}else if(cO.element.find('a').length==0) cO.element.attr('role', 'link');return result;},onclick:function(cO, e){wOpenURL(cO.element.attr('data-url'), cO.element.attr('data-target'), cO.element.get(0));return false;},onkeydown:{keyEnter:{ trigger:'onclick' }}};wAccessEvents['linkList.listEntry']={accessibilityRules:'standard'};wAccessEvents['link.standard']={accessibilityRules:'standard'};wTexts['de']['smartSliderAria_forward']='Vorwärts blättern';wTexts['de']['smartSliderAria_back']='Zurück blättern';wAccessEvents['smartSlider.pageNavi']={onresize:function(cO){cO.element.attr('aria-label', wGetText('smartSliderAria_' + (cO.param!=null?cO.param[0]:'')));var eCS=cO.element.closest('.elementContainerStandard');if(eCS.attr('data-numberpages')!='1') cO.element.attr('tabindex', 0);else cO.element.removeAttr('tabindex');},onkeydown:{keyEnter:{trigger:'onclick',tabindex:'-1',onafterclick:function(cO, e){var eCS=cO.element.closest('.elementContainerStandard');if(eCS.length > 0){const cI=setInterval(function() {if(cO.param==null) clearInterval(cI);if (eCS.attr('data-moving')!=1){if(cO.param[0]=='forward'&&eCS.attr('data-islastentry')==1) eCS.find('[data-accessevent="smartSlider.pageNavi(back)"]').focus();if(cO.param[0]=='back'&&eCS.attr('data-isfirstentry')==1) eCS.find('[data-accessevent="smartSlider.pageNavi(forward)"]').focus();clearInterval(cI);}}, 200);setTimeout(function() {clearInterval(cI);}, 800);}}}}};wAccessEvents['wLightbox']={element:jQuery('html.wglBox'),openedByElement:null,elementsRel:null,parent:null,onready:function(cO, e){cO.lightbox=jQuery('.wLightbox');cO.lightbox.attr('tabindex', 0).focus().removeAttr('tabindex');cO.moveObject={ next:jQuery('.wLightboxMoverForward'), back:jQuery('.wLightboxMoverBack')};cO.element.find('.wLightboxPlayer, .wLightboxFullscreen, .wLightboxCloser, .wLightboxMoverBack, .wLightboxMoverForward').attr('tabindex', 0);cO.closer=cO.element.find('.wLightboxCloser');return true;},onkeydown:{keyTab:function(cO, e){if(wAccessHandler.isLastFocusableElement({element:cO.lightbox}, jQuery(e.target))){cO.closer.focus();event.stopPropagation();event.stopImmediatePropagation();event.preventDefault();}},keyArrowLeft:function(cO, e){ if(cO.moveObject.back.length > 0)  cO.move(cO, 'back')},keyArrowRight:function(cO, e){ if(cO.moveObject.next.length > 0) cO.move(cO, 'next')},keyEnter:function(cO,e){var target=jQuery(e.target);if(target.is('.wLightboxMoverForward')) cO.move(cO, 'next');else if(target.is('.wLightboxMoverBack')) cO.move(cO, 'back');else if(target.is('.wLightboxPlayer')) target.trigger('click').focus();else if(target.is('.wLightboxFullscreen')) target.trigger('click').focus();else if(target.is('.wLightboxCloser')) cO.closeLightbox(cO, e);},keyEscape:function(cO, e){if(cO.parent!=null){cO.parent.get(0).postMessage({ action:'closeLightbox' }, '*');}else cO.closeLightbox(cO, e);}},move:function(cO, move){var curE=jQuery(cO.elementsRel[parseInt(cO.moveObject[move].data('entry'))]);if(curE.length > 0){curE.trigger('click');cO.lightbox.attr('data-lastdirection', move);cO.moveObject[move].focus();}},closeLightbox:function(cO, e){wLightboxClose(e);if(cO.openedByElement!=null&&cO.openedByElement.length > 0) cO.openedByElement.focus();}};wAccessEvents['wLightboxImage']=jQuery.extend(true, {}, wAccessEvents['wLightbox']);wAccessEvents['wLightboxVideo']=jQuery.extend(true, {}, wAccessEvents['wLightbox']);wAccessEvents['wLightboxVideo'].onkeydown.keyTab=function(cO, e){var target=jQuery(e.target);if(cO.lightbox.find('video[controls=controls]').length > 0){if(e.target.nodeName==='VIDEO'&&wAccessHandler.isLastFocusableElement({element:cO.lightbox}, jQuery(e.target))){cO.lightbox.find('video').next().prepend('<div style="visiblity:hidden;opacity:0;height:0;width:0;" tabindex="0"></div>');}cO.lightbox.find('video').off('focusout').on('focusout', {event:e, cO:cO}, function(e){e.preventDefault();cO.closer.focus();});}};wAccessEvents['wLightboxIframe']=jQuery.extend(true, {}, wAccessEvents['wLightbox']);wAccessEvents['wLightboxIframe'].onready=function(cO, e){if(parent!=self){cO.parent=jQuery(window.parent);}else{cO.lightbox=jQuery('.wLightbox');cO.lightbox.attr('tabindex', 0).focus().removeAttr('tabindex');cO.moveObject={ next:jQuery('.wLightboxMoverForward'), back:jQuery('.wLightboxMoverBack')};cO.element.find('.wLightboxCloser, .wLightboxMoverBack, .wLightboxMoverForward').attr('tabindex', 0);cO.closer=cO.element.find('.wLightboxCloser');jQuery(window).on('message.lightbox', {cO:cO}, function(e){var data=e.originalEvent.data;var cO=e.data.cO;if(data.action=='focusCloser') cO.closer.attr('tabindex', '0').focus();else if(data.action=='closeLightbox') cO.closeLightbox(cO, e);});cO.closer.focus();}return true;};wAccessEvents['wLightboxIframe'].onkeydown.keyTab=function(cO, e){if(cO.parent!=null&&wAccessHandler.isLastFocusableElement(cO, jQuery(e.target))){cO.parent.get(0).postMessage({ action:'focusCloser' }, '*');event.stopPropagation();event.stopImmediatePropagation();event.preventDefault();}};wAccessEvents['wLightboxIframe'].closeLightbox=function(cO, e){wLightboxClose(e);if(cO.openedByElement!=null&&cO.openedByElement.length > 0) cO.openedByElement.focus();jQuery(window).off('message.lightbox');};wAccessEvents['containerTab']={activate:'auto',onready:function(cO){cO.element.find('.tabs').children('.tab').each(function(){aE=jQuery.extend(true, {element:jQuery(this)}, wAccessEvents['containerTab.tab']);aE.activate=cO.activate;wAccessHandler.addEvent(aE, {'idPrefix':'containerTab.tab'});});cO.element.find('.containers').children('.container').each(function(){aE=jQuery.extend(true, {element:jQuery(this)}, wAccessEvents['containerTab.container']);aE.activate=cO.activate;wAccessHandler.addEvent(aE, {'idPrefix':'containerTab.container'});});return true;},onfocusin:function(cO, e){console.log('focusIn ' + cO.element.data('focusedout'));if(cO.element.data('focusedout')==null||cO.element.data('focusedout')=='1'){var currTab=cO.element.find('.tabSelected');currTab.attr('tabindex', '0').attr('aria-selected', 'true');currTab[0].focus({ preventScroll:true });currTab.siblings().attr('tabindex', '-1').attr('aria-selected', 'false');wAccessHandler.activateTabindex(cO.element.find('.containerSelected'));cO.element.data('focusedout', '0');}},onfocusout:function(cO, e){cO.element.data('focusedout', '1');wAccessHandler.deactivateTabindex(cO.element.find('.containerSelected'));}};wAccessEvents['containerTab.tab']={container:null,tabContainer:null,activate:null,onready:function(cO){var id=cO.element.attr('id').replace('tab_', 'container_');cO.tabContainer=cO.element.closest('.elementTabContainer');cO.container=cO.tabContainer.find('#' + id);cO.element.data('aeid', cO.id);return true;},moveFocus:function(cE, pos, activate){var nE=pos=='+'?cE.next():cE.prev();if(pos=='+'&&nE.length==0){nE=cE.siblings().first();}
176else if(pos=='-'&&nE.length==0){nE=cE.siblings().last();}else if(pos=='HOME'){console.log('HOME');if(cE.prev().length==0) nE=cE;else nE=cE.siblings().first();}else if(pos=='END'){if(cE.next().length==0) nE=cE;else nE=cE.siblings().last();}cE.siblings().attr('tabindex', '-1');nE.attr('tabindex', '0').get(0).focus();if(activate=='auto') nE.trigger('click');},onkeydown:{keyEnter:function(cO, e) {  cO.element.trigger('click'); },keySpace:function(cO, e) {  cO.element.trigger('click'); },keyArrowLeft:function(cO, e){  cO.moveFocus(cO.element, '-', cO.activate); },keyArrowRight:function(cO, e){ cO.moveFocus(cO.element, '+', cO.activate); },keyTab:function(cO, e){var nextE=null;if(cO.element.hasClass('tabSelected')){nextE=cO.container;}if(nextE!==null){var nextFE=wAccessHandler.getNextFocusableElement({element:nextE});if(wAccessHandler.isFocusableElement(nextFE)){nextFE.focus();e.preventDefault();e.stopPropagation();}}}}};wAccessEvents['containerTab.container']={tab:null,activate:null,onready:function(cO){var id=cO.element.attr('id').replace('container_', 'tab_');cO.tab=cO.element.closest('.elementTabContainer').find('#' + id);cO.element.data('aeid', cO.id);return true;},onfocusout:function(cO, e){if(cO.tab.data('preventFocusOut')=="1") cO.tab.data('preventFocusOut', "0").focus();},onkeydown:{tabindex:'-1',keyTabShift:function(cO, e){var isFirstFE=wAccessHandler.isFirstFocusableElement(cO, jQuery(e.target));if(isFirstFE) cO.tab.data('preventFocusOut', "1")
177},keyHome:function(cO, e){var aE=wAccessHandler.getEvent(cO.tab.data('aeid'));aE.moveFocus(cO.tab, 'HOME', cO.activate);},keyEnd:function(cO, e){var aE=wAccessHandler.getEvent(cO.tab.data('aeid'));aE.moveFocus(cO.tab, 'END', cO.activate);}}};wAccessEvents['video.intern']={videoControls:null,isOn:false,shiftKey:false,onready:function(cO, e){cO.videoControls=cO.element.find('.videoControls');return true;},on:function(cO, e){cO.init=true;cO.element.find('*[data-tabindex]').each(function(){jQuery(this).attr('tabindex', jQuery(this).attr('data-tabindex'));});jQuery(document).off('keydown click').on('keydown click', {cO:cO}, function(e){var cO=e.data.cO;var target=e.target;var reset=false;if(e.type=='keydown'&&e.key=='Tab'){if(e.shiftKey&&wAccessHandler.isFirstFocusableElement(cO, target)) reset=true;else if(!e.shiftKey&&wAccessHandler.isLastFocusableElement(cO, target)) reset=true;}else if(cO.element.find(target).length==0) reset=true;if(reset) cO.off(cO, e);});},off:function (cO, e){cO.isOn=false;cO.shiftKey=e.key!=null&&e.shiftKey?true:false;cO.element.data('initTabindex', false).find('*[data-tabindex]').attr('tabindex', '0');jQuery(document).off('keydown click');},onfocusin:function(cO, e){if(cO.videoControls.length > 0&&!cO.isOn) cO.on(cO, e);},onfocusout:function(cO, e){if(cO.videoControls.length > 0){var next=null;if(cO.shiftKey) next=wAccessHandler.getPrevFocusableElement(cO);else next=wAccessHandler.getNextFocusableElement(cO, '.elementBox|.elementSection', true, true);next.get(0).focus();}}};jQuery.fn.wAccessEventHandler=function(){if(typeof(wAccessibility)!=='undefined'&&wAccessibility['accessEventHandler']!=null&&wAccessibility['accessEventHandler'].active===true){jQuery(this).each(function(){var eventId=jQuery(this).attr('data-accessevent');var param=[];if(eventId.indexOf('(')!==-1){var tmp=eventId.match(/\(([^)]*)\)/)?.[1]??'';param=tmp.split('|');eventId=eventId.split('(')[0];}if(wAccessEvents[eventId]!=null){var aeO=Object.assign({}, wAccessEvents[eventId]);aeO.element=jQuery(this);if(param.length > 0){aeO.param=param;}var options={'idPrefix':eventId,'accessibilityRules':wAccessibility['accessEventHandler']&&wAccessibility['accessEventHandler'].accessibilityRules?wAccessibility['accessEventHandler'].accessibilityRules:'standard'
178};wAccessHandler.addEvent(aeO, options);}});}};function wDebounce(func, wait){let timeout;return function (...args){const context=this;clearTimeout(timeout);timeout=setTimeout(()=> {func.apply(context, args);}, wait);};}function wSetObserverOptions(element){if(jQuery(element).height()/window.innerHeight > 2){wObserverOptions={threshold:[0, 0.01, 0.05, 0.5]};}}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.