function loadContent(id) {
	//alert(document.getElementById("tab").value + " / " + id);
	//if (id != document.getElementById("tab").value)
	//{
		$("#contentArea").fadeOut("slow", function(){
		
		$("#contentArea").empty().html('<p><center><font color="#6c6c6c">Chargement en cours...</font><br/><img src="images/wait.gif" /></center></p>');
		$("#contentArea").fadeIn("slow");
		document.getElementById("zone").focus();
		switch (id)
		{
			case 1:
				$("#contentArea").load("?page=afficher_articles_sommaire"); 
				 
				 document.getElementById("tab1").id ='tab1Active';
				 if (document.getElementById("tab").value == "2")
					document.getElementById("tab2Active").id ='tab2';
				
				document.getElementById("tab").value = "1";
				
				break;
			case 2:
				
				$("#contentArea").load("?page=afficher_derniers_articles_modifies"); 
								 
				 if (document.getElementById("tab").value == "1")
					document.getElementById("tab1Active").id = 'tab1';
				 document.getElementById("tab2").id ='tab2Active';
				 
				 document.getElementById("tab").value = '2';
				 
				break;
			case 3:
				window.location = "http://twitter.com/acguyane";
				break;
		}
		});
	//}
	
	
}

function init(){
	$("#contentArea").fadeOut("fast", function(){
		$("#contentArea").fadeIn("slow");
		$("#contentArea").empty().html('<p><center><font color="#6c6c6c">Chargement en cours...</font><br/><img src="images/wait.gif" /></center></p>');
		$("#contentArea").load("?page=afficher_articles_sommaire"); 
		document.getElementById("tab1").id ='tab1Active';
		document.getElementById("tab").value = "1";
	});
}

