//-- This is the javascript module for module_statistics.php

// This is an periodical update checke//-- This is the javascript module for module_statistics.php

// This is an periodical update checkes per 1 second if there are any changes
// is not that after 2 secs. if not then after 4 secs. ect.
Ajax.Responders.register({
    onComplete:function(t){fixPNG('stats_container');}
    
});
 var statsupdater = new Ajax.PeriodicalUpdater('stats_container', '/modules/module_statistics.php',
  {
    method: 'post',parameters:"stats_is_ajax=true",
    frequency: 2,
    decay: 2
  });


statsupdater.stop();

var randomuser =new Ajax.PeriodicalUpdater('random_member', '/modules/module_statistics.php',
  {
    method: 'post',parameters:"stats_is_ajax=true&action=randommember",
    frequency: 8,
    decay: 2
  });

//randomuser.stop();