The Emergence of the Thick Disk in a Cold Dark Matter Universe