// This script is © 2004 Media One Inc. (1 of 2 parts)
//for information on using this or any other Media One script contact aaron@m-1.com
// This script is built to handle any number of pics & words.

var loops = 0;
function LoopPics(){
	var loopOn = loops+1;
	loops = loopOn;
		if(picNum>=loopOn){//displays new pics and scrolling text in IE, Static rtext in other browsers.
				if(document.all){
					document.getElementById('text').innerHTML = '<marquee direction="left" behavior="slide" width="300" align="left" loop="1" scrollamount="20">'+wordArray[loopOn]+'</marquee>'
					}
				else{
					document.getElementById('text').innerHTML = ' '+wordArray[loopOn]+''
					}
				document.images['trailer'].src = 'img/'+loopOn+'.gif';
				setTimeout('LoopPics()', time);
			}
		else{
			loops = 0;
			setTimeout('LoopPics()',0);
			}
	}


function makeArray()    {
this[0] = makeArray.arguments.length;
for (i = 0; i<makeArray.arguments.length; i++)
        this[i+1] = makeArray.arguments[i];
}
