var countdown = new Class({
	
	Implements: [Options, Events],
	
	options: {
		element: 'countdown',
		start: 10,
		finish: 0,
		onComplete: $empty,
		duration: 1000
	},
	
	initialize: function(options){
		this.setOptions(options);
	},
	
	start: function(){
		this.animation();
	},
	
	animation: function(){
		this.options.element.set('text', this.options.start--);
		var fx = new Fx.Tween(this.options.element, {
			duration: this.options.duration,
			link: 'ignore',
			onComplete: function(){
				if(this.options.start >= this.options.finish)
				{
					this.animation();
				}
				else
				{
					this.fireEvent('complete');
				}
			}.bind(this)
		}).start('font-size', this.options.startFont, this.options.endFont);
	}
});