imgsArray = new Array(
    "images/ikea/stills-01.jpg", "images/ikea/stills-02.jpg",
    "images/ikea/stills-03.jpg", "images/ikea/stills-04.jpg",
    "images/ikea/stills-05.jpg", "images/ikea/stills-06.jpg",
    "images/random-02.jpg", "images/random-03.jpg",
    "images/random-04.jpg", "images/random-05.jpg",
    "images/random-06.jpg", "images/random-07.jpg",
    "images/random-08.jpg", "images/random-09.jpg"
    );
arrayLength = imgsArray.length;
thisIMG = Math.floor((Math.random() * arrayLength)); //0
first = true;

function rotate() {
	if (++thisIMG == arrayLength) {
		thisIMG = 0;
    }
	if (first == false) {
		document.randomImage.src = imgsArray[thisIMG];
	} else {
		first = false;
	}
	setTimeout("rotate()", 5000); //run function every 5 seconds
}