var speed = 300;
$(document).ready(
    function() {
        $('li.topNav').hover(
            function() {
                $('ul.subItems', this).fadeIn(speed);
                $(this).addClass("sel");
            },
            
            function() {
                $('ul.subItems', this).fadeOut(speed);
                $(this).removeClass("sel");
            }
        );
        
        $('li.subNavItem').hover(
            function() {
                $('ul', this).show(speed);
                $(this).addClass("sel");
            },
            
            function() {
                $('ul', this).hide(speed);
                $(this).removeClass("sel");
            }
        );

        $('.jcycle').cycle({
            fx: 'fade'
        });
    }
);

