google.load("jquery", "1.3.2");
google.load("feeds", "1");
function OnLoad(){
	$("#popupContactbox").animate({opacity: 1.0}, 5000).fadeIn('slow');

  var feed = new google.feeds.Feed("http://www.marylandnursinghomelawyer.net/atom.xml");
  feed.load(feedLoaded);
  var feedaba = new google.feeds.Feed("http://www.marylandmalpracticelawyer.net/atom.xml");
  feedaba.load(feedLoadedaba);
}

google.setOnLoadCallback(OnLoad);

/*
*  How to load a feed via the Feeds API.
*/



// 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("blog1");
    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("blog2");
    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);
    }
  }
}


