ouvert = 1000;
function deroule (e, id, couleur, table)
{

  






document.getElementById('fleche'+e).style['visibility'] = 'visible';
document.getElementById('fsc').getElementsByTagName('li')[e].style['display'] = 'block';

	if (ouvert != 1000)
	{
	document.getElementById('lien'+ouvert).style['fontWeight'] = 'normal';

	document.getElementById('fleche'+ouvert).style['visibility'] = 'hidden';
		document.getElementById('fsc').getElementsByTagName('li')[ouvert].style['display'] = 'none';
		
		
	}
	
	if(ouvert == e)
	{
			
	ouvert = 1000;
	}
	else
	{
		ouvert = e;
document.getElementById('lien'+e).style['fontWeight'] = 'bold';

	
	
	  var xhr2=null;
    
    if (window.XMLHttpRequest) { 
        xhr2 = new XMLHttpRequest();
    }
    else if (window.ActiveXObject) 
    {
        xhr2 = new ActiveXObject("Microsoft.XMLHTTP");
    }

    xhr2.onreadystatechange = function() { retourTele(xhr2); };


    xhr2.open("GET", chemin+"/php/ajaxTelechargements.php?langue="+id_langue+"&id="+id+"&couleur="+couleur+"&table="+table, true);
    xhr2.send(null);
	
	}
	
	
}


function retourTele(xhr2)
{
    if (xhr2.readyState==4) 
    {
		
		document.getElementById("ajax").innerHTML = xhr2.responseText;

	}
}

