Party and Ideological Distance as Factors in Voting