var MooScadet = new Class({
	Implements: [Options],
	
	options: {
		'vitesse':1000,
		'duree':1000,
		'debut':'#FFFFFF',
		'fin':'#000000'
    },
	
    initialize: function( element , options ){
		this.setOptions(options);
		this.element = $(element);
		if( this.element ){
			this.scadet( this.options.debut , this.options.fin );
		}
		
	},
	
	scadet:function( debut , fin ){
		
		new Fx.Tween( this.element ,{
			'duration':this.options.vitesse,
			onComplete:function(){
				this.scadet.delay( this.options.vitesse , this ,[ fin , debut ]);
			}.bind( this )
		}).start( 'background-color' , debut , fin );
	
	}
	
});
  
 
