// script for showing images in full screen mode.

function ShowPicture(img,alt){
  foto1= new Image();
  foto1.src=(img);
  Checkup(img,alt);
}
function Checkup(img,alt){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewPicture(img,alt);
  }
  else{
    functie="Checkup('"+img+"','"+alt+"')";
    time_interval=setTimeout(functie,20);
  }
}
function viewPicture(img,alt){
  breedte=foto1.width;
  hoogte=foto1.height;
  size_str="width="+breedte+",height="+hoogte;
  newwin=window.open("","",size_str);
	newwin.document.write("<html><head><title>Klik op de foto om het venster te sluiten</title></head><body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' >");
	newwin.document.write("<a href='javascript:window.close();'><img src='"+img+"' alt='"+alt+"' border='0'></a>");
	newwin.document.write("</body></html>");	
}


