
$(document).ready(function () {

    $("#menu > ul > li").hoverIntent({ over: function () {
        $('a', this).first().addClass('current');        
        $(this).children('.dropdown_box').show();
    }, out: function () {
        $('a', this).first().removeClass('current');       
        $(this).children('.dropdown_box').hide();
    }
    });

    $("#header ul.top_nav li.user_name").hover(function () {

        $(this).children('a').addClass('current');
        $(this).children('.dorpdown_menu').show();

    }, function () {

        $(this).children('a').removeClass('current');
        $(this).children('.dorpdown_menu').hide();

    })


    //hoverintent minicart, issue is, if close fires while opening, it wont ever open to normal height again. 
    $("#header .inner .shopping_cart").parent().hoverIntent({ interval: 250, over: function () {
        if ($(".inner .mini_cart_sec").css('display') == "none" && PRX_Basket.items.length > 0) {
            $(".inner .mini_cart_sec").slideDown();
        }
    }, out: function () {
        //this cant happen until current effect finishes, allot 400ms(time toslidedown) to insure it finishes always
        $(".inner .mini_cart_sec").delay(400).slideUp();
    }
    });


    //$(".tool_tip_row .tip_text a ").hover(function(){
    //$(this).children('a').addClass('current');
    //$('.tool_tip_outer').show();

    //},function(){

    //$(this).children('a').removeClass('current');
    //$(this).children('.mini_cart_sec').hide();
    //$('.tool_tip_outer').hide();

    //})


});


