function carouselLieux_initCallback(carousel) {
	jQuery('#carroussel_lieux_next').bind('click', function() {
        carousel.next();
        return false;
    });

    jQuery('#carroussel_lieux_prev').bind('click', function() {
        carousel.prev();
        return false;
    });
	
	 // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });

	
}

jQuery(document).ready(function (){
	jQuery("#carroussel_lieux ul").jcarousel({
		scroll: 1,
		auto: 2,
		wrap: 'last',
		initCallback: carouselLieux_initCallback
	});
});

/**
 * Ajout SGO :: 2010-07-21 :: lots
 */

jQuery(document).ready(function () {
	var old_height = -1;
	jQuery('.lot').each(function (i) {
		if (i%2 == 0) {
			old_height = jQuery(this).height();
		}
		else {
			if (jQuery(this).height() > old_height) {
				jQuery('.lot').eq(i - 1).height(jQuery(this).height());
			}
			else {
				jQuery(this).height(old_height);
			}
		}
	});
});

/**
 * fin SGO
 */
