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