WordPressGallery.Multi = new Class({
	
	Implements: Options,
	
		options: {
			selector: '.gallery',
			galleryOptions: {
				elementAttributes: {
					'class': 'transition:crossFade duration:1000'
				}
			}
		},
	
	initialize: function(options){
		this.setOptions(options);
		this.elements = $$(this.options.selector);
		this.galleries = [];
		this.elements.each(function(element, index){
			var gallery = new WordPressGallery(element, this.options.galleryOptions);
			element.store('gallery', gallery);
			this.galleries.include(gallery);
		}, this);
	}

});


