function ccc() {
	this.count = function () {
		if($.cookie("ccc_id_visuel")) {
			$.post('http://www.capinfoproreport.com/cap_pub/scripts/conversion.php', {
				v:$.cookie("ccc_id_visuel")
			});
		}
	}
	
	this.set = function() {
		var t = location.search.substring(1).split('&');
		for (var i=0; i<t.length; i++){
			var x = t[ i ].split('=');
			if(x[0]=='_ccc') {
        	    var date = new Date();
	        	date.setTime(date.getTime() + (120 * 60 * 1000)); /* Pour qu'il expire en 2h */
	        	$.cookie("ccc_id_visuel", x[1], { expires: date, path: '/' })
	        	return true;
	        }
		}
	
		return false;
	}
	
}

var cip_ccc = new ccc();
cip_ccc.set();
