function testo() {
$(document).ready(function () {
	

	$('.fille a').click(function() {
		raw = $(this).attr("id");
		raw = raw.substr(5);
		
		$.ajax({  // ajax
			url: "/top100/select.php?id="+raw+"&sens=affiche",
			cache: false, 
			success:function(html){
				$("#retour_home a").unbind();
				$(".fille a").unbind();
				$("#les_filles").unbind();
				$("#diz a").unbind();
				$("#bloc_fille").html(html);
				testo();
			}
		});			
		
		return(false);
	});
	
	$('#retour_home a').click(function() {
		
		$.ajax({  // ajax
			url: "/top100/select.php?id=5&sens=moins",
			cache: false, 
			success:function(html){
				$("#retour_home a").unbind();
				$("#les_filles").unbind();
				$("#diz a").unbind();
				$("#les_filles").html(html);
				testo();
			}
		});		
		
		return(false);
	});
	
	$('#diz a').click(function() {
		
		$.ajax({  // ajax
			url: "/top100/select.php?alpha="+$(this).text()+"&sens=alpha",
			cache: false, 
			success:function(html){
				$("#retour_home a").unbind();
				$(".fille a").unbind();
				$("#les_filles").unbind();
				$("#diz a").unbind();
				$("#les_filles").html(html);
				testo();
			}
		});		
		
		return(false);
	});
	
	$('#gauche a').click(function() {
		raw = $(this).attr("id");
		raw = raw.substr(1);
		
		$.ajax({  // ajax
			url: "/top100/select.php?id="+raw+"&sens=moins",
			cache: false, 
			success:function(html){
				$("#retour_home a").unbind();
				$(".fille a").unbind();
				$("#les_filles").unbind();
				$("#diz a").unbind();
				$("#les_filles").html(html);
				testo();
			}
		});		
		
		return(false);
	});
	
	
	$('#droite a').click(function(){
		raw = $(this).attr("id");
		raw = raw.substr(1);
		
		$.ajax({  // ajax
			url: "/top100/select.php?id="+raw+"&sens=plus",
			cache: false, 
			success:function(html){
				$("#retour_home a").unbind();
				$(".fille a").unbind();
				$("#les_filles").unbind();
				$("#diz a").unbind();
				$("#les_filles").html(html);
				testo();
			}
		});		
		
		return(false);
	});	
	

	
	$("#pop_content a").click(function(){
		$("#pop_up").fadeOut("fast");
	});
});}
testo();





