dex === -1) 
					theIndex = arr.length - 1
			}
			console.log('refresh')
			if(theIndex === 0) {
				theImg.src = arr[theIndex]
				leftImg.src = arr[arr.length - 1]
				rightImg.src = arr[1]
				return
			}
			if(theIndex === arr.length - 1) {
				theImg.src = arr[theIndex]
				leftImg.src = arr[theIndex - 1]
				rightImg.src = arr[0]
				return
			}
			theImg.src = arr[theIndex]
			leftImg.src = arr[theIndex - 1]
			rightImg.src = arr[theIndex + 1]
		}

		function preImg() {
			if(isDone === true) {
			