For version 4, open Safari from the command prompt with the switch: /enableInternalDebugMenu
e.g. "C:Program FilesSafariSafari.exe" /enableInternalDebugMenu
For version 3, the switch is: /enableDebugMenu
Note: You only need to do this once -- Safari will remember the setting.