//by Valerio Proietti (http://mad4milk.net). MIT-style license.
//moo.fx.utils.js - depends on prototype.js OR prototype.lite.js + moo.fx.js
//version 2.0

Fx.Height = Class.create();
Fx.Height.prototype = Object.extend(new Fx.Base(), {

	initialize: function(el, options){
		this.element = $(el);
		this.setOptions(options);
		this.element.style.overflow = 'hidden';
		this.element.style.position='absolute';
	},

	toggle: function(pEtat){
		if(pEtat==false) return this.custom(this.element.offsetTop,docHeight-12);
		else return this.custom(this.element.offsetTop,docHeight-this.element.offsetHeight);
	},

	show: function(){
		return this.set(this.element.top);
	},

	increase: function(){
		this.setStyle(this.element, 'top', this.now);
	}

});