function crearCalendario(tiempo)
{
	
	AjaxRequest.post
    ({
		'parameters':
        { 
            "accion":"calcularFecha", "tiempo":tiempo
        },
        'onSuccess':function(req)
			{
				var tiempoCalen = req.responseText;

				tiempoCalen = tiempoCalen.replace(/[""]/gi,'');
				if(tiempoCalen == 0)
				{
					var fecha = new Date(); 
				}
				else
				{
					var arreFecha = tiempoCalen.split(",");
					var anio = arreFecha[0];
					var mes = arreFecha[1];
					var dia = arreFecha[2];
					var fecha = new Date(anio+','+mes+','+dia);
				}
				var diaHoy = fecha.getDate();
				var mesHoy = fecha.getMonth()+1;
				var anioHoy = fecha.getFullYear();
				var mesTexto = mesEspaniol(mesHoy);
				var diasMes = diasEnMes(mesHoy, anioHoy);
				
				var fechaHoy = new Date();
				var aHoy = fechaHoy.getFullYear();
				var mHoy = fechaHoy.getMonth()+1;
				var dHoy = fechaHoy.getDate();		
				var hoy = aHoy+'/'+mHoy+'/'+dHoy;
				//alert(hoy);
				//Busca el primer día del mes
				var primerDia = fecha; //Hacemos un nuevo objeto basado en hoy, que es un objeto de fecha.
				primerDia.setDate(1); //Establecemos el objeto de fecha en el día 1 de este mes.
				
				//Calcula qué día de la semana es el día 1 del mes
				diaInicial = primerDia.getDay();
				
				//calculamos el total de filas
				var totalFilas = Math.ceil((diasMes+diaInicial)/7);
				
				var dia = -diaInicial;
			
				//Busca el próximo mes
				var proximoMes = mktime(0,0,0,mesHoy+1,1,anioHoy)
			
				//Busca el mes anterior
				var mesAnterior = mktime(0,0,0,mesHoy-1,1,anioHoy)
				
				//Busca el próximo año
				var proximoAnio = mktime(0,0,0,mesHoy,1,anioHoy+1)
			
				//Busca el año anterior
				var anioAnterior = mktime(0,0,0,mesHoy,1,anioHoy-1)
				//alert(tiempoCalendario); 
			
				var titulo = xGetElementById('titulo');
				mD.limpiaTexto(titulo);
				mD.agregaNodoTexto(titulo,mesTexto+' '+anioHoy);
				
				AjaxRequest.post
			    ({
					'parameters':
			        { 
			            "accion":"buscarEventos", "anioActual":anioHoy, "mesActual":mesHoy,"diasMes":diasMes
			        },
			        'onSuccess': function(req){
						var respuesta = req.responseText;
						var resultado = eval("(" + respuesta + ")");
						var eventos = new Array();
						for (var i = 0; i < resultado.length; i++) {
							var lista = mD.agregaNodoElemento('li', 'evento' + i, 'evento' + i, {});
							var span1 = mD.agregaNodoElemento('span', 'even' + i, 'even' + i, {
								"class": "title"
							});
							mD.agregaNodoTexto(span1, resultado[i]['tx_titulo']);
							mD.anexaEvento(span1,'click',mostrarEvento,[resultado[i]['co_noticia']]);
							/*var span2 = mD.agregaNodoElemento('span', 'even' + i, 'even' + i, {
								"class": "desc"
							});*/
							//mD.agregaNodoTexto(span2, resultado[i]['tx_texto']);
							mD.agregaHijo(lista, span1);
							//mD.agregaHijo(lista, span2);
							var indice = parseInt(resultado[i]['dia']);
							if (!eventos[indice]) 
							{
								var arregloLi = new Array();
								arregloLi.push(lista);
								eventos[indice] = arregloLi;
							}
							else 
							{
								arregloLi.push(lista);
								eventos[indice] = arregloLi;
							}
						}
						var tabla = xGetElementById('cuerpoCalendario');
						mD.limpiaTexto(tabla);
						for (var i = 0; i < totalFilas; i++) {
							var fila = mD.insertarFila(tabla, -1, {});
							for (var j = 0; j < 7; j++) {
								dia = dia + 1;
								
								if (dia > 0 && dia <= diasMes) {
									//YYYY-MM-DD date format
									var date_form = anioHoy + "/" + mesHoy + "/" + dia;
									
									var celda = mD.insertarCelda(fila, -1, {'class':'celda'});
									
									//check if the date is today
									if (date_form == hoy) {
										mD.agregaAtributo(celda, {
											"class": "today"
										});
									}
									
									//check if any event stored for the date
									if (array_key_exists(dia, eventos)) {
										//adding the date_has_event class to the <td> and close it
										mD.agregaAtributo(celda, {
											"class":"date_has_event", "style":"cursor:pointer"
										});
										
										mD.agregaNodoTexto(celda, dia+'');
										
										//adding the eventTitle and eventContent wrapped inside <span> & <li> to <ul>
										var div = mD.agregaNodoElemento('div', 'div'+i, 'div'+i, {
											"class":"events"
										});
										var ul = mD.agregaNodoElemento('ul', 'ul', 'ul', {});
										mD.agregaHijo(celda, div);
										mD.agregaHijo(div, ul);
										for(var m=0; m<eventos[dia].length;m++)
										{
											mD.agregaHijo(ul, eventos[dia][m]);
										}
									}
									else {
										mD.agregaNodoTexto(celda, dia+'');
									}
								}
								else {
									//showing empty cells in the first and last row
									var celda = mD.insertarCelda(fila, -1, {
										"class": "padding"
									}, "\u00a0");
								}
							}
						}
						var pieTabla = xGetElementById('pieTabla');
						mD.limpiaTexto(pieTabla);
						
						var th = mD.insertarFila(pieTabla, -1, {});
						
						var celda1 = mD.agregaNodoElemento("th","th1","th1",{ "class":"encabezado"});
						mD.agregaHijo(th, celda1);
						//var celda1 = mD.insertarCelda(th, -1, {});
						var a = mD.agregaNodoElemento('a', 'a1', 'a1', {"style":"cursor:pointer", "onclick":"crearCalendario("+anioAnterior+")"});
						mD.agregaNodoTexto(a, '««');
						mD.agregaHijo(celda1, a);
			
						var celda2 = mD.agregaNodoElemento("th","th1","th1",{ "class":"encabezado"});
						mD.agregaHijo(th, celda2);
//						var celda2 = mD.insertarCelda(th, -1, {});
						var a2 = mD.agregaNodoElemento('a', 'a2', 'a2', {"style":"cursor:pointer", "onclick":"crearCalendario("+mesAnterior+")"});
						mD.agregaNodoTexto(a2, '«');
						mD.agregaHijo(celda2, a2);
			
						var celda3 = mD.agregaNodoElemento("th","th1","th1",{ "class":"encabezado"});
						mD.agregaHijo(th, celda3);
//						var celda3 = mD.insertarCelda(th, -1, {},"\u00a0");
			
						var celda4 = mD.agregaNodoElemento("th","th1","th1",{ "class":"encabezado"});
						mD.agregaHijo(th, celda4);
//						var celda4 = mD.insertarCelda(th, -1, {},"\u00a0");
			
						var celda5 = mD.agregaNodoElemento("th","th1","th1",{ "class":"encabezado"});
						mD.agregaHijo(th, celda5);
//						var celda5 = mD.insertarCelda(th, -1, {},"\u00a0");
						
						var celda6 = mD.agregaNodoElemento("th","th1","th1",{ "class":"encabezado"});
						mD.agregaHijo(th, celda6);
//						var celda6 = mD.insertarCelda(th, -1, {});
						var a3 = mD.agregaNodoElemento('a', 'a3', 'a3', {"style":"cursor:pointer", "onclick":"crearCalendario("+proximoMes+")"});
						mD.agregaNodoTexto(a3, '»');
						mD.agregaHijo(celda6, a3);
			
						var celda7 = mD.agregaNodoElemento("th","th1","th1",{ "class":"encabezado"});
						mD.agregaHijo(th, celda7);
//						var celda7 = mD.insertarCelda(th, -1, {});
						var a4 = mD.agregaNodoElemento('a', 'a4', 'a4', {"style":"cursor:pointer", "onclick":"crearCalendario("+proximoAnio+")"});
						mD.agregaNodoTexto(a4, '»»');
						mD.agregaHijo(celda7, a4);
			
						$(function () {
							$('.date_has_event').each(function () {
								// options
								var distance = 10;
								var time = 250;
								var hideDelay = 500;
						
								var hideDelayTimer = null;
						
								// tracker
								var beingShown = false;
								var shown = false;
						
								var trigger = $(this);
								var popup = $('.events ul', this).css('opacity', 0);
						
								// set the mouseover and mouseout on both element
								$([trigger.get(0), popup.get(0)]).mouseover(function () {
									// stops the hide event if we move from the trigger to the popup element
									if (hideDelayTimer) clearTimeout(hideDelayTimer);
						
									// don't trigger the animation again if we're being shown, or already visible
									if (beingShown || shown) {
										return;
									} else {
										beingShown = true;
						
										// reset position of popup box
										popup.css({
											top: 20,
											left: -76,
											display: 'block' // brings the popup back in to view
										})
						
										// (we're using chaining on the popup) now animate it's opacity and position
										.animate({
											bottom: '+=' + distance + 'px',
											opacity: 1
										}, time, 'swing', function() {
											// once the animation is complete, set the tracker variables
											beingShown = false;
											shown = true;
										});
									}
								}).mouseout(function () {
									// reset the timer if we get fired again - avoids double animations
									if (hideDelayTimer) clearTimeout(hideDelayTimer);
						
									// store the timer so that it can be cleared in the mouseover if required
									hideDelayTimer = setTimeout(function () {
										hideDelayTimer = null;
										popup.animate({
											bottom: '-=' + distance + 'px',
											opacity: 0
										}, time, 'swing', function () {
											// once the animate is complete, set the tracker variables
											shown = false;
											// hide the popup entirely after the effect (opacity alone doesn't do the job)
											popup.css('display', 'none');
										});
									}, hideDelay);
								});
							});
						});
					}
					,
			        'url':'trans/mConsultasNoticia.php',
			        'onError':function(req)
			        {
			        	alert('Error!\nStatusText='+req.statusText+'\nContents='+req.responseText);
			        }
			    }); 
			}
		,
        'url':'trans/mConsultasNoticia.php',
        'onError':function(req)
        {
        	alert('Error!\nStatusText='+req.statusText+'\nContents='+req.responseText);
        }
    }); 
}

