suggests, which is indeed right out of holy writ. However, don't be too quick to give up the old if/then/else. While maybe not as clean looking or as cool, the venerable standby can be about 2x as fast, though, admittedly, usually not noticeable unless you are testing thousands of conditions :-)
Switch/case is one of the RARE features I miss from traditionally frowned upon javascript.