window.onload=iniciar;
var bvalor = 0;
var bi = 1;
var btope = 0;
var uvalor = 0;
var ui = 1;
var utope = 0;



   function iniciar()
    {
      tempo= setInterval("nmoverd()",4000);
      tempo2= setInterval("play()",6000);
      tempo3= setInterval("nmoverup()",5000);

    }


function nmoverd(){

    if (bi<=150)
	    {btope = bvalor + bi;
        btope2=btope+450;
        document.getElementById('banner1').style.backgroundPosition = '0px ' + btope + 'px';
        document.getElementById('banner2').style.backgroundPosition = '0px ' + btope2 + 'px';
        setTimeout("nmoverd()",0);
        bi=bi+3;
        }
    else {bi=1;
    bvalor=bvalor +150;}

	}
function nmoverup(){

    if (ui<=88)
	    {utope = uvalor + ui;
        document.getElementById('bannerup').style.backgroundPosition ='0px ' + utope + 'px';
        setTimeout("nmoverup()",0);
        ui=ui+3;
        }
    else {ui=1;
    uvalor=uvalor +88;}

	}



