
	$(document).ready(function()
	{
		
		// Login
		$("#btnLogin").click( function()
		{
			if( ($("#txtpseudo").val() != "") && ($("#txtpseudo").val() != "") )
			{
				$(this).parent("form").submit();
			}
		});
		
		// Login
		$("#btnLogout").click( function()
		{
			$(this).parent("form").submit();
		});
		
		// Chargement des données
		/*$.ajax(
		{
			type: "GET",
			url: "ajax/_match_table.php",
			data: "data=getlstgametype&idjeu=" + $("#cbojeu").val(),
			success: function(html)
			{
				$("#tblgametype").html(html).slideDown("slow");
			}
		});*/
					
		// H/S Liste joueur serveurs
		/*$(".btnjoueur").click( function()
		{
			$(this).parent().next(".joueur div").slideToggle("fast");
		});*/
		
		// Info Bule
		var sousmenuactif = "";
		var TimerMenu = 0;
		
		$(".infobulle").hide();
	
		$(".toinfobulle").hover(function()
		{
			if(TimerMenu) clearTimeout(TimerMenu);
			
			// Cache l'ancien sous-menu
			if(sousmenuactif != "")
			{
				$("#" + sousmenuactif).fadeOut("fast");
			}
	
			// Affichage du menu
			//sousmenuactif = $(this).parent().find("> .hiddenlink").attr("id");
			sousmenuactif = $(this).attr("idinfobulle");

			$("#" + sousmenuactif).slideDown("fast");
		
		}, function()
		{
			
			TimerMenu = setTimeout(function()
				{
					$("#" + sousmenuactif).fadeOut();
					sousmenuactif = "";
				}, 750);
			
		});
		
		
	});
