function getTipLayer(_index) {
	return document.getElementById('tip' + _index) || {style:{}};
}

function _showTip(_index,top,left) {
	_hideTips();
	getTipLayer(_index).style.visibility = 'visible';
	theTop = document.documentElement;
	left = theTop.scrollLeft + left;
	top = theTop.scrollTop + top;
	getTipLayer(_index).style.top = top+'px';
	getTipLayer(_index).style.left = left+'px';
}

function _hideTip(_index) {
	getTipLayer(_index).style.visibility = 'hidden';
}

function _hideTips() {
	for (var i = 0; i < 20; i++)
		_hideTip(i);
}

var _to = null;

function tipOver(_index,top,left) {
	if (_to)
		window.clearTimeout(_to);

	_to = window.setTimeout('_showTip(' + _index + ',' + top + ',' + left + ')', 200);
}

function tipOut(_index) {
	if (_to)
		window.clearTimeout(_to);
	_to = window.setTimeout('_hideTips()', 200);
}
