Firefox and IE execute different than Safari

Hello,
I wrote a simple flash movie that shows a different frame depending on the date for a countdown. It works fine in Safari however in Firefox, gotoAndStop() apparently doesn’t work at all and combining gotoAndPlay() and then stop() on the frame always sends it to the wrong frame.

Weird thing is that when I only had a textfield on each frame this worked. As soon as I put an image on the frame, it went bonkers. Here’s the code. Anyone know why this is happening??


_root.onLoad = function() {
    var currentDate = new Date();
    var curYear = currentDate.getFullYear();
    var curMon = currentDate.getMonth()+1;
    var curDay = currentDate.getDate()+1;    
    var frameNum = 1;
    if (curYear == 2009) {
        if (curMon == 8) {
            if(curDay <= 4){
                frameNum = 8;
            }else if (curDay == 5){
                frameNum = 7;
            }else if (curDay == 6) {
                frameNum = 6;
            }else if (curDay == 7) {
                frameNum = 5;
            }
        }
        else{
            frameNum = 8;
        }
    }
    gotoAndPlay(frameNum);
}

Thanks!!