	domok = document.getElementById;
	
	if (domok)
		{
		//skn = document.getElementById("topdecklink").style;
		
		if(navigator.appName.substring(0,3) == "Net")
			document.captureEvents(Event.MOUSEMOVE);
		//document.onmousemove = get_mouse;
		}
	
	function poplink(msg)
	{
		var content ="<table><tr><td>"+msg+"</td></tr></table>";
		if (domok)
			{
			//document.getElementById("topdecklink").innerHTML = content;
			//skn.visibility = "visible";
			
			document.getElementById("fiche_entreprise").innerHTML = content;
			//skn_entr.visibility= "visible";
			}
	}
	
	function get_mouse(e)
		{
		var x = (navigator.appName.substring(0,3) == "Net") ? e.pageX : event.x+document.body.scrollLeft;
		var y = (navigator.appName.substring(0,3) == "Net") ? e.pageY : event.y+document.body.scrollTop;
		var decal = 0;
		if (navigator.appName.substring(0,3) == "Ope")
		{
			decal=175;
		}
		skn.left = x + 15 + decal;
		skn.top = y + 15;
		}
	
	function killlink()
	{
		if (domok)
		{
			skn.visibility = "hidden";
			document.getElementById("topdecklink").innerHTML = "";
		}
	}

	function popup_actu()
	{
		window.open("inc/actualite.php", "popup_actu", "toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, copyhistory=no, width=600, height=500, left=300, top=50");
	}
	
	/*
	 * Masque tout les niveaux 'Division' du menu NAF
	 */
	function montre(id) {
		for (i=0; i<10; i++)
		{	var tmpDiv = document.getElementById("naf_" + i);
			if (tmpDiv){	tmpDiv.style.display = 'none';	}
			
			for (j=0; j<10; j++)
			{	var tmpGr = document.getElementById("naf_gr_" + i + j);
				if (tmpGr){	tmpGr.style.display = 'none';	}
			}
		
		}

		afficheInfoNaf(id,"naf_");
	}
	
	/*
	 * Masque tout les niveaux 'Groupe' du menu NAF
	 */
	function montreGr(id) {
		for (i=0; i<100; i++)
		{
			var tmpDiv = document.getElementById("naf_gr_" + i);
			if (tmpDiv)
			{
				tmpDiv.style.display = 'none';
			}
		}
		afficheInfoNaf(id,"naf_gr_");
	}
	
	/*
	 * Affiche le niveau 'strDiv' avec le code 'id' du menu NAF
	 */
	function afficheInfoNaf(id, strDiv) {
		var d = document.getElementById(strDiv + id);
		if (d)
		{
			if (d.style.display == 'block')	
			{ 
				d.style.display = 'none';
			}
			else{
				d.style.display='block';
			}
		}
	}
		
	/*
	 * Affiche le panel contenant les informations du menu survolé.
	 */
	function affichePanel(id) {
		for (i=0; i<100; i++)
		{
			var tmpDiv = document.getElementById("panel_InfoBulle_" + i);
			if (tmpDiv)
			{
				tmpDiv.style.display = "none";
			}
		}
		
		var panel = document.getElementById("panel_InfoBulle_" + id);
		if (panel)
		{
			
			panel.style.display = "block";
		}
	}
