














	

	// CONFIG
pu_active = 0; // Toggle pop-unders, 0 = off, 1 = on
pu_expire = 1; // Days for cookie to expire (next pop-under), Default = 1
pu_url      = "http://www.971thefan.com/live/content/tools/popunder.html"; // Web page to open in pop-under


// HANDLING, DO NOT EDIT
if (!window.readCookie) { // Only include cookie function if not already present
	function readCookie(name) {
		var nameEQ = name+"=";
		var ca = document.cookie.split(';');
		for(var i=0;i < ca.length;i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
		}
		return null;
	}

	function createCookie(name,value,days) {
		if (days) {
			var date = new Date();
			date.setTime(date.getTime()+(days*24*60*60*1000));
			var expires = "; expires="+date.toGMTString();
		}
		else var expires = "";
		document.cookie = name+"="+value+expires+"; path=/";
	}
}

// Checks for cookie and pops under only if empty
var puwidth    = 710; 
var puheight   = 310;
var puurl      = 'scrollbars=no, resizable=no, toolbar=no, menubar=no, status=no, location=no, left=85, top=20, height='+puheight+',width='+puwidth;
function goPopUnder() {
	if (pu_active >= 1) {
		if (!readCookie("popunder")) { 
			createCookie("popunder","y",pu_expire); 
			win2 = window.open(pu_url, "fanpu", puurl);
			win2.blur(); window.focus();
		}
	}
}
goPopUnder();






