function menu(){
	var o = -1;
	var lochref = ''; 
	var lochrefsplit = document.location.href.split('/'); 
	for(i=0;i<9;i++) lochref += lochrefsplit[i]+'/'; 
	$$('.togglers').each(function(el,index){
		var ahref = '';
		var hrefsplit = $E('a', el).href.split('/'); 
		for(j=0;j<9;j++) ahref += hrefsplit[j]+'/'; 
		if(ahref==lochref)
			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);
			Cookie.set('menuOpen', o);
		},
		fps: 30,
		duration: 100
	});
}
window.addEvent('domready', menu);