Resize border photo gallery

im using a resizing border for my photo gallery. ive got it finished and it works in dreamweaver and flash but when i uploaded the html file to my site it doesn’t exactly work right. if you click on a picture it loads the pic outside of the border but if you click the same pic again it works like its suppose to. do i need to load the pics when the page loads or somethin? heres the link www.atlifesend.com/alepics.html
btw, i have it open in a smaller window from the site.

im sorry, ive found the answer in another thread. thanks again scotty!!