function crossing(){

var muoviup=document.getElementById('muros').style;
var muovidown=document.getElementById('murog').style;


var muoviup1=parseInt(muoviup.top);

var muovidown1=parseInt(muovidown.top);

if(muoviup1>0&&muovidown1<0){


var muoviup2 = muoviup1 - 3;
var muovidown2 = muovidown1 +3;


document.getElementById('muros').style.top = muoviup2;
document.getElementById('murog').style.top = muovidown2;

var time = setTimeout('crossing()',10);

}else{

clearTimeout(time);



 }
}


function crossing1(){

var spostaup = document.getElementById('muros').style;
var spostadown = document.getElementById('murog').style;

var spostaup1=parseInt(spostaup.top);

var spostadown1=parseInt(spostadown.top);

if(spostaup1<31&&spostadown1>-32){


var spostaup2 = spostaup1 + 3;

var spostadown2 = spostadown1 - 3;

document.getElementById('muros').style.top = spostaup2;
document.getElementById('murog').style.top = spostadown2;


var times= setTimeout('crossing1()',10);

}else{

clearTimeout(times);



 }
}
