window.addEvent('domready', function() {
	//create our Accordion instance
	var myAccordion2 = new Accordion($('accordion_categorie'), 'div.cs_img_categorie', 'div.cs_element', {
		opacity: false,
		onActive: function(toggler, element){
			//toggler.setStyle('color', '#173261');
			//toggler.setStyle('border-bottom', '1px solid #173261');
			//toggler.removeClass('cs_menugauche_normal_titre');
			//toggler.addClass('cs_menugauche_over_titre');
		},
		onBackground: function(toggler, element){
			//toggler.setStyle('color', '#528CE0');
			//toggler.setStyle('border-bottom', '1px solid #FFFFFF');
			//toggler.removeClass('cs_menugauche_over_titre');
			//toggler.addClass('cs_menugauche_normal_titre');
		},
		show: 0
	});
	
	/*var el = $$('td.cs_td_categorie'),
	color = el.getStyle('backgroundColor');
	// We are setting the opacity of the element to 0.5 and adding two events
	$$('td.cs_td_categorie').addEvents({
		mouseenter: function(){
			// This morphes the opacity and backgroundColor
			this.morph({
				'border':'1px solid #DDDDDD',
			});
		},
		mouseleave: function(){
			// Morphes back to the original style
			this.morph({
				'border':'1px solid #FFFFFF',
			});
		}
	});*/
});

