After watching McCain's campaign, which I donated to, I believe that he intended all along to get Obama elected.
Maybe their goals and mindset are not all that different.