Gina Trapani introduced a very practical little tool called Minime on Lifehacker today. It is written in AutoIt, which is based on JavaScript, and can reduce the number of taskbar windows, displaying corresponding icons in the system tray instead.
To use Minime, run it, activate the desired window, then press Ctrl + Shift + Z for the following effect.