For my show/hide div I only want it to close when the user clicks outside the area or else on the close button, currently it closes regardless of whether you click inside or out, which also means you can't click the link inside of the div.
$('#see').click(function(e){
$('.overlaybox').show("slide", { direction: "right" }, 500);
e.stopPropagation();
});
$(document).click(function(){
$('.overlaybox').hide("slide", { direction: "right" }, 500);
});