﻿// JScript File
    // Baner en MasterPage2.master que corre con versiculos de la Biblia. Se refire a
    // la function Banner(). La var t1 toma su valor de la var ext: t1_ext que es generada
    // en MasterPage2.master.vb en Sub Salmo()
    var t1 = t1_ext;
    var t2="                                             ";
    var Texto= t1+t2;
    var Retardo=100;

    function Init_JS_OnLoad() 
    {
        show5();
        Banner();
    }
    function show5()
    {
        if (!document.layers&&!document.all&&!document.getElementById)
        return

        var Digital=new Date()
        var hours=Digital.getHours()
        var minutes=Digital.getMinutes()
        var seconds=Digital.getSeconds()

        var dn="PM"
        if (hours<12) dn="AM"
        if (hours>12) hours=hours-12
        if (hours==0) hours=12
        if (minutes<=9) minutes="0"+minutes
        if (seconds<=9) seconds="0"+seconds
        
        myclock=hours+":"+minutes+":"+seconds+" "+dn
        if (document.layers)
        {
            document.layers.liveclock.document.write(myclock)
            document.layers.liveclock.document.close()
        }
        else if (document.all) liveclock.innerHTML=myclock ;
        else if (document.getElementById)document.getElementById("liveclock").innerHTML=myclock ;
        setTimeout("show5()",1000);
     }

    function Banner()
    {
       while (Texto.length < 128)
       Texto += t2 + Texto;
       // txtStickerBiblia esta en MasterPage2.master y no tiene border
       document.forms[0].ctl00_txtStickerBiblia.value = Texto;
       Texto = Texto.substring(1, Texto.length) + Texto.charAt(0);
       window.setTimeout("Banner()",Retardo);
    }
    function Remember()
    {
        var texto = "Recuerde que si desea hacer alguna donación para mantener viva esta página hágalo a:" ;
        texto =  texto + " 871 NW 17 Ct" ;
        texto = texto + " Miami, Fla. 33125 ," ; 
        texto = texto + " Teléfono 305 643 5061 ," ; 
        texto = texto + " Email: contacto@guanajayweb.com" ;
        alert(texto) ;
    }
