var track = 0
var the_timer = null

/*
function slide_show(){
	if(the_timer != null){
		clearTimeout(the_timer)
	}
	document.images[1].src = image_array[track]
	if(track == total){
		track = 0
	}else{
		track = track + 1
	}
	the_timer = setTimeout('slide_show()', 5000)
}
*/

/*
function stop_show(){
	clearTimeout(the_timer)
}
*/


function next(){
	//clearTimeout(the_timer)
	if(track == total){
		track = 0
	}else{
		track = track + 1
	}
	//alert(image_array[track])
	document.images[image_index].src = image_array[track]
}

function previous(){
	//clearTimeout(the_timer)
	if(track == 0){
		track = total
	}else{
		track = track - 1
	}
	//alert(document.images[1].src)
	document.images[image_index].src = image_array[track]
}
