
/*-----------------------------------------------------------------------------/
// �Լ�� : Tooltip Code
// �ۼ��� : Martin
// ��d�� : �ӿp� (Web team)
// ��d�� : 2007-01-25
------------------------------------------------------------------------------*/

is_safari = ((navigator.userAgent.indexOf("Safari")!=-1))?true:false;
isShowing = false;

function showTip(toolTipContent)
{
  isShowing = true;
  document.getElementById("toolBox").style.left = mouseX+10+"px";
  document.getElementById("toolBox").style.top = mouseY+10+document.body.scrollTop+"px";
  document.getElementById("tooltipText").innerHTML = toolTipContent;
  document.getElementById("toolBox").style.display = "block";
  document.getElementById("toolBox").style.zIndex = "50000";
}

function hideTip()
{
  document.getElementById("toolBox").style.display = "none";
  isShowing = false;
}

function tipPosition(callingEvent)
{
  if (!callingEvent) callingEvent = window.event;
  mouseX = callingEvent.clientX;
  mouseY = callingEvent.clientY-1;

  if (isShowing)
  {
	document.getElementById("toolBox").style.left = mouseX+10+"px";
	document.getElementById("toolBox").style.top = (!is_safari) ? mouseY+10+document.body.scrollTop+"px" : mouseY+10+"px" ;
  }
}
document.onmousemove = tipPosition;

