function prvcypop_setCookie(c_name,value,exdays){ 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 + "; path = /"; } function prvcypop_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 prvcypop_init(){ if ('undefined' == typeof window.jQuery) { var script = document.createElement('script'); script.type = "text/javascript"; script.src = "https://www.ftcguardian.com/js/jquery.js"; document.getElementsByTagName('head')[0].appendChild(script); } prvycpop_cookie = prvcypop_getCookie('282_1527199773'); if(typeof prvycpop_cookie === 'undefined' || prvycpop_cookie === null || prvycpop_cookie == '' ){ style = '#privacy_popup_282{ width:100%; position:fixed; z-index:999999; }'; style += '#privacy_popup_282.box{ max-width:600px; }'; style += '#privacy_popup_282.halfscreen{ max-width:50vw; }'; style += '#privacy_popup_282.fullscreen{ } '; style += '#privacy_popup_282.bottom-left{ bottom:0; left:0; }'; style += '#privacy_popup_282.bottom-right{ bottom:0; right:0; }'; style += '#privacy_popup_282.bottom-center{ bottom:0; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%) }'; style += '#privacy_popup_282.top-left{ top:0; left:0; }'; style += '#privacy_popup_282.top-right{ top:0; right:0; } '; style += '#privacy_popup_282.top-center{ top:0; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%)}'; jQuery('head').append(''); setTimeout(function (){ jQuery('#prvcypop_282').fadeIn(); } , 3000); } } function prvpop_close(){ jQuery('#prvcypop_282').remove(); prvcypop_setCookie('282_1527199773','1',365); var url = (window.location != window.parent.location) ? document.referrer: document.location.href; jQuery.post('https://www.ftcguardian.com/?pg=save_prvpop_click',{popid: 282, userip : '185.119.1.237', url : url }); } document.write(''); if (window.addEventListener) window.addEventListener('load', prvcypop_init, false) else if (window.attachEvent) window.attachEvent('onload', prvcypop_init)