var curindex = 0;
var Banner = new Array();
Banner[1] = "fotosctr/banner04.jpg";
Banner[2] = "fotosctr/banner02.jpg";
Banner[3] = "fotosctr/banner01.jpg";
Banner[4] = "fotosctr/banner03.jpg";
Banner[5] = "fotosctr/banner05.jpg";
var preload = new Array();
for (n = 0;n < Banner.length;n++) {preload[n] = new Image();
	preload[n].src = Banner[n];}
document.write('<img name="Bemvindo" alt="Solares de Portugal" title="Solares de Portugal" ' + Banner[Math.floor(Math.random() * (Banner.length - 1))] + '>');
function rotateimage() {if (curindex === (tempindex = Math.floor(Math.random() * (Banner.length)))){curindex = curindex === 0 ? 1 : curindex - 1; }
else {curindex = tempindex;}
	document.images.Bemvindo.src = Banner[curindex];}