In the section Built-in event handlers and functions in the page http://www.menucool.com/jquery-slider, you will find two functions:
- getPos()
- getSlideIndex(li)
For the second one, you pass in the selected li, and compare the two values of above two functions, if they are equal, then popup the modal. This is my thought, but I didn't test it. You can have a try.