jrails_auto_complete problem

Hi All,

I know this is not the right place to ask, but I am sure many people would have faced this weird jrails_auto_complete hovering problem. You can see my code here: http://pastie.org/864655

Everything works fine when auto-completed element is selected correctly. But selecting an element from the auto_complete list by mouse is tough (it’s all messed up). Somebody posted a similar problem on stackoverflow, and you can look at his explanation: http://stackoverflow.com/questions/1833050/jrails-autocomplete-selection-problems-with-divs-or-anything-else

I know little javascript, and therefore I am not able to debug it properly. Will appreciate any help.