Local time horizons in Pavlovian learning.