// This pop-up image script was adapted from http://www.cloudking.com
// April 2004 jjb

function gammaRay(what)
{
	if (document.getElementById)
	{
		var writePop = window.open('','_blank','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=50,height=50');
		
		var popTop = '';
		popTop += '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n';
		popTop += '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n';
		popTop += '\n';
		popTop += '<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">\n';
		popTop += '<head>\<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />\n<meta http-equiv="imagetoolbar" content="false" />\n<\script>\n';
		popTop += 'function resizeZoomer(){\n';
		popTop += 'document.getElementById(\'loading\').style.display=\'none\';\n';
		popTop += 'document.getElementById(\'image\').style.visibility=\'visible\';\n';
		popTop += 'var sizeX = document.getElementById(\'image\').offsetWidth+55;\n';
		popTop += 'var sizeY = document.getElementById(\'image\').offsetHeight+75;\n';
		popTop += 'self.resizeTo(sizeX,sizeY);\n';
		popTop += '}\n';
		popTop += '\<\/script>\n';
		popTop += '<title>Image Zoom</title>\n';
		popTop += '</head>\n';
		popTop += '<body onload="resizeZoomer();" style="margin: 15px 2px 0 2px; text-align: center; font: normal 10px verdana; color: #666; background: #fff;">\n';
		popTop += '<img id="loading" style="display: block;" src="/images/loading.gif" width="43" height="5" alt="loading" />\n';
		popTop += '<a href="javascript:self.close();" onmousedown="self.close();" title="click to close"><img id="image" style="visibility: hidden; padding: 2px; border: 1px solid #c7c7c7;" src="' + what + '" alt="click to close" border="0" /></a>\n';
		popTop += '<\script>\n';
		popTop += 'document.getElementById(\'image\').onload = resizeZoomer;\n';
		popTop += '<\/script>\n';
		popTop += '</body>\n';
		popTop += '</html>\n';
		
		popRocks = writePop.document;
		popRocks.open();
		popRocks.write(popTop);
		popRocks.close();
	}
	else return true;
}