function mesEspaniol(mes)
{
	var mesArray = new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
	var mesTexto = mesArray[mes-1];
	return mesTexto;
}

function diasEnMes(mes, anio)
{
	//Declaracion de variables globales
	var diasMes = new Array(); /*Array con los meses del año*/
	diasMes[0] = 31;
	diasMes[1] = 28;
	diasMes[2] = 31;
	diasMes[3] = 30;
	diasMes[4] = 31;
	diasMes[5] = 30;
	diasMes[6] = 31;
	diasMes[7] = 31;
	diasMes[8] = 30;
	diasMes[9] = 31;
	diasMes[10] = 30;
	diasMes[11] = 31;
	
	/*¿EL AÑO ACTUAL ES BISIESTO?*/
	if (((anio % 4 == 0) && (anio % 100 != 0)) || (anio % 400 == 0)) /*Compruebo que el año es bisiesto*/ 
	{
		diasMes[1] = 29; //y si lo es varío el número de días del mes de febrero en el array
	}
	
	var nDias = diasMes[mes-1];
	return nDias;
}

function mktime() 
{
	var no, ma = 0, mb = 0, i = 0, d = new Date(), argv = arguments, argc = argv.length;
    d.setHours(0,0,0); d.setDate(1); d.setMonth(1); d.setYear(1972);
 
    var dateManip = {
        0: function(tt){ return d.setHours(tt); },
        1: function(tt){ return d.setMinutes(tt); },
        2: function(tt){ set = d.setSeconds(tt); mb = d.getDate() - 1; return set; },
        3: function(tt){ set = d.setMonth(parseInt(tt)-1); ma = d.getFullYear() - 1972; return set; },
        4: function(tt){ return d.setDate(tt+mb); },
        5: function(tt){ return d.setYear(tt+ma); }
    };
    
    for( i = 0; i < argc; i++ ){
        no = parseInt(argv[i]*1);
        if(no && isNaN(no)){
            return false;
        } else if(no){
            // arg is number, let's manipulate date object
            if(!dateManip[i](no)){
                // failed
                return false;
            }
        }
    }
 
    return Math.floor(d.getTime()/1000);
}

