Can anyone tell me where this relay is hidden and is there a diagram or similar that explains what each of the 100 or so relays does[its probably less but thats what it looks like]
It's above the passengers footwell area I think - thats where most of the relays are. It's in a block of nine relays in a 3 x 3 square pattern.
If you can find the relay that clicks for the intermittent front wiper , the foglight relay is next to that. It's also beside the sunroof relay, that'll click also if you have one.
Looks like a standard 4pin relay so you can interchange with other 4 pin ones to prove the relay, etc.
Diagrams are in the electronic XM workshop manual - PM Noz on this site if you need one and grease his palm with silver.