The voters shifted from Republican to Democrat in what era?