Mega menu drop down .focus problem

Mega menu drop down .focus problem

Hi guys, im using a mega men dropdown and inside there a series of ul's.

On focus of the top nav the megamenu plugin fires and the dropdown opens.. I can then tab through all the unordered list links inside and it moves across untill it gets ot the end of the navigation. What I can't work out is how I activate the .blur event if the next tabindex is not inside the mega menu..

This is my code to activate the dropdown: 

  1. $("ul#mainnav li").hoverIntent(config).children('a').focus(function () {
  2. //need to trigger megaHoverOver
  3. megaHoverOver($(this).parent('li'));

  4. }).blur(function () {
  5. if(!$('#mainnav').find(this)){
  6. //need to trigger megaHoverOver
  7. megaHoverOut($(this).parent('li'));
  8. }
  9. });
The problem is the if statment in the blue event.... I have a console.log on the  $('#mainnav').find(this) and it comes back as [[] meaning object... but the focus moves outside the menu area the object is no longer showing.. which leads me to think the logic is correct.. but the drop down stays visible..

Any ideas why this might be happening?

you can see the nav at the following addess: http://bit.ly/9FPOoi

thanks