var Experience = {
  share: {
    error: false,

    story: function(category, initial, name, city, tags, copy) {
      var params = "category=" + category + "&initial=" + initial + "&name=" + name + "&city=" + city + "&tags=" + tags + "&copy=" + copy;
      new Ajax.Updater("status", "feeds/share.php", {asynchronous: true, evalScripts: true, onFailure: Experience.share.backfire, parameters: params});
    },
    respond: function(id, category) {
      $("homeofthebrave").shared(id, category);
    },
    backfire: function() {
      $("homeofthebrave").failed();
      // alert("Oh no! Things went really wrong!");
    }
  },

  read: {
    story: function(id) {
      var params = "id=" + id;
      new Ajax.Updater("status", "feeds/read.php", {asynchronous: true, evalScripts: true, onFailure: Experience.share.backfire, parameters: params});
    },
    hashish: function() {
      new Ajax.Updater("status", "feeds/hash.php", {asynchronous: true, evalScripts: true, onFailure: Experience.share.backfire});
    }
  }
};