Fx.TableHighlight = new Class({
	Implements: [Events, Options],
	options: {
		'colour': '#eeeeee',
		'duration': 500,
		'link': 'cancel'
	},
	initialize: function(el, options) {
		this.setOptions(options);
		this.elements = $$(el);
		var self = this;
		this.elements.each(function(el) {
			el.store('Fx.TableHighlight.original', el.getStyle('background-color'));
			el.addEvents({
				'mouseenter': function() {
					var fx = this.get('tween', self.options);
					fx.start('background-color', self.options.colour);
				},
				'mouseleave': function() {
					var fx = this.get('tween', self.options);
					fx.start('background-color', el.retrieve('Fx.TableHighlight.original'));
				}
			});
		});
	}
});
