var TimeToFade = 250.0; function fade(eid) { var element = document.getElementById(eid); if(element == null) return; if(element.FadeState == null) { if(element.style.opacity == null || element.style.opacity == '' || element.style.opacity == '1') { element.FadeState = -2; } else { element.FadeState = 2; } } if(element.FadeState == 1 || element.FadeState == -1) { element.FadeState = element.FadeState == 1 ? -1 : 1; element.FadeTimeLeft = TimeToFade - element.FadeTimeLeft; } else { element.FadeState = element.FadeState == 2 ? -1 : 1; element.FadeTimeLeft = TimeToFade; element.style.display = element.FadeState == 2 ? 'none' : 'block'; setTimeout("animateFade(" + new Date().getTime() + ",'" + eid + "')", 33); } } function animateFade(lastTick, eid) { var curTick = new Date().getTime(); var elapsedTicks = curTick - lastTick; var element = document.getElementById(eid); if(element.FadeTimeLeft <= elapsedTicks) { element.style.display = element.FadeState == 1 ? 'block' : 'none'; element.style.opacity = element.FadeState == 1 ? '1' : '0'; element.style.filter = 'alpha(opacity = ' + (element.FadeState == 1 ? '100' : '0') + ')'; element.FadeState = element.FadeState == 1 ? 2 : -2; return; } element.FadeTimeLeft -= elapsedTicks; var newOpVal = element.FadeTimeLeft/TimeToFade; if(element.FadeState == 1) newOpVal = 1 - newOpVal; newOpVal = newOpVal*0.85; element.style.opacity = newOpVal; element.style.filter = 'alpha(opacity = ' + (newOpVal*100) + ')'; setTimeout("animateFade(" + curTick + ",'" + eid + "')", 33); } var t = ''; function removeDiv(id){ fade(id); var div = document.getElementById(id); setTimeout(function(){ div.parentNode.removeChild(div) } ,2000); } function createDirective() { var cd_check = 1; if(cd_check <= 6){ var div = document.createElement('div'); div.id = 'cookieDirective'; div.setAttribute("onmouseover", "clearTimeout(t);"); div.setAttribute("onmouseout", "startTimer();"); div.innerHTML = '

EU Website Cookie Directive

In accordance with EU law, we have to inform you that this website uses cookies. By using our website, you agree that we can place cookies on your device. You may delete and block all cookies from this site, but parts of the site will not work.

Click \'Cookie Information\' for full details.

'; document.body.appendChild(div); startTimer(); fade('cookieDirective'); } } function startTimer(){ t=setTimeout("removeDiv('cookieDirective')",8000); } function loadcss(){ var fileref=document.createElement('link'); fileref.setAttribute('rel', 'stylesheet'); fileref.setAttribute('type', 'text/css'); fileref.setAttribute('href', 'https://www.thedibb.co.uk/cookieDirective/cookieDirective.css'); document.getElementsByTagName('head')[0].appendChild(fileref); } function cdReadCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function cdCreateCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function setCookie(){ cdCreateCookie('cookieDirective',1,365); } if(!cdReadCookie('cookieDirective')) { loadcss(); setTimeout("createDirective()",1000); } function gotoPrivacy() { window.location.href = "https://www.thedibb.co.uk/forums/faq.php?faq=vb_faq#faq_new_faq_item1"; }