function ShowTooltip(event, tooltipDivId, tooltipClass) {
	var mouse_x = Event.pointerX(event);
	var mouse_y = Event.pointerY(event);
	$(tooltipDivId).setStyle (
	{
		left: (mouse_x+100)+'px',
		top: (mouse_y-222)+'px'}
	);

	if (currentTooltip != null && currentTooltip != tooltipDivId) {
		Effect.Fade(currentTooltip, { duration: 0.6 });
	}
	Effect.Appear($(tooltipDivId), { duration: 0.6 });
	currentTooltip = tooltipDivId;
}

function SelectTooltip(tooltipDivId, formId, position) {
	$(formId)['ai'][position].checked = 'checked';
	Effect.Fade(tooltipDivId, { duration: 0.6 });
	currentTooltip = null;
}

var currentTooltip = null;