window.addEvent('domready', function() {
	
		//create our Accordion instance
	var myAccordion = new Accordion($('accordion'), 'h3.toggler', 'div.element', {
		display: 100,		
		opacity: true,
		onActive: function(toggler, element){
			toggler.setStyle('color', '#000000');
			//toggler.setStyle('background-image','url(/images/img1.gif)');
		},
		onBackground: function(toggler, element){
			toggler.setStyle('color', '#528CE0');
		}
		
	});

	//add click event to the "add section" link
	$('add_section').addEvent('click', function(event) {
		event.stop();
		
		// create toggler
		var toggler = new Element('h3', {
			'class': 'toggler',
			'html': 'Common descent'
		});
		
		
		// position for the new section
		var position = 0;
		
		// add the section to our myAccordion using the addSection method
		myAccordion.addSection(toggler, content, position);
	});
	
	//
	//
		$('display_section').addEvent('click', function(){
														
	//will determine which object displays first on page load
	//will override the options display setting
	//myAccordion.display(0);  
			});
		
		$('display_section').addEvent('click', function(e){ // $('toggle') is the id of the link/button that gonna activate your slide
               // myAccordion.display(0);
            });

		//
	
});