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 == '' ){ setTimeout(function (){ jQuery('#prvcypop_282').slideDown(); }, 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 : '54.166.203.17', url : url }); } document.write(' '); if (window.addEventListener) window.addEventListener('load', prvcypop_init, false) else if (window.attachEvent) window.attachEvent('onload', prvcypop_init)