function array_key_exists ( key, search ) {
    // http://kevin.vanzonneveld.net
    // +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +   improved by: Felix Geisendoerfer (http://www.debuggable.com/felix)
    // *     example 1: array_key_exists('kevin', {'kevin': 'van Zonneveld'});
    // *     returns 1: true
 
    // input sanitation
    if( !search || (search.constructor !== Array && search.constructor !== Object) ){
        return false;
    }
 
    return key in search;
}

function crearCalendario2(tiempo)
{
	
	AjaxRequest.post
    ({
		'parameters':
        { 
            "accion":"calcularFecha", "tiempo":tiempo
        },
        'onSuccess':function(req)
			{
				var tiempoCalen = req.responseText;

				tiempoCalen = tiempoCalen.replace(/[""]/gi,'');
				if(tiempoCalen == 0)
				{
					var fecha = new Date(); 
				}
				else
				{
					var arreFecha = tiempoCalen.split(",");
					var anio = arreFecha[0];
					var mes = arreFecha[1];
					var dia = arreFecha[2];
					var fecha = new Date(anio+','+mes+','+dia);
				}
				var diaHoy = fecha.getDate();
				var mesHoy = fecha.getMonth()+1;
				var anioHoy = fecha.getFullYear();
				var mesTexto = mesEspaniol(mesHoy);
				var diasMes = diasEnMes(mesHoy, anioHoy);
				
				var fechaHoy = new Date();
				var aHoy = fechaHoy.getFullYear();
				var mHoy = fechaHoy.getMonth()+1;
				var dHoy = fechaHoy.getDate();		
				var hoy = aHoy+'/'+mHoy+'/'+dHoy;
				//alert(hoy);
				//Busca el primer día del mes
				var primerDia = fecha; //Hacemos un nuevo objeto basado en hoy, que es un objeto de fecha.
				primerDia.setDate(1); //Establecemos el objeto de fecha en el día 1 de este mes.
				
				//Calcula qué día de la semana es el día 1 del mes
				diaInicial = primerDia.getDay();
				
				//calculamos el total de filas
				var totalFilas = Math.ceil((diasMes+diaInicial)/7);
				
				var dia = -diaInicial;
			
				//Busca el próximo mes
				var proximoMes = mktime(0,0,0,mesHoy+1,1,anioHoy)
			
				//Busca el mes anterior
				var mesAnterior = mktime(0,0,0,mesHoy-1,1,anioHoy)
				
				//Busca el próximo año
				var proximoAnio = mktime(0,0,0,mesHoy,1,anioHoy+1)
			
				//Busca el año anterior
				var anioAnterior = mktime(0,0,0,mesHoy,1,anioHoy-1)
				//alert(tiempoCalendario); 
			
				var titulo = xGetElementById('titulo2');
				mD.limpiaTexto(titulo);
				mD.agregaNodoTexto(titulo,mesTexto+' '+anioHoy);
				
				AjaxRequest.post
			    ({
					'parameters':
			        { 
			            "accion":"buscarEventos", "anioActual":anioHoy, "mesActual":mesHoy,"diasMes":diasMes
			        },
			        'onSuccess': function(req){
						var respuesta = req.responseText;
						var resultado = eval("(" + respuesta + ")");
						var eventos = new Array();
						for (var i = 0; i < resultado.length; i++) {
							var lista = mD.agregaNodoElemento('li', 'evento' + i, 'evento' + i, {});
							var span1 = mD.agregaNodoElemento('span', 'even' + i, 'even' + i, {
								"class": "title2"
							});
							mD.agregaNodoTexto(span1, resultado[i]['tx_titulo']);
							var span2 = mD.agregaNodoElemento('span', 'even' + i, 'even' + i, {
								"class": "desc2"
							});
							mD.agregaNodoTexto(span2, resultado[i]['tx_texto']);
							mD.agregaHijo(lista, span1);
							mD.agregaHijo(lista, span2);
							var indice = parseInt(resultado[i]['dia']);
							if (!eventos[indice]) {
								eventos[indice] = lista;
							}
							else {
								eventos[indice] = eventos[indice] + lista;
							}
						}
						var tabla = xGetElementById('cuerpoCalendario2');
						mD.limpiaTexto(tabla);
						for (var i = 0; i < totalFilas; i++) {
							var fila = mD.insertarFila(tabla, -1, {});
							for (var j = 0; j < 7; j++) {
								dia = dia + 1;
								
								if (dia > 0 && dia <= diasMes) {
									//YYYY-MM-DD date format
									var date_form = anioHoy + "/" + mesHoy + "/" + dia;
									
									var celda = mD.insertarCelda(fila, -1, {'class':'td2'});
									
									//check if the date is today
									if (date_form == hoy) {
										mD.agregaAtributo(celda, {
											"class": "today2"
										});
									}
									
									//check if any event stored for the date
									if (array_key_exists(dia, eventos)) {
										//adding the date_has_event class to the <td> and close it
										mD.agregaAtributo(celda, {
											"class":"date_has_event2"
										});
										mD.agregaNodoTexto(celda, dia+'');
										
										//adding the eventTitle and eventContent wrapped inside <span> & <li> to <ul>
										var div = mD.agregaNodoElemento('div', 'div'+i, 'div'+i, {
											"class":"events2"
										});
										var ul = mD.agregaNodoElemento('ul', 'ul', 'ul', {});
										mD.agregaHijo(celda, div);
										mD.agregaHijo(div, ul);
										mD.agregaHijo(ul, eventos[dia]);
									}
									else {
										mD.agregaNodoTexto(celda, dia+'');
									}
								}
								else {
									//showing empty cells in the first and last row
									var celda = mD.insertarCelda(fila, -1, {
										"class": "padding2"
									}, "\u00a0");
								}
							}
						}
						var pieTabla = xGetElementById('pieTabla2');
						mD.limpiaTexto(pieTabla);
						
						var th = mD.insertarFila(pieTabla, -1, {});
						
						var celda1 = mD.agregaNodoElemento("th","th1","th1",{'class':'th2'});
						mD.agregaHijo(th, celda1);
						//var celda1 = mD.insertarCelda(th, -1, {});
						var a = mD.agregaNodoElemento('a', 'a1', 'a1', {"style":"cursor:pointer", "onclick":"crearCalendario2("+anioAnterior+")"});
						mD.agregaNodoTexto(a, '««');
						mD.agregaHijo(celda1, a);
			
						var celda2 = mD.agregaNodoElemento("th","th1","th1",{'class':'th2'});
						mD.agregaHijo(th, celda2);
//						var celda2 = mD.insertarCelda(th, -1, {});
						var a2 = mD.agregaNodoElemento('a', 'a2', 'a2', {"style":"cursor:pointer", "onclick":"crearCalendario2("+mesAnterior+")"});
						mD.agregaNodoTexto(a2, '«');
						mD.agregaHijo(celda2, a2);
			
						var celda3 = mD.agregaNodoElemento("th","th1","th1",{'class':'th2'});
						mD.agregaHijo(th, celda3);
//						var celda3 = mD.insertarCelda(th, -1, {},"\u00a0");
			
						var celda4 = mD.agregaNodoElemento("th","th1","th1",{'class':'th2'});
						mD.agregaHijo(th, celda4);
//						var celda4 = mD.insertarCelda(th, -1, {},"\u00a0");
			
						var celda5 = mD.agregaNodoElemento("th","th1","th1",{'class':'th2'});
						mD.agregaHijo(th, celda5);
//						var celda5 = mD.insertarCelda(th, -1, {},"\u00a0");
						
						var celda6 = mD.agregaNodoElemento("th","th1","th1",{'class':'th2'});
						mD.agregaHijo(th, celda6);
//						var celda6 = mD.insertarCelda(th, -1, {});
						var a3 = mD.agregaNodoElemento('a', 'a3', 'a3', {"style":"cursor:pointer", "onclick":"crearCalendario2("+proximoMes+")"});
						mD.agregaNodoTexto(a3, '»');
						mD.agregaHijo(celda6, a3);
			
						var celda7 = mD.agregaNodoElemento("th","th1","th1",{'class':'th2'});
						mD.agregaHijo(th, celda7);
//						var celda7 = mD.insertarCelda(th, -1, {});
						var a4 = mD.agregaNodoElemento('a', 'a4', 'a4', {"style":"cursor:pointer", "onclick":"crearCalendario2("+proximoAnio+")"});
						mD.agregaNodoTexto(a4, '»»');
						mD.agregaHijo(celda7, a4);
			
						$(function () {
							$('.date_has_event2').each(function () {
								// options
								var distance = 10;
								var time = 250;
								var hideDelay = 500;
						
								var hideDelayTimer = null;
						
								// tracker
								var beingShown = false;
								var shown = false;
						
								var trigger = $(this);
								var popup = $('.events2 ul', this).css('opacity', 0);
						
								// set the mouseover and mouseout on both element
								$([trigger.get(0), popup.get(0)]).mouseover(function () {
									// stops the hide event if we move from the trigger to the popup element
									if (hideDelayTimer) clearTimeout(hideDelayTimer);
						
									// don't trigger the animation again if we're being shown, or already visible
									if (beingShown || shown) {
										return;
									} else {
										beingShown = true;
						
										// reset position of popup box
										popup.css({
											top: 20,
											left: -76,
											display: 'block' // brings the popup back in to view
										})
						
										// (we're using chaining on the popup) now animate it's opacity and position
										.animate({
											bottom: '+=' + distance + 'px',
											opacity: 1
										}, time, 'swing', function() {
											// once the animation is complete, set the tracker variables
											beingShown = false;
											shown = true;
										});
									}
								}).mouseout(function () {
									// reset the timer if we get fired again - avoids double animations
									if (hideDelayTimer) clearTimeout(hideDelayTimer);
						
									// store the timer so that it can be cleared in the mouseover if required
									hideDelayTimer = setTimeout(function () {
										hideDelayTimer = null;
										popup.animate({
											bottom: '-=' + distance + 'px',
											opacity: 0
										}, time, 'swing', function () {
											// once the animate is complete, set the tracker variables
											shown = false;
											// hide the popup entirely after the effect (opacity alone doesn't do the job)
											popup.css('display', 'none');
										});
									}, hideDelay);
								});
							});
						});
					}
					,
			        'url':'trans/mConsultasNoticia.php',
			        'onError':function(req)
			        {
			        	alert('Error!\nStatusText='+req.statusText+'\nContents='+req.responseText);
			        }
			    }); 
			}
		,
        'url':'trans/mConsultasNoticia.php',
        'onError':function(req)
        {
        	alert('Error!\nStatusText='+req.statusText+'\nContents='+req.responseText);
        }
    }); 
}

