var Toggler = new Class({
  
  Extends: Fx.Tween.Toggle,
  
    options: {
      event: 'click'
    },

  initialize: function(element,toggler,options){
    this.parent(element,options);
    this.toggler = document.id(toggler);
		this.bound = this.toggle.bind(this);
    this.attach();
  },

  attach: function(){
		this.toggler.addEvent(this.options.event,this.bound);
		return this;
	},
	
	detach: function(){
		this.toggler.removeEvent(this.options.event,this.bound);
		return this;
	}
  
});