jQuery(document).ready(function($){
 
	//put content div class, when scroll beyond this y, float it
	var $postShare = $('#navTwo');
	
	if($('.contentRight').length > 0){
	
		var descripY = parseInt($('.contentRight').offset().top) - 20;
		var pullX = $postShare.css('margin-left');
	
		$(window).scroll(function () { 
		  
			var scrollY = $(window).scrollTop();
			var fixedShare = $postShare.css('position') == 'fixed';
			
			//make sure .post_share exists
			if($('#navTwo').length > 0){
			
				if ( scrollY > descripY && !fixedShare ) {
					$postShare.stop().css({
						position: 'fixed',
						top: 20
					});
				} else if ( scrollY < descripY && fixedShare ) {
					$postShare.css({
						position: 'absolute',
						//top: descripY,
						marginLeft: pullX
					});
				}
				
			}
	
		});
	}
});
