/*function VoteCommentaire(){
jQuery('.vote_plus a').click(function(i) {
				var id = this.id;
				jQuery.post("/commentaire.php", {vote_id: id, note: 1} ,
  						function(data){
    							var neg = 100 - parseInt(data);    							
    							jQuery("#affiche_vote_plus_" + id).html("<span id=\"pos"+ id +"\">"+ data +"%</span>");
    							jQuery("#affiche_vote_moins_" + id).html("<span id=\"neg"+ id +"\">"+ neg +"%</span>");
    							jQuery("#vote_plus_" + id).html("<img src=\"/images/icones/comment_add.png\" border=\"0\">");
								jQuery("#vote_moins_" + id).html("<img src=\"/images/icones/comment_delete_nb.png\" border=\"0\">");
								JT_init();
			  			}	
				);
			});
			
		jQuery('.vote_moins a').click(function(i) {
			    var id = this.id;
				jQuery.post("/commentaire.php", {vote_id: id, note: 0} ,
  						function(data){
  								var neg = 100 - parseInt(data);
    							jQuery("#affiche_vote_plus_" + id).html("<span id=\"pos"+ id +"\">"+ data +"%</span>");
    							jQuery("#affiche_vote_moins_" + id).html("<span id=\"neg"+ id +"\">"+ neg +"%</span>");
    							jQuery("#vote_plus_" + id).html("<img src=\"/images/icones/comment_add.png\" border=\"0\">");
								jQuery("#vote_moins_" + id).html("<img src=\"/images/icones/comment_delete_nb.png\" border=\"0\">");
								JT_init();
			  			}	
				);
			});
			
  }*/

jQuery(document).ready(function() {
	jQuery(".vote_plus_link").tooltip({delay:0});
	jQuery(".vote_moins_link").tooltip({delay:0});
});

  
  function VoteCommentaire(){
jQuery('.vote_plus a').click(function(i) {
				var id = this.id;
				jQuery.post("/commentaire.php", {vote_id: id, note: 1} ,
  						function(data){
								data=data.split("-");
								var plus=data[0];
								var moins=data[1];
    							jQuery("#affiche_vote_plus_" + id).html(plus);
    							jQuery("#affiche_vote_moins_" + id).html(moins);
    							jQuery("#vote_plus_" + id).html("<img src=\"/images/icones/comment_add.png\" style=\"padding:0;border:0;\"/>");
								jQuery("#vote_moins_" + id).html("<img src=\"/images/icones/comment_delete_nb.png\" style=\"padding:0;border:0;\"/>");
								JT_init();
			  			}	
				);
			});
			
		jQuery('.vote_moins a').click(function(i) {
			    var id = this.id;
				jQuery.post("/commentaire.php", {vote_id: id, note: 0} ,
  						function(data){
								data=data.split("-");
								var plus=data[0];
								var moins=data[1];
    							jQuery("#affiche_vote_plus_" + id).html(plus);
    							jQuery("#affiche_vote_moins_" + id).html(moins);
    							jQuery("#vote_plus_" + id).html("<img src=\"/images/icones/comment_add.png\" style=\"padding:0;border:0;\"/>");
								jQuery("#vote_moins_" + id).html("<img src=\"/images/icones/comment_delete_nb.png\" style=\"padding:0;border:0;\"/>");
								JT_init();
			  			}	
				);
			});
			
  }


//Fonction BADCOM Alak
jQuery(document).ready(function() {

if($(this).next(".classcom:hide")){
	$('.classbadcom').click(function(){
	$(this).next(".classcom").slideDown("slow").siblings(".classcom:visible");
	});
}else{
	$('.classbadcom').click(function(){
	$(this).next(".classcom").slideUp("slow").siblings(".classcom:hide");
	});

}
});


	

