var _heightCol = 0;
function layout(){
	var _heightContent = $("#content").height() - $("#content .title").height();
	
	$("#content > div").not("div.title").each(function(i,el){
		var _marginTop = parseInt($(el).css("marginTop").replace("px",""));
		var _marginBottom = parseInt($(el).css("marginBottom").replace("px",""));
		var _paddingTop = parseInt($(el).css("paddingTop").replace("px",""));
		var _paddingBottom = parseInt($(el).css("paddingBottom").replace("px",""));
		
		if (!_marginTop) _marginTop = 0;
		if (!_marginBottom) _marginBottom = 0; 
		if (!_paddingTop) _marginTop = 0;
		if (!_paddingBottom) _marginBottom = 0; 
		
		_heightCol += $(el).height() + _marginTop + _marginBottom + _paddingTop + _paddingBottom;
		
		var _h = _heightContent - _heightCol;

		var _hBlock = $(this).children("div:last-child").find(".holdblock").height();
	
		var _heightBlock = _hBlock + _h + "px";
		
		$(this).children("div:last-child").find(".holdblock").css({"minHeight":_heightBlock});
		if ($.browser.msie && $.browser.version == "6.0") {
			$(this).children("div:last-child").find(".holdblock").css({"height":_heightBlock, "overflow":"visible"});
		}
		_heightCol = 0;
	});
}


if (window.addEventListener)
	window.addEventListener("load", layout, false);
else if (window.attachEvent)
	window.attachEvent("onload", layout);
