var place = "images/"		//location & prefix of images (if it is numbered like img1.jpg, then you include "img" at the end)

var type = "jpg"    			//image extension

var name = "still"				//<IMG name="name goes here"

var image = new Image();		//creates the new image

var firstpic = "1";				

var lastpic = "24";				

var start = location.search.substring(1)



document.write("<img src=" + place + start + '.' + type + " width='360' height='245' alt='Tao of Steve' border='3' name='still' valign='top'>")



function next() {

	if (lastpic == start) {

		start = firstpic;

		image.src = place + firstpic + '.' + type;

		document[name].src = image.src;

	}

	else {

		start++

		image.src = place + start + '.' + type;

		document[name].src = image.src;

	}

}

function back() {

	if (firstpic == start) {

		start = lastpic;

		image.src = place + lastpic + '.' + type;

		document[name].src = image.src

	}

	else {

		start--

		image.src = place + start + '.' + type;

		document[name].src = image.src

	}

}

// -->


