var AnimImages = new Class({

	initialize: function(element) {
		this.items = $$('#'+element+' img');
		this.hide();
	},

	// Cache les images
	hide: function() {
		// On rend toutes les images transparentes
		this.items.each(function(item) {
			item.setStyles({'opacity': 0});
		});
		this.show();
	},
	
	// Affiche la galerie
	show: function() {
		// On crée une "chaine" pour l'effet d'apparition des miniatures l'une après l'autre
		
		this.items.each(function(item) {
				fx = new Fx.Styles(item, {'duration': 1000});
				fx.start({'opacity': 1});
		});
		
	}
	
});