Possible Duplicates:
What is the difference between $(document).ready(function() and $(function() ?
What is the difference between these jQuery ready functions?
Furthermore, if they perform the same purpose, how does $(function(){ // js to run })
translate to $(document).ready()
?