code: function(pos) {
  				var topOffset = $(this).css(pos).offset().top;
  				if (topOffset < 0) {
  					$(this).css('top', pos.top - topOffset);
  				}
  			}
docs: ensure that the titlebar is never outside the document