wmtt = null; 
icons = null;
document.onmousemove = updateToolTip;
 
function updateToolTip(e) 
{ 
	if (wmtt != null && wmtt.style.display == 'block') 
	{ 
		x = (document.all) ? e.clientX + (document.documentElement.scrollLeft | document.body.scrollLeft) : e.pageX;
		y = (document.all) ? e.clientY + (document.documentElement.scrollTop  | document.body.scrollTop)  : e.pageY;

		wmtt.style.left = (x + 10) + "px"; 
		wmtt.style.top = (y + 15) + "px"; 
	} 
} 

function showToolTip(id) 
{ 
	wmtt = document.getElementById(id); 
	wmtt.style.display = "block"; 
} 

function hideToolTip() 
{ 
	wmtt.style.display = "none"; 
} 

function showMoveIcons(id) 
{ 
	icons = document.getElementById("move_icons_" + id);
	icons.style.display = "inline";
}

function hideMoveIcons(id) 
{ 
	icons = document.getElementById("move_icons_" + id);
	//alert("hide: " + icons.id + " (is now: " + icons.display + ")");
	icons.style.display = "none";
	//alert("hide: " + icons.id + " (is now: " + icons.display + ")");
}

function onLoad()
{
	all_icons = document.getElementsByName("move_icons");
	for(i=0; i < all_icons.length; ++i)
	{
		all_icons[i].style.display = "none";
	}
}
