Rail crossing for folding door