I feel for you, but keep your chin up -- things will get better.
I was fired from my job last Halloween because my manager was an ass who wanted a "yes-man" who just agreed with everything he said. He was intimidated by the fact that I knew far more than he did (he even made a fool of himself in front of several directors and the CIO; he tried making me look like I didn't know what I was talking about, but before I got a chance to defend myself, the CIO ripped him apart and said he was completely wrong with what he was saying. Good times... Except I was fired about 4 hours after that... ).
Anyway, I felt like CRAP. But I contacted my former manager via email to let him know what happened, and his one-line email cheered me up a bit:
"I want you back!"
An hour later, I had an interview setup, met with him and discussed what he saw me doing for him this time around. A week later I had a verbal offer, and a week after that I had the official offer, and it was was roughly a 14% raise and an increase in title/responsibility!
Morale in the building started to really go down (I was well liked - and actually still have lunch every month with people from the company), and my manager was eventually "encouraged to leave." He was out the door about 9 months after me.
Like I said, these things have a way of working themselves out. You'll be fine - just keep your chin up!