/**
 * @author Administrator
 */
google.load("prototype", "1.6.0.3");
google.load("scriptaculous", "1.8.2");

google.setOnLoadCallback(function(){
    var timestamp = parseInt(new Date().getTime().toString().substring(0, 10));
    
    var nocacheurl = "./aggregate.php" + "?t=" + timestamp;
    
    new Ajax.PeriodicalUpdater('newswrapper', nocacheurl, {
        method: 'get',
        frequency: 30,
        decay: 1,
        onSuccess: function(){
            new Effect.Fade('newswrapper', {
                duration: 1.0,
                from: 0.5,
                to: 1.0
            });
        }
    });
});

