function expand(calque,b_afficher)
{
	var ie4=document.all && navigator.userAgent.indexOf("Opera")==-1;
	var ns6=document.getElementById && navigator.userAgent.indexOf("Opera")==-1;
	var ns4=document.layers;		

	calque=document.getElementById(calque);

	if (calque.style) //IE
	{		
		calque.style.display=b_afficher?'block':'none';
	}
	else if (calque.display) //NS marche pas
	{
		calque.display=b_afficher?'block':'none';
	}
}

function expand2(id_obj,b_afficher)
{
	var obj;
	
	var doc=document;
	
	obj=trouve(id_obj,doc);
	
	if (obj==null)
		return;
	
	if (!obj)
		return;
	
	if (obj.style.display)
		obj.style.display=b_afficher?'block':'none';
	else if (obj.display)
		obj.display=b_afficher?'block':'none';
	else
	{
		//alert("ERREUR : votre navigateur est trop vieux !\nFaites nous part de ce problème s'il vous plait.");
	}
}

function trouve(id_obj,doc)
{
	doc=document;
	
	if (doc.getElementById)
	{
		//alert("yes 2");
		return doc.getElementById(id_obj);
		
	}
	
	if (doc.getElementsByTagName) //opera/firefox
	{
		//alert("yes 1");
		return doc.getElementsByTagName(id_obj);
	}
	
	if (doc.id_obj)
	{
		//alert("yes 3");
		return doc.id_obj;
		
	}
	
	if (doc.all) //IE 4
	{
		//alert("yes 4"); 
		return doc.all.id_obj;
		
	}
	
	return null;
}
