// JScript source code

var secs3
var timerID3 = null
var timerRunning3 = false
var delay3 = 1000
var imageStatus3 = 1

function InitializeTimer3()
{
    // Set the length of the timer, in seconds
    secs3 = 1
    StopTheClock3()
    StartTheTimer3()
}

function StopTheClock3()
{
    if(timerRunning3)
        clearTimeout(timerID3)
    timerRunning3 = false
}

function StartTheTimer3()
{
    if (secs3==0)
    {
        StopTheClock3()
        InitializeTimer4()
        // 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 (imageStatus3 == 1) {
			
			swapImage('food','foodTwo')
			imageStatus3 = 2
			
		}
		
		else if (imageStatus3 == 2) {
		
			swapImage('food','foodOne')
			imageStatus3 = 1
			
		}
		
		InitializeTimer4();
		
    }
    else
    {
        //self.status = secs3
        secs3 = secs3 - 1
        timerRunning3 = true
        timerID3 = self.setTimeout("StartTheTimer3()", delay3)
    }
}


