Initialize & override a Drupal7 jQuery module's (Superfish) provided .js, in code
The JavaScript that you have written for Drupal 6 and 7 does the same thing, only the targets has changed a bit ul.sf-menu vs .sitemenu-inner .sf-menu ul.

This gives a few options as to what could be wrong.


You have a different superfish version, that behaves a bit differently
Your markup has changed and doesn't work like it did for your Drupal 6 site.


It's hard to debug why you're not getting the desired result, you could try to test out superfish on a static page and see if you can get it working. That will reduce some of the complexity and reduce your problem to a JavaScript/jQuery problem.