Crystal Structure Transitions in Antiferromagnetic Compounds at the Curie Temperature