function ge(elem) {
  return document.getElementById(elem);
}



/*
 * Show the feed form. This would be typically called in response to the
 * onclick handler of a "Publish" button, or in the onload event after
 * the user submits a form with info that should be published.
 *
 */
function facebook_publish_feed_story(form_bundle_id, template_data, user_message_prompt, user_message_text) {
  // Load the feed form
  FB.ensureInit(function() {
      var user_message = {"value": user_message_text}; 
      var continuation = function() {  }; 
      FB.Connect.showFeedDialog(form_bundle_id, template_data, null, null, null, FB.RequireConnect.require, continuation, user_message_prompt, user_message);
  });
}

function facebook_logout(redirect) {
    FB.ensureInit( function() { 
        FB.Connect.logout(function() {
            location.href = redirect;
        });
    });
}

