<script language="javascript">
var delay2=2000 //set delay in miliseconds
var curindex2=0
var randomimages2=new Array()
randomimages2[0]="images/diav2/1.jpg"
randomimages2[1]="images/diav2/2.jpg"
randomimages2[2]="images/diav2/3.jpg"
randomimages2[3]="images/diav2/4.jpg"
randomimages2[4]="images/diav2/5.jpg"
randomimages2[5]="images/diav2/6.jpg"
randomimages2[6]="images/diav2/7.jpg"
randomimages2[7]="images/diav2/8.jpg"
randomimages2[8]="images/diav2/9.jpg"
randomimages2[9]="images/diav2/10.jpg"
randomimages2[10]="images/diav2/11.jpg"
randomimages2[11]="images/diav2/12.jpg"
randomimages2[12]="images/diav2/13.jpg"
randomimages2[13]="images/diav2/14.jpg"
randomimages2[14]="images/diav2/15.jpg"
randomimages2[15]="images/diav2/16.jpg"
randomimages2[16]="images/diav2/17.jpg"
randomimages2[17]="images/diav2/18.jpg"
randomimages2[18]="images/diav2/19.jpg"
randomimages2[19]="images/diav2/20.jpg"
randomimages2[20]="images/diav2/21.jpg"
randomimages2[21]="images/diav2/22.jpg"
randomimages2[22]="images/diav2/23.jpg"
randomimages2[23]="images/diav2/24.jpg"
randomimages2[24]="images/diav2/25.jpg"
randomimages2[25]="images/diav2/26.jpg"
randomimages2[26]="images/diav2/27.jpg"
randomimages2[27]="images/diav2/28.jpg"
randomimages2[28]="images/diav2/29.jpg"
randomimages2[29]="images/diav2/30.jpg"
randomimages2[30]="images/diav2/31.jpg"
var preload2=new Array()
for (n2=0;n2<randomimages2.length;n2++)
{
preload2[n2]=new Image()
preload2[n2].src=randomimages2[n2]
}
document.write('<img name="defaultimage" src="'+randomimages2[Math.floor(Math.random()*(randomimages2.length))]+'">')
function rotateimage2()
{
if (curindex2==(tempindex=Math.floor(Math.random()*(randomimages2.length)))){
curindex2=curindex2==0? 1 : curindex2-1
}
else
curindex2=tempindex2
document.images.defaultimage.src=randomimages2[curindex2]
}
setInterval("rotateimage2()",delay2)
</script>