// JScript source code
var
	portraitWindow = null,
	infoWindow = null;
	
function showPortrait(url)
{
	openWindow(url, 400, 250);
}

function showInfoWindow(url)
{
	openWindow(url, 400, 400);
}

function openWindow(url, width, height)
{
	if ((portraitWindow == null) || portraitWindow.closed)
	{
		var top, left, features;
		top = (window.screen.availHeight - height) / 2;
		left = (window.screen.availWidth - width) / 2;
		features = "width=" + width + ",height=" + height + ",top=" + top + ",left=" + left + ",toolbar=no,resizable=no,menubar=no,titlebar=no"
		portraitWindow = window.open(url, "_blank", features);
	}
	else
	{
		portraitWindow.document.location.href = url;
		portraitWindow.focus();
	}
}
