Rewrote the set_selected_sim() method as the changes of r6475 were rubbish.
Authored by: bugman 2008-06-23
Parent: [r6475]
Child: [r6477]