drupal_add_js weight I've written a javascript that for some reason whenever I run it, it removes any hover events.  Since I am running my site with nice menus I would like to run my script as high up in the $script array as possible.  

I added this line to the template.php:

drupal_add_js('sites/itascacg.com/themes/custom/icg/js/fixtitles.js',array('type' =&gt; 'file', 'weight' =&gt; -19));


since according to the documentation I've read jQuery itself is at weight -20, but no matter what weight I give my script i won't float any higher on the list.

does anybody have anybody have any ideas how to push my script up, or at worst push all the other scripts down?  

P.S. I'm using drupal 7
In what function in template.php are you adding this? A preprocess function I hope.  

Anyway, you have to set the 'group' option as outlined on the drupal_add_js page. eg.

drupal_add_js('sites/itascacg.com/themes/custom/icg/js/fixtitles.js',array('type' =&gt; 'file', 'weight' =&gt; -19, 'group' =&gt; JS_LIBRARY));