function GetId(id) { return document.getElementById(id); }
				
function minimenu(nom,text,e) {
	if (!e) var e = window.event;
	GetId(nom).style.visibility="visible";
	GetId(nom).innerHTML = text;
	
	if (navigator.appName!="Microsoft Internet Explorer") {
		GetId(nom).style.left=e.pageX +20 + "px";
		GetId(nom).style.top=e.pageY -10 + "px";
	} else {
		if(document.documentElement.clientWidth>0) {
			GetId(nom).style.left=20 + window.event.x+document.documentElement.scrollLeft+"px";
			GetId(nom).style.top= -10 + window.event.y+document.documentElement.scrollTop+"px";
		} else {
		   	GetId(nom).style.left=20 + window.event.x+document.body.scrollLeft+"px";
		   	GetId(nom).style.top= -10 + window.event.y+document.body.scrollTop+"px";
		}
	}
	return false;
}

function cacheminimenu(nom) { GetId(nom).style.visibility="hidden"; }

var estVisible=false; 

function deplace(e) {
  if(estVisible) {
    if (navigator.appName!="Microsoft Internet Explorer") {
    GetId("bubulle").style.left=e.pageX - 20 +"px";
    GetId("bubulle").style.top=e.pageY + 10+"px";
    }
    else {
    if(document.documentElement.clientWidth>0) {
    	if (event.x>documentElement.clientWidth-200)
	    {
      	  GetId("bubulle").style.left=-120+event.x+document.documentElement.scrollLeft+"px";
      	  GetId("bubulle").style.top=20+event.y+document.documentElement.scrollTop+"px";
	    }
    	else
    	{
    		GetId("bubulle").style.left=-20+event.x+document.documentElement.scrollLeft+"px";
	      	GetId("bubulle").style.top=20+event.y+document.documentElement.scrollTop+"px";
    	}
    }
    else {
	    if (event.x>document.body.clientWidth-200)
	    {
       		GetId("bubulle").style.left=-120+event.x+document.body.scrollLeft+"px";
        	GetId("bubulle").style.top=20+event.y+document.body.scrollTop+"px";
	    }
	    else
	    {
	    	GetId("bubulle").style.left=-20+event.x+document.body.scrollLeft+"px";
	        GetId("bubulle").style.top=20+event.y+document.body.scrollTop+"px";  
	    }
	    
    }
    }
  }
}

document.onmousemove=deplace; 

function montre(text) {
  if(estVisible==false) {
	  GetId("bubulle").style.visibility="visible"; 
	  GetId("bubulle").innerHTML = text;
	  estVisible=true;
  }
}

function cache() {
	if (estVisible==true) {
		GetId("bubulle").style.visibility="hidden";
		GetId("bubulle").style.left = -1000;
		estVisible=false;
	}
}

function metsSablier(id) { GetId(id).innerHTML='<img src="temps.gif">'; }