google.load("prototype", "1.6.0.3");
google.load("scriptaculous", "1.8.2");

// the functions that perform the fade

function swapFade(id) {
	new Effect.Fade(divs_to_fade[i], {queue: {position: 'front', scope: 'swap'}});
	
	new Effect.Appear(divs_to_fade[id], {queue: {position: 'end', scope: 'swap'}});

	i=id;
}