window.addEvent('domready', function() {
	
	//alert("The DOM is ready. ACCORDION");
	
	//create our Accordion instance
	var myAccordion = new Accordion($('accordion'), 'h1.toggler a', 'div.element', {
		
		//start:'all-closed',
		display: 0,
		//show: 8,
		opacity: true,
		height: true,
		alwaysHide: true, // If true, you can close the only open item. The default is false.
		
		onActive: function(toggler, element){
			toggler.setStyle('color', '#000');
		},
		
		onBackground: function(toggler, element){
			toggler.setStyle('color', '#000');
		}
	});
	
	//var test = window.location.hash;
	
	//alert(test.substring(1));
	
	//myAccordion.display(5);
	
});