Suppose i have below jq function, 

```
$(document).ready( 
  function(){ $('#demo_btn').click( 
         function(){ $.popup.show("The title", "A nice message"); 
  } ); 
}); 

```

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.

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.

Thanks.