function showPlayerBox(event, element, boxType, team) {
	var leftAdjustment = 20;
	var topAdjustment = 30;
	var elLeftOffset = Element.positionedOffset(element).left;
	var elTopOffset = Element.positionedOffset(element).top;
	if (elLeftOffset > 800) { // if the are near the right edge of the page then have the tooltip appear to the left of the link
		leftAdjustment = -190;
	}
	document.getElementById(boxType).style.left = elLeftOffset + leftAdjustment + "px";
	document.getElementById(boxType).style.top = elTopOffset + topAdjustment + "px";	
	document.getElementById(boxType + 'PlayerName').innerHTML = element.innerHTML;
	document.getElementById(boxType + 'PlayerName').className = team + 'colors';
	for (i=1;document.getElementById(boxType + 'Stat' + i) != null;i++)
	{
		document.getElementById(boxType + 'Stat' + i).innerHTML = arguments[i + 2];
	}
	document.getElementById(boxType).style.display = '';
}
function hideBox(boxType) {
	document.getElementById(boxType).style.display = 'none';
}