<!--//
if (navigator.appName != "Netscape")
	document.write('<div id="tooltip" style="position:absolute;visibility:hidden">Tooltip</div>');

var widget;
var timerID;
var x,y;

function help(text)
{
	if (!text || text == '') text = event.srcElement.title;
	else event.srcElement.title = text;

	if (!text || text == '') return;

	window.status = text;
	widget = event.srcElement;
	if (widget.tagName == 'SELECT') // hack for IE5+ to display tooltips with SELECT droplists
	{
		tooltip.innerText = text;
		tooltip.style.border = '1px solid black';
		tooltip.style.paddingLeft = 2;
		tooltip.style.paddingRight = 2;
		tooltip.style.paddingTop = 1;
		tooltip.style.paddingBottom = 1;
		tooltip.style.fontFamily = 'Tahoma';
		tooltip.style.fontSize = '8pt';
		tooltip.style.backgroundColor = 'lightyellow';
		tooltip.style.layerBackgroundColor = 'lightyellow';
		document.onmousemove = moveToolTip;
		widget.onclick = hideToolTip;
		x = -1;
		y = -1;
		moveToolTip();
	}

	widget.onmouseout = hideToolTip;
}

function showToolTip()
{
	if (timerID) clearTimeout(timerID);
	tooltip.style.visibility = '';
	timerID = setTimeout("hideToolTip()", 5000);
}

function moveToolTip()
{
	var reallyMoved = (x != event.x || y != event.y);
	if (!reallyMoved) return;

	x = event.x;
	y = event.y;

	if (timerID) clearTimeout(timerID);

	if (tooltip.style.visibility == 'hidden') // not up yet
	{
		timerID = setTimeout("showToolTip()", 500);
		tooltip.style.pixelLeft = document.body.scrollLeft + x - 2
		tooltip.style.pixelTop = document.body.scrollTop + y + 19;
	}
	else
	{
		timerID = setTimeout("hideToolTip()", 5000);
	}
}

function hideToolTip()
{
	if (widget && widget.tagName == 'SELECT') // hack for IE5+ to display tooltips with SELECT droplists
	{
		if (timerID) clearTimeout(timerID);
		document.onmousemove = '';
		widget.onmouseout = '';
		widget.onclick = '';
		timerID = null;
		x = -1;
		y = -1;
		tooltip.style.visibility = 'hidden';
	}

	window.status = '';
	widget = null;
}
//-->
