function equalHeight(group)
{
var scrHeight = $(window).height();
if (scrHeight > $("#box").height()) {$("#box").css({'min-height': scrHeight});}

if (scrHeight-298 > $("#container").height()) 
{
$("#container").css({'min-height': scrHeight-298}); 
if ($("#container").height()-$("#hottree").height()>$("#left").height()) {$("#left").css({'min-height': $("#container").height()-$("#hottree").height()});}
}

    var tallest = 0;

    group.each(function() {
        thisHeight = $(this).height();
        if(thisHeight > tallest)
        {
            tallest = thisHeight;
        }
        });

if($("#main div.inner").height()<tallest) {$("#main .inner").css({'min-height': tallest}); }

if($("#wide_main div.inner").height()<tallest) {$("#wide_main .inner").css({'min-height': tallest}); }


center=$('#wide_main').height();
mcenter=$('#main').height();
if (mcenter>center) {center=mcenter}

lmh=$('#lpsbv').height();
lhn=center-lmh-30-leftpadd;
if (lhn>450) {$('#lpsb').height(lhn)}

rmh=$('#rpsbv').height();
rhn=center-rmh-30;
if (rhn>450) {$('#rpsb').height(rhn)}
}



$(document).ready(function(){ 
$(function(){equalHeight($("#container > div"));}); 
});
