function popPage(){

    var whoCalled=document.referrer;	 
	 var whoCalled = whoCalled.substring(whoCalled.indexOf("/")+2, whoCalled.length);
	 whoCalled = whoCalled.substring(0, whoCalled.indexOf("/"));
    if (whoCalled.substring(0,3) == "www"){
       whoCalled = whoCalled.substring(4, whoCalled.length);
        }
//    alert("Who called = "+ whoCalled);

    if (whoCalled == "hobbynexus.com") {
      var popPage = "http://www.cool-tops.com/freestuff/top.cgi?do=in&site=moomoney";
      var newPage = window.open(popPage,"");
      focus();
      return true;
    }

    if (whoCalled == "cool-tops.com") {
      var popPage = "http://www.hobbynexus.com/redir/redirect.htm?moomoney";
      var newPage = window.open(popPage,"");
      focus();
      return true;
    }

    // if it hasn't poped yet, 

    var popPage = "http://www.thefreenexus.com/redir/underpage.htm";
    var newPage = window.open(popPage,"");
    focus();
    return true;

}

var Cookie = {
pref:'',last:null,
cnfg:function(a1) {
	var Bool={secure:1}, text='';
	if (''+a1!==a1) for (var k in a1) if (a1[k]) text += '; '+(
		Bool[k] ? k : k+'='+(
			k!='expires'||isNaN(a1[k]) ? a1[k] : this.date(a1[k])
		)
	);
	return this.pref = text||a1||text;
},
make:function(a1,a2,a3) {
	document.cookie = this.last=escape(a1)+'='+escape(a2)+this.cnfg(a3);
	return this.read(a1) == a2;
},
date:function(a1) {
	var D = new Date();
	D.setTime(D.getTime()+(a1||0)*86400000);
	return D.toGMTString();
},
read:function(a1) {
	var F=' '+document.cookie+';', S=F.indexOf(' '+(a1=escape(a1)));
	return S==-1 ? null : unescape(
		F.substring(a1=S+a1.length+2,F.indexOf(';',a1))
	);
}
}

if (Cookie.read('check') != 'true') {

      var cookie_set = Cookie.make('check', 'true', {
        expires:1/2,
        path:'/',
        domain:'.get-paid-to-surf-the-web.netfirms.com'
        }
       )
      popPage();
}