var offset="1";
var timerID = null;
var timerRunning = false;
var Interval = 3000;

function show_next()
{
	pause();
	if (offset<Object.length-1)
	{
		offset++;
		document.getElementById('slideshow_img').src = Object[offset];
	}
}

function show_prev()
{
	pause();
	if (offset>1)
	{
		offset--;
		document.getElementById('slideshow_img').src = Object[offset];
	}
}

function play()
{
	pause();
	timerID = setInterval("slideshow()",Interval);
	timerRunning = true;
}

function pause()
{
	if(timerRunning) clearInterval(timerID);
	timerRunning = false;
}

function slideshow()
{
	if (offset<Object.length-1)
	{
		offset++;
		document.getElementById('slideshow_img').src = Object[offset];
	}
}

