function getTipLayer(_index) {
	return document.getElementById('tip' + _index) || {style:{}};
}

function _showTip(_index) {
	_hideTips();
	getTipLayer(_index).style.visibility = 'visible';
}

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) {
	if (_to)
		window.clearTimeout(_to);

	_to = window.setTimeout('_showTip(' + _index + ')', 200);
}

function tipOut(_index) {
	if (_to)
		window.clearTimeout(_to);
	_to = window.setTimeout('_hideTips()', 1000);
}

