function Equalizer() {
	
	var _cols = Equalizer.arguments;
	var _longest;
	var _height;
	
	function _equalize() {
		for(var x=0;x<_cols.length;x++) {
			if(_longest) {
				if(_cols[x].el.offsetHeight>_longest.el.offsetHeight) {
					_longest = _cols[x];
				}
			} else {
				_longest = _cols[x];
			}
		}
		
		if(_longest) {
		
			_height = _longest.el.offsetHeight;
		
			for(var x=0;x<_cols.length;x++) {
				//if(_cols[x].el == _longest.el) { continue; }
				
				var indHeight = _height;
			
				if(_cols[x].topPadding) { 
					indHeight-=_cols[x].topPadding;
				}
				
				if(_cols[x].bottomPadding) {
					indHeight-=_cols[x].bottomPadding;
				}
				
				_cols[x].el.style.height = indHeight+'px';
				
			}
		}
	}
	
	return {
		equalize:function() {
			_equalize();
		}
	};
	
}


window['onload']=function() {
var equalizer1 = 
Equalizer(
	{ 
		el:document.getElementById('container'),
		topPadding:10,
		bottomPadding:10
	},
	{ 
		el:document.getElementById('sidebar'),
		topPadding:10,
		bottomPadding:10
	}
);
equalizer1.equalize();
}// JavaScript Document