you should separate the nav links from the image collection, i.e. place the images in one container and the anv anchors outside of it; that way you won't run into problems with siblings that aren't images.
- [jQuery] Scrolling between images in list item Bart Schutte
- [jQuery] Re: Scrolling between images in list item jquertil