function RESOSCO_onAfterLoad() {
   var modulesToUpdate = new Array();
   try {
      $each(RESOSCO_modules, function(module, i){
         if (1 != module.status) {
            modulesToUpdate.push(module);
         } else {
            module.highlightFav();
         }
      }); 
   
      if (modulesToUpdate.length > 0) {
         initUpdateModules(modulesToUpdate);
      }
   } catch(ex) {
//      alert(ex.message);
   }
}

function RESOSCO_updateOnlineMatches() {
   var matchesToUpdate = new Array();
   $each(RESOSCO_matches, function(match){
      if ('active' == match.properties.status) {
         matchesToUpdate.push(match);
      }
   });
   
   if (matchesToUpdate.length > 0) {
      updateMatches(matchesToUpdate);
   }
}
