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('423_1544584918'); if(typeof prvycpop_cookie === 'undefined' || prvycpop_cookie === null || prvycpop_cookie == '' ){ style = '#privacy_popup_423{ width:100%; position:fixed; z-index:999999; }'; style += '#privacy_popup_423.box{ max-width:600px; }'; style += '#privacy_popup_423.halfscreen{ max-width:50vw; }'; style += '#privacy_popup_423.fullscreen{ } '; style += '#privacy_popup_423.bottom-left{ bottom:0; left:0; }'; style += '#privacy_popup_423.bottom-right{ bottom:0; right:0; }'; style += '#privacy_popup_423.bottom-center{ bottom:0; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%) }'; style += '#privacy_popup_423.top-left{ top:0; left:0; }'; style += '#privacy_popup_423.top-right{ top:0; right:0; } '; style += '#privacy_popup_423.top-center{ top:0; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%)}'; jQuery('head').append(''); setTimeout(function (){ jQuery('#prvcypop_423').fadeIn(); } , 3000); } } function prvpop_close(){ jQuery('#prvcypop_423').remove(); prvcypop_setCookie('423_1544584918','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: 423, userip : '40.77.167.54', url : url }); } document.write(''); if (window.addEventListener) window.addEventListener('load', prvcypop_init, false) else if (window.attachEvent) window.attachEvent('onload', prvcypop_init)