A/B/Y switching circuit