// JavaScript Document
// on charge les images que l'on place dans un tableau
chiffres = new Array(10);
        chiffres[1]= new Image(15, 19);
        chiffres[1].src = "http://www.profilpromotion.com/objet_publicitaire/time/c1.gif";
        chiffres[2] = new Image(15, 19);
        chiffres[2].src = "http://www.profilpromotion.com/objet_publicitaire/time/c2.gif";
        chiffres[3] = new Image(15, 19);
        chiffres[3].src = "http://www.profilpromotion.com/objet_publicitaire/time/c3.gif";
        chiffres[4] = new Image(15, 19);
        chiffres[4].src = "http://www.profilpromotion.com/objet_publicitaire/time/c4.gif";
        chiffres[5] = new Image(15, 19);
        chiffres[5].src = "http://www.profilpromotion.com/objet_publicitaire/time/c5.gif";
        chiffres[6] = new Image(15, 19);
        chiffres[6].src = "http://www.profilpromotion.com/objet_publicitaire/time/c6.gif";
        chiffres[7] = new Image(15, 19);
        chiffres[7].src = "http://www.profilpromotion.com/objet_publicitaire/time/c7.gif";
        chiffres[8] = new Image(15, 19);
        chiffres[8].src = "http://www.profilpromotion.com/objet_publicitaire/time/c8.gif";
        chiffres[9] = new Image(15, 19);
        chiffres[9].src = "http://www.profilpromotion.com/objet_publicitaire/time/c9.gif";
        chiffres[0] = new Image(15, 19);
        chiffres[0].src = "http://www.profilpromotion.com/objet_publicitaire/time/c0.gif";

function change(nom, index)
{
        image = eval("chiffres[" + index + "].src");
        if (document [nom].src != image)
        {
                document [nom].src = image
        }
}
function maj()
{
        heure = new Date();
        h = heure.getHours();
        m = heure.getMinutes();
        s = heure.getSeconds();
        h1 = Math.floor(h / 10);
        h2 = h % 10;
        m1 = Math.floor(m / 10);
        m2 = m % 10;
        s1 = Math.floor(s / 10);
        s2 = s % 10;
        change("HEURE1", h1);
        change("HEURE2", h2);
        change("MINUTE1", m1);
        change("MINUTE2", m2);
        change("SECONDE1", s1);
        change("SECONDE2", s2);
        setTimeout("maj()" ,1000)
}

function start()
{
        maj(); // On lance la mise à jour
}
