maybe my drawing is a little bit too weird...

the isolation works as follows:
1. when the capacitor is connected to the battery pack, it is not connected to arduino ground (not even via a voltage divider... air is a good isolator...)...
2. when the capacitor is connected to the voltage divider, it is isolated from the battery (again by air)...

does the URL work for u?
it doesnt work for me...
PS: i took the idea from the LTC1043 datasheet...

PPS: the relays might need external fly back diodes...
PPPS: i changed the picture a little bit... it might be easier to read now...