FUEL.model =
{
   callback: "",
   
   find: function( model, id, callback )
   {
      FUEL.model.callback = callback;
      $.ajax({ type: "POST",
               url: "/model_find.php", 
               data: { model: model, id: id },
               success: FUEL.model.find_Success,
               error: FUEL.model.find_Error,
               dataType: "json" 
            });
    },

   find_Success: function( modelData, textStatus )
   {
      FUEL.model.callback( modelData );
   },

   find_Error: function( XMLHttpRequest, textStatus, errorThrown )
   {
      alert( "Error Loading Model: " + textStatus );
      this.callback( null );
   }
}

FUEL.user =
{
   find: function( id, callback ) { FUEL.model.find( "user", id, callback ); }
}