	$(document).ready(function(){
		
		$('#tagsphere').tagSphere({
			
			height: 150,
			width: 150,
			slower: 0.65,
			radius: 75,
			timer: 50
		});
		$("#menus ul ul").hide();
    	$("#menus ul ul ul").show(); //sous-sous-menus
 
    	$("#menus div ul li a").click(function(){
			$(this).parent().parent().children("li").find("ul.montre").slideToggle("").removeClass("montre").addClass("matched");
			$(this).parent().children("ul").not(".matched").addClass("montre").slideToggle("slow");
			$(this).parent().parent().children("li").find("ul.matched").removeClass("matched");
			if ($(this).attr("href") == "#") {
				return false;
			}
    	});
		
		
 
	});
	
	
	
	function postComm(article,comm,pseudo, nb){
 
var xmlhttp;
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {
  // code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
{
	if(xmlhttp.readyState==4)
  {
	  document.getElementById(nb).innerHTML = xmlhttp.responseText;
 
  }
}
xmlhttp.open("GET","controller.php?pseudo="+document.getElementById(pseudo).value+"&mess="+document.getElementById(comm).value+"&art="+document.getElementById(article).value,true);
xmlhttp.send(null);
}

