function PopupImage(img) {
	titre=":: site ::";
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=no');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
	
	if (navigator.appName == 'Microsoft Internet Explorer') {	
		w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+11,document.images[0].height+80); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");			
	}else{
		w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+6,document.images[0].height+54); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");			
	}	
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><IMG src='"+img+"' border=0>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}


function RunFoo(swf, largeur, hauteur) {
	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" height=\""+hauteur+"\" width=\""+largeur+"\">");
	document.write("<param name=\"movie\" value=\""+swf+"\" />");
	document.write("<param name=\"quality\" value=\"best\" />");
	document.write("<param name=\"wmode\" value=\"transparent\" />");
	document.write("<embed height=\""+hauteur+"\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" src=\""+swf+"\" type=\"application/x-shockwave-flash\" width=\""+largeur+"\" quality=\"best\" wmode=\"transparent\">");
	document.write("</object>");
}



// bulle
	function montre(nom,type) {
		if(type=='0') document.getElementById(nom).style.display='none';
		else document.getElementById(nom).style.display='block';
	}
	
	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 + 5+"px";
	    	GetId("curseur").style.top=e.pageY - 40 +"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=-40+event.y+document.documentElement.scrollTop+"px";
	    } else {
			GetId("curseur").style.left=20+event.x+document.body.scrollLeft+"px";
			GetId("curseur").style.top=-40+event.y+document.body.scrollTop+"px";
		     }
	    }
	  }
	}
 
	function montrebulle(text) {
	  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; // Cette fonction est a amÃ©liorer, il parait qu'elle n'est pas valide (mais elle marche)
	  i=true;
	  }
	}
	function cache() {
		if(i==true) {
		GetId("curseur").style.visibility="hidden"; // Si la bulle etais visible on la cache
		i=false;
		}
	}
	document.onmousemove=move; // des que la souris bouge, on appelle la fonction move pour mettre a jour la position de la bulle.
	
<!--
var detail = new Array();
detail[0] = "cuvesfuel";
detail[1] = "stationscompactes";
detail[2] = "reservoirstransfert";
detail[3] = "cuveseau";
detail[4] = "cuvesdiverses";
detail[5] = "cuvesoccaz";
detail[6] = "reservoirsbio";
detail[7] = "accessoires";


function affiche2(calque){
	for(var i = 0; i< detail.length;i++){
		document.getElementById(detail[i]).style.visibility="hidden";
	}
	document.getElementById(calque).style.visibility="visible";
	
}
//-->
	
	