JQuery function call with out an event
<p>Suppose i have below jq function, </p>

<pre><code>$(document).ready( 
  function(){ $('#demo_btn').click( 
         function(){ $.popup.show("The title", "A nice message"); 
  } ); 
}); 
</code></pre>

<p>I need to call the above function with out a click event. For example suppose a i check a condition and if its > than 10 im showing the above message. So its like no click event but just calling the above function when a condition satisfy after the page load.</p>

<p>More details its like im set a value for a variable in the controller and from view tpl im acccess it. So if the variable is >10 im showing the above alert. So if the variable is >10 the above alert should be display with out a click on a buton.</p>

<p>Thanks.</p>
