function over_andclass() {
    $(this).css('position','relative');
    $('#menu-header > ul').stop();
    $('#menu-header > ul').hide();
    $(this).addClass("hover");
    if ($('ul:first',this).length) {
        $('ul:first',this).slideDown(150);
    }
}
function away_andclass() {
    // $(this).css('position','absolute');
    $(this).removeClass("hover");
    $('ul:first',this).hide();
}

function hover_over() {
    $(this).css('position','relative');
    if ($('ul:first',this).length) {
        $('ul:first',this).slideDown(150);
    }
}
function hover_away() {
    $('ul:first',this).stop();
    $('ul:first',this).hide();
}

// $(function(){
//     $('#menu-header > li').css('position','relative');
//     $('#menu-header ul li').css('position','relative');
//     $('#menu-header > li').hover(
//         function (){
//             $('#menu-header > li > ul').stop(true,true).hide();
//             if ($('ul:first',this).length) {
//                 $('ul:first',this).slideDown(150);
//             };
//         },
//         function (){
//             $(this).removeClass('hover');
//             $('ul:first',this).hide();
//         }
//     );
//     $('#menu-header ul > li').hover(
//         function (){
//             // $('#menu-header ul ul').stop(true,true).hide();
//             if ($('ul:first',this).length) {
//                 $('ul:first',this).slideDown(150);
//             };
//         },
//         function () {
//             $('ul:first',this).hide();
//         }
//     );
// });

// $(function(){
//     $("#menu-header > li").hoverIntent({over:over_andclass,out:away_andclass,timeout:400});
//     $("#menu-header ul > li").hoverIntent({over:hover_over,out:hover_away,timeout:400});
// });

