// JavaScript Document

$(document).ready(function() {

	$('.scroll_diaporama').cycle({ 
		fx: 'scrollLeft', 
		speed: 300, 
		timeout: 5000 
	});
	
	
	
	if ($("#slideShow").length) {
		jQuery("#slideShow").cycle({
			fx: 'scrollLeft',
			speed: 300,
			timeout: 8000,
			containerResize:0,
			pager: '#navSlideShow',
			pagerEvent: 'click',
			pagerAnchorBuilder: function(idx, slide) {
				return '#navSlideShow li:eq(' + (idx) + ') a';
			}
		});
	}
	
	
	if ($("#publis").length) {
		
		//
		$("#publis .indextable table").hide();
		
		//
		var _collection = $("#publis .indextable table");
		$(_collection[0]).show();
		$(_collection[1]).show();
		$(_collection[2]).show();
		$(_collection[3]).show();
		
		//
		setTimeout("show_next_publi()", 2000);
	}
	

}) ;


function show_next_publi()
{
	//
	$("#publis .indextable table:visible:first")
		.hide()
		.appendTo("#publis .indextable");
	
	//
	$("#publis .indextable table:hidden:first")
		.show("slow");

	
	//
	setTimeout("show_next_publi()", 5000);

}

