function menu(){
	var o = -1;
	var lochref = document.location.href;
	$$('.togglers').each(function(el,index){
		var ahref = el.getElement('a').href;
		if (lochref.substring(0, ahref.length) == ahref) {
			o = index;
		}
	});
	
	new Accordion('#menu_gauche li.togglers', '#menu_gauche ul.elements', { 
		opacity: true,
		width: false,
		show: o.toInt(),
		onActive: function(toggler, element){
			var o;
			var a  = $$('a', toggler).shift();
			a.addEvent( 'click', function(e){
				e = new Event(e);
				(function(){ window.location.href = a.getProperty('href'); }).delay( 200 );
				e.stop();
			});
			this.elements.each(function(el, i){
				if( el==element ){ o = i; }
			}, this);
		},
		fps: 30,
		duration: 100
	});
}
window.addEvent('domready', menu);
