function closeCookieBar() { document.getElementById('cookiepolicy').style.display = 'none'; SetCookie("cookiepolicy", 1, 365) } function SetCookie(a, b, c) { var d = new Date; if (c) { d.setTime(d.getTime() + c * 24 * 60 * 60 * 1000); var e = "; expires=" + d.toGMTString() } else { var f = new Date(d.getFullYear(), d.getMonth(), d.getDate(), 23, 59, 59); var e = "; expires=" + f.toGMTString() } document.cookie = a + "=" + b + e + "; path=/;domain=klikklik.nl" } function GetCookie(a) { var b = a + "="; var c = document.cookie.split(";"); for (var d = 0; d < c.length; d++) { var e = c[d]; while (e.charAt(0) == " ") e = e.substring(1, e.length); if (e.indexOf(b) == 0) return e.substring(b.length, e.length) } return null } function DeleteCookie(a) { SetCookie(a, "", -1) } function InitCookie() { if (GetCookie("cookiepolicy") == null) { t = 'maakt gebruik van cookies om content en advertenties te personaliseren en om ons websiteverkeer te analyseren. Meer info    Sluiten'; var a = '
KlikKlik.nl ' + t + '
'; var body = document.getElementsByTagName('body')[0]; var cssStr = "#cookiepolicy{font-family:arial,verdana,helvetica,sans-serif;font-size:12px;z-index:2147483647;position:fixed;bottom:0;left:0;width:100%;margin-left:auto;margin-right:auto;height:30px}#cookiepolicy-inner{padding-left:10px;padding-top:7px;top:0;margin-left:auto;margin-right:auto;height:30px;background-color:#000;filter:alpha(opacity=60);-moz-opacity:.60;-khtml-opacity:.60;opacity:.60}#cookiepolicy-txt{height: 50px;line-height:30px;width:100%;text-align:center;white-space: nowrap;color:#fff;font-size:12px;font-family:arial;position:absolute;top:0px;left:10px}#cookiepolicy-accept-cookies{background-color:#000;font-size:12px;color:#fff;font-family:arial;opacity:1;padding:5px;cursor:pointer}#cookiepolicy a,#cookiepolicy a:link,#cookiepolicy a:visited,#cookiepolicy a:hover{color:#fff;text-decoration:underline}#cookiepolicy-wrapper{width:100%;margin-right:auto;margin-left:auto;position:relative}"; var style = document.createElement("style"); style.setAttribute("type", "text/css"); if(style.styleSheet){// IE style.styleSheet.cssText = cssStr; } else {// w3c var cssText = document.createTextNode(cssStr); style.appendChild(cssText); } var newdiv = document.createElement('div'); newdiv.setAttribute('id','cookiepolicy'); newdiv.innerHTML = a; body.insertBefore(style, body.firstChild); body.insertBefore(newdiv, body.firstChild); } } var readyStateCheckInterval = setInterval(function() { if (document.readyState === "complete") { InitCookie(); clearInterval(readyStateCheckInterval); } }, 10);