function setup_gallery(locationIn,currentIn,maxIn) {
	galleryLocation = locationIn;
	galleryCurrent = currentIn;
	galleryMax = maxIn;
}


function next() {
	galleryCurrent++;	
	if (galleryCurrent > galleryMax) galleryCurrent = 1;	
	galleryDisplay();
}

function prev() {
	galleryCurrent--;	
	if (galleryCurrent < 1) galleryCurrent = galleryMax;	
	galleryDisplay();
}

function galleryDisplay(){
	var object = document.getElementById('display');	
	object.src = galleryLocation + galleryCurrent + ".jpg";
}

