///----------------------------------------------------------------
/// Begin : NisTech TopicTip Web Control client side script

var g_TipOffTimeout = null;

function LabelTipOn(id, evtEvent)
{
	return;
	var x = evtEvent.clientX;
	var y = evtEvent.clientY;
	var ctlTip = document.getElementById(id);	
	
	ctlTip.m_nTimeoutID = window.setTimeout(function (){LabelTipOn_Timeout(ctlTip, x, y)}, 500);
}

function LabelTipOn_Timeout(ctlTip, nMouseX, nMouseY)
{
	var nTargetY;
	var nTargetX;
	
	ctlTip.m_nTimeoutID = null;
	
	var dim = new NTGetElementDims(ctlTip, false);
	
	nTargetY = document.body.scrollTop + nMouseY;
	if (nMouseX + 6 + dim.Width >= document.body.clientWidth)
		nTargetX = document.body.clientWidth - dim.Width - 1 + document.body.scrollLeft;
	else
		nTargetX = document.body.scrollLeft + nMouseX + 6;
	
	ctlTip.style.left = nTargetX;
	ctlTip.style.top = nTargetY;	
	
	if (document.all && document.readyState == "complete")
	{
		if (ctlTip.MaskFrame == null)
		{
			var oIFR = document.createElement('iframe');
			
			oIFR.style.top = nTargetY;
			oIFR.style.left = nTargetX;
			oIFR.style.width = dim.Width;
			oIFR.style.height = dim.Height;
			oIFR.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=0)";
			oIFR.scrolling = 'no';
			oIFR.frameBorder = 'no';			
			oIFR.style.position = 'absolute';
			oIFR.style.zIndex = 1;
			oIFR.style.display = '';
			ctlTip.style.zIndex = 2;
			document.body.appendChild(oIFR);
			//ctlTip.appendChild(oIFR);
			ctlTip.MaskFrame = oIFR;
		}
		else
		{
			ctlTip.MaskFrame.style.top = nTargetY;
			ctlTip.MaskFrame.style.left = nTargetX;
			ctlTip.MaskFrame.style.display = '';			
		}
	}
		
	if (ctlTip.m_nOffTimeoutID != null)
		window.clearTimeout(ctlTip.m_nOffTimeoutID);
	
	ctlTip.m_nOffTimeoutID = window.setTimeout("LabelTipOff('" + ctlTip.id + "')", 6000, "JavaScript");	
	ctlTip.style.display = '';
}

function LabelTipOff(id)
{
	return;
	var ctlTip = document.getElementById(id);
	
	if (ctlTip.m_nTimeoutID != null)
	{
		window.clearTimeout(ctlTip.m_nTimeoutID);
		return;
	}	

	if (ctlTip.m_nOffTimeoutID != null)
	{
		window.clearTimeout(ctlTip.m_nOffTimeoutID);
		ctlTip.m_nOffTimeoutID = null;
	}
	
	if (ctlTip.MaskFrame)
		ctlTip.MaskFrame.style.display = 'none';
	ctlTip.style.display = 'none';
}

/// End : NisTech TopicTip Web Control client side script
///----------------------------------------------------------------

