$(document).ready(function(){
    //ativa cabecalho redondo 
   $("#cabecalho").corner("cc:#414546 top");
   $("#menu-lateral").corner("");
   $("#fim-conteudo").corner("bottom");
   
   //menu-lateral
   //ativa o slide do impacto
   $('#photoslide-over').jqFancyTransitions({
        width: 946,
        height: 280,
        strips:60,
        delay: 6000,
        navigation:false
        });
   
   
   //efeito do menu
   
   $('#ulms LI')
		.css( {backgroundPosition: "0px -130px"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0px 0px)"}, {duration:500})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0px 0px)"}, {duration:200, complete:function(){
				$(this).css({backgroundPosition: "0px -130px"})
			}})
		});
        
        
        
        
    $("#NoticiaTitulo").slug({ 
        slug:'NoticiaSlugClass', // class of input / span that contains the generated slug 
        hide: false        // hide the text input, true by default 
    });
    
    $(".esconder-categoria").hide();
    
    $("H4.mostrar-mcategoria").click(function(){
        var idItem = $(this).attr('title');
        $("DIV#mcategoria-"+idItem).slideDown('slow');
    });
    
    $(".lista-esferas LI A").mouseover(function(){
        $(this).append(' <span class="cor-preto texto-pequeno">Clique para ver detalhes</span>');
        //alert('foi 1');
    });
    $(".lista-esferas LI A").mouseout(function(){
        $(".lista-esferas LI A SPAN").remove();
        //alert('foi 1');
    });
    /*, function(){
        alert('foi 2');
    })*/
    
});