function mostrarEvento(codEvento){
	var divv = xGetElementById('contentPag');
	xDisplay('contentPag', 'block');
	xDisplay('noticiaCam', 'none');
	xDisplay('notiUniversal', 'none');
	xDisplay('indicadores', 'none');
	divv.innerHTML = "<br/><div align='center'><table width='60px' align='center' border='0' cellspacing='0' cellpadding='0'><tr>   <td></td><td></td><td><img src='img/loadCC.gif' width='24' height='24' /></td></tr></table></div><div align='center'><span style='color:#999999;  font-family: Arial, Helvetica, sans-serif; font-size: 12px;' >Cargando.. </span></div><br/>";
	AjaxRequest.post({
		'parameters': {},
		'onSuccess': function(req){
			//mD.limpiaTexto(divv);
			divv.innerHTML = req.responseText;
			buscarEventoCod(codEvento);
		},
		'url': 'include/eventos.php',
		'onError': function(req){
			alert('Error!\nStatusText=' + req.statusText + '\nContents=' + req.responseText);
		}
	});
}

function buscarEventoCod(codEvento)
{
	AjaxRequest.post({
			'parameters': {'accion':'consultarEventoCodigos','codigo':codEvento},
			'onSuccess':listarDetalleEvento,
			'url': 'trans/mConsultasNoticia.php',
			'onError': function(req){
				alert('Error!\nStatusText=' + req.statusText + '\nContents=' + req.responseText);
			}
		});
}


