window.onload = initMap;

function initMap(){
	
	domok = document.getElementById;
	if (domok)
	{
		if(navigator.appName.substring(0,3) == "Net"){
			document.captureEvents(Event.MOUSEMOVE);
		}
		
		document.onmousemove = get_mouse;
		
	}
}

function poplink(msg)
{
//alert("poplink")
domok = document.getElementById;
var content ="<table border=0 cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td><table width=100% border=0 cellpadding=2 cellspacing=1><tr><td bgcolor=#FFFFFF><span class=vert10><center><font size=1 color=#000000 face=Arial>"+msg+"</font></center></span></td></tr></table></td></tr></table>";
if (domok)
{
document.getElementById("topdecklink").innerHTML = content;
document.getElementById("topdecklink").style.visibility = "visible";
}
}
function get_mouse(e)
{
var x = (navigator.appName.substring(0,3) == "Net") ? e.pageX - 230 : event.x+document.body.scrollLeft;
var y = (navigator.appName.substring(0,3) == "Net") ? e.pageY - 335 : event.y+document.body.scrollTop;

if(y < 430 && x<370){// on reduit le champ d'action
	document.getElementById("topdecklink").style.left = (x - 60)+"px";
	document.getElementById("topdecklink").style.top = (y+20)+"px";
	}

}
function killlink()
{
domok = document.getElementById;
//alert("killink sur "+document.getElementById("topdecklink"))
document.getElementById("topdecklink").style.visibility = "hidden";
}

function setDep(dep)
{
	document.choixdep.dep.value = dep;
	document.choixdep.submit();
}