Thank you, Matt, I may use this to set up my accordion panes when I get to that point.
Currently, I think my main issue is figuring out how to call individual layers within my map, which was set up through ArcGIS online. The first three layers in my map are all tiled services, and seem to have easy to understand ID numbers: 1, 2, and 3. I also can get the basemap added to my legend by using the ID 0 (zero). After that, everything I try is coming up as undefined. Any idea why this may be? Are feature services ID numbers set up differently than other services?
Please let me know if this should be posted in another forum, or anything.
Thanks again,
-Arty