resizeAndPositionElements = function() {

  dh = document.documentElement.clientHeight;
  wh = document.documentElement.scrollHeight;


  if ($('content-small') != undefined && $('product-info') == undefined) {
  /* Tekstpagina's */
    if (wh > dh) {
        var subs = (Prototype.Browser.IE) ? 6 : 13;
        ch = $('content-small').getHeight();
        $('menu-left').setStyle({ height: ch - subs + 'px' });
    } else {
      $('container').setStyle({ height: dh - 193 + 'px' });
        ch = $('content-small').getHeight();
        nh = ch - 5;
        if (ch < $('container').getHeight()) {
          $('menu-left').setStyle({ height: $('container').getHeight() - 30 + 'px' })
        } else {
          $('menu-left').setStyle({ height: nh + 'px'});
        }
    }
  } else if ($('content-small') != undefined && $('product-info') != undefined) {
  /* Producten */
    if ($('product-extra') != undefined) {
      var sub = 460;
      if (wh > dh) {
        $('product-info').setStyle({ height: wh - sub + 'px' });
      } else {
        $('product-info').setStyle({ height: dh - sub + 'px' });
      }
    } else {
      var sub = 260;
      if (wh > dh) {
        $('product-info').setStyle({ height: wh - sub + 'px' });
      } else {
        $('product-info').setStyle({ height: dh - sub + 'px' });
      }
    }
    $('menu-left').setStyle({ height: $('content-small').getHeight() - 6 + 'px'});
  }

  /* 'Brede' tekstpagina (homepage) */
  if ($('content') != undefined && $('coupled') == undefined) {
    if (wh > dh) {
      $('content').setStyle({ height: wh - 200 + 'px' });
    } else {
      $('content').setStyle({ height: dh - 220 + 'px' });
    }
  } else if ($('content') != undefined && $('coupled') != undefined) {
    if (wh > dh) {
      $('content').setStyle({ height: wh - 555 + 'px' });
    } else {
      $('content').setStyle({ height: dh - 550 + 'px' });
    }
  }

  /* 'Leuk te combineren met */
  if ($('product-info') != undefined && $('combine') != undefined ) {
    var tmp = $('product-info').getHeight() + 113;
    $('combine').setStyle({ position: 'absolute', top: tmp + 'px', height: '30px' });
  }

}