if(document.getElementById && document.createElement)

var capa=document.getElementById('imgRotar');

var imagenes = ['home2.jpg','home3.jpg','home4.jpg','home5.jpg','home6.jpg','home7.jpg','home8.jpg','home9.jpg','home1.jpg'];

var imgIndex = 0;
function imgCambio() {
	var htmlString = '<img border="0" src="img/'+imagenes[imgIndex]+'" width="340" height="290" /></a>';
	capa.innerHTML = htmlString;
	
	if(imgIndex < imagenes.length - 1)
	imgIndex++;
	else
	imgIndex = 0;
	}
setInterval("imgCambio()", 3000);