var rn = Math.floor(Math.random()*5)+1;
function imgMain () {
	if (rn <5) { rn++; } else { rn = 1; }
	document.getElementById('mainImg1').src="/images/mainPg/mainPg"+rn+"_top_1.jpg";
	document.getElementById('mainImg2').src="/images/mainPg/mainPg"+rn+"_bottom_1.jpg";
	document.getElementById('mainImg3').src="/images/mainPg/mainPg"+rn+"_bottom_2.jpg";
}
function imgLoop () {
	int = setInterval (imgMain, 8000);
}
imgLoop();
imgMain();

