

function parsePanelSizes() {
  oldHeight = $("#foot").height();
  /* prevent */
  $(".parseH").css("margin","0px");
  $(".parseH").css("padding","0px");
  $(".parseH").css("height","auto");
  /* w */
  borders=0;
  borders += getBorderWx("#panelLC");
  borders += getBorderWx("#panelCC");
  borders += getBorderWx("#panelRC");
  wL=$("#panelLC").width();
    if (wL==null) { wL=0; }
  wR=$("#panelRC").width();
    if (wR==null) { wR=0; }
  wRef = $("#topPanelsDiv").width();
  w = wRef - (wL+wR);
  w = w-borders;
  $("#panelCC").css("width",w+"px");
  /* H */
  h=0;
  a=$(".parseH");
  for (i=0;i<a.length;i++) {
    hT=$(a[i]).height();
    if (hT>h) {
      h=hT;
    }
  }
  $(".parseH").css("height",h+"px");
  /* Foot */
  $("#foot").css("height",oldHeight+"px");
  setTimeout("parsePanelSizes()",2500);
}

function getBorderWx(o) {
  b=0;
  bl=0; try { bl = new Number($(o).css("border-left-width").replace("px","")); } catch (e) {} if (bl>0) { b+=bl; }
  br=0; try { br = new Number($(o).css("border-right-width").replace("px","")); } catch (e) {} if (br>0) { b+=br; }
  return b;
}
