//edit 3-28-2011 - tristan - making things manageable from index.php
			// this array consists of the id attributes of the divs we wish to alternate between
			//var divs_to_fade = (HomePageSlideshow)?HomePageSlideshow:new Array({ID:'box-1'}, {ID:'box-2'}, {ID:'box-3'});
		
			// 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 i = 0;
			
			// the number of milliseconds between swaps.  Default is five seconds.
			var wait = 5000;

			
			//yeah
			//ChangeBackgroundsBool = true;
			
			// the function that performs the fade
			function swapFade() {
				if(typeof divs_to_fade == undefined){return;}
				else{
/*					if(ChangeBackgroundsBool){
						ChangeBackgroundsBool=false;
					}
*/					if (i == -1) i = 0;
					Effect.Fade(divs_to_fade[i].ID, { duration:1, from:1.0, to:0.0 });
					i++;
					if (i == divs_to_fade.length) i = 0;
					Effect.Appear(divs_to_fade[i].ID, { duration:1, from:0.0, to:1.0 });
				}
			}
			
			// the onload event handler that starts the fading.
			function startPage() {
				setInterval('swapFade()',wait);
				var i = 0;
			}
