var ClearFixer = new Class({
	initialize: function() {},
	fix: function() {
//		debugger;
		var mHeight = $('leftboxes').getSize().y - $('searchboxtop').getSize().y;
		var centre = $('contenttext');
		var centretop = $('contenttop');
		var status = $('status');
		var nStatus = $('navStatus');
		var right = $('rightboxes');
		if (centretop) mHeight -= centretop.getSize().y;
		if (status) mHeight += status.getSize().y;
		if (nStatus) mHeight -= nStatus.getSize().y;
		if (centre.getSize().y > mHeight) mHeight = centre.getSize().y;
		if (right) {
			var rHeight = right.getSize().y;
			if (right.hasClass('home')) rHeight -= centretop.getSize().y;
			if (rHeight > mHeight) mHeight = rHeight;
			
		}
		$('contentbottom').style.minHeight = (mHeight+20)+'px';
	}
});
var clearFixer;
window.addEvent('domready', function() {
	clearFixer = new ClearFixer();
	clearFixer.fix();
});