var exit = true;


var set_cookie = readCookie("superpopups");
if (set_cookie)
{
	exit = false;
} else {
	setCookie();
}

function setCookie()
{
	var today_date = new Date();
	var expires_date = new Date(today_date.getTime() + (1000*60*60*24*0.083));
	var expires = expires_date.toGMTString();
	var set = today_date.toGMTString();
	var the_cookie = "superpopups=set:" + set + ";expires=" + expires;
	document.cookie = the_cookie;
}

function readCookie(name)
{
	if (document.cookie == "")
	{
		return false;
	} else {
		var firstChar, lastChar;
		var theBigCookie = document.cookie;
		firstChar = theBigCookie.indexOf(name);
		if (firstChar != -1) {
			firstChar += name.length + 1;
			lastChar = theBigCookie.indexOf(";",firstChar);
			if(lastChar == -1) lastChar = theBigCookie.length;
			return unescape(theBigCookie.substring(firstChar,lastChar));
		} else {
			return false;
		}
	}

}

function EzinePop(filename)
{
  if(exit)
  {
    	 var AdMajicEzine=window.open(filename, "AdMajicEzine","height=425,width=390,top=20,left=200,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no,directories=no");
	AdMajicEzine.blur();

  }
}
