[jQuery] lightbox with jquery

[jQuery] lightbox with jquery


sorry for posting two times, but my first entry did not show up.
hello,
i have build a lightbox plugin one my own with the help of dimScreen.
now i have a question. how can i manage the event when somebody clicks
outside of the popup div to hide it again.
$("#exit").click(function () {
    $.dimScreenStop();
    $('#warenkorbFenster').hide();
});
in this little code snippet you can see how i hide the fadeIn div
after clicking on the exit button, but i want to hide it after
clicking outside of the div.
here is the full html code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/