/**
 * $Id$
 * Saves a Statistics Record for an Object Page.
 * 
 * Usage: Stats.post({'systemid': 1, 'type': 'presentation', 'user': '127.0.0.1', 'key': 'GDFGVDFFSDFRRREWRwer'})
 * 
 * @param systemid The systemid of the object
 * @param type The type of page that is hit
 * @param user The ip of the visitor
 * @param key A unique MD5 key (as security measure)
 * 
 * @author jons hofman
 * @version 1.0
 * 
 */
var Statistics = Class.create();

Statistics.prototype = {
	initialize: function() {
		this.url = '/public/js/Ajax/cfm/big_brother.cfm';
	},
	post: function(obj) {
		new Ajax.Request(this.url,{
			method: 'get',
			parameters: obj
		});
	}	
}

var Stats = new Statistics();
