﻿
jQuery(document).ready(function () {
    //$("a.topHl").click(function () {
    // $("a.topHl").bind("mouseleave", function () {

    jQuery("a.topHl").bind("mouseover", function () {

        jQuery(this).parent().find("ul.subnav").slideDown('slow');
        jQuery(this).parent().hover(
            function () { },
            function () {
                //$(this).parent().find("ul.subnav").slideUp('slow');
                jQuery(this).parent().find("ul.subnav").animate({ opacity: 1.0 }, 500).slideUp(1000);
            }
        );
            jQuery(this).parent().find("ul.subnav").hover(
            function () {
                jQuery(this).stop(true, true);
                jQuery(this).slideDown('slow').show();
            },
            function () {
                jQuery(this).stop(true, true);
                jQuery(this).animate({ opacity: 1.0 }, 500).slideUp(1000);
            }
        );
    });
    //    //Sub Sub Menu
    //    $("span.subSubNavSpan").click(function () {
    //        $(this).parent().find("ul.subSubNav").css({ width: '0px', overflow: 'visible' }).show().animate({ width: '180px' }, 100);
    //        $(this).parent().hover(
    //                function () { },
    //                function () {
    //                    $(this).parent().find("ul.subSubNav").css({ overflow: 'hidden' }).animate({ width: '0px' }, 100);
    //                }
    //            );
    //    });
});
