//slideshow class
var AccordionMenu = new Class({
	_initialized: false,
	_togglers: $$('h3.toggler'),
	_stretchers: $$('div.accordeon'),
	_Accordion: null,
	
	Initialize: function(){
		if(!this._initialized){
			this._Accordion = new Fx.Accordion(this._togglers,
											   this._stretchers,
											   {
												display: -1,
												opacity: false,
												start: false,
												trigger: 'mouseover',
												transition: Fx.Transitions.quadOut,
												onActive: function(toggler, i){
													//executed first when one element is activated
													//alert("active");
												},
												onBackground: function(toggler, i){
													//executed one time for each element when hided
													//alert("background");
												}
									   });
			this._initialized = true;						   
		}
	},
	Display: function(index){
			this._Accordion.display(index);
		}
});
