window.onscroll=scStart;
vV=1.4;
function scStart(){
if(typeof(dl)!='undefined') clearTimeout(dl);
dl=setTimeout("objMovStart();",500);
}


function objMovStart(){
startPos=parseInt(document.getElementById('nSobj').style.top);
endPos=parseInt(document.body.scrollTop+topValue);
if (endPos<maxTopValue){endPos=maxTopValue;}
aktPos=Math.abs(startPos-endPos);
//alert(startPos+":"+endPos);
objMov();
}

function objMov(){
aktPos=Math.floor(aktPos/vV);
//alert(aktPos);
if(startPos<endPos){
document.getElementById('nSobj').style.top=endPos-aktPos;
}else{
document.getElementById('nSobj').style.top=endPos+aktPos;
}

dl=setTimeout("objMov();",5);
if(aktPos==0){clearTimeout(dl)}
}
