imgsArray = new Array("images/bedroom1.jpg", "images/bedroom2.jpg");
arrayLength = imgsArray.length;
thisIMG = 0; //Math.floor((Math.random() * arrayLength)); //0
first = true;

function rotate() {
	if (++thisIMG == arrayLength) 
		thisIMG = 0;
	if (first == false) {
		if (document.getElementById("randomImage").src != imgsArray[thisIMG]) {
			document.getElementById("randomImage").src = imgsArray[thisIMG];
		}
	} else {
		first = false;
	}
	setTimeout("rotate()", 5000); 
}
