function deplace(j) {
x=j;
posY = document.getElementById('RM020').offsetTop;
posY_ChronoP = document.getElementById('pub_chronopassion').offsetTop;
posY_Dubail = document.getElementById('pub_dubail').offsetTop;
posY_Rmille = document.getElementById('pub_mille').offsetTop;
//alert(posY);
if (posY<=-300) {setTimeout("descente(x,posY_ChronoP,posY_Dubail,posY_Rmille)",1)}
}

function descente(j,posY_ChronoP,posY_Dubail,posY_Rmille) {
i=j;
Cp = posY_ChronoP;
Db = posY_Dubail;
Rm = posY_Rmille;
if (i<=-90) {
        document.getElementById('RM020').style.top=i+'px';
        document.getElementById('pub_chronopassion').style.top=Cp+'px';
        document.getElementById('pub_dubail').style.top=Db+'px';
        document.getElementById('pub_mille').style.top=Rm+'px';
        setTimeout("descente(i,Cp,Db,Rm)",1);
        i+=5;Cp+=5;Db+=5;Rm+=5;
}
else {setTimeout("monte(i,Cp,Db,Rm)",1500);}
}

function monte(j,posY_ChronoP,posY_Dubail,posY_Rmille) {
i=j;
Cp = posY_ChronoP;
Db = posY_Dubail;
Rm = posY_Rmille;
if (i>=-300) {  document.getElementById('RM020').style.top=i+'px';
                document.getElementById('pub_chronopassion').style.top=Cp+'px';
                document.getElementById('pub_dubail').style.top=Db+'px';
                document.getElementById('pub_mille').style.top=Rm+'px';
                setTimeout("monte(i,Cp,Db,Rm)",1);
                i-=5;
                Cp-=5;
                Db-=5;
                Rm-=5;
}
}

