(function($) {

    $(function() {

        // Rotators
        (function() {
            // News Ticker
            var news = $(".news-ticker #latest-posts");
            news.cycle({
                fx: 'scrollDown'
            });

            $('ul.sub-menu li:last-child').css('border-bottom', 'none');

            $('ul.main-menu > li').hover(
                function () {
                    //show its submenu
                    $('ul', this)
                            .stop(true, true)
                            .slideDown(500)
                            .fadeIn(100);
                },
                function () {
                    //hide its submenu                    
                    $('ul', this)
                            .stop(true, true)
                            .fadeOut(500)
                            .slideUp();
                }
            );

              

        })();

    });

})(jQuery);


