// JavaScript Document

$(document).ready(function() {

	/*
	* Fonction de recuperation des actus
	* Parametre : int
	*/	
	function getListe(page)
	{		
		$.post("action/checkListe.php", 
			{ }, 
			function(data){ 
				if(data)
				{
					$("#liste-actu").fadeOut("fast").html(data).fadeIn("fast");
				}
				else
				{
					//alert(data)
					var msg="Un problème technique est survenu, veuillez contacter le webmaster.";
					//invalidData(msg);
				}
			} 
		);
	}
	
	/*
	* Fonction de gestion d'echec
	* Parametre : String
	*/
	function invalidData(val)
	{
		alert(val);
	}
	
	getListe(0);
});



