Have you tried to delete the Dock Preferences (/YourHardDrive/Users/YourUserName/Library/Preferences/com.apple.dock.plist and also in Leopard /YourHardDrive/Users/YourUserName/Library/Preferences/com.apple.dock.db)? This might reset the dock and fix it.