Help with tut please

I forget where I downloaded a tutorial that demonstrates how to resize the border around a picture every time a new one loads… anyway it works fine locally, however, I’ve recently posted it live (well semi-live) and it seems something in the preload is not working correctly.

For instance if you goto:
http://desousadesign.ca/main.html

and navigate through it, you’ll notice the images don’t resize the border properly on the first hit (infact the border actually decreases in size?). If you load it a second time it loads perfectly, the way it was intended. That’s why I think it’s something in the preloader.

Maybe someone can someone shed some light on this issue I’ve encountered? Please :slight_smile:

Thanks.