var stretchers = $$('div.accordion');var togglers = $$('div.toggler');stretchers.setStyles({'height': '0', 'overflow': 'hidden'});window.addEvent('load', function(){togglers.each(function(toggler, i){toggler.color = toggler.getStyle('background-color');toggler.$tmp.first = toggler.getFirst();toggler.$tmp.fx = new Fx.Style(toggler, 'background-color', {'wait': false,'transition': Fx.Transitions.Quart.easeOut});});myAccordion = new Accordion(togglers, stretchers, {'opacity': false,'start': false,'transition': Fx.Transitions.Quad.easeOut});$$('div.toggler a').each(function(link, i){if (window.location.hash.test(link.hash)) found = i;});myAccordion.display(found);});