//SE rewrote/reorg.
FunClock = function() {    
    FunClock.prototype.clock = this;
    this.run();
}

FunClock.prototype = new DynLayer();
FunClock.prototype.clock = null;

FunClock.prototype.run = function() {
    var runTime = new Date();
    var hours = runTime.getHours();
    var minutes = runTime.getMinutes();
    var seconds = runTime.getSeconds();
    var dn = "AM";
    if (hours >= 12) {
        dn = "PM";
        hours = hours - 12;
    }
    if (hours == 0) {
        hours = 12;
    }
    if (minutes <= 9) {
        minutes = "0" + minutes;
    }
    if (seconds <= 9) {
        seconds = "0" + seconds;
    }
    
    var time = "<span class=clock><b>"+ hours + ":" + minutes + ":" + seconds + "</b></span>";
    FunClock.prototype.clock.setHTML(time);
    
    FunClock.prototype.clock.setX(100);
    FunClock.prototype.clock.setY(35);
    FunClock.prototype.clock.setSize(80,15);    

    FunClock.prototype.clock.setZIndex(100);    
    setTimeout("FunClock.prototype.clock.run.call()", 1000); 
}




