Hey:

I am using .scrollable to create an image gallery with thumbnails.

There are 6 viewable thumbnails at a time and the 'nextPage' and 'prevPage' buttons scroll the thumbnails in groups of 6.

I also have some functionality that (depending on what link you follow to get to the gallery)can load any image within the gallery upon pageload. meaning, it will display that image in the imageWrap and also scroll the thumbnails to the correct position(i am using a math equation for this) to display the highlighted thumbnail.

The problem is that when you click the nextPage button the 1st time,it will always go to the 2nd position(which is the normal behavior). so that means i have to somehow update that var to show that it is not starting at 0.

Does anyone have a clue as to how i might go about doing that?

Thanks!