var arraux = new Array();
var arrimgaux = new Array();
function mostrar_op(objeto,imag,rut1,rut2,todos)
{
	if(objeto == 'evento-1'){
		return false;
	}
	if (todos){//los pliego todos buscando la imagen
		for (x=0;x<arraux.length;x++){
			if (arraux[x]!=document.getElementById(objeto).style){   	  
				arraux[x].visibility = 'hidden';
				arraux[x].display = "none";
				arrimgaux[x].src=rut1;
			}
			arraux = new Array();
			arrimgaux = new Array();
		}
	}


	if (document.getElementById(objeto).style.visibility == "visible")
	{
		objeto=document.getElementById(objeto).style;
		objeto.visibility = 'hidden';
		objeto.display = "none";
		document.getElementById(imag).src = rut1;

	}	else {
		objeto=document.getElementById(objeto).style;
		objeto.clip.height="10px";
		objeto.visibility = 'visible';
		objeto.display = "block";
		document.getElementById(imag).src = rut2;

		if (todos) {
			arraux[arraux.length]=objeto;
			arrimgaux[arrimgaux.length] = document.getElementById(imag);
		}
	}

	return false;
};
//----------------------------------------------------------------------------------
//-------------Hasta aqui enlaces 1 a 1 a partir de aqui todos a la vez-------------
//----------------------------------------------------------------------------------

function mostrar_op2(objeto,imag,rut1,rut2,imag2,rutimag21,rutimag22, plegar)
{
	if (plegar)
	{
		objeto=objeto.style;
		objeto.visibility = 'visible';
		objeto.display = "block";
		imag.src=rut2;
		document.getElementById(imag2).src;
		document.getElementById(imag2).alt="Plegar los enlaces";
		document.getElementById(imag2).title="Plegar los enlaces";   
	}
	else
	{
		objeto=objeto.style;
		objeto.visibility = 'hidden';
		objeto.display = "none";
		imag.src=rut1;
		document.getElementById(imag2).src=rutimag21;
		document.getElementById(imag2).alt="Desplegar los enlaces";
		document.getElementById(imag2).title="Desplegar los enlaces";
	}
	return false;
};
