	function mycarousel_initCallback(carousel)
	{
		// 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().ready(function(){
	

	if (document.getElementById("mycarousel_agence")!=null)
	{
		jQuery('#mycarousel_agence').jcarousel({
			auto: 2,
			wrap: 'last',
			initCallback: mycarousel_initCallback,
			scroll: 1
		});
	}

	if (document.getElementById("mycarousel_hs")!=null)
	{
		jQuery('#mycarousel_hs').jcarousel({
			auto: 2,
			wrap: 'last',
			initCallback: mycarousel_initCallback,
			scroll: 1
		});
	}



	if (document.getElementById("gallery")!=null)
	{			
		jQuery('#gallery a').lightBox({
			overlayBgColor: '#000',
			overlayOpacity: 0.6,
			imageLoading: 	'includes/languages/french/images/loading.gif>',
			imageBtnClose: 	'includes/languages/french/images/lightbox-btn-close.gif',
			imageBtnPrev: 	'includes/languages/french/images/lightbox-btn-prev.gif',
			imageBtnNext: 	'includes/languages/french/images/lightbox-btn-next.gif',			
			containerResizeSpeed: 350
		});	
	}
	
	
});
