document.write("<div id=toolTipLayer style='position:absolute;display:none;visibility:hidden;width:250px;z-index:100;border:1px solid #a0a0a0;background-color:#FFFFE1;F1F0CE;font-family:arial;'></div>")

function hideToolTip()
{
	hideContainer("toolTipLayer");
	if(currentSelects!=null) showContainerStat(currentSelects);
	event.srcElement.style.cursor="deault";
}

toolTipOffset = 10;

function showToolTip(toolTipText)
{
	pageHeight   = document.body.scrollHeight
	//if(pageHeight<document.body.clientHeight) pageHeight=document.body.clientHeight
	//alert("pageHeight"+pageHeight+"\nwindow Height"+ document.body.clientHeight)
	clientHeight = document.body.clientHeight

	currentSelects = arguments[1];
	if(currentSelects!=null) hideContainerStat(currentSelects);

	tdText = event.srcElement.innerHTML;
	tdText = event.srcElement.innerText;

	if(event.srcElement.tagName=="FONT") tdText = event.srcElement.parentElement.innerHTML

	if(tdText.indexOf("<")>0) tdText = tdText.substring(0,tdText.indexOf("<"))

	toolTipHeader = "<table cellspacing=0 cellpadding=3 border=0 width=100%><tr bgcolor=#656565><td align=center style='font-size:12px;font-weight:bold;color:white;'>" + tdText +"</td></tr><tr><td style='font-size:12px;color:black;line-height:19px;'>";
	toolTipFooter = "</td></tr></table>"
	

	//toolTipLayer.innerHTML= toolTipText;
	toolTipLayer.innerHTML= toolTipHeader + toolTipText + toolTipFooter;
	showContainer("toolTipLayer");

	toolTipHeight = toolTipLayer.clientHeight
	eventPosition = event.y + document.body.scrollTop;
	toolTipTopPosition = eventPosition+toolTipOffset;
	toolTipBottomPixel = toolTipTopPosition + toolTipHeight;

	if( (eventPosition+toolTipHeight)  > pageHeight)
	{
		toolTipTopPosition = (pageHeight - toolTipHeight - 5);
	}
	if( (eventPosition+toolTipHeight)>(document.body.clientHeight + document.body.scrollTop) )
	{

		toolTipTopPosition = (document.body.clientHeight+document.body.scrollTop)-(toolTipHeight);
		//window.status =document.body.scrollTop+"\n"+(document.body.clientHeight+document.body.scrollTop)+"\n"+(eventPosition+toolTipHeight);
	}
	if(toolTipTopPosition<0)	toolTipTopPosition=0;

	toolTipLayer.style.top=toolTipTopPosition;
	toolTipLayer.style.left=event.x + toolTipOffset;
	//event.srcElement.style.cursor="help";

}