Multiple images breaking my swf

what its meant to do:
A casestudy, has a section for each client, showing a selection of work for each one. It starts at a random client/section each time it is loaded, and there is also a menu that allows you to go to a specific client/section if you want.

So what i’ve done is made a randomly generated var at frame 1, and then told it to gotoAndPlay different sections of my timeline

 var myVar = Math.floor(Math.random() * 6) + 1; 

if (myVar == 1) {
    gotoAndPlay(5);
} else if (myVar == 2) {
    gotoAndPlay(50);
} else if (myVar == 3) {
    gotoAndPlay(150);
} else if (myVar == 4) {
    gotoAndPlay(200);
} else if (myVar == 5) {
    gotoAndPlay(250);
} else if (myVar == 6) {
    gotoAndPlay(300);
} else {
    gotoAndPlay(350);
}

stop();

This is working fine, as is the menu. However, as soon as I add a new layer with 2 or more images, in any of the sections it stops working.

Stranger still, it seems to be if i use more than one of the same image type it wont work
ie, 1 jpg, 1 gif, 1 png it still works, but if i have 2 jpgs or 2 gifs it will break.

I also tried making a movie clip to hold my images, but the same thing happens

I really hope that made some sense to someone…