There’s a plug in for Firefox and IE that prevents Google from using behavioral tracking to send you advertisements. http://www.google.com/ads/preferences/plugin/
This short article describes what you can avoid. Here’s a more detailed article.
Go here to opt out of other tracking networks.