$(function() {

	// Slider rollover fx
	$(".slider .items div a").hover(
		function() // over
		{
			$(this).children('.slider-over').animate({
			left: "0px",
			opacity: 0.95},
			{duration: 400}
			);
		},
		function() //out
		{
			$(this).children('.slider-over').animate({
			opacity: 0.0},
			{duration:300}
			).animate({left: "-300px"},{duration:0});
		}
	);
	
	// Selected rollover fx
	$(".selected .items div a").hover(
		function() // over
		{
			$(this).children('.selected-over').animate({
			left: "0px",
			opacity: 0.95},
			{duration: 400}
			);
		},
		function() //out
		{
			$(this).children('.selected-over').animate({
			opacity: 0.0},
			{duration:300}
			).animate({left: "-445px"},{duration:0});
		}
	);	
	


});


// Rollover image
jQuery.fn.masque = function(classe) {	
	$(this).hover(function(){
		$(this).find(classe).stop().animate({width:'1000px',opacity: '0.9'},400);
	},function () { 
		$(this).find(classe).stop().animate({height:'20px',opacity: '0'}, 400);
	});
}   
$(document).ready(function(){$('.post-intro-img').masque('.post-intro-legend');});	