// ----------------------------------------------------------------------------- //
//	Fonction pour gestion affichage de layers
//	Pour Netscape, notion de LAYER		OK
//	Pour MSIE, notion de LAYER		KO	=> utilisation de DIV
// ----------------------------------------------------------------------------- //
//
// Fonction pour activer/désactiver des layers superposés et donc changer l'apparence
// d'une zone en fonction du passage ou pas de la souris dessus
//
/*
function affLayer (l)
{
	// On initialise l'affichage
	if (document.layers)	document.layers[l].visibility = "show";
	if (window.sidebar)	document.getElementById(l).style.visibility="visible";
	if (document.all)	document.all[l].style.visibility="visible";
}


//
// Fonction de désactivation d'un layer ou DIV
//
function cachLayer (l)
{
	if (document.all)	{document.all[l].style.visibility="hidden"}
	if (window.sidebar)	{document.getElementById(l).style.visibility="hidden"}
	if (document.layers)	{document.layers[l].visibility="hide"}

}
*/
//
// Fonction d'ouverture de fenêtre
//
function OpenWindow(action)
{
	var wf = "";
	wf = wf + "width=" + action[2];
	wf = wf + ",height=" + action[3];
	wf = wf + ",resizable=" + (action[4] ? "yes" : "no");
	wf = wf + ",scrollbars=" + (action[5] ? "yes" : "no");
	wf = wf + ",menubar=" + (action[6] ? "yes" : "no");
	wf = wf + ",toolbar=" + (action[7] ? "yes" : "no");
	wf = wf + ",directories=" + (action[8] ? "yes" : "no");
	wf = wf + ",location=" + (action[9] ? "yes" : "no");
	wf = wf + ",status=" + (action[10] ? "yes" : "no");
	window.open(action[0],action[1],wf);
}




// AFFICHAGE DIV SUR UN LIEN

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,x,y)
	{
	
		//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=#0000FF><FONT COLOR=#000000 SIZE=2 face='Verdana'><CENTER>"+msg+"</CENTER></TD></TR></TABLE></TD></TR></TABLE>";
		content=msg;
		if (domok)
		{
			document.getElementById("topdecklink").innerHTML = content;
			if(navigator.appName.substring(0,3) == "Net")
			{
				document.getElementById("topdecklink").style.marginLeft=x+'px';
				document.getElementById("topdecklink").style.marginTop=y+'px';
			}
			//skn.visibility = "visible";
			skn.display="block";
		}
	
	}

	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;
		skn.left = x+20;
		skn.top = y+20;
	}

	function killlink()
	{
		/*
		if (domok)
			skn.visibility = "hidden";
		*/
		if (domok)
		{
			var content ="";
			document.getElementById("topdecklink").innerHTML = content;
			//skn.visibility = "hidden";
			skn.display="none";
		}
	}


// FIN AFFICHAGE DIV SUR UN LIEN