function listarDetalleEvento(req)
{
	var tabla = xGetElementById('detalleEvento');
	mD.limpiaTexto(tabla);
	var respuesta = req.responseText;
    var resultado = eval("(" + respuesta + ")");
	if (resultado) {
		xDisplay('loading','none');
		//*******************estilos

		//***************************
		var fila = mD.insertarFila(tabla, -1, {});
		var celda = mD.insertarCelda(fila, -1, {'align':'justify','class':'cssTitulos','colspan':'2'}, resultado[0]['tx_titulo']);
		var fila = mD.insertarFila(tabla, -1, {});
		var celda = mD.insertarCelda(fila, -1, {'colspan':'2'},"\u00a0");
		var fila = mD.insertarFila(tabla, -1, {});
		var celda1 = mD.insertarCelda(fila, -1, {'align':'justify','class':'cssContenido','colspan':'2'}, resultado[0]['tx_texto']);
		var fila = mD.insertarFila(tabla, -1, {});
		var celda = mD.insertarCelda(fila, -1, {'colspan':'2'},"\u00a0");
	    var fila = mD.insertarFila(tabla, -1, {});
		var celda = mD.insertarCelda(fila, -1, {'align':'justify','class':'fuenteNegrita','width':'23%'}, "Fecha del Evento:");
		var celda = mD.insertarCelda(fila, -1, {'align':'left','class':'cssContenido'}, fechaCorta(resultado[0]['fe_publicacion']));
	}
	
}

