var swap = document.images ? true : false;
var imgList;
var start = "images/interface/";

function picswap(who, what)
{
	if (swap && document.images[who].complete)
	{
		document.images[who].src = start + what;
	}
}

function showPicture(imgName, imgHeight, imgWidth, imgTitle)
{
	popup = window.open("" ,'_blank','height=' + imgHeight + ',width=' + imgWidth + ', status=0, menubar=0, toolbar=0, location=0, directories=0, scrollbars=no, resize=no, left=50, top=50');  
	popup.document.write('<html><head><title>' + imgTitle +'</title>'); 
	popup.document.write('<meta http-equiv="imagetoolbar" content="no" />');
	popup.document.write('</head>'); 
	popup.document.write('<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#ffffff">'); 
	popup.document.write('<img src="' + imgName + '" alt="'+ imgTitle + '" hspace="0" vspace="0" border="0" onclick="javascript:window.close();" />');
	popup.document.write('</body></html>');
	popup.document.close();
}
