$("#user-data").fadeIn("fast");
$("#user-data").html("<%= escape_javascript(render(:partial => @page)) %>");

<% if ["comments", "matches", "predictions", "teams"].include? @page %>
  $("#user-data").removeClass("box");
<% else %>
  $("#user-data").addClass("box");
<% end %>