$(function(){
      /**
       * Efeito DropDown e background animado
       */
      $("#menu li a").css({'background-position' : '0 -50px'});             
      $("#menu li").hover(function(){
            $(this).find('a').stop().animate({backgroundPosition : '(0 0)'}, {duration : 300});
            $(this).find('ul').slideDown(500);
        }, function(){
          $(this).find('a').stop().animate({backgroundPosition : '(0 -50px)'});
          $(this).find('ul').slideUp('fast');
        });
        
        /**
         * Efeito do menu abas
         */                        
       $(".box-aba:first").show();
       $("#nav-aba a").click(function(){
           $(".box-aba").hide();
           $("#nav-aba a").removeClass('ativo');
           $(this).addClass('ativo')
           var div = $(this).attr('href');
           $(div).show();
          return false;
       })
       
       /**
        * Executa o Carrossel
        *
        */
    $("#carrossel").jCarouselLite({
				btnPrev : '#prev',
				btnNext : '#next',
				auto    : 0,
				speed   : 2000,
				visible : 3
		})
                
        /**
         * Slide Show
         *
         */ 
      $("ul#sliderContent").cycle({
				fx: 'fade',
				speed: 2500,
				timeout: 5000,
				prev:  '#prev-slide',
			    next:  '#next-slide'
		})		
        /**
         * Lista
         */
        
       $(".blogs:last, .box-noticia:last").css({'border' : 'none'});
		$("#comentario-assunto").click(function(){
			$("#commentform").slideToggle('slow');
			 return false;
		});
		
		$("#ir-comentar").click(function(){
	       $('html, body').animate({
			 scrollTop: $("#comentario-assunto").offset().top}, 500);
		});
		                 
        
        
})