function initAccordion() 
{
	var accordion = new Accordion('.toggler', '.slide', {
		display: false,
		alwaysHide: true,
		opacity: false,
		onActive: function(toggler, element) {
			parentelement = element;
			if(toggler.className.indexOf("active") == -1) toggler.className += ' active';
		},
		onBackground: function(toggler, element) {
			toggler.className = toggler.className.replace('active','');
		}
	});	
}
if (window.addEventListener)
	window.addEventListener("load", initAccordion, false);
else if (window.attachEvent)
	window.attachEvent("onload", initAccordion);