your best bet would be to hide the default navigation arrows and add
your own custom navigation where you can manipulate the javascript.
I published and example here
http://stackoverflow.com/a/8440744/1055987
that example adds the navigation within the title
I guess you can add your custom functionality within the onclick
attribute