var JWin = $(window);
jWin.scroll(function()){
var scrollHeight = jWin.scrollTop();
var screenHeight = jWin.height();
var sideHeight = $('#J_BdSide').height();
if(scrollHeight+screenHeight>sideHeight){
$('#J_Bdside').css({
'position':'fixed',
'top':-(sideHeight-screenHeight),
'right':0
})
}else{
$('#J_Bdside').css({
'position':'static'
})
}
}