var stretchers = $$('div.togglerBlock');
	var togglers = $$('h2.toggler');

	/*stretchers.setStyles({'height': '0', 'overflow': 'hidden'});*/
	
	window.addEvent('load', function(){
		
		//initialization of togglers effects
		
		togglers.each(function(toggler, i){
			toggler.color = toggler.getStyle('background-color');
			toggler.first = toggler.getFirst();
			toggler.fx = new Fx.Style(toggler, 'background-color', {'wait': false, 'transition': Fx.Transitions.Quart.easeOut});
		});
		
		//the accordion
		
		var myAccordion = new Accordion(togglers, stretchers, {
			
			'opacity': false,
			
			'start': false,
			
			'transition':  Fx.Transitions.Cubic.easeOut,
			'duration': 1000,
			
			onActive: function(toggler){
				toggler.fx.start('#caa585');
				toggler.setStyle('color', '#333');
				toggler.setStyle('background-image', 'url(<?php echo REP_IMG; ?>puce2.gif)');
			},
		
			onBackground: function(toggler){
				//toggler.fx.stop();
				toggler.setStyle('background-color', '#423120').setStyle('color', '#caa585')
				toggler.setStyle('background-image', 'url(<?php echo REP_IMG; ?>puce3.gif)');
			}
		});

	
	});
	
	
	
