//showSpan - get span id and show it
function showSpan(e, idname)
	{	
		try
		{
			document.getElementById("toolTipWords"+idname.id).className="toolTipLabelTextMouseUP";
			//document.getElementById(idname.id).className="toolTipLabelTextMouseUP";
			var SPAN = document.getElementById(idname.id);
			showPopUp(e, SPAN,idname);
		}
		catch(err)
		{}
	}
//HideSpan - get span id and hide it
function HideSpan(idname)
	{
		try{
			document.getElementById("toolTipWords"+idname.id).className="toolTipLabelText";
			var SPAN = document.getElementById(idname.id);
			hideToolTip(idname,SPAN);	
		}
		catch(err)
		{}
	}
	
//onLoadSpan - get span id and hide it
function onLoadSpan(idname)
	{	
		try
		{
			var SPAN = document.getElementById(idname.id);
			hideToolTip(idname.id,SPAN);
			SPAN.style.display="none";
		}
		catch(err)
		{}		
	}
	
	var tooltipID=null;
	
//showPopUp
function showPopUp(e, obj,name)
	{
		tooltipID=obj;

		ttY = e.clientY + document.body.scrollTop;
		ttX = e.clientX;	
		
		displayToolTip(name,obj);	
	}

	
//displayToolTip
function displayToolTip(idname,object1)
	{
		ttObj=object1;
		
		if (tooltipID!=null && ttObj.style.display != "inline")
		{
			var browser=navigator.appName;
			if(browser == "Microsoft Internet Explorer")
			{
				ttObj.style.display="inline";
				ttObj.style.left = ttX - 450 ;
				ttObj.style.top = ttY - ttObj.innerText.length  * 4/9  ;
			}
			else
			{
				ttObj.style.display="inline";
				ttObj.style.left = ttX - 350 ;
				ttObj.style.top = ttY - ttObj.textContent.length  *2/5 ; 
			}
		}
		else
		{
			hideToolTip(idname,object1);
		}
	}
	
//hideToolTip
function hideToolTip(idname,object1)
	{
		object1.style.display="none";
		tooltipID=null;
	}