var Front = {
	
	start: function() {
		
		Front.parseProducts();
	},
	
	parseProducts : function(){
		var products = $$('#mainProductList .content');
		var fx = new Fx.Elements(products, {wait: false, duration: 150, transition: Fx.Transitions.quadOut});
		
		products.each(function(product, i){
			product.addEvent('mouseenter', function(e){
				var obj = {};
				obj[i] = {
					'height': [product.getStyle('height').toInt(), 160]
				};
				fx.start(obj);
			});
			product.addEvent('mouseleave', function(e){
				var obj = {};
				products.each(function(other, j){
					var h = other.getStyle('height').toInt();
					if (h != 120)
						obj[j] = {'height': [h, 120]};
				});
				fx.start(obj);
			});
		});
	} 
}


window.addEvent('load', Front.start);