/* Calendario diseńado por ESMUNDO.COM Copyright 2001 (version en ingles)*/

d = new Date()

Textofecha = ""



Valordia = d.getDay()

if (Valordia == 0)

    Textofecha += "Sunday"

else if (Valordia == 1)

    Textofecha += "Monday"

else if (Valordia == 2)

    Textofecha += "Tuesday"

else if (Valordia == 3)

    Textofecha += "Wednesday"

else if (Valordia == 4)

    Textofecha += "Thursday"

else if (Valordia == 5)

    Textofecha += "Friday"

else if (Valordia == 6)

    Textofecha += "Saturday"



Valormes = d.getMonth()

Textofecha += " "

if (Valormes == 0)

    Textofecha +=  d.getDate() +" January"

if (Valormes == 1)

    Textofecha += d.getDate() +" February"

if (Valormes == 2)

    Textofecha +=  d.getDate() +" March"

if (Valormes == 3)

    Textofecha +=  d.getDate() +" April"

if (Valormes == 4)

    Textofecha += d.getDate() +" May"

if (Valormes == 5)

    Textofecha += d.getDate() +" June"

if (Valormes == 6)

    Textofecha += d.getDate() +" July"

if (Valormes == 7)

    Textofecha +=  d.getDate() +" August"

if (Valormes == 8)

    Textofecha +=  d.getDate() +" September"

if (Valormes == 9)

    Textofecha +=  d.getDate() +" October"

if (Valormes == 10)

    Textofecha +=  d.getDate() +" November"

if (Valormes == 11)

    Textofecha +=  d.getDate() +" December"



minuteValue = d.getMinutes()

if (minuteValue < 10)

    minuteValue = "0" + minuteValue



Valorhora = d.getHours()



if (Valorhora == 0)    { 

    saludos = "noche.gif"

    Textodatos = "           Hora. " + (Valorhora) + ":" + minuteValue 

    }

else if (Valorhora == 1)    { 

    saludos = "noche.gif"

    Textodatos = "           Hora. " + (Valorhora) + ":" + minuteValue 

    }

else if (Valorhora == 2)    { 

    saludos = "noche.gif"

    Textodatos = "           Hora. " + (Valorhora) + ":" + minuteValue 

    }

else if (Valorhora == 3)    { 

    saludos = "noche.gif"

    Textodatos = "           Hora. " + (Valorhora) + ":" + minuteValue 

    }

else if (Valorhora == 4)    { 

    saludos = "noche.gif"

    Textodatos = "           Hora. " + (Valorhora) + ":" + minuteValue 

    }

else if (Valorhora < 12)

    {

    saludos = "dia.gif"

    Textodatos = "           Hora. " + Valorhora + ":" + minuteValue

    }

else if (Valorhora < 20)

    { 

    saludos = "tarde.gif"

    Textodatos = "           Hora. " + (Valorhora) + ":" + minuteValue 

    }

else 

    {

    saludos = "noche.gif"

    Textodatos = "           Hora. " + (Valorhora) + ":" + minuteValue

    }



fechaValor = d.getDate()

if ((Valormes == 0) && (fechaValor == 1)) { especial = " ˇHappy New Year!" }

else if ((Valormes == 1) && (fechaValor == 14)) { especial = "Saint Valentin" }

else if ((Valormes == 4) && (fechaValor == 1)) { especial = " Worker Day" }

else if ((Valormes == 5) && (fechaValor == 24)) { especial = " San Juan" }

else if ((Valormes == 11) && (fechaValor == 24)) { especial = " ˇMerry Chrismas!" }

else if ((Valormes == 11) && (fechaValor == 25)) { especial = " ˇMerry Chirsmas!" }

else if ((Valormes == 11) && (fechaValor == 31)) { especial = " ˇHappy New Year!" }



else if (Valordia == 5) { especial = " Weekend" }

else { especial = "" }





document.write('<table align="left" height="22"  border="0" cellpadding="2" cellspacing="0"><tr><td align="left" class="texto_top_general" valign="middle">'+Textofecha+''+especial+'</td></tr></table>')