Why don't you just do this via the doc?
That is so much easier than what I was going to say! You can also use System Preferences > Accounts > Login Items (tab). That method also provides the option to Hide applications while they are running, but is a good deal more work!
