var functionTimer;
window.onerror=null;
function toggleFunctions(openerEl,functionID)
{
	window.onerror=null;
	if(functionTimer)
		window.clearTimeout(functionTimer);
		
	var pre=document.getElementById("globalFunction");

	if(!pre)
	{
		var el=document.createElement("DIV");
		el.id="globalFunction";
		el.className="functions";
		document.body.appendChild(el);
		pre=document.getElementById("globalFunction");
	}

	pre.innerHTML=document.getElementById(functionID).innerHTML.replace(functionID,"kogle");
	pre.style.display="block";
	pre.style.position="absolute";
	
	for(var i=0;i<pre.childNodes.length;i++)
	{
		if(pre.childNodes[i].tagName)
		{
			try
			{
				pre.childNodes[i].style.textAlign="right";
			}
			catch(e){}
		}
	}
	var p=grp(openerEl);
	
	var OL=1;
	var TL=0;	
	try
	{
		if(navigator.userAgent.indexOf("MSIE")>-1&&((openerEl.parentNode.tagName=="TD"&&openerEl.parentNode.align=="right")||(openerEl.parentNode.parentNode.tagName=="TD"&&openerEl.parentNode.parentNode.align=="right")))
			OL=6;
	}
	catch(e){}
	try
	{
		if(navigator.userAgent.indexOf("MSIE")>-1&&((openerEl.parentNode.tagName=="TD"&&openerEl.parentNode.vAalign!="top")||(openerEl.parentNode.parentNode.tagName=="TD"&&openerEl.parentNode.parentNode.vAlign!="top")))
			TL=3;
	}
	catch(e){}
	pre.style.top=(p.y+openerEl.offsetHeight-TL)+"px";
	pre.style.left=(p.x-OL)+openerEl.offsetWidth-pre.offsetWidth+"px"
	functionTimer = setTimeout('closeFunctions("globalFunction")',3000);
	pre.onmouseout=function()
	{
		try
		{
			var to=event.target||event.toElement
			if(to&&(to==this||to.parentNode==this||to.parentNode.parentNode==this))
				return false;
		}catch(e){}
		if(functionTimer)
			clearTimeout(functionTimer)
		functionTimer = setTimeout('closeFunctions("globalFunction")',3000);
	}
	pre.onmouseover=function()
	{
		if(functionTimer)
			clearTimeout(functionTimer)
	}
}

function clearFunctionsTimer(){
  clearTimeout(functionTimer);
}

function startFunctionsTimer(functionID){
  functionTimer = setTimeout('closeFunctions("'+functionID+'")',500);
}

function closeFunctions(functionID){
  document.getElementById(functionID).style.display = 'none';
}
function grp(eEl)
{
    for(var x=eEl.offsetLeft,y=eEl.offsetTop;eEl.offsetParent;x+=eEl.offsetLeft,y+=eEl.offsetTop)
        eEl=eEl.offsetParent;
    return {x:x,y:y};
}

try
{
window.attachEvent("onload",function(){setTimeout('document.styleSheets[0].addRule()',10)})
}
catch(e){}