You know, I had lost track of this which I meant to reply to, so I guess bot's are good for something after all hah.
Craig, here is what i think, I think it is "GO" ing to cc every time, however, when I was testing it without stepping through the debugger, I would see sometimes that "bb" was the active window, sometimes "cc" was the active window (about like flipping a quarter % wise).
Try adding this after the last line of code -
and the message box, instead of the focused titlebar, will tell you where you are. Now, as to why the window isn't focused properly all the time, well, that sounds like a bug or a delay from the OS. I'm betting on bug myself, but who knows for sure. The wait probably just gives it time to focus.
P.s. -- you also didn't mention if you made 3 main stacks 1 main stack and 2 sub-stacks, the above was tested as both setups.