The election of Barack Obama, we were told, would bring new respect and friendship for America in the world.