
/*! modernizr 3.5.0 (Custom Build) | MIT *
 * https://modernizr.com/download/?-applicationcache-audio-backgroundsize-borderimage-borderradius-boxshadow-canvas-canvastext-cssanimations-csscolumns-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-cssvhunit-cssvwunit-flexbox-flexboxlegacy-fontface-generatedcontent-geolocation-hashchange-history-hsla-indexeddb-inlinesvg-input-inputtypes-localstorage-multiplebgs-opacity-postmessage-rgba-sessionstorage-smil-svg-svgclippaths-textshadow-video-webgl-websockets-websqldatabase-webworkers-domprefixes-hasevent-prefixes-setclasses-shiv-testallprops-testprop-teststyles !*/
!function(e,t,n){function r(e,t){return typeof e===t}function a(){var e,t,n,a,o,i,s;for(var c in T)if(T.hasOwnProperty(c)){if(e=[],t=T[c],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(a=r(t.fn,"function")?t.fn():t.fn,o=0;o<e.length;o++)i=e[o],s=i.split("."),1===s.length?Modernizr[s[0]]=a:(!Modernizr[s[0]]||Modernizr[s[0]]instanceof Boolean||(Modernizr[s[0]]=new Boolean(Modernizr[s[0]])),Modernizr[s[0]][s[1]]=a),S.push((a?"":"no-")+s.join("-"))}}function o(e){var t=C.className,n=Modernizr._config.classPrefix||"";if(E&&(t=t.baseVal),Modernizr._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}Modernizr._config.enableClasses&&(t+=" "+n+e.join(" "+n),E?C.className.baseVal=t:C.className=t)}function i(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):E?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function s(e,t){return!!~(""+e).indexOf(t)}function c(){var e=t.body;return e||(e=i(E?"svg":"body"),e.fake=!0),e}function l(e,n,r,a){var o,s,l,d,u="modernizr",f=i("div"),p=c();if(parseInt(r,10))for(;r--;)l=i("div"),l.id=a?a[r]:u+(r+1),f.appendChild(l);return o=i("style"),o.type="text/css",o.id="s"+u,(p.fake?p:f).appendChild(o),p.appendChild(f),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(t.createTextNode(e)),f.id=u,p.fake&&(p.style.background="",p.style.overflow="hidden",d=C.style.overflow,C.style.overflow="hidden",C.appendChild(p)),s=n(f,e),p.fake?(p.parentNode.removeChild(p),C.style.overflow=d,C.offsetHeight):f.parentNode.removeChild(f),!!s}function d(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function u(t,n,r){var a;if("getComputedStyle"in e){a=getComputedStyle.call(e,t,n);var o=e.console;if(null!==a)r&&(a=a.getPropertyValue(r));else if(o){var i=o.error?"error":"log";o[i].call(o,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else a=!n&&t.currentStyle&&t.currentStyle[r];return a}function f(t,r){var a=t.length;if("CSS"in e&&"supports"in e.CSS){for(;a--;)if(e.CSS.supports(d(t[a]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var o=[];a--;)o.push("("+d(t[a])+":"+r+")");return o=o.join(" or "),l("@supports ("+o+") { #modernizr { position: absolute; } }",function(e){return"absolute"==u(e,null,"position")})}return n}function p(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function m(e,t,a,o){function c(){d&&(delete R.style,delete R.modElem)}if(o=r(o,"undefined")?!1:o,!r(a,"undefined")){var l=f(e,a);if(!r(l,"undefined"))return l}for(var d,u,m,h,g,v=["modernizr","tspan","samp"];!R.style&&v.length;)d=!0,R.modElem=i(v.shift()),R.style=R.modElem.style;for(m=e.length,u=0;m>u;u++)if(h=e[u],g=R.style[h],s(h,"-")&&(h=p(h)),R.style[h]!==n){if(o||r(a,"undefined"))return c(),"pfx"==t?h:!0;try{R.style[h]=a}catch(y){}if(R.style[h]!=g)return c(),"pfx"==t?h:!0}return c(),!1}function h(e,t){return function(){return e.apply(t,arguments)}}function g(e,t,n){var a;for(var o in e)if(e[o]in t)return n===!1?e[o]:(a=t[e[o]],r(a,"function")?h(a,n||t):a);return!1}function v(e,t,n,a,o){var i=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+N.join(i+" ")+i).split(" ");return r(t,"string")||r(t,"undefined")?m(s,t,a,o):(s=(e+" "+_.join(i+" ")+i).split(" "),g(s,t,n))}function y(e,t,r){return v(e,n,n,t,r)}function b(e,t){if("object"==typeof e)for(var n in e)L(e,n)&&b(n,e[n]);else{e=e.toLowerCase();var r=e.split("."),a=Modernizr[r[0]];if(2==r.length&&(a=a[r[1]]),"undefined"!=typeof a)return Modernizr;t="function"==typeof t?t():t,1==r.length?Modernizr[r[0]]=t:(!Modernizr[r[0]]||Modernizr[r[0]]instanceof Boolean||(Modernizr[r[0]]=new Boolean(Modernizr[r[0]])),Modernizr[r[0]][r[1]]=t),o([(t&&0!=t?"":"no-")+r.join("-")]),Modernizr._trigger(e,t)}return Modernizr}function x(e,t){var n=e.deleteDatabase(t);n.onsuccess=function(){b("indexeddb.deletedatabase",!0)},n.onerror=function(){b("indexeddb.deletedatabase",!1)}}var T=[],w={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){T.push({name:e,fn:t,options:n})},addAsyncTest:function(e){T.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=w,Modernizr=new Modernizr;var S=[],C=t.documentElement,E="svg"===C.nodeName.toLowerCase(),k="Moz O ms Webkit",_=w._config.usePrefixes?k.toLowerCase().split(" "):[];w._domPrefixes=_;var P=w._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];w._prefixes=P;var z=function(){function e(e,t){var a;return e?(t&&"string"!=typeof t||(t=i(t||"div")),e="on"+e,a=e in t,!a&&r&&(t.setAttribute||(t=i("div")),t.setAttribute(e,""),a="function"==typeof t[e],t[e]!==n&&(t[e]=n),t.removeAttribute(e)),a):!1}var r=!("onblur"in t.documentElement);return e}();w.hasEvent=z;var N=w._config.usePrefixes?k.split(" "):[];w._cssomPrefixes=N;var A={elem:i("modernizr")};Modernizr._q.push(function(){delete A.elem});var R={style:A.elem.style};Modernizr._q.unshift(function(){delete R.style}),w.testAllProps=v,w.testAllProps=y;var $=w.testProp=function(e,t,r){return m([e],n,t,r)},O=w.testStyles=l;E||!function(e,t){function n(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function r(){var e=b.elements;return"string"==typeof e?e.split(" "):e}function a(e,t){var n=b.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),b.elements=n+" "+e,l(t)}function o(e){var t=y[e[g]];return t||(t={},v++,e[g]=v,y[v]=t),t}function i(e,n,r){if(n||(n=t),u)return n.createElement(e);r||(r=o(n));var a;return a=r.cache[e]?r.cache[e].cloneNode():h.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e),!a.canHaveChildren||m.test(e)||a.tagUrn?a:r.frag.appendChild(a)}function s(e,n){if(e||(e=t),u)return e.createDocumentFragment();n=n||o(e);for(var a=n.frag.cloneNode(),i=0,s=r(),c=s.length;c>i;i++)a.createElement(s[i]);return a}function c(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return b.shivMethods?i(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(b,t.frag)}function l(e){e||(e=t);var r=o(e);return!b.shivCSS||d||r.hasCSS||(r.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),u||c(e,r),e}var d,u,f="3.7.3",p=e.html5||{},m=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,h=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,g="_html5shiv",v=0,y={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",d="hidden"in e,u=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){d=!0,u=!0}}();var b={elements:p.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:f,shivCSS:p.shivCSS!==!1,supportsUnknownElements:u,shivMethods:p.shivMethods!==!1,type:"default",shivDocument:l,createElement:i,createDocumentFragment:s,addElements:a};e.html5=b,l(t),"object"==typeof module&&module.exports&&(module.exports=b)}("undefined"!=typeof e?e:this,t),Modernizr.addTest("applicationcache","applicationCache"in e),Modernizr.addTest("audio",function(){var e=i("audio"),t=!1;try{t=!!e.canPlayType,t&&(t=new Boolean(t),t.ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),t.mp3=e.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,""),t.opus=e.canPlayType('audio/ogg; codecs="opus"')||e.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,""),t.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),t.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(n){}return t}),Modernizr.addTest("canvas",function(){var e=i("canvas");return!(!e.getContext||!e.getContext("2d"))}),Modernizr.addTest("canvastext",function(){return Modernizr.canvas===!1?!1:"function"==typeof i("canvas").getContext("2d").fillText}),Modernizr.addTest("geolocation","geolocation"in navigator),Modernizr.addTest("hashchange",function(){return z("hashchange",e)===!1?!1:t.documentMode===n||t.documentMode>7}),Modernizr.addTest("history",function(){var t=navigator.userAgent;return-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone")||"file:"===location.protocol?e.history&&"pushState"in e.history:!1});var I=function(t){var r,a=P.length,o=e.CSSRule;if("undefined"==typeof o)return n;if(!t)return!1;if(t=t.replace(/^@/,""),r=t.replace(/-/g,"_").toUpperCase()+"_RULE",r in o)return"@"+t;for(var i=0;a>i;i++){var s=P[i],c=s.toUpperCase()+"_"+r;if(c in o)return"@-"+s.toLowerCase()+"-"+t}return!1};w.atRule=I;var L,B=w.prefixed=function(e,t,n){return 0===e.indexOf("@")?I(e):(-1!=e.indexOf("-")&&(e=p(e)),t?v(e,t,n):v(e,"pfx"))};!function(){var e={}.hasOwnProperty;L=r(e,"undefined")||r(e.call,"undefined")?function(e,t){return t in e&&r(e.constructor.prototype[t],"undefined")}:function(t,n){return e.call(t,n)}}(),w._l={},w.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),Modernizr.hasOwnProperty(e)&&setTimeout(function(){Modernizr._trigger(e,Modernizr[e])},0)},w._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout(function(){var e,r;for(e=0;e<n.length;e++)(r=n[e])(t)},0),delete this._l[e]}},Modernizr._q.push(function(){w.addTest=b}),Modernizr.addAsyncTest(function(){var t;try{t=B("indexedDB",e)}catch(n){}if(t){var r="modernizr-"+Math.random(),a=t.open(r);a.onerror=function(){a.error&&"InvalidStateError"===a.error.name?b("indexeddb",!1):(b("indexeddb",!0),x(t,r))},a.onsuccess=function(){b("indexeddb",!0),x(t,r)}}else b("indexeddb",!1)});var j=i("input"),M="autocomplete autofocus list placeholder max min multiple pattern required step".split(" "),F={};Modernizr.input=function(t){for(var n=0,r=t.length;r>n;n++)F[t[n]]=!!(t[n]in j);return F.list&&(F.list=!(!i("datalist")||!e.HTMLDataListElement)),F}(M);var D="search tel url email datetime date month week time datetime-local number range color".split(" "),W={};Modernizr.inputtypes=function(e){for(var r,a,o,i=e.length,s="1)",c=0;i>c;c++)j.setAttribute("type",r=e[c]),o="text"!==j.type&&"style"in j,o&&(j.value=s,j.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(r)&&j.style.WebkitAppearance!==n?(C.appendChild(j),a=t.defaultView,o=a.getComputedStyle&&"textfield"!==a.getComputedStyle(j,null).WebkitAppearance&&0!==j.offsetHeight,C.removeChild(j)):/^(search|tel)$/.test(r)||(o=/^(url|email)$/.test(r)?j.checkValidity&&j.checkValidity()===!1:j.value!=s)),W[e[c]]=!!o;return W}(D),Modernizr.addTest("postmessage","postMessage"in e),Modernizr.addTest("svg",!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),Modernizr.addTest("video",function(){var e=i("video"),t=!1;try{t=!!e.canPlayType,t&&(t=new Boolean(t),t.ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),t.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),t.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),t.vp9=e.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),t.hls=e.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(n){}return t}),Modernizr.addTest("webgl",function(){var t=i("canvas"),n="probablySupportsContext"in t?"probablySupportsContext":"supportsContext";return n in t?t[n]("webgl")||t[n]("experimental-webgl"):"WebGLRenderingContext"in e});var V=!1;try{V="WebSocket"in e&&2===e.WebSocket.CLOSING}catch(H){}Modernizr.addTest("websockets",V),Modernizr.addTest("cssanimations",y("animationName","a",!0)),Modernizr.addTest("backgroundsize",y("backgroundSize","100%",!0)),Modernizr.addTest("borderimage",y("borderImage","url() 1",!0)),Modernizr.addTest("borderradius",y("borderRadius","0px",!0)),Modernizr.addTest("boxshadow",y("boxShadow","1px 1px",!0)),function(){Modernizr.addTest("csscolumns",function(){var e=!1,t=y("columnCount");try{e=!!t,e&&(e=new Boolean(e))}catch(n){}return e});for(var e,t,n=["Width","Span","Fill","Gap","Rule","RuleColor","RuleStyle","RuleWidth","BreakBefore","BreakAfter","BreakInside"],r=0;r<n.length;r++)e=n[r].toLowerCase(),t=y("column"+n[r]),("breakbefore"===e||"breakafter"===e||"breakinside"==e)&&(t=t||y(n[r])),Modernizr.addTest("csscolumns."+e,t)}(),Modernizr.addTest("flexbox",y("flexBasis","1px",!0)),Modernizr.addTest("flexboxlegacy",y("boxDirection","reverse",!0));var q=function(){var e=navigator.userAgent,t=e.match(/w(eb)?osbrowser/gi),n=e.match(/windows phone/gi)&&e.match(/iemobile\/([0-9])+/gi)&&parseFloat(RegExp.$1)>=9;return t||n}();q?Modernizr.addTest("fontface",!1):O('@font-face {font-family:"font";src:url("https://")}',function(e,n){var r=t.getElementById("smodernizr"),a=r.sheet||r.styleSheet,o=a?a.cssRules&&a.cssRules[0]?a.cssRules[0].cssText:a.cssText||"":"",i=/src/i.test(o)&&0===o.indexOf(n.split(" ")[0]);Modernizr.addTest("fontface",i)}),O('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:7px/1 a}',function(e){Modernizr.addTest("generatedcontent",e.offsetHeight>=6)}),Modernizr.addTest("cssgradients",function(){for(var e,t="background-image:",n="gradient(linear,left top,right bottom,from(#9f9),to(white));",r="",a=0,o=P.length-1;o>a;a++)e=0===a?"to ":"",r+=t+P[a]+"linear-gradient("+e+"left top, #9f9, white);";Modernizr._config.usePrefixes&&(r+=t+"-webkit-"+n);var s=i("a"),c=s.style;return c.cssText=r,(""+c.backgroundImage).indexOf("gradient")>-1}),Modernizr.addTest("hsla",function(){var e=i("a").style;return e.cssText="background-color:hsla(120,40%,100%,.5)",s(e.backgroundColor,"rgba")||s(e.backgroundColor,"hsla")}),Modernizr.addTest("multiplebgs",function(){var e=i("a").style;return e.cssText="background:url(https://),url(https://),red url(https://)",/(url\s*\(.*?){3}/.test(e.background)}),Modernizr.addTest("opacity",function(){var e=i("a").style;return e.cssText=P.join("opacity:.55;"),/^0.55$/.test(e.opacity)}),Modernizr.addTest("cssreflections",y("boxReflect","above",!0)),Modernizr.addTest("rgba",function(){var e=i("a").style;return e.cssText="background-color:rgba(150,255,150,.5)",(""+e.backgroundColor).indexOf("rgba")>-1}),Modernizr.addTest("textshadow",$("textShadow","1px 1px")),Modernizr.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&y("transform","scale(1)",!0)});var U="CSS"in e&&"supports"in e.CSS,G="supportsCSS"in e;Modernizr.addTest("supports",U||G),Modernizr.addTest("csstransforms3d",function(){var e=!!y("perspective","1px",!0),t=Modernizr._config.usePrefixes;if(e&&(!t||"webkitPerspective"in C.style)){var n,r="#modernizr{width:0;height:0}";Modernizr.supports?n="@supports (perspective: 1px)":(n="@media (transform-3d)",t&&(n+=",(-webkit-transform-3d)")),n+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",O(r+n,function(t){e=7===t.offsetWidth&&18===t.offsetHeight})}return e}),Modernizr.addTest("csstransitions",y("transition","all",!0)),O("#modernizr { height: 50vh; }",function(t){var n=parseInt(e.innerHeight/2,10),r=parseInt(u(t,null,"height"),10);Modernizr.addTest("cssvhunit",r==n)}),O("#modernizr { width: 50vw; }",function(t){var n=parseInt(e.innerWidth/2,10),r=parseInt(u(t,null,"width"),10);Modernizr.addTest("cssvwunit",r==n)}),Modernizr.addTest("localstorage",function(){var e="modernizr";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(t){return!1}}),Modernizr.addTest("sessionstorage",function(){var e="modernizr";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(t){return!1}}),Modernizr.addTest("websqldatabase","openDatabase"in e);var J={}.toString;Modernizr.addTest("svgclippaths",function(){return!!t.createElementNS&&/SVGClipPath/.test(J.call(t.createElementNS("http://www.w3.org/2000/svg","clipPath")))}),Modernizr.addTest("inlinesvg",function(){var e=i("div");return e.innerHTML="<svg/>","http://www.w3.org/2000/svg"==("undefined"!=typeof SVGRect&&e.firstChild&&e.firstChild.namespaceURI)}),Modernizr.addTest("smil",function(){return!!t.createElementNS&&/SVGAnimate/.test(J.call(t.createElementNS("http://www.w3.org/2000/svg","animate")))}),Modernizr.addTest("webworkers","Worker"in e),a(),o(S),delete w.addTest,delete w.addAsyncTest;for(var Z=0;Z<Modernizr._q.length;Z++)Modernizr._q[Z]();e.Modernizr=Modernizr}(window,document);
navbar = document.querySelector('button.navbar-toggler');
if(navbar){
	navbar.addEventListener('click', () => toggleNavbar('html'));
	function toggleNavbar(modalID) {
	  document.querySelector(modalID).classList.toggle('nav-open');
	}
}


window.addEventListener("orientationchange", (event) => {
	SwiperBackgrounds ();
});


function SwiperBackgrounds () {
	var w = window,
		d = document,
		e = d.documentElement,
		g = d.getElementsByTagName('body')[0],
		x = w.innerWidth || e.clientWidth || g.clientWidth,
		y = w.innerHeight|| e.clientHeight|| g.clientHeight;
	
	var s = "small",
		o = "landscape";
		if ( y >= x )   o = 'portrait';
		if ( x < 450 )  s = "extrasmall";
		if ( x > 449 )  s = "small";
		if ( x > 768 )  s = "medium";
		if ( x > 1200 ) s = "large";

	const mySlides = document.querySelectorAll('.swiper-slide, .backgroundimage');
	
	for ( i = 0; i < mySlides.length; i++ ) {
		slide = mySlides[i];
		if (slide.hasAttribute('data-background')) {
			let currentversion = 'data-background-' + o + '-' + s;
			if (slide.classList.contains('swiper-lazy-loaded') || slide.classList.contains('backgroundimage')) {
				slide.setAttribute('data-background', slide.getAttribute(currentversion));
				slide.style.backgroundImage = "url('"+slide.getAttribute(currentversion)+"')";
			} else {
				if(slide.getAttribute('data-background') !== slide.getAttribute(currentversion)) {
					slide.setAttribute('data-background', slide.getAttribute(currentversion));
				}
			}
		} else {
			if (slide.hasAttribute('src')) {
				let currentversion = 'data-' + o + '-' + s;
				if (slide.classList.contains('swiper-lazy-loaded') || slide.classList.contains('backgroundimage')) {
					slide.setAttribute('src', slide.getAttribute(currentversion));
				} else {
					if(slide.getAttribute('src') !== slide.getAttribute(currentversion)) {
						slide.setAttribute('src', slide.getAttribute(currentversion));
					}
				}
			}
		}

	}
}
SwiperBackgrounds();


// Mobile device body class
$is_mobile_device = null !== navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/);
if(!$is_mobile_device && !window.matchMedia("(any-hover: none)").matches) { 
	var body = document.body;
	body.classList.add("noTouch");
}

//decrypt helper function
(function() {
	/**
	 * @param {Function} callback
	 */
	function ready(callback) {
	  if (document.readyState === 'complete') {
		callback.call(null);
		return;
	  }
	  var clearListeners = function() {
		window.removeEventListener('load', delegate);
		document.removeEventListener('DOMContentLoaded', delegate);
	  };
	  var delegate = function() {
		clearListeners();
		callback.call(null);
	  };
	  window.addEventListener('load', delegate);
	  document.addEventListener('DOMContentLoaded', delegate);
	}
	/**
	 * Decoding helper function
	 *
	 * @param {number} charCode
	 * @param {number} start
	 * @param {number} end
	 * @param {number} offset
	 * @return {string}
	 */
	function decryptCharcode(charCode, start, end, offset) {
	  charCode = charCode + offset;
	  if (offset > 0 && charCode > end) {
		charCode = start + (charCode - end - 1);
	  } else if (offset < 0 && charCode < start) {
		charCode = end - (start - charCode - 1);
	  }
	  return String.fromCharCode(charCode);
	}
	/**
	 * Decodes string
	 *
	 * @param {string} value
	 * @param {number} offset
	 * @return {string}
	 */
	function decryptString(value, offset) {
	  var result = '';
	  for (var i=0; i < value.length; i++) {
		var charCode = value.charCodeAt(i);
		if (charCode >= 0x2B && charCode <= 0x3A) {
		  result += decryptCharcode(charCode,0x2B,0x3A,offset);	/* 0-9 . , - + / : */
		} else if (charCode >= 0x40 && charCode <= 0x5A) {
		  result += decryptCharcode(charCode,0x40,0x5A,offset);	/* A-Z @ */
		} else if (charCode >= 0x61 && charCode <= 0x7A) {
		  result += decryptCharcode(charCode,0x61,0x7A,offset);	/* a-z */
		} else {
		  result += value.charAt(i);
		}
	  }
	  return result;
	}
  
	/**
	 * Opens URL in new window.
	 *
	 * @param {string} url
	 * @param {string|null} target
	 * @param {string|null} features
	 * @return {Window}
	 */
	function windowOpen(url, target, features) {
	  var windowRef = window.open(url, target, features);
	  if (windowRef) {
		windowRef.focus();
	  }
	  return windowRef;
	}
  
	// @deprecated Will be removed in TYPO3 v12.0
	if (typeof window['linkTo_UnCryptMailto'] === 'undefined') {
	  window['linkTo_UnCryptMailto'] = function(value, offset) {
		console.warn('Function linkTo_UnCryptMailto() is deprecated and will be remove in TYPO3 v12.0');
		if (value && offset) {
		  document.location.href = decryptString(value, offset);
		}
	  };
	}
  
	ready(function() {
	  var mailtoElements = document.querySelectorAll('a[data-mailto-token][data-mailto-vector]');
	  // `Array.from` for IE compatibility
	  Array.from(mailtoElements).forEach(function(element) {
		  element.addEventListener('click', function(evt) {
			evt.preventDefault();
			var dataset = evt.currentTarget.dataset;
			var value = dataset.mailtoToken;
			var offset = parseInt(dataset.mailtoVector, 10) * -1;
			document.location.href = decryptString(value, offset);
		  });
		});
	  var openElements = document.querySelectorAll('a[data-window-url]');
	  // `Array.from` for IE compatibility
	  Array.from(openElements).forEach(function(element) {
		  element.addEventListener('click', function(evt) {
			evt.preventDefault();
			var dataset = evt.currentTarget.dataset;
			var url = dataset.windowUrl;
			var target = dataset.windowTarget || null;
			var features = dataset.windowFeatures || null;
			windowOpen(url, target, features);
		  });
		});
	});
  })();

//Youtube-Videos
(function() {
    var v = document.getElementsByClassName("youtube-player-nocookie");
    for (var n = 0; n < v.length; n++) {
        v[n].onclick = function() {
			var iframe = document.createElement("iframe");
			iframe.setAttribute("src", "//www.youtube-nocookie.com/embed/" + this.dataset.id + "?controls=2&iv_load_policy=3&modestbranding=1&rel=0&autoplay=1");
			iframe.setAttribute("frameborder", "0");
			iframe.setAttribute("id", "youtube-iframe-nocookie");
			iframe.setAttribute("style", "width: 100%; height: 100%; position: absolute; top: 0; left: 0;");
			iframe.setAttribute("allowfullscreen", "");
			while (this.firstChild) {
				this.removeChild(this.firstChild);
			}
			this.appendChild(iframe);
			let consented = cookieman.consenteds();
			if (cookieman.hasConsented("service")){
				// service aktiviert;
			} else {
				// cookieman.show();
				// Service nicht aktiviert;
			}
        };
    }
})();


document.addEventListener("DOMContentLoaded", function() {
	var lazyloadImages;    
  
	if ("IntersectionObserver" in window) {
	  lazyloadImages = document.querySelectorAll(".lazyBackground");
	  var imageObserver = new IntersectionObserver(function(entries, observer) {
		entries.forEach(function(entry) {
		  if (entry.isIntersecting) {
			var image = entry.target;
			image.classList.remove("lazyBackground");
			imageObserver.unobserve(image);
		  }
		});
	  });
  
	  lazyloadImages.forEach(function(image) {
		imageObserver.observe(image);
	  });
	} else {  
	  var lazyloadThrottleTimeout;
	  lazyloadImages = document.querySelectorAll(".lazyBackground");
	  
	  function lazyload () {
		if(lazyloadThrottleTimeout) {
		  clearTimeout(lazyloadThrottleTimeout);
		}    
  
		lazyloadThrottleTimeout = setTimeout(function() {
		  var scrollTop = window.pageYOffset;
		  lazyloadImages.forEach(function(img) {
			  if(img.offsetTop < (window.innerHeight + scrollTop)) {
				img.src = img.dataset.src;
				img.classList.remove('lazy');
			  }
		  });
		  if(lazyloadImages.length == 0) { 
			document.removeEventListener("scroll", lazyload);
			window.removeEventListener("resize", lazyload);
			window.removeEventListener("orientationChange", lazyload);
		  }
		}, 20);
	  }
  
	  document.addEventListener("scroll", lazyload);
	  window.addEventListener("resize", lazyload);
	  window.addEventListener("orientationChange", lazyload);
	}
})

function reset_calendarize_filter(){
	checkboxes = document.querySelectorAll("input[type=checkbox]");
	checkboxes.forEach(function(element){
		element.checked = false;
	});
}

document.addEventListener("DOMContentLoaded", function() {
	document.querySelectorAll('.js-columnId').forEach( function(element) {
		element.addEventListener('keyup', function() {
			let checkbox = this.attributes.getNamedItem('data-checkbox').value;
			document.getElementById(checkbox).checked = this.value === '';
		});
	})
});
