function cambiarFondo (color,objeto){
   if (color=="activo") {
	   document.getElementById(objeto).style.backgroundColor="#FFFF99"; 
	   document.getElementById(objeto).style.color="blue";
	   document.getElementById(objeto).style.fontWeight="bold";
   } else {
       document.getElementById(objeto).style.backgroundColor="white"; 
 
   }
}


function mensaje()
{
	      return overlib(this.alt);
}
function poner (conjunto, capa)
{
   mostrarCalendario (capa, conjunto);
}

function mostrarCalendario(capa,conjunto) {
	var obj=document.getElementsByTagName('span');
	
	for ($i=0;$i<obj.length;$i++) 
	   if (obj[$i].lang==conjunto) {
	      obj[$i].style.visibility="hidden";
	      obj[$i].style.zIndex=-10000;
	      obj[$i].style.display="none";
	   }
 
	var obj2=document.getElementById(capa);
	obj2.style.visibility="visible";
	obj2.style.zIndex=10000;
	obj2.style.display="inline";
}

// necesarias en el panel
// Funci�n para hacer visible una capa

function mostrarCapa(capa) {
	var obj=document.getElementById(capa);
	obj.style.visibility="visible";
	obj.style.zIndex=10000;
	obj.style.display="inline";
	}

function ocultarCapa(nombreCapa) {
	var obj=document.getElementById(nombreCapa);
	obj.style.visibility="hidden";
	obj.style.zIndex=-10000;
	obj.style.display="none";
}


function cambiarImagen (idImg1, Rutaimg2) {
    document.getElementById(idImg1).src=Rutaimg2;
}

var bloque= new Array();
bloque["paginas"]=0;
bloque["usuarios"]=0;
bloque["noticias"]=0;
bloque["grupos"]=0;

function desplegar (capa, idImagen, indice) {
   if (bloque[indice]==0) {
     bloque[indice]=1;
     ocultarCapa(capa);
     cambiarImagen (idImagen, './img/switch_plus.gif');
  } else {
     bloque[indice]=0;
     mostrarCapa(capa);
     cambiarImagen (idImagen, './img/switch_minus.gif');
  }
}
