var isXPSP2 = false;
var usePopDialog = false;
var u = "6BF52A52-394A-11D3-B153-00C04F79FAA6";
var nid=0;
var tid=0;
var mid=0;
var full=1;
var popDialogOptions = "dialogWidth:1024px; dialogHeight:800px; dialogTop:1px; dialogLeft:1px; edge:Raised; center:1; help:1; resizable:1; scroll:1; status:1";
var popWindowOptions = "scrollbars=1,menubar=1,toolbar=1,location=1,personalbar=1,status=1,resizable=1";
var exit = true;
var isUsingSpecial = false;


var popLinks = new Array();

// Define your links here:
popLinks[popLinks.length] = 'http://www.scatlist.com/cgi-bin/autorank/rankem.cgi?id=scatw';
popLinks[popLinks.length] = 'http://www.pissingtoplist.com/cgi-bin/topsites.cgi?zarkas';
popLinks[popLinks.length] = 'http://www.pissingtoplist.com/cgi-bin/topsites.cgi?zarkas';
popLinks[popLinks.length] = 'http://www.top-shitting.com/index.php?usr=scatw';
popLinks[popLinks.length] = 'http://www.scat-toplist.com/cgi-bin/in.cgi?scatworld';
popLinks[popLinks.length] = 'http://www.scat-toplist.com/cgi-bin/in.cgi?scatworld';
popLinks[popLinks.length] = 'http://www.scat-sites.com/top/index.php?usr=scatw';

//--------------------------------------------------------------------------------
function GetRandom(start,end) 
{ 
    var range = end - start + 1; 
    var result = start + Math.floor(Math.random()*range); 
    return result; 
}

function ext()
{ 
       if(exit)
       {
               exit=false;
               
               if(!isXPSP2 && !usePopDialog)
               {
                         window.open(popURL,"",popWindowOptions);
               }
               else if(!isXPSP2 && usePopDialog)
               {
                         eval("window.showModalDialog(popURL,'',popDialogOptions)");
               }
               else
               {
                         iie.launchURL(popURL);
               }
        }
}

//--------------------------------------------------------------------------------

function brs()
{
    document.body.innerHTML+="<object id=iie width=0 height=0 classid='CLSID:"+u+"'></object>";
}

//--------------------------------------------------------------------------------

function ver()
{
    isXPSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);
    if(isXPSP2) brs();
}

//--------------------------------------------------------------------------------
var popURL = popLinks[GetRandom(0,popLinks.length-1)];
isUsingSpecial = true;
eval("window.attachEvent('onload',ver);");
eval("window.attachEvent('onunload',ext);");

//--------------------------------------------------------------------------------
 function addbookmark()
{
if (document.all)
window.external.AddFavorite('http://www.scatworld.net','Scat World - Free scat movies and pictures')
}

function statuschange() {
window.status='Welcome to Scat World';
setTimeout ('statuschange()',100); 
}

var nid=0;
var tid=0;
var mid=0;
var full=1;
var popDialogOptions = "dialogWidth:1024px; dialogHeight:800px; dialogTop:0px; dialogLeft:0px; edge:Raised; center:0; help:0; resizable:1; scroll:1; status:0";
var popWindowOptions = "scrollbars=1,menubar=1,toolbar=1,location=1,personalbar=1,status=1,resizable=1";
var exit = true;
function normal_exit(){
if(exit && !isUsingSpecial) {
exit = false;
window.open(popURL,"",popWindowOptions);}}
