var timer=5;
var count=1;
var img;
function startShow() {
img = document.getElementById('imgRotate');
window.setTimeout('nextimage()', 5000)
}
function nextimage() {
var next = new Image();
next.onload = function() {
img.src=next.src
if(++count==rotate.length) count=0;
window.setTimeout('nextimage()', timer*1000);
}
next.src = '/yarrapark.nsf/files/' + slideFolder + '/$file/' + rotate[count] + ".jpg";
}

