	zIndex = 5;
	novedad_superior = 'img_novedades1';
	noticia_superior = 'img_noticias1';
		
	function cambiaZIndex(id_imagen)
	{
		zIndex = zIndex + 1
		document.getElementById(id_imagen).style.zIndex=zIndex;

		if ((id_imagen.indexOf('noticia') != -1) && id_imagen != noticia_superior)
		{
                        new Effect.Opacity(document.getElementById(noticia_superior), {duration:0.2, from:1, to:0.2});
			noticia_superior = id_imagen;
			new Effect.Opacity(document.getElementById(id_imagen), {duration:0.2, from:0.2, to:1});
		}
		else if ((id_imagen.indexOf('novedad') != -1) && id_imagen != novedad_superior)
		{
			new Effect.Opacity(document.getElementById(novedad_superior), {duration:0.2, from:1, to:0.2});
			novedad_superior = id_imagen;
			new Effect.Opacity(document.getElementById(id_imagen), {duration:0.2, from:0.2, to:1});
		}
	}

function imprimible()
{
   var direccion = location.href;
   if (direccion.indexOf('?') > 0)
      direccion += '&imp=si';
   else
      direccion += '?imp=si';
   window.open(direccion, null);
}

function ocultaMenu(id)
{

 if(document.getElementById(id).style["display"] != "none"){
        document.getElementById(id).style["display"] = "none";
        
    } else {
        document.getElementById(id).style["display"] = "";
        

    }
}

