function setHeight()
{
  // ----------------------------------------------------------------------
  // Set length of left and right shadow according to lenght of content box
  // ----------------------------------------------------------------------

  var mainContentElem = document.getElementById("spalte_mitte");
  var contentHeight = mainContentElem.clientHeight;
  var surLeftElem = document.getElementById("surLeft");
  var surRightElem = document.getElementById("surRight");

  var logoBoxElem = document.getElementById("logoBox");
  var logoBoxHeight = logoBoxElem.clientHeight;

  if (contentHeight > logoBoxHeight)
  {
    logoBoxElem.height = contentHeight;
    //logoBoxElem.clientHeight = contentHeight;
  }
  else
    contentHeight = logoBoxElem.clientHeight;

  var offset = 150 + 36 + 22 + 16 + 0;
  // 150   Height of uppest image
  // 36   Height of menu bar
  // 22   Height of footer
  // 16    Height of confusing remains

  surLeftElem.height = contentHeight + offset;
  surRightElem.height = contentHeight + offset;

  // ------------------------------------------------------------------------
  // Set image type of shadow below footer according to length of content box
  // ------------------------------------------------------------------------

  var footerElem = document.getElementById("surFooter");
  var shadowClass = "surFooterClass_m";

  if (contentHeight >= 800 && contentHeight < 1000)
    shadowClass = "surFooterClass_l";

  if (contentHeight > 1000)
    shadowClass = "surFooterClass_xl";

  footerElem.className = shadowClass;
}
