//
// Image Preview JS
// Last edited: Mon May  6 03:16:51 2002 by ep (Ed Porras) on aulait.elguapos.net
//

// globals
var Imgs = new Array();

//
// load the previews in the background
function preload(cnt)
{
  if (document.images) {

    // up to cnt previews
    for (i = 1; i <= cnt; i++) {
        Imgs[i] = new Image();
        Imgs[i].src=".p"+i+".gif";
    }
  }
  return true;
}

//
// display only the preview
function setPreview(idx) {
  document["preview"].src = Imgs[idx].src;
  return true;
}
