// JScript source code

var secs5
var timerID5 = null
var timerRunning5 = false
var delay5 = 1000
var imageStatus5 = 1

function InitializeTimer5()
{
    // Set the length of the timer, in seconds
    secs5 = 1
    StopTheClock5()
    StartTheTimer5()
}

function StopTheClock5()
{
    if(timerRunning5)
        clearTimeout(timerID5)
    timerRunning5 = false
}

function StartTheTimer5()
{
    if (secs5==0)
    {
        StopTheClock5()
        // Here's where you put something useful that's
        // supposed to happen after the allotted time.
        // For example, you could display a message:
        // alert("testing..testing..1..2..3..")
        if (imageStatus5 == 1) {
			
			swapImage('auto','autoTwo')
			imageStatus5 = 2
			
		}
		
		else if (imageStatus5 == 2) {
		
			swapImage('auto','autoOne')
			imageStatus5 = 1
			
		}
		
		InitializeTimer1();
		
    }
    else
    {
        //self.status = secs5
        secs5 = secs5 - 1
        timerRunning5 = true
        timerID5 = self.setTimeout("StartTheTimer5()", delay5)
    }
}


