function resizeParent() {
  if (document.all)
    parent.document.all['galleryFrame'].height = document.body.scrollHeight;
  else
    parent.document.getElementById('galleryFrame').height = (document.body.offsetHeight + 25);
}

var oldLoad = window.onload;
window.onload = function() { if (oldLoad) oldLoad(); resizeParent(); }
