// ZVT-100
// By Carlos Peris(Zener)
// 2001 V1.0
var delay = 5
var timerID = null
var timerRunning = false


Go()

function Go(){
    raster.style.posTop=-50
    Stop()
    Gogo()
}

function Stop(){
    if(timerRunning)
        clearTimeout(timerID)
    timerRunning = false
}

function znrOvr(src, clrOver) 
 {
    if (!src.contains(event.fromElement)) 
    {
	 src.style.cursor = 'hand';
	 src.bgColor = clrOver;         
    }
 }
 
 function znrOut(src, clrIn) 
 {
    if (!src.contains(event.toElement)) 
    {
	 src.style.cursor = 'default';
	 src.bgColor = clrIn;
    }
 }
 
function Gogo(){
    
    raster.style.posTop=raster.style.posTop+3
    if (raster.style.posTop>document.body.offsetHeight-50)
    {raster.style.top=-50}
    if ((raster.style.posTop>5) && (raster.style.posTop<35))
    {
    	cab.bgColor = '2266ff'
    	cab2.bgColor = '2266ff'    	    
    }
    else
    {
    	cab.bgColor = '0000dd'
    	cab2.bgColor = '0000dd'    	
    }
    if ((raster.style.posTop>30) && (raster.style.posTop<50))
    {	but1.bgColor='00ee00'
 	but2.bgColor='00ee00'}
    else { but1.bgColor='00cc00'
    	   but2.bgColor='00cc00'}	
    if ((raster.style.posTop>33) && (raster.style.posTop<53))
    {	but3.bgColor='00ee00'
 	but4.bgColor='00ee00'}
    else { but3.bgColor='00cc00'
    	   but4.bgColor='00cc00'}	
    if ((raster.style.posTop>36) && (raster.style.posTop<56))
    {	but5.bgColor='00ee00'
 	but6.bgColor='00ee00'}
    else { but5.bgColor='00cc00'
    	   but6.bgColor='00cc00'}	
    if ((raster.style.posTop>39) && (raster.style.posTop<59))
    {	but7.bgColor='00ee00'
 	but8.bgColor='00ee00'}
    else { but7.bgColor='00cc00'
    	   but8.bgColor='00cc00'}	
    timerRunning = true
    timerID = self.setTimeout("Gogo()", delay)
}

 