var marge_x = 0;
var marge_y = 20;

var x = 0;
var y = 0;

var largeur = 0;
var IDBOX_title = "detail_act";
var IDBOX_width = 200;
var boxup = 0;

	function largeur_fenetre()
	{
	 if (window.innerWidth) return window.innerWidth;
	 else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
	 else return 0;
	}

	function mouseMove (evt){
		if (document.layers) {
			x=evt.x+document.body.scrollLeft; y=evt.y+document.body.scrollTop;
		} 
		if (document.all){
			x=event.clientX+document.body.scrollLeft; y=event.clientY+document.body.scrollTop;
		} else {
			if (document.getElementById){
				x=evt.clientX+document.body.scrollLeft; y=evt.clientY+document.body.scrollTop; 
			}
		}
		
			if (boxup == 1)
			MoveBox(IDBOX_title,x,y);
	} 
	
	function MoveBox(id,x,y){
	var IDBOX = document.getElementById(id);

			IDBOX.style.left = x - marge_x - IDBOX_width;

		IDBOX.style.top = y + marge_y;
	}
	
	if (document.layers) 
	document.captureEvents(Event.MOUSEMOVE); 
	if (document.layers || document.all) 
	document.onmousemove = mouseMove; 
	if (document.addEventListener) 
	document.addEventListener('mousemove', mouseMove, true); 

	largeur = largeur_fenetre();
	
	function ShowHelp(strTexte,td_obj){
		boxup = 1;
		td_obj.style.cursor='pointer'
		var IDBOX = document.getElementById(IDBOX_title);
    
		IDBOX.innerHTML = strTexte;
		IDBOX.style.width = IDBOX_width;
		IDBOX.style.display = "inline";
	}
	
	function HideHelp(){
		boxup = 0;
		var IDBOX = document.getElementById(IDBOX_title);
		IDBOX.style.display = "none";
	}