// make new gallery window

var newContent;
var newWindow;
var pict;
var caption;
var returnToGallery;
var oldBrowser = parseInt(navigator.appVersion) < 4;
var winfeatures = "toolbar=no,location=no,directories=no,status=yes,scrollbars,resizable,left=0,top=0,width=640,height=480";

function makeNewWindow(caption,pict) {
	
	newWindow = window.open("","enlargeView",winfeatures);
	
	if ( !newWindow.opener ) {
		newWindow.opener = window;
	}
	
	
	newContent = "<html><head><title>Gregory Deane ~ " + caption + "</title></head>\n\n"
	newContent += "<body bgcolor='#000000' text='#666666' link='#999999' vlink='#999999' alink='#000000'><center>"
	newContent += "<table cellpadding='0' cellspacing='0' border='0'><tr><td style='font-family: Tahoma,arial; font-size: 12px'><a href='javascript:window.close()' ONMOUSEOVER=\"window.status='Return'; return true;\">close</a></td></tr>"
	newContent += "<tr><td><br><img src='" + pict + "' border='1'></td></tr></table>"
	newContent += "</center></body></html>"
	
	newWindow.document.write(newContent)
	newWindow.document.close()
	
	if ( !oldBrowser  ) {
		newWindow.focus();
	}
}
