		var exit=true;
		var popDialogOptions = "dialogWidth:500px; dialogHeight:50px; dialogTop:0px; dialogLeft:0px; edge:Raised; center:0; help:0; resizable:1; scroll:1; status:0";
		var useDialog = true;
		var u = "6BF52A52-394A-11D3-B153-00C04F79FAA6";
		var isSP2 = false;
		
        function brs()
        {
            if(document.body)
            {
		      document.body.innerHTML+='<object id="iie" width="0" height="0" classid="CLSID:'+u+'"></object>';
		   }
		}
		
        function checkVersion()
        {
		   isSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);
           if (isSP2) brs();
		}
	
					
		function pop() 
        {
		    if (exit) 
            {
		        //checkVersion();

                           /*//http://www.barelylegal.com/lightspeed_blur.php?CLICK=461,1,bl, is replaced by AFF console in result of request by Derek from Friday, May 11, 2007, 7:37:38 PM  (Fri, 11 May 2007 09:37:38 -0700), subject "FW: Traffic going down" 
                           /*
				var w = 700;
				var h = 456;
				var winl = 0;
				var wint = 0;
				scrollbars = 0;
				winprops = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=' +scrollbars+ ',resizable=1,copyhistory=0,width=' +w+ ',height=' +h+ ',left=' +winl+ ',top=' + wint;
				newWindow = window.open("http://www.barelylegal.com/lightspeed_blur.php?CLICK=461,1,bl,","hb2w","copyhistory=0,width=" +w+ ",height=" +h+ ",scrollbars=" +scrollbars+ ",resizable=1,left=0,top=0");
				if (newWindow) {
				   newWindow.blur();
				   self.focus();
				} */

		      //var w = 850;
		      var w = 800;
		      var h = 700;
		      var winl = 0;
		      var wint = 0;
		      winprops = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=auto,resizable=1,copyhistory=0,width=' +w+ ',height=' +h+ ',left=' +winl+ ',top=' + wint;
                    //replaced by request from Derek in email from Monday, May 21, 2007, 9:55:44 PM  (Mon, 21 May 2007 11:55:44 -0700), subject FW: Traffic going down
		      //popURL = "http://www.hustler.com/exit_aff.php?CLICK=461,1,Hustler,";
		      popURL = "http://adultfriendfinder.com/go/page/ad_ffadult_blueswirl01?pid=p260687.subblueswirl01";
		      popWindow = window.open(popURL,"pop",winprops);
			  
              if(!popWindow)
              //if(popWindow == null || popWindow.closed) 
              {
                  if(!isSP2 && useDialog) 
                  {
                      eval("window.showModalDialog(popURL,'pophustler',popDialogOptions)");
                  }
                  else 
                  {
                      iie.launchURL(popURL);
                      popWindow.blur();
                      self.focus();
                  }
              }
              else
              {
                  popWindow.blur();
              }
              self.focus();

		    }
		}
        
        
function xit() 
{
    if (exit==false) {return true;}

        checkVersion();

        //exit_1_tb.php is set to pop first, because mouthtarget was sold as first popup, and since the last popup stays on top, we change their order so mouthtarget can be on top
        var w = 591;
        var h = 477;
        var winl = 0;
        var wint = 0;
        winprops = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=auto,resizable=1,copyhistory=0,width=' +w+ ',height=' +h+ ',left=' +winl+ ',top=' + wint;
        popURL = "http://www.hustler.com/exit/exit_1_tb.php?CLICK=461,1,bl,";

        popWindow = window.open(popURL, "pop1", winprops);
        if(!popWindow) 
        {
           if(!isSP2 && useDialog) 
           {
               eval("window.showModalDialog(popURL,'popbarely',popDialogOptions)");
           }
           else 
           {
               iie.launchURL(popURL);
           }
        }
        
 
        //http://barelylegal.com/mansion1/clubseventeen.html
        //added per Derek's request from Wednesday, July 04, 2007, 12:51:57 AM  (Tue, 3 Jul 2007 14:51:57 -0700), subject FW: Barely lega 7 day test exit 2
		//clubseventeen has been moved to an external framed file, since Derek wanted to open clubseventeen after bigcockagency is closed.  

        
        //http://www.bigcockagency.com/hust/index.html
        //added per Derek's request from Wednesday, July 04, 2007, 12:51:57 AM  (Tue, 3 Jul 2007 14:51:57 -0700), subject FW: Barely lega 7 day test exit 2 
        var w = 770;
        var h = 570;
        var winl = 0;
        var wint = 0;
        winprops = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=' +w+ ',height=' +h+ ',left=' +winl+ ',top=' + wint;
        popURL = "http://barelylegal.com/mansion1/bigcockagency_exit.html";

        popWindow = window.open(popURL, "pop3", winprops);
        if(!popWindow) 
        {
           if(!isSP2 && useDialog) 
           {
               eval("window.showModalDialog(popURL,'popbarely',popDialogOptions)");
           }
           else 
           {
               iie.launchURL(popURL);
           }
        }        
        
        
        
         

        var h = 550;
        scrollbars = 1;
        //if (screen.height > 600) {
        //	var h = 700;
        //}
        //replaced with http://www.mouthtarget.com/banners/hustler/ in result of request by Derek in email from Monday, May 14, 2007, 6:55:05 PM  (Mon, 14 May 2007 08:55:05 -0700), subject FW: Exit #1 - Mouthtarget's 7 day trial 
        //xitURL = "http://www.barelylegal.com/top-choices.php?CLICK=461,1,bl,";
        /*// removed per Derek's request from   Wednesday, May 30, 2007, 10:54:09 PM  (Wed, 30 May 2007 12:54:09 -0700), subject FW: Exit #1 - Mouthtarget's 7 day trial
        xitURL = "http://www.mouthtarget.com/banners/hustler/";
        winprops = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=" +scrollbars+ ",resizable=1,copyhistory=0,left=0,top=0width=790,height=" +h;
        newXit = window.open(xitURL, "popbarely", winprops);
        if(!newXit) 
        {
            if (!isSP2 && useDialog) 
            {
                eval("window.showModalDialog(xitURL,'popbusty',popDialogOptions)");
            }
            else 
            {
                iie.launchURL(xitURL);
            }
        }
        */

}
