// Menu

$(document).ready(function(){

	$("#listeMenu").lavaLamp({

		fx: "backout",

		speed: 700,

		click: function(event, menuItem) {

			return true;

		}

	});

});



// Flash logo photos

$(document).ready(function() {

	$('#logo').flash(

		{

			swf: 'swf/anim_logo.swf',

			height: 197,

			width: 774,

			params: {   wmode: 'transparent'   }

		}

	);

});


// Vignettes photos

$(document).ready(function() {

	$("ul.gallery li").hover(function() { //On hover...

		var thumbOver = $(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'

		//Set a background image(thumbOver) on the <a> tag - Set position to bottom

		$(this).find("a.thumb").css({'background' : 'url(' + thumbOver + ') no-repeat center bottom'});

		//Animate the image to 0 opacity (fade it out)

		$(this).find("span").stop().animate({opacity: 0}, 300);

	} , function() { //on hover out...

		//Animate the image back to 100% opacity (fade it back in)

		$(this).find("span").stop().animate({opacity: 1}, 300);

	});

});


// Scroll bar

$(document).ready(function(){

	$('#photos').jScrollPane({showArrows:false});

	$('#photos').jScrollPane({scrollbarWidth:9, scrollbarMargin:10, dragMinHeight:20, dragMaxHeight:20});

	

	$('#scrollTexte').jScrollPane({showArrows:false});

	$('#scrollTexte').jScrollPane({scrollbarWidth:9, scrollbarMargin:10, dragMinHeight:20, dragMaxHeight:20});

});

