Hi,
It looks to me as though you are hiding the submenu by setting the opacity to zero but that still leaves the links active but just invisible which means the menus are all on top of each other so you will be getting mixed messages dependng where you click and which is on top.
If you move the menu out of the way with a top position the it seems to work ok. See changes in bold
e.g.
Code:
var parent = jQuery(this).parent();
var cur_sub = jQuery("ul", parent);
if ( !jQuery(cur_sub).hasClass("main-active") ){
jQuery(".main-active").removeClass("main-active").animate({opacity: 0.0}, 000).css('top','-999em');
jQuery(".hfca-blue #slide-hover").stop(true, false);
jQuery(".hfca-blue #slide-hover").animate({left: jQuery(parent).position().left + "px"}, 200);
jQuery(".hfca-blue #slide-hover").animate({width: jQuery(parent).width() + "px"}, 100);
jQuery(cur_sub).addClass("main-active").animate({opacity: 1.0}, 000).css('top','27px');
jQuery( jQuery(cur_sub).parent() ).css("z-index","1000");
}
});
jQuery(".hfca-blue").mouseleave(function(){
jQuery(".main-active").removeClass("main-active").animate({opacity: 0.0}, 000).css('top','-999em');
etc..........
Code:
.hfca-blue ul ul{top:-999em}
However as Mark said you would be better off doing it with css first and then enhancing with JS. Take a look at the superfish menus which degrade nicely.
Bookmarks