
function
RSSReader(container, data)
{
  this.ul = pbu.$("ul",container)[0];
  pbu.$(this.ul).empty();
  var reader = this;
  var count = 0;
  pbu.$.ajax({
    type: "GET",
    url: "/rssproxy.php?url=http://pixboxbloggen.wordpress.com/feed/",
    dataType: "xml",
    success: function(xml) {
      pbu.$(xml).find("item").each(function() {
        if (count > 4)
          return;
        var txt = pbu.$(this).find("title:first").text();
        var ts = Date.parse(pbu.$(this).find("pubDate:first").text()) / 1000;
        var link = pbu.$(this).find("link:first").text();
        pbu.$(reader.ul).append("<li class='blog'><a target='_new' href='"+link+"'>"+pbu.htmlescape(txt)+"</a> <span>("+pbu.humanizeTimestamp(ts)+")</span></li>");
        count++;
      });
   }
  });
}

RSSReader.prototype.applyUpdate = function(json) {
}

