var Expander = new Class({
	initialize: function(container_id, link_id) {
		
		this.container = $(container_id)
		this.link = $(link_id)
		
		this.setActionHandlers();
	}
});

Expander.implement({
	
	setActionHandlers: function() {
		
		var obj = this;
		
		this.link.addEvent('click', function(e){
			
			new Event(e).stop();
			var coord = obj.container.getFirst().getCoordinates();
			new Fx.Morph(obj.container).start({
				height: [0, coord.height]
			});
			this.setStyle('display', 'none');
		});
	}
});
