function Noticias()
{

	if($('.noticiadetalhe').length > 0)
	{
		$(".imagemLink").click( function() 
		{
			var $IMAGEM = $(this).attr('title');
			$(".imagemLink").removeClass('ativo');
			$(this).addClass('ativo');
			
			$(".legenda").hide();
			$(".FotoNoticia").hide();			
			
			$(".box-foto-noticia").find("img[@alt="+$IMAGEM+"]").show('').next().show('');
			
		});
	}

	if($('#frmPesquisarNoticia').length > 0)
	{
		$("#txtPalavraChave").hide();
		$("#selMes").hide();
		$("#selAno").hide();
		$("#btnBuscar").hide();
		$("#txtAno").hide();
		
		$("#selCriterio").change( function() 
		{
					
			if($(this).val() == 'periodo')
			{
				$("#selMes").show();
				$("#selAno").show();
				$("#btnBuscar").show();
				$("#txtPalavraChave").hide();
				$("#txtPalavraChave").val('');
			}
			else
			{	
			
				$("#selMes").hide();
				$("#selAno").hide();
				$("#txtPalavraChave").show();
				$("#btnBuscar").show();
				$("#txtPalavraChave").val('');
			}
		});
		
		$("#btnBuscar").click(function() 
		{
			$("#frmPesquisarNoticia").submit();
			return false;
		});
	
	}
}