<!--
var allcookies = document.cookie;
if(allcookies.indexOf('ref72'!=-1)) {
	var ref = document.referrer;
	ref = strip(ref,'http://www.');
	ref = strip(ref,'http://');
	ref = strip(ref,'//');
	ref = trunc(ref,'/');
	ref = trunc(ref,'?');
	if (ref == '') ref = 'unknown'
	var nextYear = new Date();
	nextYear.setFullYear(nextYear.getFullYear() + 1);
	document.cookie = "ref72=" + ref + "; expires=" + nextYear.toGMTString();;
	//alert(ref);
}
//alert (allcookies);

function strip(source,pattern) {
	pos = source.indexOf(pattern);
	if(pos==-1) return source;
	return source.substring(0,pos) + source.substring(pos+pattern.length,source.length-1);
}

function trunc(source,pattern) {
	pos = source.indexOf(pattern);
	if(pos==-1) return source;
	return source.substring(0,pos);
}
//-->
