<script>
$(window).scroll(function() {
$('#block-new20, #block-new25, #block-new26').each(function(){
var imagePos = $(this).offset().top;
var topOfWindow = $(window).scrollTop();
if (imagePos < topOfWindow+550) {
$(this).addClass("right");
}else if(imagePos > topOfWindow+550){
$(this).removeClass("right");
}
});
});
</script>
<div id="start"></div>
<a href="#start">up</a>