Thumbs in xml photogallery

Hi quick question.
I’ve done my photogallery and all, everything is working. Now my problem is that I used a grid 3x3. When I go to the second page, the highlight on the thumbnails follows and changes page directly. Now If I go previous, it only follows if I click 2 times previous.

Could someone tell me what the code.

I know to go the next image would be:

currentImg = curImage%9;

What would it be for previous.

Thank you.

I have another question. Is there anyway to make the gallery load faster ? For me it takes about 40 seconds to load 15 thumbs.

Thanks.

Hey this is really weird. If I try the gallery on my computer everything works. Now once online. some of the Images don’t even load. The preloader stays at 0%. Could someone help me, its really important.

Thank you.

I had to chmod the directory of images and XML file to 777 for it to work, maybe that will help.

Actually you are right. I also forgot that linux is case sensitive and my extensions were uppercase.

Thanks.