				var jbrowser = "OLD";
				var bName = navigator.appName;
				var bVersion = parseInt(navigator.appVersion);

				// check for Netscape
				if (bName == "Netscape") {
  					jbrowser = "ns" + bVersion;
				} else {
  				// check for MSIE
  				if (bName == "Microsoft Internet Explorer") {
    					if (bVersion >= 4) {
      						jbrowser = "ie" + bVersion;
    					} else {
      						jbrowser = "ie3";
					    }
				  }
				}

				function MM_openBrWindow(theURL,winName,features) { //v2.0
				  window.open(theURL,winName,features);
				  if ((jbrowser!="OLD") && (jbrowser!="ie3")) {
                                  	window.focus();
                                 }
				}

				// set today's date
				var today = new Date();

				// set expiry to current time + 5 min
				var expiry = new Date();
				// expiry.setUTCDate(today.getUTCDate());
				// expiry.setUTCHours(today.getUTCHours()+1);
				// expiry.setUTCMinutes(today.getUTCMinutes());
				expiry.setDate(today.getDate());
				expiry.setHours(today.getHours());
				expiry.setMinutes(today.getMinutes()+5);

				// retrieve cookie function
				function getCookie(cName) {
				cName = cName + "=";
				var aCookie = document.cookie;
				if ( aCookie.length > 0 ) {
				st = aCookie.indexOf (cName);
					if ( st >= 0 ) {
				   		st = st + cName.length;
				   		end = aCookie.indexOf (";", st);
					   		if ( end == -1 ) end = aCookie.length;
					   		return unescape(aCookie.substring(st, end));
					   		}
					}
				   		return null;
				 	}

				// popup the top winners window if it has not been seen today
				 var popVal = getCookie("topPopped");
				 if (popVal != 1) {
				 	MM_openBrWindow('/popup/astropop.asp','','resizable=yes,width=480,height=260');
					document.cookie="topPopped=1; expires=" + expiry.toGMTString()+";path=/";

				}

				// popup the astro exit window if it has not been seen today
				var exit=true;
				function exitPop (){
				var astroVal = getCookie("astroPopped");
				 if (astroVal != 1) {
				 	if (exit){ MM_openBrWindow('/popup/astropop.asp','','resizable=yes,width=480,height=260');}
					document.cookie="astroPopped=1; expires=" + expiry.toGMTString()+";path=/";
				}}

				// Banner cookie
				var gpuserexpiry = new Date(today.getTime() + 9 * 24 * 60 * 60 * 1000);
				var gpuserReset = new Date(today.getTime() -2 * 24 * 60 * 60 * 1000);
				var bannercode = location.search.substring(1, location.search.length);
				if (location.search) {document.cookie="gpuser=" + bannercode + "; expires=" + gpuserexpiry.toGMTString()+";path=/";}
				else {document.cookie="gpuser=NA; expires=" + gpuserReset.toGMTString()+";path=/";}

