Sys.Application.add_init(AppInit);
 
function AppInit() {
  Authonomy.WebServices.BlogReader.GetBlog(OnSuccess, OnFailure);
}
 
function OnSuccess(result) {
  // Remove the .loading CSS from the div, to remove the 
  //  progress indicator background.
  Sys.UI.DomElement.removeCssClass($get('RSSBlock'), 'loading');
 
  // Fill the div with the HTML generated from the user control.
  $get('RSSBlock').innerHTML = result;
}
 
function OnFailure() {
  // Do something if our callback fails.  Retry it, perhaps.
}
