
// Free HTTP Referer Spoofer
// http://referer.us/spoof-http-referer.html

// This file is the source code of http://s.referer.us/j/f1.js
// In case you want to integrate this function into your own webpage scripts

// If you have any problem to understand these codes, email us
// we will happy to assist you: webmaster@referer.us

// This code is so basic, so I don't think we will change it often.
// But for your own sake, subscribe our RSS for updates
// http://feeds.feedburner.com/referer-us

// Lastest Modify: 2009/08/29 06:17

function $referer$us(r){
	var a,b;
	if(r){
		if(!document.body)try{document.write('<body><pre></pre></body>')}catch(e){};
		a = document.createElement('form');
		a.setAttribute('action', '//referer.us/r/');
		b = document.createElement('input');
		b.setAttribute('type', 'hidden');
		b.setAttribute('name', 'u');
		b.setAttribute('value', r);
		a.appendChild(b);
		if(document.body){
			document.body.appendChild(a);
			return a.submit();
		}
		return window.setTimeout('$referer$us("'+r.replace(/"/g, '&quot;')+'")', 12);
	}
	r=';'+document.cookie+';';
	if(r=r.match(/;\s*referer\.us=([^;]+)/)){
		document.cookie = 'referer.us=';
		return $referer$us(decodeURIComponent(r[1]));
	}
	a=location.href+'';
	if((b=a.indexOf('#referer.us/'))>1){
		if(r=a.substr(b+12)){
			document.cookie = 'referer.us='+encodeURIComponent(r);
			location.href=a.substr(0, b);
			window.setTimeout('$referer$us()', 3333);
		}
	}
}
$referer$us();

