window.addEvent('domready', function(){
var puceon = 'url(/images/01-caniveau/01-pourquoi-choisir/bull_roll.gif)';
var puceoff = 'url(/images/01-caniveau/01-pourquoi-choisir/bull_off.gif)';
var toto = '';
var list = $$('h3' , '.toggler');
list.each(function(element) {
 
	var fx = new Fx.Styles( element, {duration:250, wait:false});
 
	element.addEvent('mouseenter', function(){
																																									
		if(toto == '' || toto != element.id ){
				element.setStyle('background', puceon);
				element.setStyle('background-repeat','no-repeat');
			
		fx.start({
			'margin-left':10,
			'color': '#e72125'
		});
		
		};
	});
 
	element.addEvent('mouseleave', function(){
	if(toto == '' || toto != element.id ){
					element.setStyle('background', puceoff);
						element.setStyle('background-repeat','no-repeat');
			
			fx.start({
			'margin-left': 0,
			'color': '#41606d'
		});

	};
	});
});
var content = new Accordion('h3.content', 'div.content', {
display: 0,
		show: true,
		height: true,
		width: false,
		fixedHeight: false,
		fixedWidth: false,
		wait: false,
		alwaysHide: true,
	opacity: false,
	onActive: function(toggler, element){
			var fxun = new Fx.Styles(toggler,element, {duration:250, wait:false});
		toggler.setStyle('background-image','url(/images/01-caniveau/01-pourquoi-choisir/bull_on.gif)');
		toggler.setStyle('background-repeat','no-repeat');
		toto=toggler.id;
		
				fxun.start({
			'margin-left': 10,
			'color': '#e72125'
			});

	},
 
onBackground: function(toggler, element){
		var fxun = new Fx.Styles(toggler,element, {duration:250, wait:false});
		toggler.setStyle('background-image','url(/images/01-caniveau/01-pourquoi-choisir/bull_off.gif)');
		toggler.setStyle('background-repeat','no-repeat');
	fxun.start({
			'margin-left': 0,
			'color': '#41606d'
		});
	if(toto==toggler.id){
		toto='';
		}
	}
}, $('content'));

var winScroller = new Fx.Scroll(window);
new SmoothScroll();	
	

});
