var pictureIndex = 1

function changeWhite(image) {
	//alert("we are here")
	image.style.borderColor="white"
	//alert(pictureIndex)
}

function changeBlack(image) {
	//alert("we are here")
	image.style.borderColor="black"
	//alert(pictureIndex)
}

function changeWeddingImage(image) {
	//alert(image.name)
	document.pageImage.src = "images/wedding/" + image.name + ".jpg"
	//pictureIndex = parseInt(image.name)
	pictureIndex = image.indexOf()
	//alert(document.pageImage.src.toString()
}

function changePortraitImage(image) {
	//alert(image.name)
	document.pageImage.src = "images/portrait/" + image.name + ".jpg"
	//alert(document.pageImage.src.toString())
}

function changeJournalismImage(image) {
	//alert(image.name)
	document.pageImage.src = "images/journalism/" + image.name + ".jpg"
	//alert(document.pageImage.src.toString())
}

function plusImage() {
		
	if (pictureIndex == (ImgArray.length-1)) {
		alert("Sorry, there are no more pictures in this direction.  Please try going backward.")
	} else {
		pictureIndex = pictureIndex + 1
		document.pageImage.src = ImgArray[pictureIndex].src
	}	
}
		
function minusImage() {

	if (pictureIndex == 1) {
		alert("Sorry, there are no more pictures in this direction.  Please try going forward.")
	} else {
		pictureIndex = pictureIndex - 1
		document.pageImage.src = ImgArray[pictureIndex].src
	}
}