Open System Preferences and click Login. Click the Login Items tab and click Add, then select an application or document. Drag items in the list to change the order in which they open.
To stop an application from opening at startup, select it and click Remove.