Ben Horowitz (of a16z) discusses just this very problem:
http://bhorowitz.com/2010/08/23/how-to-minimize-politics-in-...
I enjoy Ben's blog post because talks about a more general company problem (politics), and gives guidance and process on how to avoid politics.