Generation of evolutionary novelty by functional shift