jQuery('#divTopo a, .topo').live('click', function(){
    jQuery("html, body").animate({scrollTop:0}, 'slow');
});

function Timer(callback, delay) {
    var timerId, start, remaining = delay;

    this.pause = function() {
        window.clearInterval(timerId);
        remaining -= new Date() - start;
    };

    this.resume = function() {
        start = new Date();
        timerId = window.setInterval(callback, remaining);
    };

    this.resume();
}
