function cookiesEnable(){var cookieAlreadyExist;var previousPage="";cookieAlreadyExist=testCookie();if(cookieAlreadyExist==true){return;} previousPage=document.referrer;var n=0;if(previousPage!=null){n=previousPage.indexOf("almbrand.dk");} if(cookieAlreadyExist==false&&n>0){setCookie("CookieSamtykkeInfo","JaTilCookies",100000000);return;}else{if(window.location.hostname.indexOf("almbrand.dk")>-1){$("#cookieStatement").css("display","block");}}} function testCookie(){var result=getCookie('CookieSamtykkeInfo');if(typeof(result)!=='undefined'&&result!=null){return true;} return false;} function setCookie(c_name,value,exdays){if(typeof(value)!=='undefined'&&c_name!=null){var exdate=new Date();exdate.setMinutes(exdate.getMinutes()+exdays);var c_value=escape(value)+((exdays==null)?"":"; expires="+exdate.toUTCString())+";domain=.almbrand.dk;path=/";document.cookie=c_name+"="+c_value;}} function getCookie(c_name){var i,x,y,ARRcookies=document.cookie.split(";");for(i=0;i