function setCookie()//c_name, value, exdays { var c_name = 'cookiePoliticsAccepted'; var value = '1'; var exdays = '365'; var exdate = new Date(); exdate.setDate(exdate.getDate() + exdays); var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString()); document.cookie = c_name + "=" + c_value; } function getCookie(c_name) { var c_value = document.cookie; var c_start = c_value.indexOf(" " + c_name + "="); if (c_start == -1) { c_start = c_value.indexOf(c_name + "="); } if (c_start == -1) { c_value = null; } else { c_start = c_value.indexOf("=", c_start) + 1; var c_end = c_value.indexOf(";", c_start); if (c_end == -1) { c_end = c_value.length; } c_value = unescape(c_value.substring(c_start, c_end)); } return c_value; } function fadeDaCookie() { document.getElementById('politykaCookies').style.display = "none"; } function CheckCookiesPolicy() { var cookieSetet = getCookie('cookiePoliticsAccepted'); if (cookieSetet != 1) { var txtBackground = '#27272e'; var txtColor = '#FFFFFF'; var fontSize = '14'; var learnMoreLinkColor = '#FFFFFF'; var closeTxtAcceptColor = '#fc3e80'; var position = 'bottom'; var opacity = '0.85'; var txt = 'This site uses cookies to deliver services in accordance with the Policy Files Cookies. You can specify the conditions for storage or access cookies on your browser.'; var closeTxtAccept = 'OK, I understand'; var txt_2 = 'If you do not want cookies to be saved on your hard drive, change the settings of your browser.'; var style1 = 'position: fixed; ' + position + ': 0px; left: 0px; font-family: \'robotolight\'; width: 100%; height: auto; z-index: 9999; background-color: ' + txtBackground + '; color: ' + txtColor + '; font-size: ' + fontSize + 'px; text-align: center; zoom: 1; opacity: ' + opacity + ';'; var style2 = 'position:relative;height:auto;width:95%;padding:5px;margin: 0px auto;'; var style3 = 'cursor:pointer;font-family:arial;color:' + closeTxtAcceptColor + ';font-weight:bold;font-size:14px;'; document.write('
' + txt + '
' + txt_2 + '
' + closeTxtAccept + '
' + '
'); } }