var stretchers = $$('div.answer');
stretchers.each(function(item){
	item.setStyles({'height': '0', 'overflow': 'hidden'});
});

window.onload = function(){ //safari cannot get style if window isnt fully loaded
	
	var togglers = $$('h4.toggler');	

	var myAccordion = new Fx.Accordion(togglers, stretchers, { alwaysHide: true, opacity: false, start: false, transition: Fx.Transitions.quadOut});
	
	//anchors
	
	function checkHash(){
		var found = false;
		$$('h4.toggler a').each(function(link, i){
			if (window.location.hash.test(link.hash)){
				myAccordion.showThisHideOpen(i);
				found = true;
			}
		});
		return found;
	}

	checkHash();

};
