There are a couple of preference panes available to do this more simply:
DefaultApps (most user-friendly) and
MisFox (most techy)
You should have a look at these from versiontracker / macupdate; they are both good. Best use one or the other, though, not both!
Russ