window.addEvent('domready', function() {
	
	var togs = $$('div.toggler'); //make an array of YOUR togglers this time :)
	var lastTogIndex = togs.length -1; //find out the index of the last one

	//create our Accordion instance
	var myAccordion = new Accordion($('accordion'), 'div.toggler', 'div.element', {
		opacity: false,
		
		onActive: function(toggler, element){
			toggler.setStyle('background', 'url(structure/ressources/accordion/images/bg_active.gif)');
			toggler.setStyle('color', '#e2c742');
			toggler.set('onmouseover','');
			toggler.set('onmouseout','');
		},
		onBackground: function(toggler,element){
			toggler.setStyle('background', 'url(structure/ressources/accordion/images/bg_out.gif)');
			toggler.setStyle('color', 'white');
			toggler.set('onmouseout','this.style.background="url(structure/ressources/accordion/images/bg_out.gif)"');
			toggler.set('onmouseover','this.style.background="url(structure/ressources/accordion/images/bg_active.gif)"');
		}
	});
	
	});
