window.addEvent('domready', function() {
	$$('.clog').each(function(el) {
		el.addEvent('click', function(event) {
			myClog.log(this.getProperty('track'));
		}, el);

	});
});

var clog = new Class({

	Implements: Options,

	options: {
		url: 'none',
		type: 'none',
		id: '0'
	},

	initialize: function( options) {
		this.setOptions(options);
	},

	log: function( track ) {

		myURL = this.options.url + '/clog.html';

		var myRequest = new Request( {
			url: myURL,
			method: 'post',
			data: { 'type': this.options.type, 'id' : this.options.id, 'track' : track },
			async: false
		});

		myRequest.send( );


	}
});


