function Trck() {
	this.member = "empty";
	this.profile = "";
	this.creferer = "";

	this.readCookie = function(n) {
		var nameEQ = n + "=";
		var ca = document.cookie.split(';');
		for(var i=0;i < ca.length;i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
		}
		return false;
	}

	this.initFCookie = function() {
		var bc = this.readCookie('banner_domainclick');
		if (!bc) {
			bc = this.readCookie('banner_click');
			if (!bc) return false;
		}

		var bca = bc.split(",");
		this.member = bca[0];
		this.profile = bca[2];
		this.creferer = bca[4];
		return true;
	}

	this.init = function(m, p) {
		this.member = m;
		this.profile = p;
	}

	this.getQuery = function() {
		p="member="+this.member;
		p+=(this.profile!="" ? "&profile="+this.profile: "");
		p+=(this.creferer!="" ? "&creferer="+this.creferer: "");
		return p;
	}
}