title: How to call function outside of jQuery(document).ready with setTimeout()?
body: <p>My code looks something like:</p>
  
  <pre><code>$(document).ready(function(){
      var cont = 0;
  
      function func1(cont)
      {
          //Some code here
          search.setSearchCompleteCallback(this, searchComplete, null);
          //Some other code
      }
      func1(cont);
  
      function searchComplete()
      {
          //Some code
          cont += 1;
      if (cont &lt; length ) {
      func1(cont);
      } else {
              // Other code
      }
      }
  });
  </code></pre>
  
  <p>So what I want to do is delay the execution of func1(cont); inside of the searchComplete() function. The reason for this is that all the code does is to work with the Google search API and PageRank checks and I need to slow down the script so that I won't get banned. (Especially for the requests it makes regarding the PR check).
  If I simply use setTimeout() on func1(cont); it says there is no func1() defined, if I try to get the function outside $(document).ready() it sees the function but the Google code won't for for it needs the page completely loaded.</p>
  
  <p>How can I fix setTimeout or how can I pause the script for a number of seconds ? </p>
  
  <p>Thanks!</p>