// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

// Manages the info about the current user
var UserInfo = {
  toggle: function() {
    if($('userinfo').visible()) {
      $('userinfo').hide();
      $('userinfo_toggler').update('Show Info');
    } else {
      //new Ajax.Updater($('userinfo'), "/userinfo_text", {method:'get'});
      $('userinfo').show();
      $('userinfo_toggler').update('Hide Info');
    }
  }
}
