Marriage - Divorce - Separation - How to Handle the Split Loyalties with Friends 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