function egaliserColonnes() {
	// bug sur la page order-adress.tpl
	// appelé dans order-adress.js à la place
	var tallest = 0;
	$('div.column').each(function() {
			var thisHeight = $(this).height();
			if(thisHeight > tallest) {
					tallest = thisHeight;
			}
	});
	$('div.column').height(tallest);
}

$(document).ready(function() {

	// product-list.tpl : details d'un article au survol
	$('ul#product_list li').hover(
		function() {
			$(this).children('.infos').fadeIn('fast');
		},
		function() {
			$(this).children('.infos').fadeOut('fast');
		}
	);
	
	// module categoriesblock : changement de puce au survol d'une catégorie
	$('ul li a', '#categories_block_left').hover(
		function() {
			$(this).parent().addClass('hover');
		},
		function() {
			$(this).parent().removeClass('hover');
		}
	);
	// module categoriesblock : puce alternative pour la catégorie active
	$('ul.tree a.selected', '#categories_block_left').parent().addClass('active');

	// product.tpl : Hover submit panier
	$('.hoversrc').hover(
		function() {
			$(this).attr('src', $(this).attr('src').replace('.png', '_hover.png'));
		},
		function() {
			$(this).attr('src', $(this).attr('src').replace('_hover.png', '.png'));
		}
	);

	// colonnes de meme hauteur
	egaliserColonnes();

});
