How can I insert Javascript right before the body in my custom theme? I want to make the same jquery menu in my custom drupal theme but I could not insert the inline script right before the body.  

I made a separate JavaScript file, and added to my custom .info file, but this is not the right way to insert inline JavaScript, obviously. 

  

This is my info file.
Not sure this helps but I had a similar problem before. I solved it by using the jQuery syntax instead of the $, like so:

jQuery(window).load(function() {
    jQuery('#a a').css({'background-position','-20px 55px'});
    // and so on
});


You could load your js file by calling the drupal_add_js() in the THEME_preprocess_page() hook in your template.php file.