function adjustMinHeight()
{
	if(jQuery("div.inner").length > 0)
	{
		wrapperH = jQuery("#content_wrapper").height();
		wrapperH = wrapperH - 133;
		jQuery("#content_wrapper").height(wrapperH+"px");
	}
	
	leftH = jQuery("#leftbar").height() + 20;
	rightH = jQuery("#rightbar").height() + 40;
	contentH = jQuery("#content").height();
	bigH = leftH;
	if(rightH > bigH){ bigH = rightH }
	if(contentH > bigH){bigH = contentH}
	jQuery("#content_wrapper").height(bigH+"px");
	//alert("L:"+leftH+" R:"+rightH+" C:"+contentH+" Big:"+bigH+" Wrapper:"+jQuery("#content_wrapper").height());
}

function pxToInt(px)
{
	return Number(px.substr(0,(px.length - 2)));
}


$(document).ready(function() {
	$("ul#HouseMenu").superfish();
	
	adjustMinHeight();
});