// FONCTIONS POUR LA CARTE DES REVENDEURS

function creatediv(){
	/*var maDiv = document.createElement("div");
	maDiv.setAttribute("id","bulle");
	maDiv.setAttribute("style", 'position: absolute; visibility:visible; top:300px; left:500px; width:100px; height:100px; background-color:#000099');
	maDiv.innerHTML="mon texte";
	document.body.appendChild(maDiv);
	alert("ici");
	//document.getElementById("bloc_contenu").appendChild(maDiv);
	//document.getElementById('mondiv').onclick =function(){alert('coucou')}*/
}

function liste_nom_departements(numero){
var liste_nom_departements;

liste_nom_departements = tmp_tab_departement_name[numero];
return liste_nom_departements;
}

function liste_textes_departements(numero){
var liste_textes_departements;

liste_textes_departements = tmp_tab_departement_texte[numero];
return liste_textes_departements;
}

decal_x = 0;
decal_y = +20;



function pop_infubulle(departement){
tmp_nomdepartement = departement+"-"+liste_nom_departements(departement);
tmp_textes_departement = liste_textes_departements(departement);

document.getElementById("bulle").innerHTML = "<table width='190' cellpadding='0' cellspacing='0'><tr><td><img src='http://www.electropower.fr/boutique_ftp/electropower_graphisme/produits-de-soudure-2.gif'></td></tr><tr><td style='padding:5px;border-left: 1px solid #000000;border-right: 1px solid #000000;background-color:#faca88'><font style='font-color:#000000;font-family:Arial;font-size:12px'><strong>"+tmp_nomdepartement+"</strong></br>"+tmp_textes_departement+"</font></td></tr><tr><td><img src='http://www.electropower.fr/boutique_ftp/electropower_graphisme/produits-de-soudure-1.gif'></td></tr></table>";

}



function suivre_souris0(e){
if (navigator.appName=="Microsoft Internet Explorer"){
	var x = event.x + document.body.scrollLeft;
	var y = event.y + document.body.scrollTop;
}else{
	var x =  e.pageX;
	var y =  e.pageY;
}

if (document.getElementById && document.getElementById("bulle") !== null){
	document.getElementById("bulle").style.left = x + decal_x;
	document.getElementById("bulle").style.top  = y + decal_y;
}

}

function start(){
	
}
window.onload = function () {
   document.onmousemove = suivre_souris0;
}



function disparaitre0(){
	document.getElementById("bulle").innerHTML = '';
}

