/*
 * By Mark Hinch for SEGA Europe
 * August 2007
 */

function errorMessage (theType, theOne) {
    (theType == "show") ? display = "block" : display = "none";
    document.getElementById (theOne + '_hover').style.display = display;
}

function showPopup (theURL, theWidth, theHeight) {
	theTop = (screen.height / 2) - (theHeight / 2);
	theLeft = (screen.width / 2) - (theWidth / 2);

	// For dual monitor set ups
	window.screenLeft ? (screenPos = window.screenLeft) : (screenPos = window.screenX);
	screenPos >= (screen.width - 10) ? (theLeft += screen.width) : theLeft = theLeft;

	window.open (theURL, "_blank","location=0,status=0,scrollbars=1,width=" + theWidth + ",height=" + theHeight + ",top=" + theTop + ",left=" + theLeft);
}
