One of the best programs I've ever used is called Cocktail. You can get it at
http://maintain.se/cocktail
It is less than $20, but it is worth it. Every time Apple posts an OS update, like 10.5.5, Cocktail makes a new version of their software that is compatible with your OS update. They've given updates for years, right after the Operating System gets a boost. Cocktail runs through AutoPilot basically, clearing temporary internet files, crash logs, trash can contents, repairs disk permissions, and even shuts your computer off for you when it's done. It runs through all the maintenance you should do daily, weekly, monthly. Every 6 months or so, you should open Disk Utility in the Utilities folder, click "Erase Free Space", and I like to choose the option "Overwrite Free Space with Zeros". It overwrites all your old deleted files with zeros from start to finish of your hard drive, then erases all the zeros. All of your deleted data is permanently erased and overwritten for your own security, and your free space is not full of old deleted junk anymore. It's almost more useful than defragmenting, I think.
You might also want to check out Drive Genius and Disk Warrior. They are each $99 programs, but they really get the job done. Both programs give you bootable CD's. When you are booted to Drive Genius, you can defragment your hard drive, duplicate drives, erase drives, repair drives, scan for corrupt files, erase unused items, rebuild the directory, and a few other tools. Disk Warrior will check all files for corruption and repair them, optimize your directory and repair damaged files. It also repairs your disk permissions, and makes the machine run faster than before by making such repairs.
Goodluck!