Marriage - Divorce - Separation - How to handle the split loyalties after separation.

We have all most probably encountered it at some stage in our lives - who do we stay friends with after a couple divorces or separates? The text book answer is to stay friends with both parties of course but that