Sticky Menu Hack in WordPress

I am using the WordPress plugin Sticky Menu for this site and another project I am working on. It’s a very helpful plugin, filling a need that I’ve had for some time. However, I also have the need to do some advanced css, such as wanting to give each menu item its own id; combined with a dynamic body tag, you can create some cool css effects. How to hack Sticky Menu? It’s simple; first look for this line in the plugin:

$output .= '<li><a href="'.$item['link'].'" title="'.$item['name'].'">'.$item['name'].'</a></li>'."\n";

and change it to this:

$output .= '<li id="'.$item['name'].'Menu"><a href="'.$item['link'].'" title="'.$item['name'].'">'.$item['name'].'</a></li>'."\n";

One caveat: this will most likely only work on a main navigation menu that uses one word for each link, otherwise multiple word menu items get output as multiple id tags within the double quote, like this:

<li id="Program ScheduleMenu">

I am working on a solution for this issue.