function setCookie(c_name, value, exdays) {var exdate = new Date(); exdate.setDate(exdate.getDate() + exdays); var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString()) + '; path=/;'; document.cookie = c_name + "=" + c_value } function getCookie(c_name) {var i, x, y, ARRcookies = document.cookie.split(";"); for (i = 0; i < ARRcookies.length; i++) {x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("=")); y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1); x = x.replace(/^\s+|\s+$/g, ""); if (x == c_name) {return unescape(y) } } } function CookieLayerHide() {setCookie('cw_closed', 1, 365); document.getElementById('cookie_warning').style.display = 'none'} var is_closed = getCookie("cw_closed"); if (is_closed != '1') {document.write('<div id="cookie_warning" style="position: fixed; right: 0; bottom: 0; left: 0; background: rgba(0,0,0, 0.5); font-family: sans-serif; font-size: 11px; color: #faf1f1; text-align: center;"><a href="javascript:void();" onclick="javascript:CookieLayerHide();" style="position: absolute; top: 3px; right: 5px; width: 16px; height: 16px; line-height: 16px; text-align: center; border:1px solid #faf1f1; font-family: sans-serif; font-weight: bold; text-decoration: none; color: #faf1f1;" title="Do not show this message again" target="_self">X</a><p style="margin: 3px; font-family: sans-serif; font-size: 11px; color: #faf1f1; text-align: center;">We use Cookies to make our website better. More information about Cookies and removal instructions <a href="http://www.ritzyads.com/cookie_policy.html" style="color: #faf1f1; text-decoration: underline;" target="_blank">can be found here</a>. By browsing and using our website you agree to our Cookie policy.</p></div>') } 