It's not going to be as easy as just flipping a switch, you have to actually remove the scrollbar from the document by setting the scroll overflow to hidden, get the scroll position and scroll the window, as some browsers scroll to the top when you remove the overflow, and then when you click to remove the overlay, get the scrollbar back and set the scroll position again
$('#sauceThumb').click(function () {
$('#cover').fadeIn(200);
$('#sauceDet').animate({
right: "0"
});
var scrollPos = {
top : self.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft,
left : self.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
};
$('body, html').data('scroll', scrollPos).css('overflow', 'hidden');
window.scrollTo(scrollPos.top, scrollPos.left);
});
$('.close').click(function () {
$('#sauceDet').animate({
right: "-99999"
});
$('#cover').fadeOut(200);
var pos = $('body, html').css('overflow', 'auto').data('scroll');
window.scrollTo(pos.top, pos.left);
});