title: myFunction.init() is "not a function" - how can i start the jquery code?
body: <p><br>
  i cannot find the right way to start the script. I have several variables, so the function when the document is ready, then the variable myFunction, and loadIMG, etc. and at the end of the code, the call to myFunction.init(), but Firebug tells me "myFunction.init() is not a function" . How could i start it the right way? 
  Thanks for any help :    </p>
  
  <pre><code>$(function () {  
      //...  
      var myFunction = (function() {   
          var init = function() {  
              loadIMG();     
          },  
          loadIMG = function() {  
              etc.  
          //...  
          //then at the end of the page :  
      })(); /* myFunction */  
      myFunction.init();  
  });
  </code></pre>