
	
		$(document).ready(function(){
				$('#close_presentation').mouseover(function(){
					$('#presentation').hide(1000);
				});
				$('#open_presentation').mouseover(function(){
					$('#presentation').show(1000);
				});
				/*$('#recherche').click(function(){
				var nom = '<php echo $blog_auteur ;>';			
				$('#cadre_recherche').load('recherche.php', {nom:nom}, function(prompt){
				$('#cadre_recherche').fadeIn(400);
				});*/
						var a=window.location.href;		
			$('.hit').each(function(){
				$(this).click(function(){
					var id2=this.id;
					var string=this.id.split('_');
					var id=string[1];
					var hit=parseInt(this.title);
					var hit=hit+1;	
					
					$.post('../posts/hit.php', {id:id2}, function (responseText){
						if (responseText == 1){
							$('#'+id2+'').replaceWith("<b style='color:green'>Vote effectué !</b> <b>("+hit+")</b>");
						}
						else{
							$('#'+id2+'').replaceWith("<b style='color:red'>Il y a eu un problème !</b>");
						
						}
					})
				return false;
				})
			}) 
		});