Not sure about the way you're going about doing it, but your error is caused because you haven't properly initialized any of your variables... You're declaring them in one case statement and trying to use them in another.
Try declaring and initializing them all outside of the switch statement...
On a side note, go to Edit > Auto Format to make your code easier to read...