SITEUPDATES_AJAX_URL = '/common/ajax/front/components/SiteUpdates/ajax.php';

function fncSiteUpdatesComponent_SiteUpdates_Load(offset, object){
	
	elm                	= $(object.elm);
	uniqid             	= object.uniqid;
	
	$('SiteUpdates_'+uniqid).down('.su_viewall').update('<center><br><img src="/common/templates/default/images/loadingsmall.gif" /><br><br></center>');

	new Ajax.Updater({ success : $('SiteUpdates_'+uniqid).down('.su_ajax')}, SITEUPDATES_AJAX_URL, {
		parameters: { 
			action             	: 'SiteUpdates_Load',
			offset             	: offset,
			uniqid             	: uniqid
		},
		evalScripts : true,
							
		onSuccess: function(transport){
		
		},
		
		onFailure: function(transport){
			$('SiteUpdates_'+uniqid).down('.su_viewall').update('Error retrieving news. Please refresh the page.'); 
		}
	});
	
}
