Still, all in all, McCain was ahead in the polls, until Lehman went under.
Not true.
McCain was ahead only for the short period between September 7 and September 16. Between April 15 and September 7, Obama led the polls.
http://www.realclearpolitics.com/epolls/2008/president/us/general_election_mccain_vs_obama-225.html
In fact, as the data shows, Obama was consistently higher through almost the entire Presidential race.
As an aside, it is very hard to deny that Sarah Palin was the sole reason why McCain had any hope left for the election. She was brought on specifically to energize the conservative base, which was apathetic about McCain but was nevertheless ready to vote for him since it considered him the lesser of the two evils.
And energize she did. She was announced as the VP pick on August 29, and almost immediately the polls switched direction, with the Democrats losing their lead rapidly.
The fact that someone so stunningly ignorant about international affairs and economic policy (as Palin clearly was) could re-energize the Republicans in this significant manner simply due to the strength of her conservative roots, serves as a clear testament to their (the Republicans') ideological blindness.
But then Lehman Brothers fell. On September 9, with the announcement from Korea Development Bank that they would probably no longer be interested in taking over Lehman, Lehman's stock lost nearly half its value and the Dow closed significantly lower. Fear of a sinking economy was reinforced as the greatest concern for Americans in their minds in this presidential election. Republicans, generally considered to be less adept at handling the economy than the Democrats, started losing their lead at that point.
On September 15, Lehman Brothers filed for bankruptcy. In response, McCain, while campaigning in Florida, claimed that the "fundamentals of the economy" were still "strong".
That was the day he lost the election. Within three days, Obama was once again leading the polls, and his lead was never threatened thereafter.