rem: gDialog.PreviewSize.setAttribute("collapsed", "false"); gDialog.ImageHolder.setAttribute("collapsed", "false"); 
add: gDialog.PreviewSize.collapsed = false; gDialog.ImageHolder.collapsed = false; 
context: function PreviewImageLoaded(){  if (gDialog.PreviewImage)  {    // Image loading has completed -- we can get actual width    gActualWidth  = gDialog.PreviewImage.naturalWidth;    gActualHeight = gDialog.PreviewImage.naturalHeight;    if (gActualWidth && gActualHeight)    {      // Use actual size or scale to fit preview if either dimension is too large      var width = gActualWidth;      var height = gActualHeight;      if (gActualWidth > gPreviewImageWidth)      {          width = gPreviewImageWidth;          height = gActualHeight * (gPreviewImageWidth / gActualWidth);      }      if (height > gPreviewImageHeight)      {        height = gPreviewImageHeight;        width = gActualWidth * (gPreviewImageHeight / gActualHeight);      }      gDialog.PreviewImage.width = width;      gDialog.PreviewImage.height = height;      gDialog.PreviewWidth.setAttribute("value", gActualWidth);      gDialog.PreviewHeight.setAttribute("value", gActualHeight);      gDialog.PreviewSize.setAttribute("collapsed", "false");      gDialog.ImageHolder.setAttribute("collapsed", "false");      SetSizeWidgets(gDialog.widthInput.value, gDialog.heightInput.value);    }    if (gDialog.actualSizeRadio.selected)      SetActualSize();  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b1c736039e4613f08fbb49d15711f0dbf686da2f/EdImageOverlay.js/clean/editor/ui/dialogs/content/EdImageOverlay.js