

//--------------------------------------

//-- Global Variables ------------------

var currentImage = 0

var imagesFolder

var numImages

//-- Global Variables ------------------

//--------------------------------------



//--------------------------------------

// Shows The Image

//--------------------------------------

function showIt(ImageIndex) {

	ImagePlaceHolder.src = imagesFolder + "/image_" + ImageIndex + ".gif"

		currentImage = ImageIndex

			SetBullet(currentImage)

}



//--------------------------------------

// Clears the Visible Bullets

// And Sets The Current One

//--------------------------------------

function SetBullet(ImageIndex) {

var myObj

	for(var i = 0; i < numImages; i++) {

		myObj = eval("bullet_" + i)

		myObj.style.visibility = "hidden"

		

			if(i == ImageIndex) {

				myObj.style.visibility = "visible"

			}

	}

}



//--------------------------------------

// Shows the Previous Image

//--------------------------------------

function showPrevious() {

	currentImage--

	

	if(currentImage < 0) {

		currentImage = (numImages - 1) 

	}

		showIt(currentImage)

}



//--------------------------------------

// Shows The Next Image

//--------------------------------------

function showNext() {

	currentImage++

	

	if(currentImage > numImages -1) {

		currentImage = 0 

	}

		showIt(currentImage)

}