title: Javascript Closure technique
body: <ol>
  <li>I have an object which creates a slideshow. </li>
  <li>I want to have several slideshows on a page</li>
  <li>I have an event handler for slideshow element inside it</li>
  <li>I want the event handler to know which slideshow object has created an item clicked</li>
  </ol>
  
  <p>-</p>
  
  <pre><code>slideshow=function(){
  
     var g = document.createElement(...);
  
     ...
  
     g.onclick = f1;
  
     f1 = function(slideshow_instance, event) {
        //EXPLAIN ME HOW TO GET THE slideshow_instance
     }
  
  }
  
  var sl1 = new slideshow();
  var sl2 = new slideshow();
  </code></pre>
  
  <p>Clicking on an element slideshow has created should return either </p>
  
  <blockquote>
    <p>sl1</p>
  </blockquote>
  
  <p>or </p>
  
  <blockquote>
    <p>sl2</p>
  </blockquote>
  
  <p>I explain well?</p>