title: Javascript: Event Listener mouseout
body: <p>let me explain my problem. I have a mouseout event assigned to a div tag with an id of calendar. Now when this handler is called (when the mouse is not over the calendar div), i want to wait 2 seconds, then see if the mouse is still not over the calendar div. If the mouse i still out then do a function, if not then do nothing. </p>
  
  <p>I use the prototype javascript library.
  My code is as follows: </p>
  
  <pre><code>$('calendar').observe('mouseout', function (event){ 
      setTimeout(/* call this event again */, 2000);
  }
  </code></pre>
  
  <p>Thanks</p>