function initSwapping() {
	
	
	setTimeout ( "swapPhoto()", 6000 );
	
	
	
	i = 0;
	j = 1;
}

function swapPhoto() {
	
	var first = new Array();
	first[0] = "denayersite/images/i/photo_1.jpg";
	first[1] = "denayersite/images/i/photo_4.jpg";
	first[2] = "denayersite/images/i/photo_7.jpg";
	
	var second = new Array();
	second[0] = "denayersite/images/i/photo_2.jpg";
	second[1] = "denayersite/images/i/photo_5.jpg";
	second[2] = "denayersite/images/i/photo_8.jpg";
	
	var third = new Array();
	third[0] = "denayersite/images/i/photo_3.jpg";
	third[1] = "denayersite/images/i/photo_6.jpg";
	third[2] = "denayersite/images/i/photo_9.jpg";
	
	
	element = document.getElementById("topimage1");
	element.innerHTML = "<img src=\"" + first[i] + "\" id=\"photo1\" />";
	element.style.background = "url(" + first[j] + ")";
	new Effect.Opacity('photo1', { from: 1.0, to: 0, duration: 1.5 });
	
	element = document.getElementById("topimage2");
	element.innerHTML = "<img src=\"" + second[i] + "\" id=\"photo2\" />";
	element.style.background = "url(" + second[j] + ")";
	new Effect.Opacity('photo2', { from: 1.0, to: 0, duration: 1.5 });
	
	element = document.getElementById("topimage3");
	element.innerHTML = "<img src=\"" + third[i] + "\" id=\"photo3\" />";
	element.style.background = "url(" + third[j] + ")";
	new Effect.Opacity('photo3', { from: 1.0, to: 0, duration: 1.5 });
	
	i++;
	j++;
	if (i == 2) {
		i = 0;
	}
	if (j == 2) {
		j = 0;
	}
	
	setTimeout ( "swapPhoto()", 6000 );
}
