
declarePackage("kagiso");kagiso.Updates=function(type,section){var self;var UPDATE_INTERVAL=1000*30*1;var type;var section;function constructorFn(type,section){self=this;self.type=type;self.section=section;Event.observe(window,"load",function(){setInterval(self.init,UPDATE_INTERVAL);self.init();});}
constructorFn.prototype.init=function(){cambrient.loadFragmentVar('/modletInclude/updates/fragments/updates',function(template){cambrient.ajax.request('/json/'+ccs.appName+'/'+ccs.languageCode+'/modules/updates/get_updates.json?section='+section+'&type='+type,function(reply){if(reply.responseText){var data="";try{data=reply.responseText.evalJSON();if(!data.error){$('updates').innerHTML=cambrient.processTemplate(template,data);}}
catch(err){};}});});}
return new constructorFn(type,section);}
