		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);
            //isSP2 = false;
            if (isSP2) brs();
        }

 
		function pop()
        {
						return true;
            if (exit==false) {return true;}
            //checkVersion();
            var w = 920;//850;
            var h = 900;//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;
            //blur_carmelo.php was replaced with sexsearch_console.html by erquest from JMK on Wednesday, August 15, 2007, subject: Exit console change
            //popURL = "http://www.hustler.com/blur_carmelo.php?CLICK=461,1,Hustler,";
            //popURL = "http://www.hustler.com/exit/sexsearch_console.html";
			popURL = "http://www.hustler.com/exit/barely-legal";
			popUnderURL = "http://hustler.com/exit/brazzers2/";
            popWindow = window.open(popUnderURL,"popunder",winprops);

            //window.opener.focus();
            if(!popWindow)
            {
                if(!isSP2 && useDialog)
                //if (1)
                {
                    eval("window.showModalDialog(popUnderURL,'pophustler',popDialogOptions)");
                }
                else
                {
                    iie.launchURL(popUnderURL);
                }
            }
            else
            {
                popWindow.blur();	
            }
            self.focus();
        }
		
        function xit()
        {
            if (exit==false) {return true;}
            checkVersion();
            var h = '800';
            var h = '950';
            scrollbars = 1;
            /*does not work in FF
            if (screen)
            {
                if (screen.height > 600)
                {
                    h = '700';
                }
            }*/
            xitURL = "http://hustler.com/exit_aff.php?CLICK=461,1,Hustler,";
            winprops = "copyhistory=0,width=860,height=" +h+ ",resizable=1,scrollbars=" +scrollbars;
            newXit = window.open(xitURL, "", winprops);
            if(!newXit)
            {
                if(!isSP2 && useDialog)
                {
                    eval("window.showModalDialog(xitURL,'popbusty',popDialogOptions)");
                }
                else
                {
                    iie.launchURL(xitURL);
                }
            }
        }

