<!-- verstecken für ätere Browser --
var im;
var ims="../images/";

function holeimage(en){
        img = new Array()
        for(var i=0; i <= 13; i++) {
                img[i] = new Image()
        }
        img[1].src = im+"/dg0.gif"
        img[2].src = im+"/dg1.gif"
        img[3].src = im+"/dg2.gif"
        img[4].src = im+"/dg3.gif"
        img[5].src = im+"/dg4.gif"
        img[6].src = im+"/dg5.gif"
        img[7].src = im+"/dg6.gif"
        img[8].src = im+"/dg7.gif"
        img[9].src = im+"/dg8.gif"
        img[10].src = im+"/dg9.gif"
        img[11].src = im+"/dgon.gif"
        img[12].src = im+"/dgoff.gif"
        img[13].src = im+"/dgp.gif"
        //img[14].src = im+"/dgpm.gif"

        var base = im+"/dgc"
        var space = im+"/space.gif"

        var per = false
}

function stop() {
        document.deins.src = space
        document.dzwei.src = space
        document.ddrei.src = space
        document.dvier.src = space
        document.dfuenf.src = space
        document.dsechs.src = space
        document.dsieben.src = space
        document.dacht.src = space
        document.dneun.src = space
        document.dzehn.src = space
        document.one.src = space
        document.two.src = space
        document.three.src = space
        document.four.src = space
        document.five.src = space
        document.six.src = space
        document.seven.src = space
        document.acht.src = space
//        document.neun.src = space
        per = false
}
function pause() {
        per = false
}

function go(i) {
        im=ims + i;
//alert(im + " Pfad")
        holeimage(im);
        per = true;
        start();
        start1();
}
function start() {
        if(per == true) {
                    var now = new Date()
                    var hours = now.getHours();
//                var ampm = (hours < 12) ? "am" : "pm"
//                hours = (hours > 12) ? (hours - 12) + "" : hours + ""
//                hours = (hours == "0") ? "0" : hours
                hours = (hours < 10) ? "0" + hours : hours + ""
                var minutes = now.getMinutes();
                minutes = (minutes < 10) ? "0" + minutes : minutes + ""
                var seconds = now.getSeconds();
                seconds = (seconds < 10) ? "0" + seconds : seconds + ""
//                document.one.src = (hours.charAt(0)=="0") ? space : add(hours.charAt(0))
                document.one.src = add(hours.charAt(0))
                document.two.src = add(hours.charAt(1))
                document.three.src = (now.getSeconds() % 2) ? add("on") : add("off")
                document.four.src = add(minutes.charAt(0))
                document.five.src = add(minutes.charAt(1))
                document.six.src = (now.getSeconds() % 2) ? add("on") : add("off")
                document.seven.src = add(seconds.charAt(0))
                document.acht.src = add(seconds.charAt(1))
                setTimeout("start()",1000)
        }
}

function add(it) {
        return im+"/dg" + it + ".gif"
}

function start1() {
//aktuellesDatum(document.lastModified);document.lastModified
        var nowd = new Date();
        var year = nowd.getFullYear();
        var month = nowd.getMonth() + 1;
        var day = nowd.getDate();
        var jahr = String(year);

        day = (day < 10) ? "0" + day : day + ""
        month = (month < 10) ? "0" + month : month + ""
//alert(parseInt(year));
//alert(year.substr(2, 2))
//        year = parseInt(year)
//        jahr = (jahr < 10) ? "0" + jahr : jahr + ""

//alert(day)

        document.d1.src = add(day.charAt(0))
        document.d2.src = add(day.charAt(1))
        document.d3.src = add("p")
        document.d4.src = add(month.charAt(0))
        document.d5.src = add(month.charAt(1))
        document.d6.src = add("p")
        document.d7.src = add(jahr.charAt(0))
        document.d8.src = add(jahr.charAt(1))
        document.d9.src = add(jahr.charAt(2))
        document.d10.src = add(jahr.charAt(3))

//      setTimeout("start1()",10000)
}

// -- Ende Verstecken -->
