﻿Event.observe(window, 'load', function() {
	var main_accordion = new accordion('accordion_hold', {
		// The speed of the accordion
		resizeSpeed : 8,
		// The classnames to look for
		classNames : {
			// The standard class for the title bar
		    toggle : 'accordion_toggle',
		    // The class used for the active state of the title bar
		    toggleActive : 'accordion_toggle_active',
		    // The class used to find the content
		    content : 'accordion_content'
		},
		// If you don't want the accordion to stretch to fit 
		// its content, set a value here, handy for horixontal examples.
		defaultSize : {
		    height : null,
		    width : null
		},
		// The direction of the accordion
		direction : 'vertical',
		// Should the accordion activate on click or say on mouseover? (apple.com)
		onEvent : 'click'
	});
	main_accordion.activate($$('#accordion_hold .accordion_toggle')[0]);
});