function popUpWindow3(url, name, width, height) {

	var left;
	var top;
	left = getCenteredLeft(width) - 5;
	top = getCenteredTop(height) - 12;

	// Build the param string.
	var params = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0";
	params += ",width=" + width;
	params += ",height=" + height;
	params += ",left=" + left;
	params += ",top=" + top;
	params += ",screenX=" + left; // for Netscape.
	params += ",screenY=" + top;
	// Open the window. Set the opener property if it's missing. And return the window handle.
	var wh = window.open(url, name, params);
	return wh;

	//if (wh.opener == null) wh.opener = window;
}


function openPlayerGallery(guid) {
	//ALWAYS try to get a reference to an already opened player window
	playerWindow =  popUpWindow3('/player/gallery/default.asp?guid='+guid, 'ImageGallery', 760, 508);
	//playerWindow =  popUpWindow3('/player/gallery/default.asp?guid='+guid, 'ImageGallery', 748, 508);
	playerWindow.focus();
}	
