<!--
var secs
var timerID = null
var timerRunning = false
var delay = 10

function InitializeTimer(direction)
{
    // Set the length of the timer, in seconds
//    secs = (document.body.clientWidth - 110) ;
	secs = 600	// Body table 700 - width of podda
	if (direction > 0)
	{
		poddaImage.src = "/images/WalkerLR.gif";
		podda.style.pixelLeft = Math.max (1, (document.body.clientWidth - 700) / 2);
	}
	else
	{
		poddaImage.src = "/images/WalkerRL.gif";
//		Leave it!
//		podda.style.pixelLeft = Math.min (document.body.clientWidth, ((document.body.clientWidth - 700) / 2) + 600);
	}
    StopTheClock();
    StartTheTimer(direction);
}

function StopTheClock()
{
    if(timerRunning)
        clearTimeout(timerID)
    timerRunning = false;
}

function StartTheTimer(direction)
{
    if (secs<=0)
    {
        StopTheClock()
        // Here's where you put something useful that's
        // supposed to happen after the allotted time.
        // For example, you could display a message:

		InitializeTimer(-1 * direction);
    }
    else
    {

		podda.style.pixelLeft= (podda.style.pixelLeft + (direction * 1));

//        self.status = secs
        secs = secs - 1
        timerRunning = true
        timerID = self.setTimeout("StartTheTimer(" + direction + ")", delay)

    }
}

InitializeTimer(1);

//-->
