title: How to detect click outside window
body: <p>I have a customized dropdown in html coded in "ul" and "li",  I show options when a user clicks on the head of "ul" I would like to hide these elements when the user clicks outside the menu area.</p>
  
  <p>Is something like this possible with javascript/YUI not Jquery?</p>