window.addEvent('domready', function() {
	//create our Accordion instance
	var myAccordion = new Accordion($('accordion'), 'h4.toggler', 'div.element', {
		opacity: false, 
		alwaysHide: true,
		display: -1,
		onActive: function(toggler, element){
			toggler.setStyle('color', '#CA2C77');
		},
		onBackground: function(toggler, element){
			toggler.setStyle('color', '#286ea0');
		}
	});

//	var myAccordion = new Accordion($('accordion'), 'toggler', 'element', {
//		opacity: false,
//		onActive: function(toggler, element){
//			toggler.setStyle('color', '#41464D');
//		},
//		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('td', {
//			'class': 'toggler',
//			'html': 'J000403'
//		});
//		
//		// create content
//		var content = new Element('div', {
//			'class': 'element',
//			'html': 'y biologists, and the last universal common ancestor (LUCA or LUA), that is, the most recent common ancestor of all currently living organisms, is believed to have appeared about 3.9 billion years ago. The theory of a common ancestor between all organisms is one of the principles of evolution, although for single cell organisms and viruses, single phylogeny is disputed</p>'
//		});
		
//		// position for the new section
//		var position = 0;
//		
//		// add the section to our myAccordion using the addSection method
//		myAccordion.addSection(toggler, content, position);
//	});
});