function hidehide(nom)
{
document.getElementById(nom).style.visibility = 'hidden';
}

function showshow(nom)
{
	document.getElementById(nom).style.visibility = 'visible';
}

function timeron(nom)
{
	clearTimeout(timeoff);
	showshow(nom);	
}

function timeroff(nom)
{
	timeoff = setTimeout('timerclose("'+nom+'");', 50);
}

function timerclose(nom)
{
	hidehide(nom);
}

////////////////////

//le nombre d'items
total = 3;
/*
http://www.espacejavascript.com
*/
control = total+1;

function cache(n)
{
	document.getElementById(n).style.visibility = 'hidden';
}

function montre(n)
{
	document.getElementById(n).style.visibility = 'visible';
	document.getElementById(n).style.left = event.clientX + document.body.scrollLeft;
	document.getElementById(n).style.top = event.clientY + document.body.scrollTop;
}

function controle(n)
{	for(i = 1; i < control; i++)
	{
		if((document.getElementById(i).style.visibility = 'visible')&&(i != n))
		{ 
			document.getElementById(i).style.visibility = 'hidden';
		}
	}
}