﻿	function popUp(argURL, argWIDTH, argHEIGHT) {
		var winArg, popWin;
		if (!argWIDTH) argWIDTH = '500';
		if (!argHEIGHT) argHEIGHT = '500';	
		winArgs='width='+argWIDTH+',height='+argHEIGHT+',titlebar=0,toolbar=0,location=0,menubar=0,';
		winArgs +='scrollbars=0,resizable=1,channelmode=0,directories=0,status=0,screenX=20,screenY=20,top=20,left=20';
		popWin = window.open(argURL,'', winArgs, true);
	}	

var curGal = 0;
var curSrc = "";
function nextImg() {
	if (curGal < theGallery.length-1) {
		curGal = curGal+1;
		}
	else {
		curGal = 0;
	}
	curSrc = theGallery[curGal];
	document.getElementById('galleryImg').src = curSrc;
}

function prevImg() {
	if (curGal != 0) {
		curGal = curGal-1;
	}
	else {
		curGal = theGallery.length-1;
	}
	curSrc = theGallery[curGal];
	document.getElementById('galleryImg').src = curSrc;
}
