The Transformation of Cluster Galaxies at Intermediate Redshift