window.addEvent('domready', function() {
	
	//create our Accordion instance
	var myAccordion = new Accordion($('accordion'), 'h3.toggler', 'div.element', {
		// start: 'all-closed', // this makes them all start in the closed position
		opacity: false,
		// alwaysHide: true, // this makes an open element close if you click it
		onActive: function(toggler, element){
			toggler.setStyle('background', '#000 url(images/im-acrd-on.gif) no-repeat');
		},
		onBackground: function(toggler, element){
			toggler.setStyle('background', '#000 url(images/im-acrd-off.gif) no-repeat');
		}
	});
});