Problem with not()

Problem with not()

Hi

This is a part of my script which will close a popup:

  1.     $("body:not(#popup)").click(function() { 
  2.         if(popup_zustand == true) {
  3.             $("#popup").fadeOut("normal");
  4.             $("#hintergrund").fadeOut("normal");
  5.             popup_zustand = false;
  6.         }
  7.     }); 
You will find the problem on the first line. I want the popup to get closed whenever I click anywhere but not on the popup itself (that means #popup). The way I did, it closes the popup everytime, even when I click on #popup. 

What am I doing wrong?