function toolTip(that, theText) {
	
	var theDiv = document.getElementById('toolTipContent');
	
	theDiv.innerHTML = theText;
	
	if (theDiv.style.display == "block") {
		theDiv.style.display = "none";
		theDiv.style.visibility = "hidden";
		theDiv.style.width = "250px";
	} else {
		
		theDiv.style.top = sitefindPosYById(that) + 10 + 'px';
		theDiv.style.left = sitefindPosXById(that) + 25 + 'px';;
		theDiv.style.display = "block";
		theDiv.style.visibility = "visible";
	}
	

}

function sitefindPosXById(object)
{
	var curleft = 0;
	var obj = object;

	if(obj.offsetParent != null)
	{
		while(obj.offsetParent)
		{
			curleft += obj.offsetLeft - obj.scrollLeft;
			obj = obj.offsetParent;
		}
	}
	else if(obj.x)
	{
		curleft += obj.x;
	}

	return curleft;
}

function sitefindPosYById(object)
{
	var curtop = 0;
	var obj = object;

	if(obj.offsetParent)
	{
		while(obj.offsetParent)
		{
			curtop += obj.offsetTop;
			obj = obj.offsetParent;
		}
	}
	else if(obj.y)
	{
		curtop += obj.y;
	}
	return curtop;
}
