
	$(function(){
		
		Cufon("header > nav > ul > li > a, section#conteudo.home h2", { fontFamily: "Lato Regular", hover:true });
		$('#carousel').cycle({ fx:'fade' });

        function megaHoverOver(){
            $(this).find(".sub").stop().fadeTo('fast',1).show();
			$(this).find(".sub").parent().children("a").addClass("ativo");
        }
        function megaHoverOut(){ 
			$(this).find(".sub").stop().fadeTo('fast',0,function() {
				$(this).parent().children("a").removeClass("ativo");
				$(this).hide();
				Cufon.refresh();
			});
        }
        var config = {    
             sensitivity: 2,
             interval: 100,   
             timeout: 500,
             over: megaHoverOver,  
             out: megaHoverOut   
        };
        $("header nav li").hoverIntent(config);
		
		$("#banner").nivoSlider({ directionNav:false, effect:"fade" });
			
	});
