Scripting causing memory error. Need Help!

Thanks to the help of Scotty and Kirupa i managed to get my photogallery up and on my site but i’m having a problem. It loads a few of the pictures but then it quits working. After it quits working and i close the browser it gives me this error:

[font=Arial]iexplore.exe - Application Error[/font]

[font=Arial] [/font]

[font=Arial]The instruction at “0x10005f6c” referenced memory at “0x10005f6c”. The memory could not be “read”.[/font]

[font=Arial]Click on OK to terminate the program[/font]

You can go to www.keniniraq.com and try for yourself. Under the Pictures of Iraq page it should only load up till the 3rd picture. Anything after that and it quits working. Somebody please help me fix this.