//	'photo' denotes the name of the pop-up window. This can be renamed.

function photoWindow(pic,caption,pic_x,pic_y) {
	var pic_y2 = parseInt(pic_y);
	var win_y = (pic_y2 + 95);	//	'win_y' (window height) is calculated by adding 60 pixels to the image height ('pic_y2'), which is first parsed as an integer for IE4
	photo=open('','photo','status=no,width=' + pic_x + ',height=' + win_y + '');
	photo.document.write('<html><head><title>DJ Artemis: pix</title>')
	photo.document.write('<link rel="stylesheet" href="_css/photo.css" type="text/css"></head>')
	photo.document.write('<body onLoad="window.focus(\'self\');">')
	photo.document.write('<a href="javascript:window.close();">')
	photo.document.write('<img src="pix/' + pic + '" width="' + pic_x + '" height="' + pic_y2 + '" alt="Click on photo to close window &amp; return to previous page" border="0" />')
	photo.document.write('</a>')
	photo.document.write('<p><a href="javascript:window.close();" class="close"><img src="_img/link_close.gif" width="54" height="17" alt="Close window" />')
	photo.document.write('</a>' + caption + '</p>')
	photo.document.write('</body></html>')
	photo.document.close()
}