var aObjets = new Array;

function icoShowHide(nom)
{
	var idImg;
	var Img = new Image();
	var str = new String();

	Img = document.getElementById("img"+nom);
	Contenu = document.getElementById(nom);
	str = Img.src;
//	if (str.search("puce-plus.gif") != -1)
	if (Contenu.style.display == 'none')
	{
		Img.src = "img/gris/puce-moins_over.gif";
//		Contenu.style.visibility = 'visible';
		Contenu.style.display = 'inline';
	}
	else
	{
		Img.src = "img/gris/puce-plus_over.gif";
		Contenu.style.display = 'none';
	}
}

function icoMouseOver(nom)
{
	var Img = new Image();
	var str = new String();

	Img = document.getElementById("img"+nom);
	Contenu = document.getElementById(nom);
//	str = Img.src;
//	if (str.search("puce-plus.gif") != -1)
	if (Contenu.style.display == 'none')
		Img.src = "img/gris/puce-plus_over.gif";
	else
		Img.src = "img/gris/puce-moins_over.gif";
	return true;
}

function icoMouseOut(nom)
{
	var Img = new Image();
	var str = new String();

	Img = document.getElementById("img"+nom);
	Contenu = document.getElementById(nom);
	/*
	str = Img.src;
	if (str.search("puce-plus_over.gif") != -1)
	{
		Img.src = "img/gris/puce-plus.gif";
	}
	else
	{
		Img.src = "img/gris/puce-moins.gif";
	}
	*/
	if (Contenu.style.display == 'none')
		Img.src = "img/gris/puce-plus.gif";
	else
		Img.src = "img/gris/puce-moins.gif";
	
	return true;
}


var oldColor = "" ;
var oldImg = "" ;

function rowHilight(row, active, hilightColor, hilightImg)
{
//	if	(!hilightColor) hilightColor="#EEEEFF";
//	if	(!hilightColor) hilightColor="#DDDDDD";
//	if	(!hilightColor) hilightColor="#F3F3F3";
	if	(!hilightColor) hilightColor="#F6EAEA";
	

	if (active)
	{
		oldColor = row.style.backgroundColor ;
		oldImg = row.style.backgroundImage ;
        if	(hilightImg)
        	row.style.backgroundImage = hilightImg ;
        else
        	row.style.backgroundImage = "" ;
        row.style.backgroundColor = hilightColor ;
	}
	else
	{
		if (oldImg != "") row.style.backgroundImage = oldImg ;
		row.style.backgroundColor = oldColor ;
    	oldColor = "" ;
    	oldImg = "" ;
	}
}

function showHide(id)
{
	var objObjet;
	var objImg;

    objObjet = document.getElementById(id);
    objImg = document.getElementById("IMG"+id);
    if (objObjet.style.display == 'none')
    {
		objObjet.style.display = 'block';
		objImg.src = "img/explMoins.gif";
    }
    else
    {
        objObjet.style.display = 'none';
        objImg.src = "img/explPlus.gif";
    }
}