A good lawer should be able to get you out of it. I had a simmilar situation last December. The case was dismissed due to illigal search, and they found a jar of good stuff in my pocket. I ended up getting off completly.

My lawer had me bring a recent pay stub, college transcripts, a clean drug screen, and go to drug offender school, but it worked. Less than $700 including lawer costs!!

Good luck, and fight the good fight!