I gather that it began to happen around the earlier part of the 20th century (I think) but it still seems confusing to me that they completely reversed like they have.
I have found some links here: http://www.reddit.com/r/AskHistorians/wiki/us_history#wiki_changing_role_of_republicans_and_democrats
This is probably the best answer I've found so far: http://www.reddit.com/r/AskHistorians/comments/yczua/can_someone_address_a_brief_history_of_democrats/
hi! not to discourage further discussion here, but just fyi, you can get started on this topic in the FAQ