Help with coding...

It's hard to tell what's going on and what's supposed to happen, but I can tell you that all the delays between a "break" and the next "case" will never get executed, so they may as well not be there.
Something that isn't there but should be, is a pair of code tags.

if( ((VARone) == (0)) && ((VARtwo)==(0)) && ((VARthree)==(0)) )

(Why) do (you) have (so) many (unnecessary) parentheses?