
var texte_color = "#000000";
var texte_color_survol = "#0070c8";

var texte_color_1 = "#C40043";
var texte_color_survol_1 = "#000000";

var fond_color_survol = "";
var fond_color = "";

var fond_color_survol_1 = "";
var fond_color_1 = "";


function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function highlight(cellule)
	{
	// obj=MM_findObj('id' + cellule);
	// obj.style.background = fond_color_survol;

	 obj=MM_findObj('lien' + cellule);
	 obj.style.color = texte_color_survol;
	}

function lowlight(cellule)
	{
	// obj=MM_findObj('id' + cellule);
	// obj.style.background = fond_color;

	 obj=MM_findObj('lien' + cellule);
	 obj.style.color = texte_color;
	}

function highlight_1(cellule)
	{
	// obj=MM_findObj('id' + cellule);
	// obj.style.background = fond_color_survol_1;

	obj=MM_findObj('lien' + cellule);
	obj.style.color = texte_color_survol_1;
	}

function lowlight_1(cellule)
	{
	// obj=MM_findObj('id' + cellule);
	// obj.style.background = fond_color_1;

	obj=MM_findObj('lien' + cellule);
	obj.style.color = texte_color_1;
	}

function scrollTo( eID, dID )
	{
	var e = document.getElementById(eID);
	var d = document.getElementById(dID);
	d.scrollTop = getTop(e) - getTop(d) - 16;
	}

// From quirksmode
function getTop(el)
	{
	var curtop = 0;
	if (el.offsetParent)
		{
		while (el.offsetParent)
			{
			curtop += el.offsetTop
			el = el.offsetParent;
			}
		}
	else if (el.y)
		{
		curtop += el.y;
		}
	return curtop;
	}