0
As you asked in your question, I'm going to try and address your performance issues here. Some of this will be a style review though, so bear with me.
Style
First off, no offense, but this code looks, not so great. You have many major style issues, so here's a list of some of the major ones ...