// JavaScript Document
// @autor : www.coccinet.com

//<![CDATA[
	$(document).ready(function() {
				
		// Init lightbox
		$('a.lightbox').lightBox({
			imageBtnPrev: 'images/prev.png',
			imageBtnNext: 'images/next.png'
	   });
		$('a.lightbox-2').lightBox({
			imageBtnPrev: 'images/prev.png',
			imageBtnNext: 'images/next.png'
	   });
		$('a.lightbox-3').lightBox({
			imageBtnPrev: 'images/prev.png',
			imageBtnNext: 'images/next.png'
	   });

	});
	
	// function pour afficher les expo (slider)
	function showExpo(id) {

		if ( id == 1 ) {
			
			$("#liste-expo").animate({marginLeft:'0px'});
			$("#flash-fontana").show();
		}
		else if ( id == 2 ) {
			$("#liste-expo").animate({marginLeft:'-990px'});
			$("#flash-fontana").hide();
		}
		else if ( id == 3 ) {
			$("#liste-expo").animate({marginLeft:'-1980px'});
			$("#flash-fontana").hide();
		}
		
		// Etat actif du menu
		$("#menu-expo a").removeClass("menu-expo-on");
		$("#menu-expo a#menu-expo-"+id).addClass("menu-expo-on");
	}
	
	// Fonction pour afficher le carousel
	function showCarousel(){
		
		// Init carousel lite
		$(".liste-carousselle").jCarouselLite({
			btnNext: ".fleche-droite",
			btnPrev: ".fleche-gauche",
			//auto: 4000,
			speed: 800,
			mouseWheel: true,
			scroll: 5,
			visible: 5.75,
			circular: false
		});
		$(".liste-carousselle-2").jCarouselLite({
			btnNext: ".fleche-droite",
			btnPrev: ".fleche-gauche",
			//auto: 4000,
			speed: 800,
			mouseWheel: true,
			scroll: 5,
			visible: 6,
			circular: false
		});
		
	}
	
	// Mise en place du tooltip
    $(function() {
        $('#galerie img').tooltip({
            track: true, 
            delay: 0, 
            showURL: false, 
            showBody: " - ",
            fade: 250 
        });
		$('#galerie-venir img').tooltip({
            track: true, 
            delay: 0, 
            showURL: false, 
            showBody: " - ",
            fade: 250 
        });
		$('#galerie-passe img').tooltip({
            track: true, 
            delay: 0, 
            showURL: false, 
            showBody: " - ",
            fade: 250 
        });
		$('div.liste-carousselle a').tooltip({
            track: true, 
            delay: 0, 
            showURL: false, 
            showBody: " - ",
            fade: 250 
        });
		$('div.liste-carousselle-2 a').tooltip({
            track: true, 
            delay: 0, 
            showURL: false, 
            showBody: " - ",
            fade: 250 
        });
    });
//]]> 