You can install SQL 2000 and SQL 2005 on the same machine. I always recommend that they be installed in this order to try and get everything working as best as possible.
- Install SQL 2000
- Install SQL 2005
- Install SQL 2000 SP4 (Or the latest service pack)
- Install SQL 2005 SP2 (Or the latest service pack)