/* Slideshow Slot 1 */
myPix1 = new Array("images/slideshow/spot1a.jpg","images/slideshow/spot1b.jpg","images/slideshow/spot1c.jpg")
thisPic1 = 0
imgCt1 = myPix1.length -1
imgCt1b = myPix1.length

function chgSlide1(direction) {
	if (document.images) {
		thisPic1 = thisPic1 + direction
		if (thisPic1 > imgCt1) {
			thisPic1 = 0
		}
		if (thisPic1 < 0) {
			thisPic1 = imgCt1
		}
		document.ssSlot1.src=myPix1[thisPic1]
	}
}

function choosePic1() {
	if (document.images) {
		randomNum = Math.floor ((Math.random() * imgCt1b))
		document.ssSlot1.src = myPix1[randomNum]
	}
}

/* Slideshow Slot 2 */
myPix2 = new Array("images/slideshow/spot2a.jpg","images/slideshow/spot2b.jpg","images/slideshow/spot2c.jpg")
thisPic2 = 0
imgCt2 = myPix2.length -1
imgCt2b = myPix2.length

function chgSlide2(direction) {
	if (document.images) {
		thisPic2 = thisPic2 + direction
		if (thisPic2 > imgCt2) {
			thisPic2 = 0
		}
		if (thisPic2 < 0) {
			thisPic2 = imgCt2
		}
		document.ssSlot2.src=myPix2[thisPic2]
	}
}

function choosePic2() {
	if (document.images) {
		randomNum = Math.floor ((Math.random() * imgCt2b))
		document.ssSlot2.src = myPix2[randomNum]
	}
}

/* Slideshow Slot 3 */
myPix3 = new Array("images/slideshow/spot3a.jpg","images/slideshow/spot3b.jpg","images/slideshow/spot3c.jpg")
thisPic3 = 0
imgCt3 = myPix3.length -1
imgCt3b = myPix3.length

function chgSlide3(direction) {
	if (document.images) {
		thisPic3 = thisPic3 + direction
		if (thisPic3 > imgCt3) {
			thisPic3 = 0
		}
		if (thisPic3 < 0) {
			thisPic3 = imgCt3
		}
		document.ssSlot3.src=myPix3[thisPic3]
	}
}

function choosePic3() {
	if (document.images) {
		randomNum = Math.floor ((Math.random() * imgCt3b))
		document.ssSlot3.src = myPix3[randomNum]
	}
}

/* Slideshow Slot 4 */
myPix4 = new Array("images/slideshow/spot4a.jpg","images/slideshow/spot4b.jpg","images/slideshow/spot4c.jpg")
thisPic4 = 0
imgCt4 = myPix4.length -1
imgCt4b = myPix4.length

function chgSlide4(direction) {
	if (document.images) {
		thisPic4 = thisPic4 + direction
		if (thisPic4 > imgCt4) {
			thisPic4 = 0
		}
		if (thisPic4 < 0) {
			thisPic4 = imgCt4
		}
		document.ssSlot4.src=myPix4[thisPic4]
	}
}

function choosePic4() {
	if (document.images) {
		randomNum = Math.floor ((Math.random() * imgCt4b))
		document.ssSlot4.src = myPix4[randomNum]
	}
}