var Xoffset ;
Xoffset = (screen.width/2 + 250);
Yoffset = -25;
var isNS4=document.layers?true:false;
var isIE=document.all?true:false;
var isNS6=!isIE&&document.getElementById?true:false;
var old=!isNS4&&!isNS6&&!isIE;

var skn;
function initThis()
{
if(isNS4) skn=document.definition;
if(isIE) skn=document.all.definition.style;
if(isNS6) skn=document.getElementById("definition").style;
}

function popup(_p,_d)
{
if (_p!="D" && _p!="G")
	{
	Xoffset = (140);
	Yoffset = -25;
	var content="<TABLE  width=300><TR><TD VALIGN=Top><IMG SRC=d_fleche_gauche.gif></TD><TD><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0  ><TR><TD ROWSPAN=2 COLSPAN=2 VALIGN=Top ALIGN=Left><IMG SRC=coin_hg.gif BORDER=0></TD><TD HEIGHT=1 BGCOLOR=#9F7DFF></TD><TD ROWSPAN=2 COLSPAN=2 VALIGN=Top ALIGN=Right><IMG SRC=coin_hd.gif BORDER=0></TD></TR><TR><TD HEIGHT=4></TD></TR><TR><TD WIDTH=1 BGCOLOR=#8555FF><BR></TD><TD WIDTH=4><BR></TD><TD bgcolor=#FFF3DF><b><font color=#000080> MAJ :</font><font color=#0000FF><BR>"+_p+"</font><BR><font color=#000080>Précédente :<BR></font><font color=#0000FF>"+_d+"</font></b></TD><TD WIDTH=4><BR></TD><TD WIDTH=1 BGCOLOR=#8555FF><BR></TD></TR><TR><TD ROWSPAN=2 COLSPAN=2 VALIGN=Bottom ALIGN=Left><IMG SRC=coin_bg.gif BORDER=0></TD><TD HEIGHT=4></TD><TD ROWSPAN=2 COLSPAN=2 VALIGN=Bottom ALIGN=Right><IMG SRC=coin_bd.gif BORDER=0></TD></TR><TR><TD HEIGHT=1 BGCOLOR=#9F7DFF></TD></TR></TABLE></TD></TR></TABLE>";
	}
else if (_p=="D")
	{
	Xoffset = (screen.width/2 + 250);
	Yoffset = -60;
	var content="<TABLE><TR VALIGN=Center><TD><IMG SRC=../../Cadre/p_fleche_gauche.gif></TD><TD><IMG SRC="+_d+"></TD></TR></TABLE>";
	}
else if (_p=="G")
	{
	Xoffset = (screen.width/2 - 465);
	Yoffset = -60;
	var content="<TABLE><TR VALIGN=Center><TD><IMG SRC="+_d+"></TD><TD><IMG SRC=../../Cadre/p_fleche_droite.gif></TD></TR></TABLE>";
	}
if(old)
	{
	alert("You have an old web browser:\n"+_m);
	return;
	}
else
	{
	if(isNS4)
		{
		skn.document.open();
		skn.document.write(content);
		skn.document.close();
		skn.visibility="visible";
		}
	if(isNS6)
		{
		document.getElementById("definition").style.position="absolute";
		document.getElementById("definition").style.left=x;
		document.getElementById("definition").style.top=y;
		document.getElementById("definition").innerHTML=content;
		skn.visibility="visible";
		}
	if(isIE)
		{
		document.all("definition").innerHTML=content;
		skn.visibility="visible";
		}
	}
}

var y;
function get_mouse(e)
{
y=(isNS4||isNS6)?e.pageY:event.clientY+document.body.scrollLeft;
if(isIE&&navigator.appVersion.indexOf("MSIE 4")==-1)
	y+=document.body.scrollTop;
skn.left=Xoffset;
skn.top=y+Yoffset;
}


function removeBox()
{
if(!old)
	{
	skn.visibility="hidden";
	}
}


if(isNS4)
	document.captureEvents(Event.mousemove); 
if(isNS6)
	document.addEventListener("mousemove", get_mouse, true);
if(isNS4||isIE)
	document.onmousemove=get_mouse;
