	var m_sCount = "";
	
	document.onmousemove = MouseMove;
	var m_nMouseX = 0;
	var m_nMouseY = 0;
	
	var m_bInShow = false;

function ShowTip(sCount)
{	if (!UseLayers()) return;
	
	m_bInShow = true;
	HideTip();

	document.onmousemove = MouseMove;

	document.images["img"+sCount].src = "/pics/kreis_voll.gif";
	
	m_sCount = sCount;
	sDiv = "tipp"+sCount;
	
	var nXPos = GetAbsX("a"+sCount)+32;
	var nYPos = GetAbsY("a"+sCount)+GetHeight("a"+sCount)+2;
	
	if (sCount == 12)
	{	SetWidth(sDiv, 400);
		nYPos -= GetHeight(sDiv)+16;
	}
	else
	{	SetWidth(sDiv, 240);
	}
	
	var nWidth = GetWidth(sDiv);
	var nHeight = GetHeight(sDiv);	

	var nWinX = GetWindowX();
	var nWinY = GetWindowY();
	var nWinW = GetWindowWidth()-48;
	var nWinH = GetWindowHeight()-4;

	if (ie)
	{	nWinX += document.body.scrollLeft;
		nWinY += document.body.scrollTop + m_nScrollY;
	}
	
	// Auf Seite einpassen
	if (nXPos + nWidth > nWinX + nWinW)
		nXPos = nWinX + nWinW - nWidth;
			
	if (nXPos < nWinX) nXPos = nWinX;

	if (nYPos + nHeight > nWinY + nWinH)
		nYPos = nWinY + nWinH - nHeight;

	if (nYPos < nWinY) nYPos = nWinY;
	
	SetPos(sDiv, nXPos, nYPos);
	Show(sDiv);
	m_bInShow = false;
}

function HideTip()
{	if (m_sCount+"" != "")
	{	Hide("tipp"+m_sCount);
		document.images["img"+m_sCount].src = "/pics/kreis.gif";
		m_sCount = "";
	}
}

function PrintTip(nIndex, sTxt)
{	if (!UseLayers()) return;
	document.write("<div id=\"tipp"+nIndex+"\" class=\"cTip\">");
	document.write(sTxt);
	document.write("</div>\n");
}

function MouseMove(e)
{	m_nMouseX =  e? e.pageX : window.event.x;
	m_nMouseY =  e? e.pageY : window.event.y;
    
    if (ie)
    {	m_nMouseX    += document.body.scrollLeft;
		m_nMouseY    += document.body.scrollTop;
	}
	
	// Hide?
	if (m_sCount != "" && !m_bInShow)
	{	sDiv = "tipp"+m_sCount;
		var x = GetAbsX(sDiv);
		var y = GetAbsY(sDiv)
		var w = GetWidth(sDiv);
		var h = GetHeight(sDiv);
		if (m_nMouseX < x || m_nMouseX > x+w ||
			m_nMouseY < y || m_nMouseY > y+h)
		{	sDiv = "a"+m_sCount;
			x = GetAbsX(sDiv);
			y = GetAbsY(sDiv);
			w = GetWidth(sDiv);
			h = GetHeight(sDiv);
			//alert("Hide ."+x+"."+y+"."+w+"."+h+". > "+m_nMouseX+" "+m_nMouseY);				
			if (m_nMouseX < x || m_nMouseX > x+w ||
				m_nMouseY < y || m_nMouseY > y+h)
			{	HideTip();
			}
		}
	}	
}