function tfpcookiegen() { //alert('cookiegen'); var referrer = document.referrer; if(referrer == null) { referrer=''; } var location = document.location; var cname = "_ltfp"; var sname = "_stfp"; var cooks = getCookie_tfp(cname); var sess = getCookie_tfp(sname); var randID = guidgen_tfp(); // 'turkey'; var sessID = guidgen_tfp(); if(cooks == null) { //alert('cooks null, cname: ' + cname + ' randID: ' + randID); setCookie_tfp(cname, randID, 120); } else { //alert('cooks found: ' + cooks); randID = cooks; } if (sess == null) { //alert('sess null, sname: ' + sname + ' sessID: ' + sessID); setCookie_tfp(sname, sessID, 30,'m'); } else { //alert('sess found: ' + sess); sessID = sess; } //alert(randID + "-->" + referrer + "-->" + location); //alert(sessID + "-->" + referrer + "-->" + location); var dPage = encodeURIComponent(location); var dReferrer = encodeURIComponent(referrer); var myIP = ''; var anyagent = navigator.userAgent; var myAgent = encodeURIComponent(anyagent); //Log(CookieID As String, SessionID As String, Page As String, Referrer As String) As Boolean //var url = "http://localhost:63424/WebServices/LogService.asmx/Log?CookieID=" + randID + "&SessionID=" + sessID + "&Page=" + dPage + "&Referrer=" + dReferrer; //var url = "http://auth.timesfreepress.com/WebServices/LogService.asmx/Log?CookieID=" + randID + "&SessionID=" + sessID + "&Page=" + dPage + "&Referrer=" + dReferrer; //alert(url); /*TAKEN OUT FOR TESTING var url = "http://auth.timesfreepress.com/WebServices/LogService.asmx/BulkLog?CookieID=" + randID + "&SessionID=" + sessID + "&Page=" + dPage + "&Referrer=" + dReferrer + "&IP=" + myIP + "&Agent=" + myAgent; var request = makeHttpObject_tfp(); request.open("GET", url, true); request.send(null);*/ // var N = navigator.appName; // var ua = navigator; // alert(N); // alert(ua); } function setCookie_tfp(c_name,value,exdays,addtype) { var exdate = new Date(); if(addtype != null && addtype=='m') { exdate.setMinutes(exdate.getDate() + exdays); } else { exdate.setDate(exdate.getDate() + exdays); } var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString()+"; domain=.timesfreepress.com; path=/"); document.cookie=c_name + "=" + c_value; } function getCookie_tfp(c_name) { var i,x,y,ARRcookies=document.cookie.split(";"); for (i=0;i aggroCrag[pageType]['crag']){ //alert(aggroCrag[pageType]['visits'] + " > " + aggroCrag[pageType]['crag']); //console.log("y"); cragPopup(pageType); return true; }else{ //console.log("n"); return false; } } } function cragPopup(pageType){ var skit = gs(20); var returnUrl = document.location.href; var css = ".paywall-container hr { width: 100%; height: 2px; border: 0; display: block; margin: 5px 0; background: black; background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzYwNjA2MCIgc3RvcC1vcGFjaXR5PSIwIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjQwJSIgc3RvcC1jb2xvcj0iIzYwNjA2MCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iIzYwNjA2MCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjYxJSIgc3RvcC1jb2xvcj0iIzRiNGI0YiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMCIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(left, rgba(96, 96, 96, 0) 0%, #606060 40%, #606060 50%, #4b4b4b 61%, transparent 100%); background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(96, 96, 96, 0)), color-stop(40%, #606060), color-stop(50%, #606060), color-stop(61%, #4b4b4b), color-stop(100%, transparent)); background: -webkit-linear-gradient(left, rgba(96, 96, 96, 0) 0%, #606060 40%, #606060 50%, #4b4b4b 61%, transparent 100%); background: -o-linear-gradient(left, rgba(96, 96, 96, 0) 0%, #606060 40%, #606060 50%, #4b4b4b 61%, transparent 100%); background: -ms-linear-gradient(left, rgba(96, 96, 96, 0) 0%, #606060 40%, #606060 50%, #4b4b4b 61%, transparent 100%); background: linear-gradient(to right, rgba(96, 96, 96, 0) 0%, #606060 40%, #606060 50%, #4b4b4b 61%, rgba(0, 0, 0, 0) 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#606060', endColorstr='#000000',GradientType=1 ); }.paywall-container { width: 100%; z-index: 10000000000000000000; height: 100%; font-family: Futura, Trebuchet MS, Arial, sans-serif; background: black; background: rgba(0, 0, 0, .97); position: fixed; overflow: auto; top: 0; left: 0;}.paywall-container *, .paywall-container *:after, .paywall-container *:before { box-sizing: border-box; }.paywall-wrap { width: 90%; max-width: 900px; background: white; border-radius: 7px; margin: 2em auto; padding: 10px; overflow: hidden; }.paywall-top { overflow: hidden; }.paywall-top-logo { width: 50%; max-width: 400px; float: left; }.paywall-top-logo img { width: 95%; margin: 20px 0 0 10px; }.paywall-top-text { width: 50%; text-align: center; float: right; }.paywall-top-text h2 { font-size: 24px; font-size: 1.5rem; line-height: 20px; line-height: 1.25em; font-weight: bold; color: #606060; }.paywall-top-text p { font-size: 15.2px; font-size: 0.95rem; line-height: 20px; line-height: 1.25em; font-style: italic; width: 90%; margin: auto; }.paywall-mid-top { overflow: hidden; position: relative; }.paywall-mid-left, .paywall-mid-right { width: 50%; float: left; padding: 10px; }.paywall-mid-left h1 { font-size: 38.4px; font-size: 2.4rem; line-height: 16px; line-height: 1em; font-style: italic; color: #606060; text-align: center; }.paywall-mid-left img { position: absolute; margin-left: auto; margin-right: auto; bottom: 0; left: 0; right: 50%; }.paywall-mid-right img { width: 95%; max-width: 350px; display: block; margin: 0 auto 5px auto; }.paywall-mid-bot { max-width: 775px; font-size: 19.2px; font-size: 1.2rem; line-height: 19.2px; line-height: 1.2em; font-style: italic; text-align: center; margin: auto; padding: 10px; }.paywall-bot-options { overflow: hidden; padding: 10px; }.paywall-bot-option { width: 25%; float: left; }.paywall-bot-option p { height: 35px; font-size: 12.8px; font-size: 0.8rem; line-height: 19.2px; line-height: 1.2em; font-style: italic; text-align: center; margin-bottom: 10px; padding: 0 10px; }.paywall-bot-option a { width: 80%; height: 40px; font-size: 16px; font-size: 1rem; line-height: 20px; color: white; text-align: center; text-decoration: none; text-transform: uppercase; background: #bc141b; display: block; margin: auto; padding: 10px; position: relative; }.paywall-bot-option a:after { content: ' '; width: 0; height: 0; border-style: solid; border-width: 20px 0 20px 8px; border-width: 1.25rem 0 1.25rem 0.5rem; border-color: transparent transparent transparent #bc141b; position: absolute; top: 0; right: -8px; right: -0.5rem; }.paywall-bot-option a:hover { background: #a51218; }.paywall-bot-option a:hover:after { border-color: transparent transparent transparent #a51218; }.paywall-foot { text-align: center; margin-top: 10px; }.paywall-foot-logo img { width: 100%; max-width: 175px; display: block; margin: auto; }.paywall-foot-social { width: 72px; margin: 10px auto 5px auto; overflow: hidden; }.paywall-foot-social-link { width: 20px; height: 20px; display: block; float: left; margin: 0 2px; background-image: url('http://media.timesfreepress.com/trackalack/social.jpg'); }.paywall-foot-social-link.social-facebook { background-position: -20px 0; }.paywall-foot-social-link.social-twitter { background-position: -40px 0; }@media (max-width: 949px) { .paywall-mid-left h1 { font-size: 24px; font-size: 1.5rem; } .paywall-bot-option a { font-size: 14.4px; font-size: 0.9rem; } }@media (max-width: 749px) { .paywall-top-logo, .paywall-top-text, .paywall-mid-left, .paywall-mid-right { width: 100%; float: none; } .paywall-top-logo { margin: auto; } .paywall-top-logo img { margin: 10px 0; } .paywall-mid-left img, .paywall-mid-right { display: none; } .paywall-bot-option { width: 50%; margin-top: 20px; } }@media (max-width: 549px) { .paywall-bot-option { width: 100%; float: none; margin-top: 20px; } .paywall-bot-option p { height: auto; } }", head = document.getElementsByTagName('head')[0], style = document.createElement('style'); style.type = 'text/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } head.appendChild(style); // var cragBG = document.createElement('div'); // cragBG.className = skit[1]; // document.body.appendChild(cragBG); var myCrag = document.createElement('div'); //var buttonText = 'Register'; var buttonText = 'Subscribe'; myCrag.innerHTML = '

Thank you for visiting!

We trust that you have enjoyed your complimentary articles during this 30-day cycle.


Get all your daily Chattanooga news for less than a latte!

Chattanooga Times Free Press

Sign up today and get unlimited digital access to timesfreepress.com on any device, plus our phone and tablet apps and the E-edition.

Already a subscriber?

Sign In

Are you a subscriber who has not set up your account?

Activate

Do you want full access to the Chattanooga Times Free Press?

Subscribe Now

Take this survey for 30 days of free access

Free Trial
'; myCrag.className = skit[2]; document.body.appendChild(myCrag); if(typeof myBerlin !== 'undefined'){ myBerlin.update(skit); } // var loginBtn = document.getElementById('login-button'); // var form = document.getElementById(skit[10] + '-form'); // loginBtn.addEventListener('click', function(){ // form.className = "expanded"; // setTimeout(function(){ // var overlay = document.getElementById(skit[1]); // overlay.scrollTop = overlay.scrollHeight; // }, 400); // }); var pname = aggroCrag[pageType]['title']; var ppath = document.location.pathname + document.location.search; _gaq.push(['_trackEvent', 'Paywall', pname, ppath]); } function getCragCookieString(mmcc, pageType){ var fullString =mmcc.split("\n"); //need to check cookie string before incrementing page view //var counts = checkUrlString(fullString[1]); //var newUrl = getUrlString(fullString[1]); //TESTING: D //TODO: var counts = true; var newUrl = ""; var daysTilExpire = 28; //default var dateString = fullString[2];//does not get updated if(dateString){ var expireDate = new Date(dateString.split("edate=")[1]); if(expireDate){ daysTilExpire = daydiff(+new Date, expireDate); //console.log("til expr: " + daysTilExpire); //console.log("date: " + fullString[2].split("edate=")[1] + " = " + expireDate); } } var c=fullString[0].split(";"); var cookieString = "", comma = ";", found = false; for (i=0;i