//Display pic in what tag roll is what I called the image
document.roll.src = eval("Rollpic" + PicNumber);
//function calls itself
CallSwitchPic=window.setTimeout("SwitchPic("+counter+")",1500);
}
else{
//if its not the last picture goto the next picture
if(PicNumber < NumberOfPictures){
PicNumber++;
SwitchPic(0);
}
//its the last picture go to the first one
else{
PicNumber=1;
SwitchPic(0);
}
}
}
// Stop hiding from old browsers -->