window.addEvent('domready', function() {
	
	//create our Accordion instance
	var myAccordion = new Accordion($('accordion'), 'div.toggler', 'div.element', {
		opacity: true,
		onActive: function(toggler, element){
			toggler.setStyle('color', '#364170');
		},
		onBackground: function(toggler, element){
			toggler.setStyle('color', '#FFFFFF');
		}
	});

	//add click event to the "add section" link
	if ($('add_section')) {
	$('add_section').addEvent('click', function(event) {
		event.stop();
	
		// position for the new section
		var position = 0;
		
		// add the section to our myAccordion using the addSection method
		//myAccordion.addSection(toggler, content, position);
	});
	}
});
