Behavioral mechanisms of thermoregulation