title: Call a function after a certain time Jquery?
body: <p>I am examining a js file form Bram Jetten: </p>
  
  <pre><code>Notification.fn = Notification.prototype;
  
  function Notification(value, type, tag) {
    this.log(value, type);
    this.element = $('&lt;li&gt;&lt;span class="image '+ type +'"&gt;&lt;/span&gt;' + value + '&lt;/li&gt;');
    if(typeof tag !== "undefined") {
      $(this.element).append('&lt;span class="tag"&gt;' + tag + '&lt;/span&gt;');
    }
    $("#notifications").append(this.element);
    this.show();
  }
  
  /**
   * Show notification
   */
  Notification.fn.show = function() {
    $(this.element).slideDown(200);
    $(this.element).click(this.hide);
  }
  
  /**
   * Hide notification
   */
  Notification.fn.hide = function() {  
    $(this).animate({opacity: .01}, 200, function() {
      $(this).slideUp(200, function() {
        $(this).remove();
      });
    });
  }
  
  ...
  </code></pre>
  
  <p>I assigned a click event one of my buttons and when I click that button it calls a new notification:</p>
  
  <pre><code>new Notification('Hi', 'success');
  </code></pre>
  
  <p>When I click that notification it closes as well. However if I dont click it after a certain time I want it close by itself. How can I call that hide function or close it after some time later when it appeared?</p>