grazie dell'intervento Luca
ho provato ad inserire le variabili window e gap2 ma sto facendo un po di confusione con le condizioni..
riesci a darmi una mano?
codice:
jQuery(document).ready(function () {  
	var el=jQuery('#news_right_cont');
	var elpos=el.offset().top;
	var elheight=el.height();
	var gap=174;
    var window = jQuery(window);
    var gap2 = window.height() - elheight;

	jQuery(window).scroll(function () {
	    var y=jQuery(this).scrollTop();
	    var yb=jQuery(this).scrollBottom();
	    var visibleFoot = 465 - jQuery(this).scrollBottom();
	    if(y<elpos){el.stop().animate({'top':174},0);}
	    else if(visibleFoot<gap2){el.stop().animate({'bottom':visibleFoot + "px"},0);}
	    else{el.stop().animate({'top':y-elpos + gap},0);}
	});
});