#1. "RE: D5000 - Auto Rotate Images" In response to Reply # 0
Page 170 of the D5000 manual explains the ‘Auto-Rotate’ feature and that you will find it in the ‘Set up’ menu.
Be aware though that not all programs honor that setting so whether it is rotated or not will depend on the program. Programs such as ViewNX, CaptureNX 2 or Adobe PS will honor the setting, but programs such as Windows Explorer and Paint do not.