



/*
$(document).ready(
	function() {
		$("#table1").ingrid({ 
			colWidths: [160,120,120,35,35,35,35,35,35,35,35,35,35],
			url: 'remote.html',
			height: 300,
			rowClasses: ['grid-row-style1','grid-row-style2'],
			
		});
	}
); 
*/


function load_api_dispo()
{
	var id_type_etab = $('#id_type_etab').val();
	var id_zone = $('#id_zone').val();
	
	
	
	//alert('idtypeetab = ' + id_type_etab + ' id zone = ' + id_zone);
	
		
	$.post('dispo/reload_api_dispo/' + id_type_etab + '/0/' + id_zone , function(e){
		$('#api_dispos').html(e);
		setTimeout('load_table_sorter()',150);
	});
	
	
	
}





function load_table_sorter()
{

	$('.tabs ul').tabs();
	
	killemall = new Array('hotel','camping','chambre','meuble','monastique');
	
	$("a.fiche_etab_launch").fancybox({
		'frameWidth'  : 750,
		'frameHeight' : 400, 
		'zoomSpeedIn':	0, 
		'zoomSpeedOut':	0 
	});
	
	for(key in killemall)
	{kam = killemall[key];
		//console.log("#pager_"+kam);
		
	    $("#table_"+kam) 
	    .tablesorter({widgets: ['zebra']}) 
	    .tablesorterPager({container: $("#pager_"+kam)}); 
	    
	    $('#table_'+kam).tableHover();
	}
	
	$('#infos_etab').css('display','block');
}
	
$(document).ready(function() {
	
	setTimeout('load_table_sorter()',150);
	
}); 


