/* 

function hideMenu(menu) {
    menu.slideUp('slow')
//    $('#splashalt').show();
//    $('#flashalt').show();
}

$(document).ready(function(){
    var hoverTimeout = 500;
    var hoverTimer;
    var hoverSubnavTimer;

//    $("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.subnav*)  

    $("ul.topnav li a.nav").hover(function() {
            console.info('hovering main nav')
            window.clearTimeout(hoverSubnavTimer);

            //Following events are applied to the subnav itself (moving subnav up and down)  
            $(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click  
//            $('#splashalt').hide();
//            $('#flashalt').hide();

            $(this).parent().find("ul.subnav").hover(function() {
                    window.clearTimeout(hoverTimer);
                },
                // HOVER OUT OF SUBMENU
                function(){
                    console.info('out of submenu hover')
                    hoverSubnavTimer = window.setTimeout(hideMenu, hoverTimeout, $(this).parent().find("ul.subnav"));
        //            $(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up  
//                    $('#splashalt').hide();
//                    $('#flashalt').hide();
                }
            );
    //        $(this).addClass("subhover"); //On hover over, add class "subhover"  

            //Following events are applied to the trigger (Hover events for the trigger)  
        }
//        , function(){  //On Hover Out  
//            $(this).removeClass("subhover");}
        // HOVER OUT OF MAIN MENUE
        , function(){  //On Hover Out
            hoverTimer = window.setTimeout(hideMenu, hoverTimeout, $(this).parent().find("ul.subnav"));
        }
    );  

});  

*/

$(document).ready(function() {
    $('#menu li.submenu').hover(
        function() { $(this).addClass('sfhover')},
        function() { $(this).removeClass('sfhover')}
    );
});

