var imWin
var addh
var addw
function imageWindow(image,caption,cat,w,h,copy) {
	addh = parseFloat(h) + 110;
	addw = parseFloat(w) + 40;
	imWin = window.open("","","width="+addw+", height="+addh+",resizable, scrollbars");
	imWin.document.writeln('<html><head><title>the Institute for the Visualization of History</title>');
	imWin.document.writeln('<style>body {background-color: #484848;}</style>');
	imWin.document.writeln('<style> .imggray {padding:2px; background-color: #484848; font-family: Verdana, Arial, "MS Sans Serif", SansSerif; color:#FFFFFF; font-size: 8pt; line-height: 130%; text-align: justify; vertical-align: top; border-color:#FFFFFF; border-style:solid; border-width:thin; }</style>');
	imWin.document.writeln('<style> .capgray {padding:2px; background-color: #484848; font-family: Verdana, Arial, "MS Sans Serif", SansSerif; color:#FFFFFF; font-size: 8pt; line-height: 130%; text-align: justify; vertical-align: top; }</style>');
	imWin.document.writeln('</head>');
	imWin.document.writeln('<body>');
	imWin.document.writeln('<img src="images/z'+image+'" border="0" class="imggray">');
	imWin.document.writeln('<p class="capgray" style="text-align: left;">'+cat+' - '+caption+'');
	imWin.document.writeln('<br>'+copy+'</p>');
	imWin.document.writeln('<p style="text-align: center;" align=center><object x-maintain-ratio=TRUE classid="CLSID:d27cdb6e-ae6d-11cf-96b8-444553540000"');
	imWin.document.writeln('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,12,0" type="application/x-oleobject"');
	imWin.document.writeln('width=46 height=20>');
	imWin.document.writeln('<param name="movie" value="../../images/vizclose.swf"><param name="quality" value="high" >');
	imWin.document.writeln('<embed x-maintain-ratio="TRUE" src="../../images/vizclose.swf" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"');
	imWin.document.write('type="application/x-shockwave-flash" controller="false" ShowControls="0" width="46" height="20"></embed></object></p>');
	imWin.document.write('</body></html>');	
	imWin.document.close();
	}

