Ventana = { inicial : 130, intentos : 3, frecuencia: 55, layer : document[document.all ? "all" : "layers"]["deslizante"] } Ventana.paint = function() { destino = (document.all ? ((document.body.scrollTop>130)?document.body.scrollTop+10:Ventana.inicial) : ((window.pageYOffset>130)?window.pageYOffset+10:Ventana.inicial)) ; origen = document.all ? Ventana.layer.style.pixelTop : Ventana.layer.top difference = origen - destino; decrement = Math.round(difference / Ventana.intentos); if (document.all) Ventana.layer.style.pixelTop -= decrement else Ventana.layer.top -= decrement } window.setInterval("Ventana.paint()", Ventana.frecuencia)