// JScript source code

var secs2
var timerID2 = null
var timerRunning2 = false
var delay2 = 1000
var imageStatus2 = 1

function InitializeTimer2()
{
    // Set the length of the timer, in seconds
    secs2 = 1
    StopTheClock2()
    StartTheTimer2()
}

function StopTheClock2()
{
    if(timerRunning2)
        clearTimeout(timerID2)
    timerRunning2 = false
}

function StartTheTimer2()
{
    if (secs2==0)
    {
        StopTheClock2()
        InitializeTimer3()
        // 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 (imageStatus2 == 1) {
			
			swapImage('med','medTwo')
			imageStatus2 = 2
			
		}
		
		else if (imageStatus2 == 2) {
		
			swapImage('med','medOne')
			imageStatus2 = 1
			
		}
		
		InitializeTimer3();
		
    }
    else
    {
        //self.status = secs2
        secs2 = secs2 - 1
        timerRunning2 = true
        timerID2 = self.setTimeout("StartTheTimer2()", delay2)
    }
}


