var x = '';
var y = '';
var enlargedwindow;
	function EnlargeImage(image, docTitle) {
		var preloadedimage = new Image();
		preloadedimage.src = '../images/products/screenshots/' + image;
        var output = "";
        enlargedwindow = window.open("","GHEnlargedScreenshot","height=400,width=600,resize=yes,scrolling=no");
        output += '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">'
        output += "<html>"
        output += "<head>"
        output += "<title>"+docTitle+" :: Enlarged Screenshot</title>"
        output += "</head>"
        output += '<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor="#FFFFFF">'
        output += '<table style="width: 100%; height: 100%; background-image: url(\'images/loading.gif\'); background-repeat: no-repeat; background-position: 50% 50%;" colspacing=0 colpadding=0>'
        output += "<tr><td align=center valign=middle>"
        output += '<a href="javascript:self.close();"><img src="images/products/screenshots/'+image+'" name="Screenshot" alt="Click to Close" border=0></a>'
        output += "</td></tr>"
        output += "</table>"
	output += "</BODY>"
        output += "</HTML>"
		enlargedwindow.document.write(output);
        enlargedwindow.document.close();
		ResizePopup();
	}

	function ResizePopup() {
		if (enlargedwindow.Screenshot) {
		x = enlargedwindow.Screenshot.width + 32;
		y = enlargedwindow.Screenshot.height + 48;
			if (x < 200 && y < 80) {
			x = 200;
			y = 80;
			}
		enlargedwindow.window.resizeTo(x,y);
		setTimeout("ResizePopup()", 50);
		}
	}
