DaysToLive = 0; // Use 0 (zero) for session cookie.
// No other customizations required.
function SetCookie() {
var exp = '';
if(DaysToLive > 0) {
	var now = new Date();
	then = now.getTime() + (DaysToLive * 24 * 60 * 60 * 1000);
	now.setTime(then);
	exp = '; expires=' +
	now.toGMTString();
	}
exp += "; path=/";
document.cookie = 'wpPopBox=displayed' + exp;
} // end of function SetCookie()

function GetCookie() {
var cookiecontent = '';
if(document.cookie.length > 0) {
	var cookiename = 'wpPopBox=';
	var cookiebegin = document.cookie.indexOf(cookiename);
	var cookieend = 0;
	if(cookiebegin > -1) {
		cookiebegin += cookiename.length;
		cookieend = document.cookie.indexOf(";",cookiebegin);
		if(cookieend < cookiebegin) { cookieend = document.cookie.length; }
		cookiecontent = document.cookie.substring(cookiebegin,cookieend);
		}
	}
return cookiecontent;
} // end of function GetCookie()

function OpenPopBoxIfOkay() {
var cookie = GetCookie();
if(cookie == 'displayed') { return; }
OpenNoKillPopBox();
SetCookie();
} // end of function OpenPopBoxIfOkay()
function OpenNoKillPopBox() {
var NoKillPopBox = 'BetterThanPopup'; // Must have same value as id of no-kill pop box DIV
if (navigator.userAgent.indexOf("Opera") != -1)     // Opera
	{ document.getElementById(NoKillPopBox).style.visibility="visible"; }
else if(navigator.userAgent.indexOf("Gecko") != -1) // NS6+
	{ document.getElementById(NoKillPopBox).style.visibility="visible"; }
else if(document.layers)                            // NS4
	{ eval('document.' + NoKillPopBox + '.visibility="show"'); }
else if(document.all)                               // IE and clones
	{ eval(NoKillPopBox + '.style.visibility="visible"'); }
else           // Might or might not work on other types of browsers.
	{ eval(NoKillPopBox + '.style.visibility="visible"'); }
} // end of function OpenNoKillPopBox()

function CloseNoKillPopBox() {
var NoKillPopBox = 'BetterThanPopup'; // Must have same value as id of no-kill pop box DIV
if (navigator.userAgent.indexOf("Opera") != -1)     // Opera
	{ document.getElementById(NoKillPopBox).style.visibility="hidden"; }
else if(navigator.userAgent.indexOf("Gecko") != -1) // NS6+
	{ document.getElementById(NoKillPopBox).style.visibility="hidden"; }
else if(document.layers)                            // NS4
	{ eval('document.' + NoKillPopBox + '.visibility="hide"'); }
else if(document.all)                               // IE and clones
	{ eval(NoKillPopBox + '.style.visibility="hidden"'); }
else           // Might or might not work on other types of browsers.
	{ eval(NoKillPopBox + '.style.visibility="hidden"'); }
} // end of function CloseNoKillPopBox()
//-->
