"If the word following ""the starts with a consonant sound, you pronounce "the" as "thuh." If the word following "the" starts with a vowel sound, you pronounce "the" as "thee."
Source, Grammar Girl (who could reasonably claim to know grammar better than a person called grammar girl?).
:)