 var obj = null;   function checkHover() {      if (obj) {               obj.find('ul').hide();      } //if   } //checkHover   $(document).ready(function() {      $('#prime-menu-top > li').hover(function() {		$(this).find("ul:first").css("left", $(this).offset().left + "px")		         if (obj) {                     obj.find('ul').hide();                        obj = null;         } //if         var uls = $(this).find('ul');//         uls.find('li > a').css("display", "block")//         uls.find('li > a').css("background-color", "#ff0000");         //$(this).find('ul').show();         uls.show();      }, function() {         obj = $(this);         setTimeout("checkHover()",  400);      });   });