function goto(id) {
	var oImg = document.getElementById('oImg');
	oImg.src = imgArray[id];
	counter = id;
	setactive(id);
}

function next() {
	if(counter < count) {
		var next = counter + 1;
		goto(next);
	}
}

function prev() {
	if(counter > 0) {
		var prev = counter - 1;
		goto(prev);
	}
}
