window.addEvent('domready', function() {
	
	//create our Accordion instance
	var myAccordion = new Accordion($('accordion'), 'h3.toggler', 'div.element', {
		opacity: false,
		onActive: function(toggler, element){
			toggler.setStyle('color', '#369D0D');
		},
		onBackground: function(toggler, element){
			toggler.setStyle('color', '#FF1165');
		}
	});

	//add click event to the "add section" link
	//$.addEvent('click', function(event) {
		
		// create toggler
		//var toggler = new Element('h3', {
			//'class': 'toggler',
			//'html': ''
		//});
		
		// create content
		var content = new Element('div', {
			'class': 'element',
			'html': ''
		});
		
		// position for the new section
		var position = 0;
		
		// add the section to our myAccordion using the addSection method
		//myAccordion.addSection(toggler, content, position);
	//});
});