function startAnimation(){}
function stopAnimation(){}
function changeImage(){}
function doNothing(){}
ready = false
function startAnimation(totalImg,imgName1,path){
   if (ready){
     //nextImg = firstImg       //uncomment to start over at first image
     changeImage(totalImg,imgName1,path)
   }
}

function stopAnimation(){
   clearTimeout(timerID)
      nextImg="1"
}

function changeImage(totalImg,imgName1,path){
if (totalImg > 1)
{
   document[imgName1].src = "/pictures/" + path + "-200" + nextImg + ".jpg"
   nextImg++
   if (nextImg > totalImg) nextImg = firstImg
aa=totalImg
bb=imgName1
cc=path
   timerID = setTimeout("changeImage(aa,bb,cc)",delay)
}
}