// JavaScript Document

// writes on the fly a document with photo
function showPhoto(whichPic, myWidth, myHeight){
	myCaption = whichPic.title;
	myWindow = window.open("", "_blank", "width=" + myWidth + ",height=" + myHeight + ",toolbar=0,resizable=0,location=0,menubar=0,status=0,scrollbars=0");
	myContent="<html><head><title>" + myCaption + "</title><link rel='stylesheet' type='text/css' href='../../sheets/sfbfa.css' media='screen'></head>"
	myContent += "<body id='popup' onBlur='self.close()'><img src=" + whichPic + " /></body></html>"

	myWindow.document.write(myContent)
	myWindow.document.close() 
}

