document.currentSub = null;
		
function hideCurrentSub()
{
	if (document.currentSub)
	{
		document.currentSub.style.visibility = 'hidden';
		document.currentSub.style.display = '';
		
	}
}

function showSubMenu(name,eventObj,target,offsetX,offsetY)
{
	var c = getAnchorPosition(name);
	if(eventObj)
	{
		eventObj.cancelBubble = true;
	}
	if (document.getElementById)
	{
		var o = document.getElementById(target);
		document.currentSub = o;
		if (o.style)
		{
			
			o.style.visibility = 'visible';
			o.style.display = 'block';
			
			o.style.left = c.x+offsetX;
			o.style.top = c.y+offsetY;
		}
	}
	
}