"undefined"==typeof Optanon&&(Optanon={}); (function(){function H(){var a=[],b;for(b=0;b=$(this).find(".optanon-cookie-policy-right").height()?$(this).find(".optanon-cookie-policy-right").height($(this).find(".optanon-cookie-policy-left").height()): $(this).find(".optanon-cookie-policy-left").height($(this).find(".optanon-cookie-policy-right").height())})}function ya(){$("#optanon #optanon-menu li").removeClass("menu-item-selected");$("#optanon #optanon-menu li").each(function(){$(this).text()==x&&$(this).click()});P();var a=$("#optanon-popup-wrapper"),b=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,d=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;a.css("margin-top", "10px");720>b?a.css("top","10px"):a.outerHeight()>d?a.css("top",Math.max(0,(d-a.outerHeight())/2+$(window).scrollTop())+"px"):a.css("top",Math.max(0,(d-a.outerHeight())/2)+"px");$("#optanon #optanon-popup-bg, #optanon #optanon-popup-wrapper").hide().fadeIn(400);a.focus()}function C(a){$("#optanon #optanon-popup-bg, #optanon #optanon-popup-wrapper").fadeOut(400,a)}function ka(a){if(t(a)){var b=t(a).toLowerCase();a.Parent&&(b=t(a.Parent).toLowerCase());return"always active"==b||"active"==b||"inactive landingpage"== b||"do not track"==b&&!Q}return!0}function la(){var a,b=n(),d;if(q("OptanonConsent","groups")){q("OptanonConsent","groups")&&!U&&(U=!0);a=!1;var b=E(q("OptanonConsent","groups")),e=E(q("OptanonConsent","groups").replace(/:0/g,"").replace(/:1/g,""));d=n();var f,g,h;if(q("OptanonConsent","groups")){for(g=0;g=e.length&&(e[1]="");document.cookie=a+"\x3d"+b+d+"; path\x3d/"+e[1]+"; domain\x3d."+e[0]}function D(a){a+="\x3d";var b=document.cookie.split(";"),d,e;for(d=0;d=b-50?($("#optanon-show-settings-popup").addClass("optanon-show-settings-popup-top-button"),$("#optanon-show-settings-popup ul").addClass("top-button"), $("#optanon-show-settings-popup").css("top",a.find(".optanon-show-settings-left").height()+$("#optanon-show-settings-popup .top-arrow").height()-3+"px"),$("#optanon-show-settings-popup .top-arrow").css("top","-"+($("#optanon-show-settings-popup .top-arrow").height()-2)+"px"),$("#optanon-show-settings-popup .top-arrow").show()):$("#optanon-show-settings-popup .bottom-arrow-even, #optanon-show-settings-popup .bottom-arrow-odd").show()}function da(a){var b=$("#optanon-show-settings-popup-inner");a=a.find(".optanon-show-settings-left").width()+ a.find(".optanon-show-settings-middle").width()+a.find(".optanon-show-settings-right").width();var d=$("#optanon-show-settings-popup ul").width()-3,e=$("#optanon-show-settings-popup .top-arrow").width(),f,g,h,m;b.css("margin-left","-"+((d-a)/2+a)+"px");$("#optanon-show-settings-popup .top-arrow, #optanon-show-settings-popup .bottom-arrow-even, #optanon-show-settings-popup .bottom-arrow-odd").css("margin-left",(d-e)/2+"px");b.css("left","0px");f=$(window).scrollLeft();g=b.offset().left;h=f+$(window).width(); m=g+b.width();a=g?(b.css("margin-left","-"+a+"px"),$("#optanon-show-settings-popup .top-arrow, #optanon-show-settings-popup .bottom-arrow-even, #optanon-show-settings-popup .bottom-arrow-odd").css("margin-left",(a-e)/2+"px")):h<=m&&(b.css("margin-left","-"+d+"px"),$("#optanon-show-settings-popup .top-arrow, #optanon-show-settings-popup .bottom-arrow-even, #optanon-show-settings-popup .bottom-arrow-odd").css("margin-left",d-(a+e)/2+"px")):h<=m?b.css("margin-left","-"+a+"px"):f>=g&&b.css("margin-left", "-"+d+"px")}function u(a){var b,d=n(),e=!1,f;if(a&&null==a.Parent){for(f=0;fnew Date(b)&&!a?(B(location.href),w("OptanonConsent","AwaitingReconsent",!0)):(B("NotLandingPage"),w("OptanonConsent","AwaitingReconsent",!1),ia&&Optanon.SetAlertBoxClosed(!0))}else B(location.href);oa()};this.InsertScript=function(a,b,d,e,f){var g=null!=e&&"undefined"!=typeof e,h;if(L(f,g&&"undefined"!=typeof e.ignoreGroupCheck&& 1==e.ignoreGroupCheck||!1)&&!A(W,f)){F.push(f);g&&"undefined"!=typeof e.deleteSelectorContent&&1==e.deleteSelectorContent&&ma(b);f=document.createElement("script");null!=d&&"undefined"!=typeof d&&(h=!1,f.onload=f.onreadystatechange=function(){h||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(h=!0,d())});f.type="text/javascript";f.src=a;switch(b){case "head":document.getElementsByTagName("head")[0].appendChild(f);break;case "body":document.getElementsByTagName("body")[0].appendChild(f); break;default:document.getElementById(b)&&(document.getElementById(b).appendChild(f),g&&"undefined"!=typeof e.makeSelectorVisible&&1==e.makeSelectorVisible&&O(b))}if(g&&"undefined"!=typeof e.makeElementsVisible)for(a=0;anew Date(b))&&Optanon.ReconsentGroups();return!b};this.ReconsentGroups=function(){var a=!1,b=E(q("OptanonConsent","groups")),d=E(q("OptanonConsent","groups").replace(/:0/g,"").replace(/:1/g,"")),e=n();if(q("OptanonConsent", "groups")){for(var f=0;f