  We demonstrate sharp thermally-induced switching between ferromagnetic and
antiferromagnetic RKKY exchange in a spin-valve with the spacer incorporating a
thin diluted ferromagnetic layer as the core. We illustrate the mechanism
behind the effect as due to a change in the effective thickness of the spacer
induced by the Curie transition into its paramagnetic state.
