ArcGIS API for JavaScript: Switch (MapServer)

Built using the ArcGIS API for JavaScript