////////////////////////////////////////////////////////////////////////////////
// GENERIC (NON)WINDOW POPUP
////////////////////////////////////////////////////////////////////////////////

/*
	Creates a temporary display message that overlays any content on the page.
	Message disappears when the mouse leaves the message window. Display properties
	of the window are defined in the css class "pc-rtg-infoWindowPopup".
	
	@in p_refObj: object that anchors, or positions the message window
	@in p_msg: display message - may contain HTML
*/
function displayInfoWindowPopup(p_refObj, p_msg) {
	var oWindow = getInfoWindowFrame();
	var oBillBoard = getInfoWindowDiv(oWindow);
	
	oBillBoard.innerHTML = p_msg;
	
	// repositioning before the popup is displayed for those browsers that don't 
	// allow element repositioning with the display on
	//alert(dqbCalculateOffset(p_refObj, "offsetLeft", 0));
	oWindow.style.left = oBillBoard.style.left = dqbCalculateOffset(p_refObj, "offsetLeft", -215);
	oWindow.style.top = oBillBoard.style.top = dqbCalculateOffset(p_refObj, "offsetTop", 0);
	oWindow.style.width = oBillBoard.offsetWidth;
	oWindow.style.height = oBillBoard.offsetHeight;
	oWindow.style.zindex = 1000;
	
	oWindow.style.display = oBillBoard.style.display = "";
	
	if(oWindow.style.pixelWidth == 0) {
	// resizing for those browsers that render elements without size until they are displayed
		oWindow.style.width = oBillBoard.offsetWidth;
		oWindow.style.height = oBillBoard.offsetHeight;
	}
}
