// JavaScript Document


function fechaban(iddiv) {
	var obj = document.getElementById(iddiv);
	if (obj.style.display=='block'||obj.style.display=='') {
  		obj.style.display = 'none';
 	} else {
  	obj.style.display = 'block';
 	}	 
}

$(document).ready(function() {
		var resp = $.ajax({
			url: "novidades.php",
			type: "POST",
			dataType: "html",
			async: false
		 }).responseText;
		
	 ajustaDiv(); 
	$("#marqueecontainer").html(resp);
	
	var $news = $('#marqueecontainer');
	
	if($.browser.mozilla ) { 
	
		$news.serialScroll({
			items:'p',
			cycle: true,
			duration:1,
			force:true,
			axis:'y',
			easing:'',
			lazy:true,
			interval:5000,
			step:1
		});	

	} else {
	
		$news.serialScroll({
			items:'p',
			cycle: true,
			duration:2000,
			force:true,
			axis:'y',
			easing:'',
			lazy:true,
			interval:4000,
			step:1
		});	
	}
	$news.hover(function() {
		$news.trigger( 'stop' );
	},
	function() {
		$news.trigger( 'start' );
	})
});


