var JQ = jQuery.noConflict(); JQ(document).ready(function() { jQuery.fn.fadeToggle = function(speed, easing, callback) { return this.animate({opacity: 'toggle'}, speed, easing, callback); }; function showNav() { JQ(this).parent().find(".mainnav_sub").slideDown('fast').show(); JQ(this).parent().hover(function() { }, function() { JQ(this).parent().find(".mainnav_sub").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up }); JQ(this).addClass("subhover"); //On hover over, add class "subhover" } function hideNav() { JQ(this).removeClass("subhover"); //On hover out, remove class "subhover" } var config = { sensitivity: 2, // number = sensitivity threshold (must be 1 or higher) interval: 200, // number = milliseconds for onMouseOver polling interval over: showNav, // function = onMouseOver callback (REQUIRED) timeout: 200, // number = milliseconds delay before onMouseOut out: hideNav }; JQ("#close_ie6_link").live('click', function() { JQ.ajax({ url: "/scripts/close_ie6.php", cache: false }); JQ("#ie6").slideUp("show"); }); JQ("#mainnav li a").hoverIntent(config); });