jQuery(document).ready(function($){

var news = $("#news");

$(".info").each(function(i){
	if (i!=0) {
		$(this).css({opacity:0,zIndex:5});
	} else {
		this.id = "devant";
	}
});

$(".logo_info").each(function(){
	var info = $(".info", this.parentNode);
	$(this)
		.bind("mouseenter",function(){
			if (info.attr("id") != "devant") {
				$("#devant", news).attr("id","").css({zIndex:5}).animate({opacity:"0"},1200);
				info.attr("id","devant").css({zIndex:10}).animate({opacity:"1"},1200);
			}
		});
});


// // juste opicity 
// $(".info").each(function(){
// 	$(this).css({opacity:0});
// });
// $(".logo_info").each(function(){
// 	var info = $(".info",this.parentNode);
// 	var img = $('img',this);
// 	var w = img.attr('width');
// 	var h = img.attr('height');
// 	var nw = w * 2;
// 	var nh = h * 2;
// 	$(this)
// 		.bind("mouseenter",function(){
// 			info.animate({opacity:"1"},1200);
// 		})
// 		.bind("mouseleave",function(){
// 			info.animate({opacity:"0"},1200);
// // 			img.animate({width:nw+"px",height:nh+"px"},"slow");
// 		});
// });


});