And where is the global variable? These are a bunch of virtual switches. I didn't say that since it was a little too obvious. Also, if you have it working, then why would ask for help? If you aren't going to listen, don't bother posting.
I have a little question for you regarding this and some other reactions. Could you try to be a little less offended and a little more understanding that with communication in textual form you're missing about 80% of the actual communication and therefore people might mean something else then you read. The way you sometimes react is not helping and frankly not making the forum more enjoyable.
Thank you in advance for understanding.