var tempo = new Array ( null, null, null, null);

function getAbsPos(elt,which) 
	{
	 iPos = 0;
	 while (elt != null) 
		 {
		  iPos += elt["offset" + which];
		  elt = elt.offsetParent;
		 }
	 return iPos;
	}

function voirMenu(n,menu,decalX,decalY)
	{
	stopTempo(n);
	objIm = document.getElementById("imgref");
	var Vx = getAbsPos(objIm,"Left") ; 
	var Vy = getAbsPos(objIm,"Top") ;
	obj = document.getElementById(menu);
	obj.style.left = (Vx + decalX + 2) + "px";
	obj.style.top = (Vy + decalY + 2) + "px";
	obj.style.display="block";
	}
function cacheMenu(n)
	{
	tempo[n]=setTimeout("cache_calque(" + n + ")",100)
	}
function stopTempo(n)
	{
	if (tempo[n] != null)
		clearTimeout(tempo[n]);
	}
function cache_calque(n)
{
	document.getElementById('menu'+n).style.display = "none";
	clearTimeout(tempo[n]);
}