var HasIE = navigator.userAgent.indexOf("MSIE")!=-1;
var HasMac = navigator.userAgent.indexOf("Mac")!=-1;
var PhotoWin;


function ShowPhoto(Keyword) {
	if (HasIE && typeof(PhotoWin)=="object") PhotoWin.close();

	if (HasIE) WinHeight=446;
	else WinHeight=450;
	
	PhotoWin = window.open("samples_gallery.asp?ie="+HasIE+"&mac="+HasMac+"&kw="+Keyword, "", "height=364,width="+WinHeight+",toolbar=0,scrollbars=0,locationbar=0,resizable=0");

	PhotoWin.focus();
}