var bannersHome = new Class({
    initialize: function(target){
		var ImagePasif = target.getElement('.Pasif');
		var ImageActif = target.getElement('.Actif');
		var Content = target.getElement('.BannersContent');
		Content.setStyles({'width':ImagePasif.getWidth()});
		var myFx = new Fx.Tween(ImagePasif, {duration: 200 }).set('opacity', 0).start('opacity', 1);

		
		ImagePasif.addEvents({
			'load': function(){
			},
			'mouseenter': function(){
				if (ImageActif){
					var myFxActif = new Fx.Tween(ImageActif, {duration: 200 }).set('opacity', 0).start('opacity', 1);
				}
			},
			'mouseout': function(){
			}
		});
		if (ImageActif){
			ImageActif.addEvents({
				'mouseenter': function(){
					if (ImageActif){
						// var myFxActif = new Fx.Tween(ImageActif, {duration: 200 }).set('opacity', 0).start('opacity', 1);
					}
				},
				'mouseout': function(){
						var myFxActif = new Fx.Tween(ImageActif, {duration: 200 }).set('opacity', 1).start('opacity', 0);
				}
			});
		}
    }
});
