//tooltip from jQuery Tools. http://flowplayer.org/tools/index.html
//all configuration @ Documentation http://flowplayer.org/tools/tooltips/index.html
$(function(){
  
  
  		//tooltips
  		$("#img_devenez_membre")
		.attr('title','Inscrivez-vous gratuitement et profitez de nombreux avantages !')
		.tooltip({
		 	'position' : 'bottom center',
		 	'effect'	: 'fade' 
		 });
	
	
		
	
		//coups de coeur
		$('#coups_de_coeur_index > div >a>img')
			.parent()//gestion de la couleur de fond de la div d'inclusion
			.children('img')
			.each(function(){
							$('<div>'+$(this).attr('title')+'</div>').attr('style','background-color:#000;color:#FFF;position:relative;top:-100px;height:100px;')
							.css('opacity',0)
							.appendTo($(this).parent());
						   });				//ajout du titre
			$('#coups_de_coeur_index > div >a>img')															//retour aux coups de coeurs
			.parent().children('span').hide();										//cache le span
			$('#coups_de_coeur_index > div >a>img')															//retour aux coups de coeurs
			.next().mouseenter(entreeCoupsDeCoeur)
			.mouseleave(sortieCoupsDeCoeur);			//onbranche pour la sortie
		
	}
);

															 //a l'entree
		function entreeCoupsDeCoeur(e){
			var img = $(e.target);
				img.fadeTo(100,0.8)	;
				
						
						
			}
		function sortieCoupsDeCoeur(e){
		
				var img =$(e.currentTarget);//selection de l'image
				img.fadeTo(1000,0)	;
		}
			
			
