	function loadJS(url) {
		var oScript = document.createElement('script');
		oScript.type = 'text/javascript';
		oScript.src = url;
		document.getElementsByTagName('head').item(0).appendChild(oScript);
	}

/********************* IMPORTANDO ARQUIVOS **********************/

//	loadJS('noticias/js/efeitos.js');
//	loadJS('../js/main.js');
	loadJS('noticias/js/inoticias.js');

/********************* INICIAR E CONFIGURAR JQUERY **********************/

	$(function() {
		$().ajaxStart(function() {
			$(document).css('cursor', 'wait');
//			$("#load").show();
		});
	
		$().ajaxStop(function() {
			$(document).css('cursor', 'default');
//			$("#load").hide();
		});
	});

/********************************** FUNCOES ******************************************/

	function Scroll() {
		var $news = $('#UltNews');//we'll re use it a lot, so better save it to a var.
		$news.serialScroll({
			duration: 4000,
			axis: 'y',
			easing: 'linear',
			lazy: false,// NOTE: it's set to true, meaning you can add/remove/reorder items and the changes are taken into account.
			
//			event
//			on which event to react (click by default).
			start: 0,
//			first element of the series (zero-based index, 0 by default).
			step: 2,
//			how many elements to scroll each time. Use a negative number to go on the other way.
//			lock
//			if true(default), the plugin will ignore events if already animating. Then animations can't be queued.
			cycle: true,
//			if true, the first element will be shown after going over the last, and the other way around.
//			stop
//			if true, the plugin will stop any previous animations of the element, to avoid queuing.
			force: true,
//			if true, an initial scroll will be forced on start.
//			jump:
//			if true, the specified event can be triggered on the items, and the container will scroll to them.
			items: 'span',
//			selector to the items(relative to the scrolled element).
//			prev:
//			(optional)selector to the 'previous' button.
//			next:
//			(optional)selector to the 'next' button.
//			lazy:
//			if true, the items are collected each time, allowing dynamic content(AJAX, AHAH, jQuery manipulation, etc).
			interval: 5000,
//			If you specify a number, the plugin will add auto scrolling with that interval.
			constant: true
//			Should the speed remain constant, no matter how many items we scroll at once ? (true by default).
//			navigation:
//			Optionally, a selector to a group of elements, that allow scrolling to specific elements by index. Can be less than the amount of items.
//			excludenew:
//			If you want the plugin, to stop scrolling before the actual last element, set this to a number, and that amount of items is ignored counting from the end.
//			This is useful if you show many items simultaneously, in that case, you probably want to set this option to the amount of visible items - 
//			onBefore:
//			A function to be called before each scrolling. It receives the following arguments: event object, targeted element, element to be scrolled, collection of items and position of the targeted element in the collection.
//			The scope(this) will point to the element that got the event. If the function returns false, the event is ignored.
		});
		
		$('#UltNews').hover(function(){
			$(this).stop().trigger('stop');
		},function(){
			$(this).stop().trigger('start');
		});
	}
	
/********************************** VERIFICAR ACOES ******************************************/
