var titulos = new Array();
var imagenes = new Array();
var dia = new Array();
var fecha = new Array();
var ambito = new Array();
diahoy=1;
meshoy=01;
anohoy=2024;
dia["1-11-2023"]="2023/11/01/";
fecha["1-11-2023"]="1-11-2023";
dia["1-11-2023"]="2023/11/01/";
fecha["1-11-2023"]="1-11-2023";
dia["2-11-2023"]="2023/11/02/";
fecha["2-11-2023"]="2-11-2023";
dia["3-11-2023"]="2023/11/03/";
fecha["3-11-2023"]="3-11-2023";
dia["4-11-2023"]="2023/11/04/";
fecha["4-11-2023"]="4-11-2023";
dia["4-11-2023"]="2023/11/04/";
fecha["4-11-2023"]="4-11-2023";
dia["5-11-2023"]="2023/11/05/";
fecha["5-11-2023"]="5-11-2023";
dia["5-11-2023"]="2023/11/05/";
fecha["5-11-2023"]="5-11-2023";
dia["5-11-2023"]="2023/11/05/";
fecha["5-11-2023"]="5-11-2023";
dia["5-11-2023"]="2023/11/05/";
fecha["5-11-2023"]="5-11-2023";
dia["7-11-2023"]="2023/11/07/";
fecha["7-11-2023"]="7-11-2023";
dia["9-11-2023"]="2023/11/09/";
fecha["9-11-2023"]="9-11-2023";
dia["10-11-2023"]="2023/11/10/";
fecha["10-11-2023"]="10-11-2023";
dia["11-11-2023"]="2023/11/11/";
fecha["11-11-2023"]="11-11-2023";
dia["11-11-2023"]="2023/11/11/";
fecha["11-11-2023"]="11-11-2023";
dia["12-11-2023"]="2023/11/12/";
fecha["12-11-2023"]="12-11-2023";
dia["12-11-2023"]="2023/11/12/";
fecha["12-11-2023"]="12-11-2023";
dia["14-11-2023"]="2023/11/14/";
fecha["14-11-2023"]="14-11-2023";
dia["16-11-2023"]="2023/11/16/";
fecha["16-11-2023"]="16-11-2023";
dia["17-11-2023"]="2023/11/17/";
fecha["17-11-2023"]="17-11-2023";
dia["17-11-2023"]="2023/11/17/";
fecha["17-11-2023"]="17-11-2023";
dia["17-11-2023"]="2023/11/17/";
fecha["17-11-2023"]="17-11-2023";
dia["18-11-2023"]="2023/11/18/";
fecha["18-11-2023"]="18-11-2023";
dia["18-11-2023"]="2023/11/18/";
fecha["18-11-2023"]="18-11-2023";
dia["19-11-2023"]="2023/11/19/";
fecha["19-11-2023"]="19-11-2023";
dia["19-11-2023"]="2023/11/19/";
fecha["19-11-2023"]="19-11-2023";
dia["19-11-2023"]="2023/11/19/";
fecha["19-11-2023"]="19-11-2023";
dia["21-11-2023"]="2023/11/21/";
fecha["21-11-2023"]="21-11-2023";
dia["22-11-2023"]="2023/11/22/";
fecha["22-11-2023"]="22-11-2023";
dia["23-11-2023"]="2023/11/23/";
fecha["23-11-2023"]="23-11-2023";
dia["24-11-2023"]="2023/11/24/";
fecha["24-11-2023"]="24-11-2023";
dia["25-11-2023"]="2023/11/25/";
fecha["25-11-2023"]="25-11-2023";
dia["25-11-2023"]="2023/11/25/";
fecha["25-11-2023"]="25-11-2023";
dia["25-11-2023"]="2023/11/25/";
fecha["25-11-2023"]="25-11-2023";
dia["26-11-2023"]="2023/11/26/";
fecha["26-11-2023"]="26-11-2023";
dia["26-11-2023"]="2023/11/26/";
fecha["26-11-2023"]="26-11-2023";
dia["30-11-2023"]="2023/11/30/";
fecha["30-11-2023"]="30-11-2023";
dia["1-12-2023"]="2023/12/01/";
fecha["1-12-2023"]="1-12-2023";
dia["2-12-2023"]="2023/12/02/";
fecha["2-12-2023"]="2-12-2023";
dia["2-12-2023"]="2023/12/02/";
fecha["2-12-2023"]="2-12-2023";
dia["2-12-2023"]="2023/12/02/";
fecha["2-12-2023"]="2-12-2023";
dia["3-12-2023"]="2023/12/03/";
fecha["3-12-2023"]="3-12-2023";
dia["3-12-2023"]="2023/12/03/";
fecha["3-12-2023"]="3-12-2023";
dia["6-12-2023"]="2023/12/06/";
fecha["6-12-2023"]="6-12-2023";
dia["6-12-2023"]="2023/12/06/";
fecha["6-12-2023"]="6-12-2023";
dia["8-12-2023"]="2023/12/08/";
fecha["8-12-2023"]="8-12-2023";
dia["8-12-2023"]="2023/12/08/";
fecha["8-12-2023"]="8-12-2023";
dia["9-12-2023"]="2023/12/09/";
fecha["9-12-2023"]="9-12-2023";
dia["9-12-2023"]="2023/12/09/";
fecha["9-12-2023"]="9-12-2023";
dia["9-12-2023"]="2023/12/09/";
fecha["9-12-2023"]="9-12-2023";
dia["10-12-2023"]="2023/12/10/";
fecha["10-12-2023"]="10-12-2023";
dia["10-12-2023"]="2023/12/10/";
fecha["10-12-2023"]="10-12-2023";
dia["15-12-2023"]="2023/12/15/";
fecha["15-12-2023"]="15-12-2023";
dia["16-12-2023"]="2023/12/16/";
fecha["16-12-2023"]="16-12-2023";
dia["16-12-2023"]="2023/12/16/";
fecha["16-12-2023"]="16-12-2023";
dia["16-12-2023"]="2023/12/16/";
fecha["16-12-2023"]="16-12-2023";
dia["17-12-2023"]="2023/12/17/";
fecha["17-12-2023"]="17-12-2023";
dia["17-12-2023"]="2023/12/17/";
fecha["17-12-2023"]="17-12-2023";
dia["21-12-2023"]="2023/12/21/";
fecha["21-12-2023"]="21-12-2023";
dia["22-12-2023"]="2023/12/22/";
fecha["22-12-2023"]="22-12-2023";
dia["23-12-2023"]="2023/12/23/";
fecha["23-12-2023"]="23-12-2023";
dia["23-12-2023"]="2023/12/23/";
fecha["23-12-2023"]="23-12-2023";
dia["26-12-2023"]="2023/12/26/";
fecha["26-12-2023"]="26-12-2023";
dia["27-12-2023"]="2023/12/27/";
fecha["27-12-2023"]="27-12-2023";
dia["28-12-2023"]="2023/12/28/";
fecha["28-12-2023"]="28-12-2023";
dia["29-12-2023"]="2023/12/29/";
fecha["29-12-2023"]="29-12-2023";
dia["30-12-2023"]="2023/12/30/";
fecha["30-12-2023"]="30-12-2023";
dia["2-1-2024"]="2024/01/02/";
fecha["2-1-2024"]="2-1-2024";
dia["3-1-2024"]="2024/01/03/";
fecha["3-1-2024"]="3-1-2024";
dia["5-1-2024"]="2024/01/05/";
fecha["5-1-2024"]="5-1-2024";
dia["11-1-2024"]="2024/01/11/";
fecha["11-1-2024"]="11-1-2024";
dia["12-1-2024"]="2024/01/12/";
fecha["12-1-2024"]="12-1-2024";
dia["13-1-2024"]="2024/01/13/";
fecha["13-1-2024"]="13-1-2024";
dia["14-1-2024"]="2024/01/14/";
fecha["14-1-2024"]="14-1-2024";
dia["18-1-2024"]="2024/01/18/";
fecha["18-1-2024"]="18-1-2024";
dia["19-1-2024"]="2024/01/19/";
fecha["19-1-2024"]="19-1-2024";
dia["20-1-2024"]="2024/01/20/";
fecha["20-1-2024"]="20-1-2024";
dia["20-1-2024"]="2024/01/20/";
fecha["20-1-2024"]="20-1-2024";
dia["21-1-2024"]="2024/01/21/";
fecha["21-1-2024"]="21-1-2024";
dia["21-1-2024"]="2024/01/21/";
fecha["21-1-2024"]="21-1-2024";
dia["25-1-2024"]="2024/01/25/";
fecha["25-1-2024"]="25-1-2024";
dia["26-1-2024"]="2024/01/26/";
fecha["26-1-2024"]="26-1-2024";
dia["27-1-2024"]="2024/01/27/";
fecha["27-1-2024"]="27-1-2024";
dia["27-1-2024"]="2024/01/27/";
fecha["27-1-2024"]="27-1-2024";
dia["27-1-2024"]="2024/01/27/";
fecha["27-1-2024"]="27-1-2024";
dia["28-1-2024"]="2024/01/28/";
fecha["28-1-2024"]="28-1-2024";
dia["28-1-2024"]="2024/01/28/";
fecha["28-1-2024"]="28-1-2024";
dia["31-1-2024"]="2024/01/31/";
fecha["31-1-2024"]="31-1-2024";
dia["1-2-2024"]="2024/02/01/";
fecha["1-2-2024"]="1-2-2024";
dia["2-2-2024"]="2024/02/02/";
fecha["2-2-2024"]="2-2-2024";
dia["3-2-2024"]="2024/02/03/";
fecha["3-2-2024"]="3-2-2024";
dia["4-2-2024"]="2024/02/04/";
fecha["4-2-2024"]="4-2-2024";
dia["4-2-2024"]="2024/02/04/";
fecha["4-2-2024"]="4-2-2024";
dia["8-2-2024"]="2024/02/08/";
fecha["8-2-2024"]="8-2-2024";
dia["9-2-2024"]="2024/02/09/";
fecha["9-2-2024"]="9-2-2024";
dia["10-2-2024"]="2024/02/10/";
fecha["10-2-2024"]="10-2-2024";
dia["10-2-2024"]="2024/02/10/";
fecha["10-2-2024"]="10-2-2024";
dia["10-2-2024"]="2024/02/10/";
fecha["10-2-2024"]="10-2-2024";
dia["11-2-2024"]="2024/02/11/";
fecha["11-2-2024"]="11-2-2024";
dia["11-2-2024"]="2024/02/11/";
fecha["11-2-2024"]="11-2-2024";
dia["11-2-2024"]="2024/02/11/";
fecha["11-2-2024"]="11-2-2024";
dia["14-2-2024"]="2024/02/14/";
fecha["14-2-2024"]="14-2-2024";
dia["15-2-2024"]="2024/02/15/";
fecha["15-2-2024"]="15-2-2024";
dia["16-2-2024"]="2024/02/16/";
fecha["16-2-2024"]="16-2-2024";
dia["17-2-2024"]="2024/02/17/";
fecha["17-2-2024"]="17-2-2024";
dia["17-2-2024"]="2024/02/17/";
fecha["17-2-2024"]="17-2-2024";
dia["18-2-2024"]="2024/02/18/";
fecha["18-2-2024"]="18-2-2024";
dia["18-2-2024"]="2024/02/18/";
fecha["18-2-2024"]="18-2-2024";
dia["22-2-2024"]="2024/02/22/";
fecha["22-2-2024"]="22-2-2024";
dia["23-2-2024"]="2024/02/23/";
fecha["23-2-2024"]="23-2-2024";
dia["24-2-2024"]="2024/02/24/";
fecha["24-2-2024"]="24-2-2024";
dia["24-2-2024"]="2024/02/24/";
fecha["24-2-2024"]="24-2-2024";
dia["25-2-2024"]="2024/02/25/";
fecha["25-2-2024"]="25-2-2024";
dia["25-2-2024"]="2024/02/25/";
fecha["25-2-2024"]="25-2-2024";
dia["25-2-2024"]="2024/02/25/";
fecha["25-2-2024"]="25-2-2024";
dia["27-2-2024"]="2024/02/27/";
fecha["27-2-2024"]="27-2-2024";
dia["29-2-2024"]="2024/02/29/";
fecha["29-2-2024"]="29-2-2024";
dia["1-3-2024"]="2024/03/01/";
fecha["1-3-2024"]="1-3-2024";
dia["2-3-2024"]="2024/03/02/";
fecha["2-3-2024"]="2-3-2024";
dia["2-3-2024"]="2024/03/02/";
fecha["2-3-2024"]="2-3-2024";
dia["3-3-2024"]="2024/03/03/";
fecha["3-3-2024"]="3-3-2024";
dia["3-3-2024"]="2024/03/03/";
fecha["3-3-2024"]="3-3-2024";
dia["6-3-2024"]="2024/03/06/";
fecha["6-3-2024"]="6-3-2024";
dia["7-3-2024"]="2024/03/07/";
fecha["7-3-2024"]="7-3-2024";
dia["8-3-2024"]="2024/03/08/";
fecha["8-3-2024"]="8-3-2024";
dia["9-3-2024"]="2024/03/09/";
fecha["9-3-2024"]="9-3-2024";
dia["9-3-2024"]="2024/03/09/";
fecha["9-3-2024"]="9-3-2024";
dia["9-3-2024"]="2024/03/09/";
fecha["9-3-2024"]="9-3-2024";
dia["10-3-2024"]="2024/03/10/";
fecha["10-3-2024"]="10-3-2024";
dia["10-3-2024"]="2024/03/10/";
fecha["10-3-2024"]="10-3-2024";
dia["13-3-2024"]="2024/03/13/";
fecha["13-3-2024"]="13-3-2024";
dia["14-3-2024"]="2024/03/14/";
fecha["14-3-2024"]="14-3-2024";
dia["15-3-2024"]="2024/03/15/";
fecha["15-3-2024"]="15-3-2024";
dia["16-3-2024"]="2024/03/16/";
fecha["16-3-2024"]="16-3-2024";
dia["16-3-2024"]="2024/03/16/";
fecha["16-3-2024"]="16-3-2024";
dia["17-3-2024"]="2024/03/17/";
fecha["17-3-2024"]="17-3-2024";
dia["17-3-2024"]="2024/03/17/";
fecha["17-3-2024"]="17-3-2024";
dia["19-3-2024"]="2024/03/19/";
fecha["19-3-2024"]="19-3-2024";
dia["20-3-2024"]="2024/03/20/";
fecha["20-3-2024"]="20-3-2024";
dia["21-3-2024"]="2024/03/21/";
fecha["21-3-2024"]="21-3-2024";
dia["22-3-2024"]="2024/03/22/";
fecha["22-3-2024"]="22-3-2024";
dia["23-3-2024"]="2024/03/23/";
fecha["23-3-2024"]="23-3-2024";
dia["23-3-2024"]="2024/03/23/";
fecha["23-3-2024"]="23-3-2024";
dia["23-3-2024"]="2024/03/23/";
fecha["23-3-2024"]="23-3-2024";
dia["24-3-2024"]="2024/03/24/";
fecha["24-3-2024"]="24-3-2024";
dia["24-3-2024"]="2024/03/24/";
fecha["24-3-2024"]="24-3-2024";
dia["24-3-2024"]="2024/03/24/";
fecha["24-3-2024"]="24-3-2024";
dia["3-4-2024"]="2024/04/03/";
fecha["3-4-2024"]="3-4-2024";
dia["4-4-2024"]="2024/04/04/";
fecha["4-4-2024"]="4-4-2024";
dia["5-4-2024"]="2024/04/05/";
fecha["5-4-2024"]="5-4-2024";
dia["6-4-2024"]="2024/04/06/";
fecha["6-4-2024"]="6-4-2024";
dia["6-4-2024"]="2024/04/06/";
fecha["6-4-2024"]="6-4-2024";
dia["7-4-2024"]="2024/04/07/";
fecha["7-4-2024"]="7-4-2024";
dia["7-4-2024"]="2024/04/07/";
fecha["7-4-2024"]="7-4-2024";
dia["10-4-2024"]="2024/04/10/";
fecha["10-4-2024"]="10-4-2024";
dia["11-4-2024"]="2024/04/11/";
fecha["11-4-2024"]="11-4-2024";
dia["12-4-2024"]="2024/04/12/";
fecha["12-4-2024"]="12-4-2024";
dia["13-4-2024"]="2024/04/13/";
fecha["13-4-2024"]="13-4-2024";
dia["13-4-2024"]="2024/04/13/";
fecha["13-4-2024"]="13-4-2024";
dia["13-4-2024"]="2024/04/13/";
fecha["13-4-2024"]="13-4-2024";
dia["14-4-2024"]="2024/04/14/";
fecha["14-4-2024"]="14-4-2024";
dia["14-4-2024"]="2024/04/14/";
fecha["14-4-2024"]="14-4-2024";
dia["17-4-2024"]="2024/04/17/";
fecha["17-4-2024"]="17-4-2024";
dia["18-4-2024"]="2024/04/18/";
fecha["18-4-2024"]="18-4-2024";
dia["19-4-2024"]="2024/04/19/";
fecha["19-4-2024"]="19-4-2024";
dia["20-4-2024"]="2024/04/20/";
fecha["20-4-2024"]="20-4-2024";
dia["20-4-2024"]="2024/04/20/";
fecha["20-4-2024"]="20-4-2024";
dia["20-4-2024"]="2024/04/20/";
fecha["20-4-2024"]="20-4-2024";
dia["21-4-2024"]="2024/04/21/";
fecha["21-4-2024"]="21-4-2024";
dia["21-4-2024"]="2024/04/21/";
fecha["21-4-2024"]="21-4-2024";
dia["23-4-2024"]="2024/04/23/";
fecha["23-4-2024"]="23-4-2024";
dia["24-4-2024"]="2024/04/24/";
fecha["24-4-2024"]="24-4-2024";
dia["25-4-2024"]="2024/04/25/";
fecha["25-4-2024"]="25-4-2024";
dia["26-4-2024"]="2024/04/26/";
fecha["26-4-2024"]="26-4-2024";
dia["27-4-2024"]="2024/04/27/";
fecha["27-4-2024"]="27-4-2024";
dia["27-4-2024"]="2024/04/27/";
fecha["27-4-2024"]="27-4-2024";
dia["28-4-2024"]="2024/04/28/";
fecha["28-4-2024"]="28-4-2024";
dia["28-4-2024"]="2024/04/28/";
fecha["28-4-2024"]="28-4-2024";
dia["28-4-2024"]="2024/04/28/";
fecha["28-4-2024"]="28-4-2024";
dia["1-5-2024"]="2024/05/01/";
fecha["1-5-2024"]="1-5-2024";
dia["1-5-2024"]="2024/05/01/";
fecha["1-5-2024"]="1-5-2024";
dia["1-5-2024"]="2024/05/01/";
fecha["1-5-2024"]="1-5-2024";
dia["2-5-2024"]="2024/05/02/";
fecha["2-5-2024"]="2-5-2024";
dia["2-5-2024"]="2024/05/02/";
fecha["2-5-2024"]="2-5-2024";
dia["3-5-2024"]="2024/05/03/";
fecha["3-5-2024"]="3-5-2024";
dia["4-5-2024"]="2024/05/04/";
fecha["4-5-2024"]="4-5-2024";
dia["4-5-2024"]="2024/05/04/";
fecha["4-5-2024"]="4-5-2024";
dia["5-5-2024"]="2024/05/05/";
fecha["5-5-2024"]="5-5-2024";
dia["5-5-2024"]="2024/05/05/";
fecha["5-5-2024"]="5-5-2024";
dia["8-5-2024"]="2024/05/08/";
fecha["8-5-2024"]="8-5-2024";
dia["9-5-2024"]="2024/05/09/";
fecha["9-5-2024"]="9-5-2024";
dia["10-5-2024"]="2024/05/10/";
fecha["10-5-2024"]="10-5-2024";
dia["11-5-2024"]="2024/05/11/";
fecha["11-5-2024"]="11-5-2024";
dia["11-5-2024"]="2024/05/11/";
fecha["11-5-2024"]="11-5-2024";
dia["11-5-2024"]="2024/05/11/";
fecha["11-5-2024"]="11-5-2024";
dia["12-5-2024"]="2024/05/12/";
fecha["12-5-2024"]="12-5-2024";
dia["16-5-2024"]="2024/05/16/";
fecha["16-5-2024"]="16-5-2024";
dia["17-5-2024"]="2024/05/17/";
fecha["17-5-2024"]="17-5-2024";
dia["18-5-2024"]="2024/05/18/";
fecha["18-5-2024"]="18-5-2024";
dia["18-5-2024"]="2024/05/18/";
fecha["18-5-2024"]="18-5-2024";
dia["19-5-2024"]="2024/05/19/";
fecha["19-5-2024"]="19-5-2024";
dia["19-5-2024"]="2024/05/19/";
fecha["19-5-2024"]="19-5-2024";
dia["20-5-2024"]="2024/05/20/";
fecha["20-5-2024"]="20-5-2024";
dia["22-5-2024"]="2024/05/22/";
fecha["22-5-2024"]="22-5-2024";
dia["23-5-2024"]="2024/05/23/";
fecha["23-5-2024"]="23-5-2024";
dia["24-5-2024"]="2024/05/24/";
fecha["24-5-2024"]="24-5-2024";
dia["25-5-2024"]="2024/05/25/";
fecha["25-5-2024"]="25-5-2024";
dia["25-5-2024"]="2024/05/25/";
fecha["25-5-2024"]="25-5-2024";
dia["26-5-2024"]="2024/05/26/";
fecha["26-5-2024"]="26-5-2024";
dia["26-5-2024"]="2024/05/26/";
fecha["26-5-2024"]="26-5-2024";
dia["28-5-2024"]="2024/05/28/";
fecha["28-5-2024"]="28-5-2024";
dia["29-5-2024"]="2024/05/29/";
fecha["29-5-2024"]="29-5-2024";
dia["30-5-2024"]="2024/05/30/";
fecha["30-5-2024"]="30-5-2024";
dia["31-5-2024"]="2024/05/31/";
fecha["31-5-2024"]="31-5-2024";
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[1];
mesanterior = M2b[11];
anosiguiente = 2024;
anoanterior = 2023;
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 = 0; // present month
pyr = 2024; // 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);
| |