var Toggler = new Class({
    initialize: function (toggler, totoggle, hide){
      this.toggler = [];
      $$(toggler).each( function( item ) {
        this.toggler.push( new Fx.Slide(item) );
        item.addEvent('click', function (event){
            event.stop();
            this.totoggle.each(function(toggled){
                toggled.toggle()
            });
        }.bindWithEvent(this));
      }, this);
      this.totoggle = [];
      $$(totoggle).each( function( item ) {
        this.totoggle.push( new Fx.Slide(item) );
      }, this);
      if (hide){
          this.totoggle.each(function(toggled){
             toggled.hide();
          });
       }
       else {
         this.totoggle.each(function(toggled){
             toggled.show();
          });
       }
    }
});
