//Changes image information displayed on the 3d pages
//Change info text
	function changeInfo(thumbNumber) {
		if (thumbNumber == -1) {
			document.infobox.notes.value = "Move the mouse over an image for information about the model."
		}	
		else {
			document.infobox.notes.value = notes[thisPic + thumbNumber]
		}
	}

//Direction button function. Determines which direction to scroll the images.
	function chgSlide(direction) {
		
		//change pictures to loading...
			document.thumbnail.src= "images/load.jpg"
		
			document.thumbnail2.src= "images/load.jpg"
		
			document.thumbnail3.src= "images/load.jpg"
		
			document.thumbnail4.src= "images/load.jpg"
		
			document.thumbnail5.src= "images/load.jpg"
		
			document.thumbnail6.src= "images/load.jpg"	

		if(document.images) {

			if (direction == -1) {
				thisPic = 0
				}

			else if (direction == 1) {
				thisPic = (imagecount - 5)
				}

			else {
				thisPic = thisPic + direction
				}
		}

		if (thisPic > imagecount - 5) {
		thisPic = imagecount - 5
		}

		if (thisPic < 0) {
		thisPic = 0
		}

	//update thumbnail information
		document.thumbnail.src=prefix + pix[thisPic ]+ ".jpg"
		
		document.thumbnail2.src=prefix + pix[thisPic +1]+ ".jpg"
		
		document.thumbnail3.src=prefix + pix[thisPic +2]+ ".jpg"
		
		document.thumbnail4.src=prefix + pix[thisPic +3]+ ".jpg"
		
		document.thumbnail5.src=prefix + pix[thisPic +4]+ ".jpg"
		
		document.thumbnail6.src=prefix + pix[thisPic +5]+ ".jpg"
		
}

//Declare button images
	if (document.images) {

	//back button inactive
		bbutn = new Image();
		bbutn.src = "images/bbutn.gif";
	//back button active
		bbuta = new Image();
		bbuta.src = "images/bbuta.gif";
	//next button inactive
		nbutn = new Image();
		nbutn.src = "images/nbutn.gif";
	//next button active
		nbuta = new Image();
		nbuta.src = "images/nbuta.gif";

	//fast forward and rewind buttons
		var ffbutn = new Image();
		ffbutn.src = "images/ffbutn.gif";
		var ffbuta = new Image();
		ffbuta.src = "images/ffbuta.gif";

		var rwbutn = new Image();
		rwbutn.src = "images/rwbutn.gif";
		var rwbuta = new Image();
		rwbuta.src = "images/rwbuta.gif";

}

