window.addEvent('domready', function() {

	//create our Accordion instance
	myAccordion = new Accordion($('accordion'), 'div.toggler', 'div.element', {
		opacity: false,
		// display will show index of elements - beginning with 0; display: -1 tricks it into staying closed
		show:-1,
		initialDisplayFx:false,
		//lets you toggle an open item closed
		alwaysHide: true,
		onActive: function(toggler, element){
			toggler.setStyle('color', '#7bc143');
		},
		onBackground: function(toggler, element){
			toggler.setStyle('color', '#221407');
		}
	});

	//make it open on hover
	// $$('.toggler').addEvent('mouseenter', function() { this.fireEvent('click'); });

});
