myPix = new Array("imgs/amst01.jpg","imgs/amst02.jpg","imgs/amst03.jpg","imgs/amst04.jpg","imgs/amst05.jpg","imgs/amst06.jpg","imgs/amst07.jpg","imgs/amst08.jpg","imgs/amst09.jpg","imgs/amst10.jpg")
thisPic = 0
imgCt = myPix.length - 1

function chgSlide(direction) {
if (document.images) {
thisPic = thisPic + direction
if (thisPic > imgCt) {
thisPic = 0
}
if (thisPic < 0) {
thisPic = imgCt
}
document.myPicture.src=myPix[thisPic]
}
}