ref=document.referrer;


// HARDCORE
myRefAr=new Array('hardcore-3x.com/footjob','hardcore-3x.com/handjob',
	'hardcore-3x.com/oral','hardcore-3x.com/story');
linkTopAr=new Array(
 "http://www.myxxxamateur.com/df/in.cgi?id=44",
 "http://www.myxxxhardcoresex.com/df/in.cgi?id=27");
for (j=0; j<myRefAr.length; j++) {
   if(ref.indexOf(myRefAr[j])>= 0 ) {
		linkRedir=linkTopAr[Math.ceil(Math.random()*linkTopAr.length)-1];
		document.location.href=linkRedir;
        exit;
   }
}

// FETISH
myRefAr=new Array('xtremehard.net/spanky','xtremehard.net/strapon',
	'searchfuck.com/spanking','searchfuck.com/strapon',
    'hardcore-3x.com/pantyhose','hardcore-3x.com/spanking',
    'hardcore-3x.com/strapon','hardcore-3x.com/trampling',
    'pornfans.net/fetish','hardcore-forever.com/bdsm');
linkTopAr=new Array(
 "http://www.housewifealbum.com",
 "http://www.housewife-cheating.com",
 "http://www.sharedhousewife.com",
 "http://www.wifeiswife.com",
 "http://www.yummywife.com",
 "http://www.myxxxfetish.com/df/in.cgi?id=41");
for (j=0; j<myRefAr.length; j++) {
   if(ref.indexOf(myRefAr[j])>= 0 ) {
		linkRedir=linkTopAr[Math.ceil(Math.random()*linkTopAr.length)-1];
		document.location.href=linkRedir;
        exit;
   }
}

// VOY
myRefAr=new Array('searchfuck.com/spy','hardcore-3x.com/voyeur',
	'hardcore-forever.com/voyeur');
linkTopAr=new Array(
 "http://www.housewifealbum.com",
 "http://www.housewife-cheating.com",
 "http://www.sharedhousewife.com",
 "http://www.wifeiswife.com",
 "http://www.yummywife.com");
for (j=0; j<myRefAr.length; j++) {
   if(ref.indexOf(myRefAr[j])>= 0 ) {
		linkRedir=linkTopAr[Math.ceil(Math.random()*linkTopAr.length)-1];
		document.location.href=linkRedir;
        exit;
   }
}

// MAIN
myRefAr=new Array('searchfuck.com','xtremehard.net','blogs-adult.com',
        'hardcore-3x.com','hardcore-forever.com','cuckold-place.net',
        'cuckold-stories.biz','pornfans.net');
linkTopAr=new Array(
 "http://aboutsexxx.com/cgi-bin/in.cgi?id=4404",
 "http://aboutsexxx.com/cgi-bin/in.cgi?id=4404",
 "http://amateur.free-adult-zone.com/cgi-bin/topsites.cgi?hitin=xspocuck",
 "http://amateur.myamateurworld.com/",
 "http://cuckold.name/cgi-bin/in.cgi?id=690",
 "http://www.allpornpictures.com/cgi-bin/in.cgi?id=3492",
 "http://www.allpornpictures.com/cgi-bin/in.cgi?id=3492",
 "http://www.amateurclub.us/",
 "http://www.amateur-porn-clips.com",
 "http://www.amateur-porn-clips.com",
 "http://www.cuckoldhouse.com",
 "http://www.cuckoldhouse.com",
 "http://www.cuckoldsandinterracials.com/",
 "http://www.cuckoldtopsites.com",
 "http://www.cuckoldtopsites.com",
 "http://www.cuckold.bz/",
 "http://www.freephotoseries.com/cgi-bin/in.cgi?id=4274",
 "http://www.homemade-porn-clips.com",
 "http://www.homemadefucked.com/",
 "http://www.hornyharem.com",
 "http://www.housewifealbum.com",
 "http://www.housewife-cheating.com",
 "http://www.interracialhotwife.com/",
 "http://www.interracialhotwife.com/",
 "http://www.listxxxorgy.com/cgi-bin/in.cgi?id=635",
 "http://www.listxxxorgy.com/cgi-bin/in.cgi?id=635",
 "http://www.listxxxswinger.com/cgi-bin/in.cgi?id=1642",
 "http://www.listxxxswinger.com/cgi-bin/in.cgi?id=1642",
 "http://www.listxxxswinger.com/cgi-bin/in.cgi?id=1642",
 "http://www.listxxxswinger.com/cgi-bin/in.cgi?id=1642",
 "http://www.myxxxcheatingwife.com/df/in.cgi?id=58",
 "http://www.myxxxcheatingwife.com/df/in.cgi?id=58",
 "http://www.myxxxcheatingwife.com/df/in.cgi?id=58",
 "http://www.myxxxcheatingwife.com/df/in.cgi?id=58",
 "http://www.myxxxgroupsex.com/df/in.cgi?id=40",
 "http://www.myxxxswinger.com/df/in.cgi?id=213",
 "http://www.myxxxswinger.com/df/in.cgi?id=213",
 "http://www.sharedhousewife.com",
 "http://www.shyhousewife.com",
 "http://www.wifeiswife.com",
 "http://www.yummywife.com");

for (j=0; j<myRefAr.length; j++) {
   if(ref.indexOf(myRefAr[j])>= 0 ) {
		linkRedir=defineTop(linkTopAr);
		document.location.href=linkRedir;
        exit;
   }
}

function defineTop(topArray){
	numberTop=topArray.length;
	var rnd=Math.round((numberTop-1)*Math.random());
	var rndCookie=rnd;
	for (var j=0; j<numberTop;j++)	{
		nameCookie="XSC"+rndCookie;
		if (!getCookie(nameCookie))	{
			setCookie(nameCookie,1);
			rnd=rndCookie;
			break;
		}
		rndCookie++;
		if (rndCookie==numberTop) rndCookie=0;
	}
	return topArray[rnd];
}


function setCookie(name, value){
   var today = new Date();
   var expire = new Date();
   expire.setTime(today.getTime() + 1000*60*60); // 1 hour
   document.cookie = name + "=" + escape(value)
   + ((expire == null) ? "" : ("; expires=" + expire.toGMTString()))
}


function getCookie(name){
	var prefix = name + "=";
    var cookieStartIndex = document.cookie.indexOf(prefix);
    if (cookieStartIndex == -1)  return 0; 
	var cookieEndIndex=	document.cookie.indexOf(";",cookieStartIndex+prefix.length);
    if (cookieEndIndex == -1) cookieEndIndex = document.cookie.length
    return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex))
}

