Why do you want to remove the switch in favour of a bunch of if's? IIRC, I have just recently changed it the other way (at least I think it was this one)...