    window.addEvent('domready', function () {
      /* make sliding segments */
      var infoslide = new Object();
      $$('.infodiv').each(function (infodiv) {
        infoslide[infodiv.id] = new Fx.Slide(infodiv, { duration : 450 }).hide();
      });
        $$('th.name').addEvent('click', function (e) {


        var infodiv = $E('#info'+this.getParent().id+' .infodiv');
        if (infoslide[infodiv.id].open) {
          infoslide[infodiv.id].options.transition = Fx.Transitions['Back']['easeIn'];
        } else {
          infoslide[infodiv.id].options.transition = Fx.Transitions['Back']['easeOut'];
        }
        infoslide[infodiv.id].toggle();
      });
    });
    
    /*
    
          $$('th.name').addEvent('click', function (e) {
        var infodiv = $E('#info'+this.getParent().id+' .infodiv');
        if (infoslide[infodiv.id].open) {
          infoslide[infodiv.id].options.transition = Fx.Transitions['Back']['easeIn'];
        } else {
          infoslide[infodiv.id].options.transition = Fx.Transitions['Back']['easeOut'];
        }
        infoslide[infodiv.id].toggle();
      });
      
      */
      
      var ExtendedAccordion = Accordion.extend({
	showAll: function() {
		var obj = {};
		this.elements.each(function(el, i){
			obj[i] = {};
			this.fireEvent('onActive', [this.togglers[i], el]);
			for (var fx in this.effects) obj[i][fx] = el[this.effects[fx]];
		}, this);
		return this.start(obj);
	},
	hideAll: function() {
		var obj = {};
		this.elements.each(function(el, i){
			obj[i] = {};
			this.fireEvent('onBackground', [this.togglers[i], el]);
			for (var fx in this.effects) obj[i][fx] = 0;
		}, this);
		return this.start(obj);
	}
});
