try{
/*
see shtol_notes.txt for details about this script
*/

// the try and catch makes sure any error will just continue the work of the "href" as if this script was never called

// --------------------------------
var shtol_sites=new Array(
	['footwearclub.com', 'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=924723-0000&PA=1756555'],
	['angelsfeet.com', 'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=915931-0008&PA=1756570'],
	['feetcore.com', 'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=930130-0000&PA=1117236'],
	['addictedtofeet.com', 'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=909589-0000&PA=1756580&HTML=http://www.addictedtofeet.com/main.html'],
	['czechfeet.com', 'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=926495-0000&PA=1756589'],
	['footfetishbar.com', 'http://links.verotel.com/cgi-bin/showsite.verotel?vercode=28525:9804000000829340'],
	['angelkissedfeet.com', 'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=914252-0003&PA=461156'],
	['footcleaningcaffe.com', 'http://links.verotel.com/cgi-bin/showsite.verotel?vercode=31095:9804000000829340'],
	['feetbunnys.com', 'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=935223-0000&PA=1732759']
);

//	['mistresswhiplash.com', 'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=926122-0000&PA=1182017','http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=926122-0002&PA=1751880','http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=926122-0001&PA=1751878'],		
//alert(shtol_sites[0][1]);
// --------------------------------

function shtol(final_url, domain){
	// Warning: no referrer is sent! this means that if the final location(or any URL in the array) is a trade that tracks incoming hits by referrer - they will not be counted
	// Warning: adding "alert()" to this function will awake popup blockers

	// SETTINGS
	var secToWait=4;	// between urls
	// -----------
	
	var site_id="none";	// the position of this site in the "sites" array
	
	for(sites_i=0; sites_i<shtol_sites.length; sites_i++){
		//alert(	shtol_sites[sites_i]	);
		if(shtol_sites[sites_i][0] == domain){
			//alert(shtol_sites[sites_i][0]+" has the following urls:");
			site_id=sites_i;

			/*
			for(urls_i=1; urls_i<shtol_sites[sites_i].length; urls_i++){
				alert(shtol_sites[sites_i][urls_i]);
			}
			*/
		}
	}
	//alert(site_id);
	
	if(site_id != "none"){
		xWin=window.open(shtol_sites[site_id][1],'site','top=0,left=0,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,height='+(screen.availHeight-50)+',width='+(screen.availWidth-10)+',status=no');
		
		if(	 (xWin==null) || (typeof(xWin)=="undefined")  	 ){
			// popup failed to open...		
			//alert("popup failed to open");
		} else {
			//alert("popup success");

			var totalWaitTime=0;
			
			for(urls_i=2; urls_i<shtol_sites[site_id].length; urls_i++){
				totalWaitTime=secToWait*(urls_i-1);
				//alert(shtol_sites[site_id][urls_i]);
				//alert(secToWait*urls_i);
				setTimeout(		"xWin.location.href='"+shtol_sites[site_id][urls_i]+"';", totalWaitTime*1000		);
			}

			//alert(totalWaitTime+secToWait);
			setTimeout(		"xWin.location.href='"+final_url+"';", 		(totalWaitTime+secToWait)*1000		);
		}
	}
}


} catch(err){}