
function Dessus(cellule, imag)
{ 
 document.getElementById(cellule).background = document.getElementById(imag).src;
}

function Hors(cellule)
{ 
  document.getElementById(cellule).background = document.getElementById("imneutre").src;
}


function Naviguer(page)
{
  window.location.href=page;
}


function MenuDessus()
{ 
    var i, args = MenuDessus.arguments;
	 for (i=0; i<(args.length); i+=1)
      {document.getElementById(args[i]).color="#FF0000";}
}

function MenuHors()
{ 
    var i, args = MenuHors.arguments;
	for (i=0; i<(args.length); i+=1)
      {document.getElementById(args[i]).color="#003366";}
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->




// Example: obj = findObj("image1");
function findObj(theObj, theDoc)
{
  var p, i, foundObj;
  
  if(!theDoc) theDoc = document;
  if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  {
    theDoc = parent.frames[theObj.substring(p+1)].document;
    theObj = theObj.substring(0,p);
  }
  if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  for (i=0; !foundObj && i < theDoc.forms.length; i++) 
    foundObj = theDoc.forms[i][theObj];
  for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
    foundObj = findObj(theObj,theDoc.layers[i].document);
  if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  
  return foundObj;
}





// * Dependencies * 
// this function requires the following snippets:
// JavaScript/readable_MM_functions/findObj
//
// Accepts a variable number of arguments, in triplets as follows:
// arg 1: simple name of a layer object, such as "Layer1"
// arg 2: ignored (for backward compatibility)
// arg 3: 'hide' or 'show'
// repeat...
//
// Example: showHideLayers(Layer1,'','show',Layer2,'','hide');
function showHideLayers()
{ 
  var i, visStr, obj, args = showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3)
  {
    if ((obj = findObj(args[i])) != null)
    {
      visStr = args[i+2];
      if (obj.style)
      {
        obj = obj.style;
        if(visStr == 'show') visStr = 'visible';
        else if(visStr == 'hide') visStr = 'hidden';
      }
      obj.visibility = visStr;
    }
  }
}

function disp(txt) {document.write(txt);}
var IB=new Object;
var nsx=0;nsy=0;
function AfficherToolTip(texte) {
contenu="<TABLE border=0 cellspacing=0 cellpadding=1><TR bgcolor='#000033'><TD><TABLE border=0 cellpadding=2 cellspacing=0 bgcolor='#FBF4C8'><TR><TD><FONT  class='texteaccueil' size='-1' face='arial' color='#000000'>"+texte+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";

	if (document.layers) {
		document.layers["bulle"].document.write(contenu);
		document.layers["bulle"].document.close();
		document.layers["bulle"].top=nsy+20;
		document.layers["bulle"].left=nsx-10;
		document.layers["bulle"].visibility="show";}
	if (document.all) {
		var f=window.event; e=f;
		doc=document.body.scrollTop;
		bulle.innerHTML=contenu;
		document.all["bulle"].style.top=f.clientY+doc+20;
		document.all["bulle"].style.left=f.x-10;
		document.all["bulle"].style.visibility="visible";

	}
}
function ns(e) {
	nsx=e.x;nsy=e.y;
}
function CacherToolTip() {
	if (document.layers) {document.layers["bulle"].visibility="hide";}
	if (document.all) {document.all["bulle"].style.visibility="hidden";}
}

function InitialiserToolTip(ColTexte,ColFond,ColContour,NbPixel) {
	IB.ColTexte=ColTexte;IB.ColFond=ColFond;IB.ColContour=ColContour;IB.NbPixel=NbPixel;
	if (document.layers) {
		window.captureEvents(Event.MOUSEMOVE);window.onMouseMove=ns;
		document.write("<LAYER name='bulle' top=0 left=0 visibility='hide'></LAYER>");
	}
	if (document.all) {
		document.write("<DIV id='bulle' style='position:absolute;top:0;left:0;visibility:hidden'></DIV>");
	}
}
	InitialiserToolTip("navy","orange","navy",1);




