if (document.images){
	Foto_off = new Image ();		Foto_off.src = "foto.jpg";
	Foto_on = new Image ();		Foto_on.src = "fotoflits.jpg";

}	//# End of if document.images
	
	function imgOn (imgName) {
		if (document.images){
			document[imgName].src= eval("Foto_on.src");
		}
	};

	function imgOff (imgName){
		if (document.images){
			document[imgName].src= eval("Foto_off.src");
    		}
	};


var FotoShow = null

function displayImage(picName, windowName, windowWidth, windowHeight){
  return window.open(picName,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + (parseInt(windowWidth)+12)  + ",height=" + (parseInt(windowHeight)+12)) 
  };
function winClose(){   			 // close all open pop-up windows   
  if(FotoShow != null) {FotoShow.close()} 
  };
function doNothing(){};  // does nothing but required by JavaScript in this case


  // improved displayImage function for Netscape 3+ and IE 4+
function displayImage(picName, windowName, windowWidth, windowHeight){
  var winHandle = window.open("" ,windowName,"toolbar=no,scrollbars=no,resizable=no,width="+windowWidth+",height="+ windowHeight)
  if(winHandle != null){
	var htmlString = "<html><head><title>"+windowName+"</title></head>"  
	htmlString += "<body background=\""+picName+"\">"
// hier de foto centreren op pagina met knop eronder

	htmlString += "<FORM method=\"post\"><small><small><input type=\"button\" Value=\"Close\" onClick=\"window.close();\" align=\"right\"></small></small></FORM>"
	htmlString += "</body></html>"
	winHandle.document.open()
	winHandle.document.write(htmlString)
	winHandle.document.close()
    }	
  if(winHandle != null) winHandle.focus() 		//brings window to top
  return winHandle
  };
  

