
var pixArray = new Array(
"images/gallery/pic1.jpg",
"images/gallery/pic2.jpg",
"images/gallery/pic3.jpg",
"images/gallery/pic4.jpg",
"images/gallery/pic5.jpg",
"images/gallery/pic6.jpg",
"images/gallery/pic7.jpg",
"images/gallery/pic8.jpg",
"images/gallery/pic9.jpg",
"images/gallery/pic10.jpg"
)

var pic = 0


function nextpic() {
    if (document.images) {
       if (pic < 9)
          pic++
       else 
          pic = 0
       document.anim.src = pixArray[pic]; }
}

function backpic() {
    if (document.images) {
       if (pic >0)
        pic --
       else
        pic = 9
       document.anim.src = pixArray[pic]; 
    }
}



