// JScript source code

var secs4
var timerID4 = null
var timerRunning4 = false
var delay4 = 1000
var imageStatus4 = 1

function InitializeTimer4()
{
    // Set the length of the timer, in seconds
    secs4 = 1
    StopTheClock4()
    StartTheTimer4()
}

function StopTheClock4()
{
    if(timerRunning4)
        clearTimeout(timerID4)
    timerRunning4 = false
}

function StartTheTimer4()
{
    if (secs4==0)
    {
        StopTheClock4()
        InitializeTimer5()
        // 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 (imageStatus4 == 1) {
			
			swapImage('tech','techTwo')
			imageStatus4 = 2
			
		}
		
		else if (imageStatus4 == 2) {
		
			swapImage('tech','techOne')
			imageStatus4 = 1
			
		}
		
		InitializeTimer5();
		
    }
    else
    {
        //self.status = secs4
        secs4 = secs4 - 1
        timerRunning4 = true
        timerID4 = self.setTimeout("StartTheTimer4()", delay4)
    }
}


