// JavaScript Document
<!-- 
var isPhoto;

function GetId(id)
{
return document.getElementById(id);
}
var i=false; // La variable i nous dit si la bulle est visible ou non
 
function move(e) { 
  if(i) {  // Si la bulle est visible, on calcul en temps reel sa position ideale
    if (navigator.appName!="Microsoft Internet Explorer") { // Si on est pas sous IE
    GetId("curseur").style.left=e.pageX - 10+"px";
    GetId("curseur").style.top=e.pageY + 20+"px";
    }
    else { // Modif proposÃ© par TeDeum, merci Ã   lui
    if(document.documentElement.clientWidth>0) {
GetId("curseur").style.left=20+event.x+document.documentElement.scrollLeft+"px";
GetId("curseur").style.top=10+event.y+document.documentElement.scrollTop+"px";
    } else {
GetId("curseur").style.left=20+event.x+document.body.scrollLeft+"px";
GetId("curseur").style.top=10+event.y+document.body.scrollTop+"px";
         }
    }
  }
}
 
function montre(text,photo) {
  if(i==false) {
  GetId("curseur").style.visibility="visible"; // Si il est cacher (la verif n'est qu'une securitÃ©) on le rend visible.
  GetId("curseur").innerHTML = text; // on copie notre texte dans l'Ã©lÃ©ment html
  i=true;
  }
  isPhoto = photo;
  
  if(isPhoto == 1)
{
	document.onmousemove=movePhoto;
}
else
{
	document.onmousemove=move; //  la souris bouge, on appelle la fonction move pour mettre Ã  jour la position de la bulle.
}

}
function cache() {
if(i==true) {
GetId("curseur").style.visibility="hidden"; // Si la bulle est visible on la cache
i=false;
}
}

function movePhoto(e) {
  if(i) {  // Si la bulle est visible, on calcul en temps reel sa position ideale
    if (navigator.appName!="Microsoft Internet Explorer") { // Si on est pas sous IE
	 var width  = 300;
	 var height = 200;
	 var left   = (screen.width  - width) / 1.1 ;
	 var top    = (screen.height - height) / 1.1;
    	GetId("curseur").style.left= left+"px";
    	GetId("curseur").style.top=  10 +document.documentElement.scrollTop +"px";
    }
    else { // Modif proposÃ© par TeDeum, merci Ã   lui
    if(document.documentElement.clientWidth>0) {
var width  = 300;
	 var height = 200;
	 var left   = (screen.width  - width)/2;
	 var top    = (screen.height - height)/2;
    	GetId("curseur").style.left= left+"px";
    	GetId("curseur").style.top=  10 +document.documentElement.scrollTop +"px";
    } else {
		var width  = 300;
	 var height = 200;
	 var left   = (screen.width  - width)/2;
	 var top    = (screen.height - height)/2;
    	GetId("curseur").style.left= left+"px";
    	GetId("curseur").style.top=  10 +document.body.scrolltOP+"px";

         }
    }
  }
}





function Timer(){   //Boucle de 3 seçondes (3000 miliseçondes)
   timeoutID = window.setTimeout("window.ouvre()",3000);
}

function Stop(){      //Arret de la boucle
   window.clearTimeout(timeoutID)
   document.write("<P><CENTER><B>TimeOut Annulé<B></CENTER>");
}



//-->