var acInstance;
window.onload = function(){
	$$('#menu a').each(function(el) { 
		el.addEvent('mouseenter',function(){})
		el.addEvent('mouseleave',function(){})	
	});
	
	myStretch = document.getElementsByClassName('toggler');
	myStretcher = document.getElementsByClassName('accordion');
	
	// setup the accordion elements by clearing display styles	
	myStretcher.each(function(el) {
		el.style.display = '';
	});
	
	
	var ac = new Fx.Accordion(myStretch, myStretcher, { 
		onActive: function(tog) {},
    	onBackground: function(tog) {},
		alwaysHide: true,
		start: 'all-closed',
		height: true,
		opacity: true			
	});
	acInstance = ac;

	if (openedItemIndex && openedItemIndex != null) {
		ac.showThisHideOpen(myStretcher[openedItemIndex]);
	}
	
}

