function resizeWindow() {
	$("#elemento, #elemento_submenu, #contenido_cuerpo, #cuerpo").height("");
	var h = $("html").height();
	var h2 = $("#cuerpo").height();
	if (h > h2) {
		$("#cuerpo").height(h);
	}
	else {
		$("body").height(h2);
		h = h2;
	}
	var diffh = $("#contenido_cabecera").height();
	h -= diffh;
	if ($("#elemento_submenu").height() > h) {
		h = $("#elemento_submenu").height();
	}
	if ($("#elemento").height() > h) {
		h = $("#elemento").height();
	}
	if ($("#contenido_cuerpo").height() < h) {
		$("#contenido_cuerpo").height(h);
	}
	if ($("#elemento").length && $("#elemento").height() < h) {
		$("#elemento").height(h);
	}
}
if (!$.browser.msie || ($.browser.msie && $.browser.version > 6)) {
	$(window).resize(function() {
		resizeWindow();
	});
}

$(window).load(function() {
	resizeWindow();
});

