﻿$(document).ready(function(){
	$(".detalhes").click(function(){
		if ($(this).parent().parent().find('.detalhes-texto').is(":hidden")) {
			$(this).parent().parent().find('.detalhes-texto').show('slow');
			$(this).css('background-image','url(images/icon-recolher.gif)');
		} else {
			$(this).parent().parent().find('.detalhes-texto').hide('slow');
			$(this).css('background-image','url(images/icon-vertodos.gif)');
		}
	});
	
	$(".estado").click(function(){
		$('.estados').hide();
		var id = $(this).attr("id").toLowerCase();
		$("."+id).show();
		

	});
	
	
});

function mostra(id){
	$(".conteudo-noticia").hide();
	$("#not-"+id).show('normal');
}
function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });
 
    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });
 
    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};
