$(document).ready(function(){
  $.ajax({
      type: "GET",
      url: "ajax/proxy.php",
      data: {'url': 'http://apioh.net/blog/?feed=rss2&category_name=apioh'},
      dataType: "xml",
      success: function(rss) {
          storyhtml = '<h2>Recently in the <a href="http://apioh.net/blog/?cat=3">APIOH Blog</a>:</h2>';
          // storyhtml = "";
          $("rss channel item title:lt(3)", rss).each(function(i) {
              storyhtml += '<div class="story"><h3>';
              storyhtml += $(this).text();
              storyhtml += "</h3>";
              storyhtml += ($("rss channel item description:eq(" + i + ")",rss).text()).substring(0,250);
              storyhtml += "... <a href='";
              storyhtml += $("rss channel item link:eq(" + i + ")", rss).text();
              storyhtml += "'>Read&nbsp;More</a></p></div";
          });
          $("#blog-feed").html(storyhtml);
      }
  });
  // 
  // $('#donor-link').click(function () {
  //     $('.product').hide();
  //     $('#donorboard').show();
  //     return false;
  // });
  // 
  // $('#memorial-link').click(function () {
  //     $('.product').hide();
  //     $('#memorialboard').show();
  //     return false;
  // });
  // 
  // $('#lifeevents-link').click(function () {
  //     $('.product').hide();
  //     $('#lifeeventsboard').show();
  //     return false;
  // });
  // 
  // $('#donorboard').hide(); 
  // $('#lifeeventsboard').hide();
  
});
