var maxImg = 6;
var imgI = 2;
var path = "images/home_rotate/";
function swapImg(){
	
	if(document.all){
		img1.src = path  + imgI + ".jpg"
		imgI = imgI + 1;
	}
	else if (document.getElementById){
		document.getElementById("img1").src = path + imgI + ".jpg"
		imgI = imgI + 1;
	}
	if(imgI == maxImg){
		imgI = 1;
	}
    setTimeout("swapImg()", 3500);
}
setTimeout("swapImg()", 3500);