var eCookieConsent={isProduction:function(){return"true"=="true";},log:function(A){if(this.isProduction()==true){return ;}if(typeof (console)!="undefined"){console.log(A);}},getCurrentDomain:function(C){if(C=="localhost"){return"localhost";}var A=C.split(".");if(A.length>2){A[0]=null;}var B=A.join(".");if(B.indexOf(".")==0){B=B.substring(1);}return B;},hasClass:function(B,A){return B.className.match(new RegExp("(\\s|^)"+A+"(\\s|$)"));},addClass:function(B,A){if(!this.hasClass(B,A)){B.className+=" "+A;}},removeClass:function(C,A){if(this.hasClass(C,A)){var B=new RegExp("(\\s|^)"+A+"(\\s|$)");C.className=C.className.replace(B,"");}},getElementsByClassName:function(F,G){var A,E,D;if(document.getElementsByClassName){return F.getElementsByClassName(G);}else{if(document.querySelectorAll){return F.querySelectorAll("."+G);}else{A=[];E=new RegExp("(^| )"+G+"( |$)");D=F.getElementsByTagName("*");for(var C=0,B=D.length;C<B;C++){if(E.test(D[C].className)){A.push(D[C]);}}return A;}}},_hasConsented:function(){var A=this.getCookie("eEnableCookies")=="true"?true:false;
return A;},_areCookiesAllowed:function(){var A=this.getCookie("eEnableCookies");var B=(A=="false"||A=="true"?true:false);return B;},hasConsentedToCookies:function(){if(!this.isShowCookieConsentDialogForSite()){this.log("No need to show cookie consent dialog for this site!");return true;}var A=this.getCookie("eEnableCookies")=="true"?true:false;return this._areCookiesAllowed();},showDialogue:function(){var F,C,H,M,G,I,E,D,K,B,L=this,J;this.log("showDialogue() enter");var A=document.getElementById("eCookieConsentDialogHolder");A.innerHTML='<div id="eCookieConsentDialog" class="responsive"> <div id="eCookieConsentDialogHidable" style="display: block;" class="responsive"> <div class="cookie_container"> <div style="position: relative;"> <p>We use cookies to provide you with the best possible user experience. If you continue to use the site without changing your cookie settings, we assume you are fine with our cookies and the way we use them. The cookies store information about how you use our website, and help you use some of the functions on the site. Our cookies do not store any sensitive information, and we never use your cookies for targeted advertising. If you want, you can change your computer&rsquo;s settings so that it does not accept cookies. We have information here on how you can do that.</p> <p class="mask_fade"></p> <a class="read_more"></a> </div> <div class="input_holder"> <input id="cookieConsentAcceptButton" type="submit" class="eBtnSubmit" value="Continue" onclick="eCookieConsent.setCookieConsentCookie();" /> <!-- MACRO --><!-- <macro:link ref="/cookies" title="Cookies on www.ericsson.com" label="Cookies on www.ericsson.com" type="url" style-class="EMl"/> --><a class="EMl" title="Cookies on www.ericsson.com" href="/cookies">Cookies on www.ericsson.com</a><!-- /MACRO --> </div> </div> </div> </div>';
B=document.getElementById("eCookieConsentDialog");J=(L.hasClass(B,"responsive"))?true:false;document.getElementById("eCookieConsentDialogHolder").style.display="block";F=document.getElementById("eCookieConsentDialogHidable");C=L.getElementsByClassName(F,"cookie_container")[0];H=L.getElementsByClassName(F,"read_more")[0];G=L.getElementsByClassName(F,"text_clip")[0];I=L.getElementsByClassName(F,"mask_fade")[0];M=document.createElement("a");M.className="read_less eHide";if(J){E=document.getElementsByTagName("p")[0];if(window){D=parseInt($("p:eq(0)").css("line-height"));}K=parseInt($("p:eq(0)").height());D=(D===1)?parseInt(parseFloat($("p:eq(0)").css("line-height"))*parseInt($("p:eq(0)").css("font-size"))):D;if(K>=(3*D)){L.addClass(E,"text_clip");}else{L.addClass(I,"eHide");L.addClass(H,"eHide");}}if(H){H.parentNode.insertBefore(M,H);}if(I){I.onclick=function(){L.addClass(I,"eHide");L.removeClass(E,"text_clip");L.addClass(H,"eHide");L.removeClass(M,"eHide");};}if(H){H.onclick=function(){L.addClass(I,"eHide");
L.removeClass(E,"text_clip");L.addClass(H,"eHide");L.removeClass(M,"eHide");};}if(M){M.onclick=function(){L.removeClass(I,"eHide");L.addClass(E,"text_clip");L.addClass(M,"eHide");L.removeClass(H,"eHide");};}},isShowCookieConsentDialogForSite:function(){return true;},isUseGoogleAnalyticsForSite:function(){return true;},checkIfUserHasConsented:function(){if(this.getCookie("eEnableCookies")=="true"){this.log("checkIfUserHasConsented() enter, user already consented");return ;}if(this._areCookiesAllowed()!=true){this.log("setting cookie to false indicating other cookies might be set");this.setCookiesSetCookie("false");}else{this.log("cookies allowed cookie already set");}this.log("checkIfUserHasConsented() enter, not consented yet");if("true"!="true"){this.log("checkIfUserHasConsented() dont show banner for current site, exit");return ;}this.log("checkIfUserHasConsented() calling showDialogue()");this.showDialogue();},setCookiesSetCookie:function(){var B=this.getCurrentDomain(document.location.hostname);
var A=2*365;this.setCookie("eEnableCookies","false","/",B,A,false);},setCookieConsentCookie:function(){var B=this.getCurrentDomain(document.location.hostname);var A=2*365;this.setCookie("eEnableCookies","true","/",B,A,true);document.getElementById("eCookieConsentDialogHolder").style.display="none";document.getElementById("eCookieConsentDialogHolder").style.height="0";},setCookie:function(C,H,D,B,G,I){if(typeof (D)!="string"){D="/";}if(isNaN(G)){G=2*365;}var E=24*60*60;var F=G*E;var A=C+"="+H+"; ";A+="expires=Sun, 16-Apr-2017 08:56:28 GMT;";A+="path="+D+"; ";this.log("setCookie() strCookie="+A);document.cookie=A;if(I){window.location.reload();}},getCookie:function(F){this.log("trying to get value for cookie "+F);this.log("full cookies string is "+document.cookie);var D=F+"=";var A=document.cookie.split(";");for(var C=0;C<A.length;C++){var E=A[C];while(E.charAt(0)==" "){E=E.substring(1,E.length);}if(E.indexOf(D)==0){var B=E.substring(D.length,E.length);this.log("value of cookie is "+B);return B;
}}return null;},setCookieIfUserConsented:function(E,C,D,B,A){if(this._hasConsented()==true){this.setCookie(E,C,B,A);}}};