var titulos = new Array();
var imagenes = new Array();
var dia = new Array();
var fecha = new Array();
var ambito = new Array();
diahoy=1;
meshoy=5;
anohoy=2020;
dia["1-3-2020"]="2020/03/01/";
fecha["1-3-2020"]="1-3-2020";
dia["1-3-2020"]="2020/03/01/";
fecha["1-3-2020"]="1-3-2020";
dia["1-3-2020"]="2020/03/01/";
fecha["1-3-2020"]="1-3-2020";
dia["5-3-2020"]="2020/03/05/";
fecha["5-3-2020"]="5-3-2020";
dia["7-3-2020"]="2020/03/07/";
fecha["7-3-2020"]="7-3-2020";
dia["7-3-2020"]="2020/03/07/";
fecha["7-3-2020"]="7-3-2020";
dia["8-3-2020"]="2020/03/08/";
fecha["8-3-2020"]="8-3-2020";
dia["8-3-2020"]="2020/03/08/";
fecha["8-3-2020"]="8-3-2020";
dia["8-3-2020"]="2020/03/08/";
fecha["8-3-2020"]="8-3-2020";
dia["9-3-2020"]="2020/03/09/";
fecha["9-3-2020"]="9-3-2020";
dia["12-3-2020"]="2020/03/12/";
fecha["12-3-2020"]="12-3-2020";
dia["13-3-2020"]="2020/03/13/";
fecha["13-3-2020"]="13-3-2020";
dia["14-3-2020"]="2020/03/14/";
fecha["14-3-2020"]="14-3-2020";
dia["14-3-2020"]="2020/03/14/";
fecha["14-3-2020"]="14-3-2020";
dia["15-3-2020"]="2020/03/15/";
fecha["15-3-2020"]="15-3-2020";
dia["15-3-2020"]="2020/03/15/";
fecha["15-3-2020"]="15-3-2020";
dia["15-3-2020"]="2020/03/15/";
fecha["15-3-2020"]="15-3-2020";
dia["18-3-2020"]="2020/03/18/";
fecha["18-3-2020"]="18-3-2020";
dia["19-3-2020"]="2020/03/19/";
fecha["19-3-2020"]="19-3-2020";
dia["21-3-2020"]="2020/03/21/";
fecha["21-3-2020"]="21-3-2020";
dia["21-3-2020"]="2020/03/21/";
fecha["21-3-2020"]="21-3-2020";
dia["21-3-2020"]="2020/03/21/";
fecha["21-3-2020"]="21-3-2020";
dia["22-3-2020"]="2020/03/22/";
fecha["22-3-2020"]="22-3-2020";
dia["22-3-2020"]="2020/03/22/";
fecha["22-3-2020"]="22-3-2020";
dia["22-3-2020"]="2020/03/22/";
fecha["22-3-2020"]="22-3-2020";
dia["26-3-2020"]="2020/03/26/";
fecha["26-3-2020"]="26-3-2020";
dia["27-3-2020"]="2020/03/27/";
fecha["27-3-2020"]="27-3-2020";
dia["28-3-2020"]="2020/03/28/";
fecha["28-3-2020"]="28-3-2020";
dia["28-3-2020"]="2020/03/28/";
fecha["28-3-2020"]="28-3-2020";
dia["29-3-2020"]="2020/03/29/";
fecha["29-3-2020"]="29-3-2020";
dia["29-3-2020"]="2020/03/29/";
fecha["29-3-2020"]="29-3-2020";
dia["29-3-2020"]="2020/03/29/";
fecha["29-3-2020"]="29-3-2020";
dia["2-4-2020"]="2020/04/02/";
fecha["2-4-2020"]="2-4-2020";
dia["3-4-2020"]="2020/04/03/";
fecha["3-4-2020"]="3-4-2020";
dia["4-4-2020"]="2020/04/04/";
fecha["4-4-2020"]="4-4-2020";
dia["4-4-2020"]="2020/04/04/";
fecha["4-4-2020"]="4-4-2020";
dia["5-4-2020"]="2020/04/05/";
fecha["5-4-2020"]="5-4-2020";
dia["5-4-2020"]="2020/04/05/";
fecha["5-4-2020"]="5-4-2020";
dia["5-4-2020"]="2020/04/05/";
fecha["5-4-2020"]="5-4-2020";
dia["16-4-2020"]="2020/04/16/";
fecha["16-4-2020"]="16-4-2020";
dia["18-4-2020"]="2020/04/18/";
fecha["18-4-2020"]="18-4-2020";
dia["19-4-2020"]="2020/04/19/";
fecha["19-4-2020"]="19-4-2020";
dia["19-4-2020"]="2020/04/19/";
fecha["19-4-2020"]="19-4-2020";
dia["23-4-2020"]="2020/04/23/";
fecha["23-4-2020"]="23-4-2020";
dia["24-4-2020"]="2020/04/24/";
fecha["24-4-2020"]="24-4-2020";
dia["25-4-2020"]="2020/04/25/";
fecha["25-4-2020"]="25-4-2020";
dia["26-4-2020"]="2020/04/26/";
fecha["26-4-2020"]="26-4-2020";
dia["26-4-2020"]="2020/04/26/";
fecha["26-4-2020"]="26-4-2020";
dia["30-4-2020"]="2020/04/30/";
fecha["30-4-2020"]="30-4-2020";
dia["2-5-2020"]="2020/05/02/";
fecha["2-5-2020"]="2-5-2020";
dia["14-6-2020"]="2020/06/14/";
fecha["14-6-2020"]="14-6-2020";
dia["5-7-2020"]="2020/07/05/";
fecha["5-7-2020"]="5-7-2020";
dia["3-9-2020"]="2020/09/03/";
fecha["3-9-2020"]="3-9-2020";
dia["4-9-2020"]="2020/09/04/";
fecha["4-9-2020"]="4-9-2020";
dia["5-9-2020"]="2020/09/05/";
fecha["5-9-2020"]="5-9-2020";
dia["6-9-2020"]="2020/09/06/";
fecha["6-9-2020"]="6-9-2020";
dia["10-9-2020"]="2020/09/10/";
fecha["10-9-2020"]="10-9-2020";
dia["11-9-2020"]="2020/09/11/";
fecha["11-9-2020"]="11-9-2020";
dia["12-9-2020"]="2020/09/12/";
fecha["12-9-2020"]="12-9-2020";
dia["13-9-2020"]="2020/09/13/";
fecha["13-9-2020"]="13-9-2020";
dia["15-9-2020"]="2020/09/15/";
fecha["15-9-2020"]="15-9-2020";
dia["16-9-2020"]="2020/09/16/";
fecha["16-9-2020"]="16-9-2020";
dia["17-9-2020"]="2020/09/17/";
fecha["17-9-2020"]="17-9-2020";
dia["18-9-2020"]="2020/09/18/";
fecha["18-9-2020"]="18-9-2020";
dia["19-9-2020"]="2020/09/19/";
fecha["19-9-2020"]="19-9-2020";
dia["19-9-2020"]="2020/09/19/";
fecha["19-9-2020"]="19-9-2020";
dia["20-9-2020"]="2020/09/20/";
fecha["20-9-2020"]="20-9-2020";
dia["20-9-2020"]="2020/09/20/";
fecha["20-9-2020"]="20-9-2020";
dia["24-9-2020"]="2020/09/24/";
fecha["24-9-2020"]="24-9-2020";
dia["25-9-2020"]="2020/09/25/";
fecha["25-9-2020"]="25-9-2020";
dia["26-9-2020"]="2020/09/26/";
fecha["26-9-2020"]="26-9-2020";
dia["26-9-2020"]="2020/09/26/";
fecha["26-9-2020"]="26-9-2020";
dia["27-9-2020"]="2020/09/27/";
fecha["27-9-2020"]="27-9-2020";
dia["27-9-2020"]="2020/09/27/";
fecha["27-9-2020"]="27-9-2020";
var flg = 0;
var fs = 1;
var bg = "white";
M = new Array("January","February",
"March","April","May","June",
"July","August","September",
"October","November","December");
D = new Array("L","M","X","J","V","S","D");
M2 = new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
M2b = new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Sep.","Octubre","Nov.","Dic.");
qURL = "https://www.tarambana.net/programacion/completa/";
messiguiente = M2b[5];
mesanterior = M2b[3];
anosiguiente = 2020;
anoanterior = 2020;
function getBgn(soloactual) {
//pdy = new Date(); // today
//pmo = pdy.getMonth(); // present month
//pyr = pdy.getYear(); // present year
// indicar el mes desde php
pdy = 1; // today
pmo = 4; // present month
pyr = 2020; // present year
if (pyr < 2000) // Y2K Fix, Isaac Powell
pyr = pyr + 1900; // http://onyx.idbsu.edu/~ipowell
document.write('
');
document.write(' |
');
if(!soloactual){
yr = yr1 = (pmo==0?pyr-1:pyr); // last month's year
mo = (pmo==0?11:pmo-1); // last month
bgn = new Date(M[mo]+" 1,"+yr1); // assign to date
Calendar(); // Send last month to screen
document.write(' | ');
}
yr = pyr; // present year
mo = pmo; // present month
bgn = new Date(M[mo]+" 1,"+yr); // assign to date
Calendar(); // Send this month to screen
document.write(' | ');
if(!soloactual){
// mes tres
nmes = pmo+1;
yr = (nmes>=12?pyr+1:pyr); // next month's year
mo = (nmes>=12?(nmes-12):pmo+1); // next month
bgn = new Date(M[mo]+" 1,"+yr); // assign to date
Calendar(); // Send next month to screen
document.write(' |
');
// mes cuatro
nmes = pmo+2;
yr = (nmes>=12?pyr+1:pyr); // next month's year
mo = (nmes>=12?(nmes-12):pmo+2); // next month
bgn = new Date(M[mo]+" 1,"+yr); // assign to date
Calendar(); // Send next month to screen
document.write(' | ');
// mes cinco
nmes = pmo+3;
yr = (nmes>=12?pyr+1:pyr); // next month's year
mo = (nmes>=12?(nmes-12):pmo+3); // next month
bgn = new Date(M[mo]+" 1,"+yr); // assign to date
Calendar(); // Send next month to screen
document.write(' | ');
// mes seis
nmes = pmo+4;
yr = (nmes>=12?pyr+1:pyr); // next month's year
mo = (nmes>=12?(nmes-12):pmo+4); // next month
bgn = new Date(M[mo]+" 1,"+yr); // assign to date
Calendar(); // Send next month to screen
document.write(' | ');
}
document.write('
'); // Finish up
}
/*window.onload = function (){
}*/
function Calendar(){
dy = bgn.getDay();
if(dy==0)dy=7;
yr = eval(yr);
d = "312831303130313130313031";
if (yr / 4 == Math.floor(yr / 4)) {
d = d.substring(0, 2) + "29" + d.substring(4, d.length);
}
pos = (mo * 2);
ld = eval(d.substring(pos, pos + 2));
document.write(""
+ "" + M2[mo] + " " + yr+ "<\/td><\/tr>|
");
for (var i = 0;i < 7;i ++) {
document.write(""+"" + D[i] + "<\/td>");
}
document.write("<\/tr>");
ctr = 0;
emul = 0;
for (var i = 1;i < 8; i++){
if (i < dy) {
document.write(""+"<\/td>");
}
else {
ctr++;
queclass = 'lnknormal';
qlink = '';
queover = '';
fcomparar = ctr+'-'+(mo+1)+'-'+yr;
if(fecha[fcomparar]==fcomparar){
qlink = qURL+dia[fcomparar];
queclass = 'lnkdestacado';
//queover = ' onmouseover="cambiatextofoto(\''+fcomparar+'\')"';
document.write(' | '+ '' + ctr + ''+ '<\/td>');
}else{
document.write(' | '+ ctr + '<\/td>');
}
}
}
document.write("<\/tr> | ");
while (ctr < ld) {
for (var i = 1;i < 8; i++){
ctr++;
emul++;
if (ctr > ld){
document.write(""+ " <\/td>");
}
else {
queclass = 'lnknormal';
qlink = '';
queover = '';
fcomparar = ctr+'-'+(mo+1)+'-'+yr;
if(fecha[fcomparar]==fcomparar){
qlink = qURL+dia[fcomparar];
queclass = 'lnkdestacado';
//queover = ' onmouseover="cambiatextofoto(\''+fcomparar+'\')"';
document.write(' | '+ '' + ctr + ''+ '<\/td>');
}else{
document.write(' | '+ ctr + '<\/td>');
}
}
}
document.write("<\/tr> | ");
}
document.write("<\/tr><\/table>");
}
//solo el mes actual
getBgn(true);
| |