Complex sentence: The possibility of a Bayrou presidency took the French establishment by surprise, which had been expecting the battle to be fought primarily between Sarkozy and Royal, both very personable and media-friendly.
Split into simpler sentences: The possibility of a Bayrou presidency took the French establishment by surprise. It had been expecting the battle to be fought primarily between Sarkozy and Royal, both very personable and media-friendly.