﻿var isIE6 = false;
$(function() {
    if($.browser.msie && $.browser.version.substr(0, 1) < 7) isIE6 = true;
    var config = {
        over: entered, // function = onMouseOver callback (REQUIRED)    
        timeout: 50, // number = milliseconds delay before onMouseOut
        out: leaved // function = onMouseOut callback (REQUIRED)    
    };

    $("#anaMenuV1 > li").hoverIntent(config);
});

function entered() {
    if (!isIE6) $(this).parent().children().removeClass("sec");
    $(this).parent().children().find("div").hide();

    if (!isIE6) $("> a", this).addClass("sec");
    $("div", this).show();
}

function leaved() {
    if (!isIE6) $("> a", this).removeClass("sec");
    $("div", this).hide();
}
