var stretch = $$('div.acc' );
	var tog = $$('h3.togg');

	stretch.setStyles({'height': '0', 'overflow': 'hidden'});
	
	window.addEvent('load', function(){
		
		//initialization of tog effects
		
		tog.each(function(togg, i){
			togg.color = togg.getStyle('background-color');
			togg.$tmp.first = togg.getFirst();
			togg.$tmp.fx = new Fx.Style(togg, 'background-color', {'wait': false, 'transition': Fx.Transitions.Quart.easeOut});
		});
		
		//the accordion
		
		var myAcc = new Accordion(tog, stretch, {
			
			'opacity': false,
			
			'start': false,
			
			'transition': Fx.Transitions.Quad.easeOut,
			
			onActive: function(togg){
				togg.$tmp.fx.start('#98a337');
				togg.$tmp.first.setStyle('color', '#fff');
			},
		
			onBackground: function(togg){
				togg.$tmp.fx.stop();
				togg.setStyle('background-color', togg.color).$tmp.first.setStyle('color', '#fff');
			}
		});
		var found = 0;
		myAcc.display(found);
		
	});