if(document.layers){thisbrowser="NN4";}
if(document.all){thisbrowser="ie";}
if(!document.all && document.getElementById){thisbrowser="NN6";}

function show(numimg)
{
	if (numimg == 1 ) 
	{
		back = "background='./i/bulle1.gif'" ;
		taille ="width=150 height=150"
	}
	if (numimg == 2 ) 
	{
		back = "background='./i/bulle2.gif'" ;
		taille ="width=150 height=100"
	}
	if (numimg == 3 ) 
	{
		back = "background='./i/bulle3.gif'" ;
		taille ="width=300 height=150"
	}
	
	
	mycontent = "<table "+taille+" cellpadding=5 cellspacing=0 border=0 "+back+" ><tr><td valign=top></td></tr></table>";

	if(thisbrowser=="NN4")
	{
		document.bulle.innerHTML = mycontent;
		document.bulle.style.visibility = "visible";
	}
	if(thisbrowser=="ie")
	{
		document.all.bulle.innerHTML = mycontent;
		document.all.bulle.style.visibility = "visible";
	}
	if(thisbrowser=="NN6")
	{
		document.getElementById("bulle").innerHTML = mycontent;
		document.getElementById("bulle").style.visibility = "visible";
	}
}

function hide()
{
	if(thisbrowser=="NN4")
	{
		document.bulle.innerHTML = "";
		document.bulle.style.visibility = "hidden";
	}
	if(thisbrowser=="ie")
	{
		document.all.bulle.innerHTML = "";
		document.all.bulle.style.visibility = "hidden";
	}
	if(thisbrowser=="NN6")
	{
		document.getElementById("bulle").innerHTML = "";
		document.getElementById("bulle").style.visibility = "hidden";
	}
}

function track(e)
{
	if(!e)
	{
		e = window.event;
	}
	if(!e||(typeof(e.pageX)!='number'&&typeof(e.clientX)!='number'))
	{
		return;
	}

	if( typeof(e.pageX)=='number')
	{
		var xcoord = e.pageX;
		var ycoord = e.pageY;
	}
	else
	{
		var xcoord = e.clientX;
		var ycoord = e.clientY;
		if(!((window.navigator.userAgent.indexOf('Opera')+1)||(window.ScriptEngine&&ScriptEngine().indexOf('InScript')+1)||window.navigator.vendor=='KDE'))
		{
			if(document.documentElement&&(document.documentElement.scrollTop||document.documentElement.scrollLeft))
			{
				xcoord += document.documentElement.scrollLeft; ycoord += document.documentElement.scrollTop;
			}
			else if(document.body&&(document.body.scrollTop||document.body.scrollLeft))
			{
				xcoord += document.body.scrollLeft; ycoord += document.body.scrollTop;
			}
		}
	}

	if(thisbrowser=="NN4")
	{
		document.bulle.left = xcoord+5;
		document.bulle.top = ycoord-155;
	}
	if(thisbrowser=="ie")
	{
		document.all.bulle.style.left = xcoord+5+"px";
		document.all.bulle.style.top = ycoord-155+"px";
	}
	if(thisbrowser=="NN6")
	{
		document.getElementById("bulle").style.left = xcoord+5+"px";
		document.getElementById("bulle").style.top = ycoord-155+"px";
	}

	//window.defaultStatus = "xpos: " + xcoord + " and ypos: " + ycoord;
}