function getSeconds() {
    now = new Date();
    return Math.floor((Date.UTC(now.getFullYear(), now.getMonth(), now.getDate(), now.getHours(), now.getMinutes(), now.getSeconds(), now.getMilliseconds()) - Date.UTC(2009, 0, 1)) / 1000);
}

function getBorn() {
    return Math.floor(getSeconds() / 18);
}

function getDead() {
    return Math.floor(getSeconds() / 16);
}

function getArrived() {
    return Math.floor(getSeconds() / 112);
}

function getDeparted() {
    return Math.floor(getSeconds() / 798);
}

function getTotal() {
    return 141903979 + getBorn() - getDead() + getArrived() - getDeparted();
}

function getWorld() {
    return 6750819383 + Math.floor(2.544242 * getSeconds());
}

function getDaysToDate() {
    now = new Date();
    return Math.floor((Date.UTC(2010, 9, 14) - Date.UTC(now.getFullYear(), now.getMonth(), now.getDate(), now.getHours(), now.getMinutes(), now.getSeconds(), now.getMilliseconds())) / 86400000) + 1;
}

function formatNumber(number) {
    var s;
    var r;

    s = number.toString();

    r = "";

    for (i = 0; i < s.length; i++) {
        r = s.substr(s.length - i - 1, 1) + r;
        if ((i + 1) / 3 == Math.floor((i + 1) / 3)) {
            r = " " + r;
        }
    }

    return r;
}
