	
function produit_choisi(Produit_Designation)
{
	obj = document.getElementById('produit_choisi_designation');
	obj.innerHTML = Produit_Designation;
}

function GetId(id)
{
	return document.getElementById(id);
}
 
var bulle_visible=false; // La variable bulle_visible nous dit si la bulle est visible ou non

function move(mouse_event)
{
	if(bulle_visible) 
	{ // Si la bulle est visible, on calcul en temps reel sa position ideale
		var info_bulle_div;
		info_bulle_div = GetId("curseur");
		if (navigator.appName!="Microsoft Internet Explorer") 
		{ // Si on est pas sous IE
			info_bulle_div.style.left = mouse_event.pageX + 5+"px";
			info_bulle_div.style.top = mouse_event.pageY + 10+"px";
		}
		else 
		{ 
				info_bulle_div.style.left = (-350)+event.clientX+document.documentElement.scrollLeft+"px";
				info_bulle_div.style.top = 15+event.clientY+document.documentElement.scrollTop+"px";
		}
	}
}

function montre(text) 
{
	if(bulle_visible == false) 
	{
		var info_bulle_div;
		info_bulle_div = GetId("curseur");
		info_bulle_div.style.visibility = "visible"; // Si la bulle est cache on la rend visible.
		info_bulle_div.style.zIndex = 100;
		info_bulle_div.innerHTML = text; 
		bulle_visible=true;
	}
}
 
function cache() 
{
	if(bulle_visible==true) 
	{
		GetId("curseur").style.visibility="hidden"; // Si la bulle etais visible on la cache
		bulle_visible=false;
	}
}

document.onmousemove=move; // des que la souris bouge, on appelle la fonction move pour mettre a jour la position de la bulle.


