$(document).ready(function () {
	
	/**
	 * Sur tout les hover des liens, un effet de fondu
	 */
	$('#main a').hover(
		function () { 
			if (!$(this).hasClass('una'))
				$(this).stop().animate({opacity:0.5}, 200); 
		},
		function () { 
			$(this).stop().animate({opacity:1}, 200); 
		}
	);
	
	
	/**
	 * Mise en place du fancybox
	 */
	$('#rightcolumn a.lightbox').fancybox({
		'titleShow'	: false
	});
	
	
	/**
	 * Créé les pointillé pour les listes de prix
	 */
	// pour chacun des li
	$('.listePrix li').each(function (e) {
		var adt = 0;
		var total = $(this).width();
		
		// pour chacun de ses span
		$(this).children('span').each(function (evt) {
			adt += $(this).width();
		});
		
		// on applique la taille au pointille
		$(this).children('.pointille').css({ 'width' : (total - adt)+'px' });
	});
});

