$(window).load(function() {
        $('#slider').nivoSlider({
        effect:'boxRainGrow',
        boxCols: 8, // For box animations
        boxRows: 5, // For box animations
        animSpeed:500, // Slide transition speed
        pauseTime:8000, // How long each slide will show
        pauseOnHover:true, // Stop animation while hovering
    });
});

$(function () {
    $('.roundedpanel').corner('5px keep');
  

    $('#nav li ul').hide();
    $('#nav li.current ul').show();
    //$('#menu ul:first').show();
    $('#nav li a, #nav li span').click(
    function (e) {

        var self = $(this);
        var checkElement = $(this).next();
        if ((checkElement.is('ul')) && (checkElement.is(':visible'))) {
            return false;
        } else
            if ((checkElement.is('ul')) && (!checkElement.is(':visible'))) {

                $('#nav li ul:visible').stop(true, true).slideUp(500);
                self.parent('li').addClass('current');
                checkElement.stop(true, true).slideDown(500).parent('li').siblings().removeClass('current');
                return false;
                if (!(self.attr('href')))
                    return false;
            } else {

            }

    }
    );
  
  

});



