// this array consists of the id attributes of the divs we wish to alternate between

var divs_to_fade = new Array;
	divs_to_fade[0]="tickerbox-1";
	divs_to_fade[1]="tickerbox-2";
	divs_to_fade[2]="tickerbox-3";
	divs_to_fade[3]="tickerbox-4";
	divs_to_fade[4]="tickerbox-5";
	divs_to_fade[5]="tickerbox-6";
	divs_to_fade[6]="tickerbox-7";
	divs_to_fade[7]="tickerbox-8";
	divs_to_fade[8]="tickerbox-9";
	
		
// the starting index in the above array.  It should be set to the value of the div which doesn't have the CSS Display property set to "none"
var tickertime = 0;

// the function that performs the fade
function swapFade() {
	
	Effect.Fade(divs_to_fade[tickertime], {duration:1, from:1, to:0});
	
	tickertime++;
	
	if (tickertime == 9) {
		tickertime = 0;
	}
	
	Effect.Appear(divs_to_fade[tickertime], { duration:1, from:0, to:1 });
}
			
// the onload event handler that starts the fading.
function startTicker() {
	setInterval("swapFade()",7000);
}
