Fluid Width Equal Height Columns

new NaMooHeightsEqualizer('.BOX');
var NaMooHeightsEqualizer = new Class({
	initialize: function(a){
		this.elements = $$(a);
		this.action();
		window.addEvent('load',this.action.bind(this));
		window.addEvent('resize',this.action.bind(this));
	},
	action: function(){
		    max_height=len=i=0;
		    if((this.elements) && (this.elements.length > 0) ) {
			len = this.elements.length;
			for (i = 0; i < len; i++) {
			    this.elements[i].style.height = '';
			    if (this.elements[i].clientHeight > max_height) {max_height = this.elements[i].clientHeight;}
			}
			for (i = 0; i < len; i++) {this.elements[i].style.height = max_height + 'px';}
		    }
	}
});