It's happened before and it will happen again---the inappropriate pairing of an ad and content---in this case an ad for two upscale communities at website "PutYourFeetUp.com", inadvertently paired with a grisly story of severed human feet washing up on a beach in British Columbia.

Contextual advertising is the analysis of keywords and page content to match a page with relevant ads. Unfortunately, the algorithms that govern the placement of advertising versus page content can only filter out so much, and the result is the occasional creepy pairing seen above.
The companies offering contextual advertising, among them Google AdSense, Overture's ContentMatch, and Adsdaq as well as news and information sites and others are surely trying to find away to avoid these unfortunate placements. It's not an easy problem to solve.
So---does this mean you shouldn't use contextual advertising. Not at all. Just be aware that sometimes s**t happens.
OpenX is a free, open source ad server trusted by more than 30,000 web publishers in over 100 countries around the world. Formerly known as OpenAds.
via Techcrunch
Tremor Media provides advertisers with in-banner and in-stream video advertising opportunities on top-tier publisher sites with a combined 92 million unique visitors per month. Tremor provides publishers with a full suite of products and services to monetize streaming video and maximize ROI.
Eyeblaster services enable users to plan, create, serve, manage and measure online campaigns
Doubleclick provides ad serving, rich media & video development, advertising exchange, affiliate marketing solutions.