(function($){
    $(document).ready(function(){
        $('body').removeClass('no-js');

        $('li').mouseenter(function(){
            if (!$(this).hasClass('hover')) {
                $(this).addClass('hover');
                if ($(this).hasClass('highlight')) $(this).addClass('highlight-hover');
            }
        }).mouseleave(function(){
            $(this).removeClass('hover');
            $(this).removeClass('highlight-hover');
        });

        if ($.fn.navigation) {$('.navigation').navigation();}
        if ($.fn.mailto) {$('.js-mailto').mailto();}
        if ($.fn.selectmenu) {$('.header select').selectmenu({width: 188, style : 'dropdown'});}
        if ($.fn.monthpicker) $(".monthpicker-inject").monthpicker();
        if ($.fn.customSubmit) {$('.header input.submit').customSubmit();}
        if (window.carousel) window.carousel($('.carousel')[0]);
    });
})(jQuery);
