// JavaScript Document

// including page defines
//  var num
//  var numPics
//  var picArr
//  NAME="thisPic" in the IMG tag

function NextPicture() {
	  num = num+1
	  if (num == numpics) { 
             num = 0 
          }
		  
	  document.thisPic.src=picArr[num]
	  document.getElementById('photocount').innerHTML="Photo " + (num+1) + " of " + numpics
}

function PrevPicture() {
	  num = num-1
	  if (num < 0 ) {
	      num= numpics-1 
          }
		  
	  document.thisPic.src=picArr[num]
	  document.getElementById('photocount').innerHTML="Photo " + (num+1) + " of " + numpics
}
