Pass variable to RJS

Ok, so, ive got a link and a rjs file, is there a way i can pass a
variable to the rjs by the remote_to link

example…

<%= link_to_remote “All”, :url => ‘all’ %>
<%= link_to_remote “Messages”, :url => ‘messages’ %>
<%= link_to_remote “Requests”, :url => ‘requests’ %>
<%= link_to_remote “Comments”, :url => ‘comments’ %>

instead of having a rjs for each one performing the action below,
could i have one and pass a variable to it so it knowns with partial
to render.

my rjs is…

page.visual_effect :fade, “activity”, :queue => ‘front’, :duration =>
0.2
page.delay(0.3) do
page.replace_html “activity”, :partial => “all”
end
page.delay(0.5) do
page.visual_effect :appear, “activity”, :duration => 0.6
end

any ideas?

Thanxs from a newbie