The code you have your fingers in right now control the link to the slide show. If you want to modify the slide show output you need to dig into the function nggShowSlideshow or nggShow_JS_Slideshow depending on if you have enabled the flash slide show or not.
Hope that helps you on the way.
