How to make Richwidget Dropdown to open on hover instead of click.

Hello, I'm trying to make the dropdown widget to open the submenus when II hover the mouse on it, instead of clicking it. I tried editing its JavaScript, But it doesn't seem to work. Can anyone tell me how do I achieve it? What would be the code to overwrite the default behavior?

Take a look at this post and check the attached oml.