// JavaScript Default

//Destaque das Matérias
	var ObjetoA = null;
	var aObjetosDestaque = new Array();
	$(function() {

		try {		
			
			var aNumbers = new Array();
			
			$(aObjetosDestaque).each(function() {
				var $this = $(this);
				//$('#noticia_destaque_numeros').append('<strong>oi</strong> | ');
				$('#noticia_destaque_numeros').append($this);
				aNumbers.push('#' + $this.attr( 'id' ) );
			});
			
			$('#noticia_destaque_numeros a:first').attr('class', 'pages_active');
			
			$("#noticia_destaque").jCarouselLite({
				btnNext: ".arrow-right",
				btnPrev: ".arrow-left",
				auto: 5000,
				speed: 1000,
				visible: 1,
				scroll: 1,
				vertical: false,
				btnGo: aNumbers,
				afterEnd: function(a) {
					
					var $item = $(a);
					var _id = $item.attr('id');
					_id = _id.replace(/noticia_destaque_lista_li_/gi, '');
					_id = 'noticia_destaque_numeros_' + _id;
					
					$('#noticia_destaque_numeros a').removeAttr('class')
					$('#' + _id).attr('class', 'pages_active');
					
				}
			});
			
		} catch (ex) {
		}
		
	});	

//Oportunidades
	$(function() {
		paginacaoAjax('conteudo_interna', 'ajax/noticia-lista.asp','1','1','&id=conteudo_interna&box_oportunidades=1', null);
	});
