﻿function noaccordion(obj) {
    $(obj).toggleClass("dtAns");
    $(obj).parent().next().toggleClass("activemin");

 }

 $(document).ready(function () {
     /* Covers all the main nav drop-down animations */
     $(".masthead #nav > li").hover(
        function () { $(this).addClass('active'); $(this).find("ul").show(); },
        function () {
            $(this).removeClass('active');// $(this).find("ul").hide(); 
        }
     );

        $('#promoContent_signinControl_PAHelpLink').click(function () {
            if ($('#promoContent_signinControl_helpDiv').is(':visible')) {
                $('#promoContent_signinControl_helpDiv').css('position', 'static');
            }
        });

    });


    $(document).ready(function () {
        $('.Menu_one').mouseenter(function () {
            $('.Sub_Menu_one').slideDown().animate({ height: '143px' }, 500, 'swing');
        }).mouseleave(function () {
            $('.Sub_Menu_one').stop(true, true).animate({ height: '0px' }, 500, 'swing');
            
        });
        $('.Menu_two').mouseenter(function () {
            $('.Sub_Menu_two').slideDown().animate({ height: '143px' }, 500, 'swing');
        }).mouseleave(function () {
            $('.Sub_Menu_two').stop(true, true).animate({ height: '0px' }, 500, 'swing');
        });
        $('.Menu_three').mouseenter(function () {
            $('.Sub_Menu_three').slideDown().animate({ height: '114px' }, 500, 'swing');

        }).mouseleave(function () {
            $('.Sub_Menu_three').stop(true, true).animate({ height: '0px' }, 500, 'swing');
        });
    });

    $(document).ready(function () {
   $('#bottom-callouts').mouseenter(function () {
       $('#slideup1').animate({ height: '0px' }, 500, function () { $('#top-callouts').hide(); });
       $('#slideup2').animate({ height: '70px' }, 500, 'swing');

        }).mouseleave(function () {
        $('#top-callouts').show();
        var bool = $('#bottom-callouts').hasClass('rollover')
        if (bool) {
            $('#slideup1').stop(true, true).animate({ height: '80px' }, 500, function () { $('#top-callouts').show(); });
            $('#slideup2').stop(true, true).animate({ height: '0px' }, 500, function () { $('#slideup2').hide(); });

        }
        });

});

$(document).ready(function () {
    $('.return-mobile-callout a').click(function (e) {
        $.cookies.del('IgnoreMobileStatus');
    });
});
