var Banner = {
	item_id: null,
	id: null,
	type: null,
	lang: null,
	country: null,
	PID: 1,
	act: 0,
	
	clic: function(id, type, lang, country, PID) {
		this.id = id;
		this.type = type;
		this.lang = lang;
		this.country = country;
		this.PID = PID;
		this.act = 1;
		
		if (this.id != null && this.type != null) this.send();
		return true; // Always return true
	},
	view: function(id, type, lang, country, PID) {
		this.id = id;
		this.type = type;
		this.lang = lang;
		this.country = country;
		this.PID = PID;
		this.act = 0;
		
		if (this.id != null && this.type != null) this.send();
		return true; // Always return true
	},
	
	send: function() {
		var str = pagesURL+'utils/stats_banner.cfm?id='+this.id+'&type='+this.type+'&clic='+this.act;
		if (this.PID != null) str += '&pID='+this.PID;
		if (this.lang != null) str += '&langue_id='+this.lang;
		if (this.country != null) str += '&pays_id='+this.country;
		
		makeRequest(str);
	}
};