google.load("feeds", "1");

// Our callback function, for when a feed is loaded.
function feedLoaded(result) {
  if (!result.error) {
    // Grab the container we will put the results into
    var container = document.getElementById("blogContent");
    container.innerHTML = '';

    // Loop through the feeds, putting the titles onto the page.
    // Check out the result object for a list of properties returned in each entry.
    // http://code.google.com/apis/ajaxfeeds/documentation/reference.html#JSON
    for (var i = 0; i < result.feed.entries.length; i++) {
      var entry = result.feed.entries[i];
      var div = document.createElement("li");
      div.innerHTML = "<a href=\"" + entry.link + "\">" + entry.title + "</a>";
      container.appendChild(div);
    }
  }
}
function feedLoadedaba(result) {
  if (!result.error) {
    // Grab the container we will put the results into
    var container = document.getElementById("aba");
    container.innerHTML = '';

    // Loop through the feeds, putting the titles onto the page.
    // Check out the result object for a list of properties returned in each entry.
    // http://code.google.com/apis/ajaxfeeds/documentation/reference.html#JSON
    for (var i = 0; i < result.feed.entries.length; i++) {
      var entry = result.feed.entries[i];
      var div = document.createElement("li");
      div.innerHTML = "<a href=\"" + entry.link + "\">" + entry.title + "</a>";
      container.appendChild(div);
    }
  }
}
function OnLoad() {

  var feed = new google.feeds.Feed("http://www.stephenlmiles.com/resources/atom.xml");
  feed.load(feedLoaded);

}

google.setOnLoadCallback(OnLoad);
