var CookieConsent=Class.create({initialize:function(b){this.settings=b;if(!this.getCookie("cookieConsent")){this.showDisclaimer()}var a=$("ResetCookies");if(a!=null){a.observe("click",function(){this.showDisclaimer()}.bind(this))}},getCookie:function(b){var a=b+"=";var c=false;document.cookie.split(";").invoke("strip").each(function(d){if(d.startsWith(a)){c=unescape(d.substring(a.length,d.length))}});return c},setCookie:function(c,e,g){var f=c+"="+escape(new String(e));var a="";if(g){var b=new Date();b.setTime(b.getTime()+(g*24*60*60*1000));var a="; expires="+b.toGMTString()}var d=f+a+";path=/";document.cookie=d},clearCookie:function(a){this.setCookie(a,"",-1)},animation:function(b,a){switch(this.settings.animation){case"none":b=="show"?$(a).show():$(a).hide();break;case"slide":b=="show"?Effect.BlindDown(a,{duration:1}):Effect.BlindUp(a,{duration:1});break;case"fade":b=="show"?Effect.Appear(a,{duration:1}):Effect.Fade(a,{duration:1});break}},showDisclaimer:function(){var b=this.settings.disclaimer1+'<a href="#" class="button" role="button" name="cookieConsentHide" id="cookieConsentHide">'+this.settings.buttonText+'</a><a href="#" class="button" role="button" name="cookieConsentConfig" id="cookieConsentConfig">'+this.settings.configButtonText+"</a>";var a=this.settings.disclaimer2+'<div id="CookieSelectPane"><div class="CookieSelectButtonWrapper" title="'+this.settings.necessaryInfoBox+'"><label for="CookieButtonNecessary"><input id="CookieButtonNecessary" class="CookieButton" disabled="disabled" checked="checked" type="checkbox">'+this.settings.mandatoryLabel+'</label></div><div class="CookieSelectButtonWrapper" title="'+this.settings.preferencesInfoBox+'"><label for="CookieButtonPreferences"><input id="CookieButtonPreferences" class="CookieButton" tabindex="1" type="checkbox">'+this.settings.preferencesLabel+'</label></div><div class="CookieSelectButtonWrapper" title="'+this.settings.statisticsInfoBox+'"><label for="CookieButtonStatistics"><input id="CookieButtonStatistics" class="CookieButton" tabindex="1" type="checkbox">'+this.settings.statisticsLabel+'</label></div><div class="CookieSelectButtonWrapper" title="'+this.settings.marketingInfoBox+'"><label for="CookieButtonMarketing"><input id="CookieButtonMarketing" class="CookieButton" tabindex="1" type="checkbox">'+this.settings.marketingLabel+'</label></div></div><a href="#" class="button" role="button" name="cookieConsentOK" id="cookieConsentOK">OK</a>';var c='<div id="cookieConsent" style="display: none;"><div class="col-md-2"></div><div id="cookieConsentContent" class="col-md-8">'+b+'</div><div class="col-md-2"></div></div></div>';var d=["necessary","preferences","statistics","marketing"];$("xwikimaincontainerinner").insert({before:c});$("cookieConsentHide").observe("click",this.hideDisclaimer.bind(this,d));$("cookieConsentConfig").addEventListener("click",function(){$("cookieConsentContent").innerHTML=a;$("cookieConsentOK").observe("click",function(){if(!$("CookieButtonPreferences").checked){var e=d.indexOf("preferences");if(e>-1){d.splice(e,1)}}if(!$("CookieButtonStatistics").checked){var e=d.indexOf("statistics");if(e>-1){d.splice(e,1)}}if(!$("CookieButtonMarketing").checked){var e=d.indexOf("marketing");if(e>-1){d.splice(e,1)}}this.hideDisclaimer(d)}.bind(this))}.bind(this));this.animation("show","cookieConsent")},hideDisclaimer:function(a){this.setCookie("cookieConsent","hide",365);this.setCookie("gdprSettings",a,365);this.animation("hide","cookieConsent")}});document.observe("dom:loaded",function(){var b={type:"bar",position:"bottom",animation:"slide",buttonType:"$settings.getProperty('buttonType').value",buttonText:"I accept all Cookies",configButtonText:"Configure",disclaimer1:'<p>This site uses cookies to improve your browsing experience, to perform analytics and for advertising. By clicking <strong>I accept all Cookies</strong> you agree to the use of cookies on your device. If you\'d like to change your preferences please visit the <span class="wikilink"><a href="/en/company/cookies/">Cookie Policy</a></span> page.</p>',disclaimer2:'<p>This site uses cookies to improve your browsing experience, to perform analytics and for advertising. By registering your choice of cookies and clicking <strong>OK</strong> you agree to the use of those cookies on your device. If you\'d like to change your preferences please visit the <span class="wikilink"><a style="box-sizing: border-box; background-color: transparent; color: rgb(47, 164, 231); text-decoration: underline;" href="/en/company/cookies/">Cookie Policy</a></span> page.</p>',necessaryInfoBox:"Necessary cookies which are mandatory and cannot be disabled",preferencesInfoBox:"Preferences cookies or trackers which are optional and enabled by default but used only to remember your preferences.",statisticsInfoBox:"Statistics related cookies or trackers which are optional and enabled by default and user to record anonymous statistics",marketingInfoBox:"Marketing or other related cookies or trackers which are optional and disabled by default and can record personal information",mandatoryLabel:"Necessary",preferencesLabel:"Preferences",statisticsLabel:"Statistics",marketingLabel:"Marketing"};var a=new CookieConsent(b)});