function oculta_textos(excepto,rand){
	
	subsecciones=getElementsByClass("el_texto");
	i=0;
	for (i;i<eval(subsecciones.length);i++) {
		if(subsecciones[i].id.substring(0,10)=="texto_"+rand)
		subsecciones[i].style.display= "none";
	}	
	
	document.getElementById(excepto).style.display = "block" ;
	
}

function mostrar_texto(seccion,rand){
  var submenu = document.getElementById(seccion);

      submenu.style.display = "block";
      oculta_textos(seccion,rand);

}

function deseleccionar_foto(num_noticias, rand){
	for (i = 0;i<num_noticias;i++){
			
		document.getElementById("foto_mini_"+rand+"_"+i).className = "foto_mini" ;
	}	
}
function seleccionar_foto(elemento, num_noticias, rand){
	deseleccionar_foto(num_noticias, rand);
	document.getElementById(elemento).className='foto_mini_seleccionada'; 	
}

function oculta_fotos(excepto){
	
	subsecciones=getElementsByClass("la_foto");
	i=0;
	for (i;i<eval(subsecciones.length);i++) {
		subsecciones[i].style.display= "none";
	}
	document.getElementById(excepto).style.display = "block" ;
	
}