

var sponsor = {
    change: function(id, section) {
        var rpl = ajax.exec('GET', '/application/api/sponsor.change.php', 'id=' + id + '&section=' + section);
        //10000 = 10 seconds.
        var reply = ajax.eval(rpl);
        if (reply.error) return;

        window.setTimeout(
            function() {
                app.get('flash_header').innerHTML = reply.view;
                return sponsor.change(reply.id, section);
            },
            10000
        );
    }
}

