function showPopup (targetObjectId, eventObj) {
    if(eventObj) {
	// hide any currently-visible popups
	hideCurrentPopup();
	// stop event from bubbling up any farther
	eventObj.cancelBubble = true;
	// move popup div to current cursor position 
	// (add scrollTop to account for scrolling for IE)
  var xOffset,yOffset;
  if (self.pageYOffset) // all except Explorer
  {
  	xOffset = self.pageXOffset;
  	yOffset = self.pageYOffset;
  }
  else if (document.documentElement && document.documentElement.scrollTop) // Explorer 6 Strict
  {
  	xOffset = document.documentElement.scrollLeft;
  	yOffset = document.documentElement.scrollTop;
  }
  else if (document.body) // all other Explorers
  {
  	xOffset = document.body.scrollLeft;
  	yOffset = document.body.scrollTop;
  }
	var newXCoordinate = (eventObj.pageX)?eventObj.pageX:eventObj.x + xOffset;
	var newYCoordinate = (eventObj.pageY)?eventObj.pageY:eventObj.y + yOffset;
  newYCoordinate = newYCoordinate + "px";
  newXCoordinate = eval(newXCoordinate - 180) + "px";
  	moveObject(targetObjectId, newXCoordinate, newYCoordinate);
	// and make it visible
	if( changeObjectVisibility(targetObjectId, 'visible') ) {
	    // if we successfully showed the popup
	    // store its Id on a globally-accessible object
	    window.currentlyVisiblePopup = targetObjectId;
	    return true;
	} else {
	    // we couldn't show the popup, boo hoo!
	    return false;
	}
    } else {
	// there was no event object, so we won't be able to position anything, so give up
	return false;
    }
} // showPopup

function hideCurrentPopup() {
    // note: we've stored the currently-visible popup on the global object window.currentlyVisiblePopup
    if(window.currentlyVisiblePopup) {
	changeObjectVisibility(window.currentlyVisiblePopup, 'hidden');
	window.currentlyVisiblePopup = false;
    } else {
      changeObjectClass('content','opaque');
    }
} // hideCurrentPopup



