Having Problems with SetInterval

I am trying to make a banner like item for a website I am working on, I have 1 external text file 4 external swf’s and 1 external .jpg
that I am trying to get to do this:

on page load display img1.jpg for 60 seconds and then randomly select a number and then display the file that is associated with that number, for 60 seconds, and do it again, and again until all of the text and swf files have been displayed and then start over from the beginning,
Now I can get it to select a random number and then pull up a file that is associated with that number with this code

I have shortened the time to see it work but still no avail

[COLOR=red]Example random code:[/COLOR]

Movienum = Math.floor(math.random()*5);
if(Movienum == 0) loadVariableNum ("loaded_Text.txt", 0)
if(Movienum == 1) loadVariableNum ("1.swf", 0)
if(Movienum == 2) loadVariableNum ("2.swf", 0)
if(Movienum == 3) loadVariableNum ("3.swf", 0)
if(Movienum == 4) loadVariableNum ("4.swf", 0)

Now with the SetInterval I tried this and wound up with squat
can somebody PLEASE help me I am starting to get Desperate

[COLOR=red]New Example code:[/COLOR]

Movienum = Math.floor(math.random()*5);
function countDown() {
	if (Movienum == 0) {
		loadVariablesNum("loaded_text.txt", 0);
	} else {
		loadVariablesNum("img1.jpg", 0);
		clearInterval(timer);
	}
}
timer = setInterval(countDown, 1000);
function countDown() {
	if (Movienum == 1) {
		loadVariablesNum("1.swf", 0);
	} else {
		loadVariablesNum("img1.jpg", 0);
		clearInterval(timer);
	}
}
timer = setInterval(countDown, 1000);
function countDown() {
	if (Movienum == 2) {
		loadVariablesNum("2.swf", 0);
	} else {
		loadVariablesNum("img1.jpg", 0);
		clearInterval(timer);
	}
}
timer = setInterval(countDown, 1000);
function countDown() {
	if (Movienum == 3) {
		loadVariablesNum("3.swf", 0);
	} else {
		loadVariablesNum("img1.jpg", 0);
		clearInterval(timer);
	}
}
timer = setInterval(countDown, 1000);
function countDown() {
	if (Movienum == 4) {
		loadVariablesNum("4.swf", 0);
	} else {
		loadVariablesNum("img1.jpg", 0);
		clearInterval(timer);
	}
}
timer = setInterval(countDown, 1000);