<!-- 
// Dit script is gemaakt door mark knol @ proximedia
// Deze versie laadt een plaatje in een popupvenster 
// zonder witte randen en pakt automatisch de goede maat.

function Foto(img){
  foto1= new Image();
  foto1.src=(img);
  CheckFoto(img);
}
function CheckFoto(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    uitvoering="CheckFoto('"+img+"')";
    interval=setTimeout(uitvoering,20);
  }
}
function viewFoto(img){
  imgbreedte=foto1.width;
  imghoogte=foto1.height;
  vars="width="+imgbreedte+",height="+imghoogte+",left="+((screen.width-imgbreedte)/2)+",top="+((screen.height-imghoogte)/2);
  newwindow=window.open("","protelco",vars);
  newwindow.document.write("<html>\n<head>\n<title>"+img+"</title>\n");
  newwindow.document.write("<meta http-equiv=\"imagetoolbar\" content=\"no\">\n");
  newwindow.document.write("</head>\n\n<body style=\"margin: 0 0 0 0;\">\n"); 
  newwindow.document.write("<img src=\""+img+"\" border=\"0\" onclick=\"javascript:window.close()\">\n"); 
  newwindow.document.write("</body>\n</html>\n"); 
  newwindow.document.focus();
  newwindow.document.close(); 
}

function popitup(url)
{
  vars2="";
  newwindow2=window.open("about:blank","protelco2",vars2);
  newwindow2.document.write("<html>\n<head>\n<title>Protelco group bv</title>\n");

  newwindow2.document.write("<frameset rows='100,*' framespacing='0' border='0' frameborder='0'>\n");
  newwindow2.document.write("  <frame name='protelco_top' target='main' src='top.html' scrolling='no' noresize marginwidth='0' marginheight='0'>\n");
  newwindow2.document.write("  <frame name='inhoud' marginwidth='0' marginheight='0' scrolling='auto' noresize src='"+url+"' >\n");
  newwindow2.document.write("</frameset>\n");

  newwindow2.document.write("</head>\n\n");
  newwindow2.document.write("\n</html>\n"); 
  newwindow2.document.close(); 
  return false;
}

-->

//  einde script -->
