function updateCSS(){
    h0=$(window).height();
    w0=$(window).width();
    adjustMapDivHeight(h0,w0);
}

function adjustMapDivHeight(h0,w0){
    hHeader=$('#Header').height();
    hHeader0=$('#Header0').height();
    hFooter=$('#Footer').height();
    belowMapPadding=30;
    newDivH = h0 - ( hHeader + hHeader0 + hFooter ) - belowMapPadding;
    newDivHpx = newDivH.toString() + "px";
    $('#map').css("height",newDivHpx);
    $('#map').css("width","100%");
}

function centerHeader(h0,w0){
    newDivWpx = w0.toString() + "px";
    $('#Header').css("width",newDivWpx);
}

$(window).resize(function(h0,w0){
 $('#map').css("height","auto");
 $('#map').css("width","auto");
 updateCSS();
 });


