Layered magnetic structures: antiferromagnetic type interlayer coupling and magnetoresistance due to antiparallel alignment