function start_cookie_alert(){
var div = document.createElement('div');
div.id = 'cookie-alert';
div.className = 'cookie-alert';
div.style.zIndex=2000;
div.style.position="fixed";
div.style.left="0";
div.style.bottom="0";
div.style.width="100%";
div.style.minHeight="26px";
div.style.background="#000";
div.style.color="#fff";
div.style.fontSize="12px";
div.style.paddingTop="11px";
div.style.textAlign="center";
var html = '';
html += 'Strona korzysta z plików cookies w celu realizacji usług i zgodnie z Polityką Plików Cookies. Możesz określić warunki przechowywania lub dostępu do plików cookies w Twojej przeglądarce.';
html += ' Zamknij';
if(document.body.firstChild)
document.body.insertBefore(div, document.body.firstChild);
else
document.body.appendChild(div);
div.innerHTML=html;
}
function accept_cookie(){
document.getElementById('cookie-alert').style.display="none";
var exdays = 5000;
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value=escape("yes") + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
document.cookie="cookie-accept" + "=" + c_value + ";path=/";
}
function info_cookie(){
if(typeof window.CB_Open == 'function'){
CB_Open('href=https://cdn.redicon.pl/addons/cookie-info.php?strona=pikgranit.pl,,width=500,,height=500');
}
else if(typeof jQuery.colorbox == 'function') {
jQuery.colorbox({href:"https://cdn.redicon.pl/addons/cookie-info.php?strona=pikgranit.pl", iframe: true, width: 500, height: 500 });
}
else {
window.open("https://cdn.redicon.pl/addons/cookie-info.php?strona=pikgranit.pl",'Polityka Plików Cookies','height=500,width=500');
}
}
window.onload = start_cookie_alert;