var newWin = new Object;

function openPopup(imgSrc, imgLabel)
{
	imgLabel = imgLabel.replace(/"/g,"&quot;");
	newWin = window.open('','popup','width=288,height=328,top=160,left=500');
	newWin.document.open();
	newWin.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><html><head><title>Bangkok Thai Express<\/title><script type="text/javascript" src="/scripts/popresize.js"><\/script><link type="text/css" rel="stylesheet" href="/styles/popup.css"><\/head><body onLoad="go();" onBlur="self.close();"><div id="PopContent"><div class="Label">' + imgLabel + '<\/div><div style="background:url(' + imgSrc + ') no-repeat 4px 4px;"><img src="/images/thaidish.gif" width="280" height="280" galleryimg="no" alt="' + imgLabel + '" title="' + imgLabel + '" \/><\/div><\/div><\/body><\/html>');
	newWin.document.close();
}

function closePopup()
{
	if (newWin.location)
	{
		if (!newWin.closed)
		{
			newWin.close();
		}
	}
}
