// initialisation formulaire ajax
var nom_formulaire_ajax = 'quick_find';


	
	
function addGoogleListener() {
	GEvent.addListener(map, "click", function() {
		document.quick_find.C_65.value='';
	});	
}	


	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();
		});
	};


	var $j = jQuery.noConflict();		
	$j(function() {
			$j('#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
		 });
			$j('#fisheye').Fisheye({
					maxWidth: 50, /* mombre de pixel en plus a l image */
					items: 'a',
					itemsText: 'span',  /* on peut afficher ou non du txt avec des balises span */
					container: '.fisheyeContainter',
					itemWidth: 150, /* dimension photo origine - jouer avec fisheyeItem_img */
					proximity: 150, /* longueur de la vague */
					valign: 'bottom',
					halign : 'center'
				});

			$j('#mycarousel').jcarousel({
			auto: 2,
			wrap: 'last',
			initCallback: mycarousel_initCallback,
			scroll: 1
		});					
		 
	});		
	