// JavaScript Document

var acordeon_activo = false;

var itemOrig;
function desplegar_menu(nombre,sn)
{
obj = document.getElementById(nombre);
element = document.getElementById(nombre).style;
if (sn>0)
	 //acordeon(nombre)
	 obj.style.display = "inline";
     //Effect.BlindDown(nombre,{duration:1,afterFinish:function() {acordeon_activo=false;}});
else
	 obj.style.display = "none";
	 //Effect.BlindUp(nombre,{afterFinish:function() {acordeon_activo=false;}});
}



function acordeon(elemento)//Expande las listas
	{
	var elementodiv = "div_"+elemento;
	var elementoimg = "img_"+elemento;

	element = document.getElementById(elemento).style;
	if (acordeon_activo==false){
		acordeon_activo = true;
		if (element.display == 'none')
			{
			Effect.BlindDown(elemento,{duration:1,afterFinish:function() {acordeon_activo=false;}});
			//$(elementoimg).src='images/simbolo_expandir.gif';
			}
		else
			{
			Effect.BlindUp(elemento,{afterFinish:function() {acordeon_activo=false;}});
			//$(elementoimg).src='images/simbolo_contraer.gif';
			}
		}
	}
	
