When I type the url for one of my services into the address bar, I am able to select ArcGIS.com map. If I select this I am brought to http://www.arcgis.com/home/webmap/viewer.html, with my service being displayed. I can then select 'Content' and I see all the layers and sub-layers for that service. I can then choose to show the legend. This is exactly how I wany the web app I am writing to look. Where can I find the code to do this ? Thanks.