function initYuiResize (resize, panel)
{
  resize.on('resize', function(args) {
      var panelHeight = args.height;

      var headerHeight = this.header.offsetHeight; // Content + Padding + Border
      var footerHeight = this.footer.offsetHeight; // Content + Padding + Border

      var bodyHeight = (panelHeight - headerHeight - footerHeight);
      var bodyContentHeight = (IE_QUIRKS) ? bodyHeight : bodyHeight - PANEL_BODY_PADDING;

      YAHOO.util.Dom.setStyle(this.body, 'height', bodyContentHeight + 'px');

      if (IE_SYNC) {

      // Keep the underlay and iframe size in sync.

      // You could also set the width property, to achieve the
      // same results, if you wanted to keep the panel's internal
      // width property in sync with the DOM width.

      this.sizeUnderlay();

      // Syncing the iframe can be expensive. Disable iframe if you
      // don't need it.

      this.syncIframe();
      }
  }, panel, true);
}

