if (document.getElementById) { // include all feature tests needed for your DOM script
createStyleRule(".stretcher", "display:none;");
}

function stretcher()

{

  try{
    var mooTogs    = document.getElementsByClassName('stretchtoggle');
    var mooStretch = document.getElementsByClassName('stretcher');

    // toggle the togglers
    mooTogs.each(function(tog, i) {
      tog.onclick = function() {
        tog.className = (tog.className == 'stretch_active') ? 'stretchtoggle' : 'stretch_active';
      };
    });

    var mooAccordion = new fx.Accordion(mooTogs, mooStretch, {opacity:true, width:false, height:true});

   mooAccordion.showThisHideOpen = function(toShow) {
     this.elements.each(function(el, j) {
       if (el == toShow)
         this.clearAndToggle(toShow, j);
     }.bind(this));
   }

   setElementStyleByClassName("stretcher", "display", "block");
  }
  catch(e){
    // do nothing
  }
}

addLoadEvent(stretcher);
