function init(){
var stretchers = document.getElementsByClassName('box');
var toggles = document.getElementsByClassName('tab');
var myAccordion = new fx.Accordion(
toggles, stretchers, {opacity: true, height: true, duration: 400}
);
//check location hash
var found = false;
toggles.each(function(tog, i) {
var link, links = tog.getElementsByTagName("a");
if (links)
if (link = links[0]) {
if (window.location.href.indexOf(link.href) > 0) {
myAccordion.showThisHideOpen(stretchers[i]);
found = true;
}
}
}
});
if (!found) myAccordion.showThisHideOpen(stretchers[0]);
}