var Displays = new Array ();

var Index = 0;
var AutoRunning = 0;

function NextDisplay (step) 
{
	Index += step;
	if (Index < 0) 
	{
		Display = Length - 1;
	} 
	else if (Index >= Length) 
	{
		Index = 0;
	}
	SetImage(Displays[Index]);	
}

function AutoPlay() 
{
	if (AutoRunning == 1) 
	{
    var startstop= document.getElementById("startstop");
		startstop.src ="../../images/logo/play-cl.jpg"
		Autorunning = 0;
		clearInterval(Pause);
	} else if (StartStopStatus ==0) 
	{
    var startstop= document.getElementById("startstop");
		startstop.src ="../../images/logo/pause-cl.jpg"
		Autorunning = 1;
		Pause = setInterval("NextDisplay(1)", 4000);
	}
}

