//Added for rotating images
//specify interval between slide (in mili seconds)
var slidespeed=2000
var whichcaption=0
//var whichimage=0
var t = 0;


function slideit(){

var whichimage = Math.floor(Math.random() * (slideimages.length-1)) ;

if (!document.images) return
if (ie) document.images.slide.filters[0].apply()
document.images.slide.src=imageholder[whichimage].src
if (ie) document.images.slide.filters[0].play()
whichcaption=whichimage
whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
t = setTimeout("slideit()",slidespeed)
document.getElementById("rollimgcaption").innerHTML="<img src='img/pixel.gif' width='4' height='1'>"+slidecaptions[whichcaption];

}


function stopslide(){
  clearTimeout(t);
}	