


<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->


function ImageThumbnail1(img, CAPTION){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img,CAPTION);
}
function ImageThumbnail(img, CAPTION,_TIMEOUT, WIDTH, HEIGHT){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img,CAPTION);
}

function Controlla(img,CAPTION){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img,CAPTION);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img,CAPTION){
  WIDTH=foto1.width + 9;
  HEIGHT=foto1.height + 60;

  if(navigator.userAgent.indexOf('Firefox') > -1) { 
      WIDTH=foto1.width + 6;
      HEIGHT=foto1.height + 47;
  }

  links = (screen.width - WIDTH)/2;
  oben  = (screen.height - HEIGHT)/2;
  URL = img;

CAPTION = "Info";
//windowprops = "width=" + WIDTH + ", height=" + HEIGHT + ",srolling=0,scrollbars=no,resize=0,toolbar=0,locationbar=0,left=" + links + ",top=" + oben;
windowprops = "width=" + WIDTH + ", height=" + HEIGHT + ",'dependent=no,locationbar=no,menubar=no,resizable=no,status=no',left=" + links + ",top=" + oben;
text = "<html><head><title>" + CAPTION + "</title></head><body bgcolor='white' topmargin=0 leftmargin=0 marginwidth=0 marginheight=0 ";
text += "><center><img src='" + URL + "' name='myimage1' >";
text += "</center></body></html>";



preview = window.open("", "Info", windowprops);


preview.moveTo(links,oben);
preview.resizeTo(WIDTH,HEIGHT);
preview.document.open();
//preview.document.write(windowprops);

preview.document.write(text);

preview.focus();  
preview.document.close();  
return true;  
}
