window.addEvent('domready', function() {
	//create our Accordion instance
	var myAccordion = new Fx.Accordion($('accordion'), '.toggler', '.toggle', {
		display: -1, 			//(integer: defaults to 0) The index of the element to show at start (with a transition). To force all elements to be closed by default, pass in -1.
		show: -1,				//(integer: defaults to 0) The index of the element to be shown initially.
		trigger: 'click', 		//(string: defaults to 'click') The event that triggers a change in element display.
		opacity: true, 			//(boolean: defaults to true) If set to true, an opacity transition effect will take place when switching between displayed elements.
		alwaysHide: true, 		//(boolean: defaults to false) If set to true, it will be possible to close all displayable elements. Otherwise, one will remain open at all time.
		initialDisplayFx: true 	//(boolean; defaults to true) If set to false, the initial item displayed will not display with an effect but will just be shown immediately.
	});
});
