// JavaScript Document

function updateTousLesSpectaclesEvenements(num) {
	
	$('pages').value = num;
	
	// On met a jour les fiches
	new Ajax.Updater('update', 'include/ajax/listeTousLesSpectaclesEvenements.php', {
	   method: 'get',
	   parameters: $('afficher').serialize(),
	   asynchronous: false,
	   evalScripts: true,
	   onCreate: function() {
		$('nb').setStyle({ backgroundImage: 'url(img/layout/loading.gif)' });
		TableKit.unloadTable('resultats');
	   },
	   onComplete: function() {
		$('nb').setStyle({ backgroundImage: 'none' });
		TableKit.Sortable.init('resultats');
	   }
	 });
		
}

function updateTousLesTheatresEvenements(num) {
	
	$('pages-theatre').value = num;
	
	// On met a jour les fiches
	new Ajax.Updater('update2', 'include/ajax/listeTousLesTheatresEvenements.php', {
	   method: 'get',
	   parameters: $('afficher2').serialize(),
	   asynchronous: false,
	   evalScripts: true,
	   onCreate: function() {
		$('nb').setStyle({ backgroundImage: 'url(img/layout/loading.gif)' });
		TableKit.unloadTable('resultats2');
	   },
	   onComplete: function() {
		$('nb').setStyle({ backgroundImage: 'none' });
		TableKit.Sortable.init('resultats2');
	   }
	 });
		
}
