
var
	GalleryPix = new Array (
	"images/gallery-1.jpg",
	"images/gallery-2.jpg",
	"images/gallery-3.jpg",
	"images/gallery-4.jpg",
	"images/gallery-5.jpg");

	thisPic = 0;
	GalleryCt = GalleryPix.length - 1;
	
	function chgGalleryPic(direction) {
		if (document.images) {thisPic = thisPic + direction
			if (thisPic > GalleryCt) {thisPic = 0}
			if (thisPic < 0) {thisPic = GalleryCt}
			document.mainImg.src=GalleryPix[thisPic]
			}
		}

