/********************************función para activar el menú***********************************/

function cont_exp(obj,objeto){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById(objeto).getElementsByTagName("div"); //DynamicDrive.com change
		if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="datos") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		} else {
			el.style.display = "none";         
		}
	}
}

var xmlVert = new ActiveXObject("Microsoft.XMLDOM"); 

function loadXML(ArchivoXML) { 
 xmlVert.async="false"; 
 xmlVert.onreadystatechange=verificar; 
 xmlVert.load(ArchivoXML); 
 xmlObj=xmlVert.documentElement; 
}

function verificar() { 
 if (xmlVert.readyState != 4) { 
   return false; 
 } 
}

function MM_goToURL(lugar,liga) { //v3.0
    loadXML(liga);
	return true;
}


/*****************************************Función para obtener la fecha*******************************************/

var dias=new Array("Domingo","Lunes","Martes","Mi&eacute;rcoles","Jueves ","Viernes","S&aacute;bado");
var meses=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");

function getthedate() {
	var mifecha=new Date()
	var ano=mifecha.getYear()
	if (ano < 1000)
		ano+=1900
	var dia=mifecha.getDay()
	var mes=mifecha.getMonth()
	var diam=mifecha.getDate()
	var cfecha="<div class='fecha'>&nbsp;&nbsp;"+dias[dia]+" "+diam+" de "+meses[mes]+" de "+ano+"</div>"
    document.write(cfecha);
}


/********************************************************************************************************/


var ligas   = new Array(10);
ligas[0]=0;//ignoramos 0 para mejor manejo 
ligas[1]="http://www.diprocafe.org.mx/boletines/editorial.html";// 
ligas[2]="http://www.diprocafe.org.mx/boletines/presentacion.html";// 
ligas[3]="http://www.diprocafe.org.mx/boletines/vivero.html";// 
ligas[4]="http://www.diprocafe.org.mx/boletines/analisis.html";// 
ligas[5]="http://www.diprocafe.org.mx/boletines/alternativas.html";// 
ligas[6]="http://www.diprocafe.org.mx/boletines/reporte.html";// 
ligas[7]="http://www.diprocafe.org.mx/boletines/redes.html";// 
ligas[8]="http://www.diprocafe.org.mx/boletines/taller.html";// 
ligas[9]="http://www.diprocafe.org.mx/boletines/inversion.html";// 
ligas[10]="http://www.diprocafe.org.mx/boletines/tradicion.html";// 


function sobre(indice){
	document.getElementById('contenido' + indice).className = 'contenidoSobre'
	document.getElementById('boton' + indice).className = 'botonSobre'
	document.getElementById('tabla' + indice).style.cursor='pointer';
}


function fuera(indice){
	document.getElementById('contenido' + indice).className = 'contenido'
	document.getElementById('boton' + indice).className = 'boton'
}

function vaUrl(indice){
	document.location.href=ligas[indice];
}

