$(function(){
		   
		   $('.liproduct').each(function(i){var distance=10;var time=50;var hideDelay=50;var hideDelayTimer=null;var lenchar=$('.bubble_product .desc:eq('+i+')').text().length;if(lenchar>1100){$('.bubble_product .desc:eq('+i+')').addClass('sel')}var beingShown=false;var shown=false;var trigger=$('.infoProduct',this);var offset=$(this,'.bubble_product').offset();var leftt=offset.left+147;var info=$('.bubble_product',this).css('opacity',0);$([trigger.get(0),info.get(0)]).mouseover(function(){if(hideDelayTimer)clearTimeout(hideDelayTimer);if(beingShown||shown){return}else{beingShown=true;trigger.css("border","1px solid #DDD");info.css({left:leftt,display:'block'}).animate({opacity:1},time,'swing',function(){beingShown=false;shown=true})}return false}).mouseout(function(){if(hideDelayTimer)clearTimeout(hideDelayTimer);hideDelayTimer=setTimeout(function(){hideDelayTimer=null;trigger.css("border","1px solid #FFF");info.animate({opacity:0},time,'swing',function(){shown=false;info.css('display','none')})},hideDelay);return false})})
		   
	$('.haut img').attr({height: "90"});
	/*$('.haut').each(function(i) {
		
		
		
		var wwidth=$('img', this).innerWidth();
		var hheight=$('img', this).innerHeight();
		//console.log(i+" | height:"+hheight+" | width:"+wwidth);	
		if(wwidth>hheight){
			if(wwidth>100){
				$("img", this).removeAttr('width');
				$("img", this).removeAttr('height');
				$("img", this).attr({ width: '90' });
			} else if(hheight>100){
				$("img", this).removeAttr('height');
				$("img", this).attr({ height: '90' });
			}
		} else {
			
			if(hheight>100){
				$("img", this).removeAttr('height');
				$("img", this).attr({ height: '90' });
				} else if(wwidth>100){
					$("img", this).removeAttr('width');
					$("img", this).removeAttr('height');
					$("img", this).attr({ width: '90' });
					}	
				
				}
						 
						 
	});*/
	
});