jQuery(document).ready(function() { // inicio jquery

    // Transicao do banner topo
    jQuery("#banner").PikaChoose({
        autoPlay:true, 
        transition:[5]
    });

    //Tirar a borda pontinhada dos links que sao imagem
    jQuery('img').hover(function() {
        jQuery(this).parents('a').css('border-bottom','0 none');
    }, function() {
    });

    // Adicionar classe hover para efeitos ao passar mouse
    jQuery("#header .box").hover(function(){ // nos boxes do header
        jQuery(this).addClass("hover");
    }, function(){
        jQuery(this).removeClass("hover");
    }
);
    jQuery(".sbrvote").hover(function(){ // no banner SBRVote
        jQuery(this).find('img').addClass("hover");
    }, function(){
        jQuery(this).find('img').removeClass("hover");
    }
);
    jQuery("#sidebarVideos .ft").hover(function(){ // no banner Videos
        jQuery(this).find('img').addClass("hover");
    }, function(){
        jQuery(this).find('img').removeClass("hover");
    }
);
    jQuery("#sidebarParceiros .cnt a").hover(function(){ // no banner Parceiros
        jQuery(this).children('img').addClass("hover");
    }, function(){
        jQuery(this).children('img').removeClass("hover");
    }
);

    // Efeitos de opacidade (clareamento) ao passar mouse
    jQuery(".opacidadeHover").hover(function(){ // passar mouse no elemento e clarea-lo
        jQuery(this).removeClass("opacidadeHover");
        jQuery(this).addClass("opacidadeOut");
    }, function(){
        jQuery(this).removeClass("opacidadeOut");
        jQuery(this).addClass("opacidadeHover");
    }
);
    jQuery(".imgOpacidadeHover").hover(function(){ // passar o mouse no elemento e clarear so as imagens dentro dele
        //jQuery(this).children('img').css('opacity','1');
        jQuery(this).find('img').addClass("opacidadeHover");
        jQuery(this).find('img').addClass("opacidadeOut");
    }, function(){
        jQuery(this).find('img').removeClass("opacidadeOut");
        jQuery(this).find('img').addClass("opacidadeHover");
    }
);
      
     
    // Efeitos borda nas ultimas imagens
    jQuery("#ultimasFotos .cnt a").hover(function(){
        jQuery(this).children('img').addClass("hover");
    }, function(){
        jQuery(this).children('img').removeClass("hover");
    });
	
    // Efeitos borda na imagem principal
    jQuery(".pika-stage").hover(function(){
        jQuery(this).addClass("hover");
    }, function(){
        jQuery(this).removeClass("hover");
    });
	 
    jQuery(".miniaturas img").hover(function(){
        jQuery(this).stop().animate({
            "backgroundColor" : "#40331b"
        }, 400);
    }, function(){
        jQuery(this).stop().animate({
            "backgroundColor" : "#79694C"
        }, 400);
    }); 	 	
    jQuery(".miniaturas a").hover(function() {
        jQuery(this).siblings().stop().fadeTo(400,0.4);
    }, function() {
        jQuery(this).siblings().stop().fadeTo(400,1);
    });


    }); // fim jquery

