window.addEvent('domready', function() {
	
	//create our Accordion instance
	var myAccordion = new Accordion($('accordion'), '.toggler', '.element', {
		opacity: false,  // change to true for an opacity effect
		alwaysHide: true, // lets you close them all
			start:'all-closed', // starts them all closed
		onActive: function(toggler, element){
			//toggler.setStyle('color', '#41464D');  // example of setting a style on active
			toggler.addClass('toggler_active');   // adding a class to allow for better styling
			element.addClass('element_active');   // adding a class to allow for better styling
		},
		onBackground: function(toggler, element){
			//toggler.setStyle('color', '#528CE0'); // example of setting a style on inactive
			toggler.removeClass('toggler_active');  // removing the class
			element.removeClass('element_active');  // removing the class
		}
	});
		

});
