


function annee(annee)
{
	
	
	switch(annee)
	{
	 case 2009:
		$('#annee2009').css({'border-left': '3px solid #c49b70'});
		$('#a2009').css({'padding-left': '20px'});
		
		$('#annee2008').css({'border-left': '0px solid #c49b70'});
		$('#a2008').css({'padding-left': '0px'});
		
		$('#annee2007').css({'border-left': '0px solid #c49b70'});
		$('#a2007').css({'padding-left': '0px'});
		
		
		break;
		
		
		
	case 2008:

		$('#annee2008').css({'border-left': '3px solid #c49b70'});
		$('#a2008').css({'padding-left': '20px'});
		
		$('#annee2007').css({'border-left': '0px solid #c49b70'});
		$('#a2007').css({'padding-left': '0px'});
		
		$('#annee2009').css({'border-left': '0px solid #c49b70'});
		$('#a2009').css({'padding-left': '0px'});
		
		break;
		
	case 2007:

		$('#annee2007').css({'border-left': '3px solid #c49b70'});
		$('#a2007').css({'padding-left': '20px'});
		
		$('#annee2008').css({'border-left': '0px solid #c49b70'});
		$('#a2008').css({'padding-left': '0px'});
		
		$('#annee2009').css({'border-left': '0px solid #c49b70'});
		$('#a2009').css({'padding-left': '0px'});
		
		break;
	
	}
	
	
}





$(document).ready(function(){




    //Set opacity on each span to 0%
    
   
     $(".rollover1").css({'opacity':'0'});
     $(".rollover2").css({'opacity':'0'});
     $(".rollover3").css({'opacity':'0'});
 	 jQuery("#moi").css({'opacity':'0'});
    

	$('#bouton1 a').hover(
		function() {
			$(this).find('.rollover1').stop().fadeTo(500, 1);
		},
		function() {
			$(this).find('.rollover1').stop().fadeTo(500, 0);
		}
		
	)
	
	
	$('#bouton2 a').hover(
		function() {
			$(this).find('.rollover2').stop().fadeTo(500, 1);
		},
		function() {
			$(this).find('.rollover2').stop().fadeTo(500, 0);
		}
	
	)
	
	$('#bouton3 a').hover(
		function() {
			$(this).find('.rollover3').stop().fadeTo(500, 1);
		},
		function() {
			$(this).find('.rollover3').stop().fadeTo(500, 0);
		}
	
	)
	
	
		
});



var compteur= 0; 


function nav_carnet_bottom()
{
	if(compteur <= 6 )
	{
		$('#scroll').delay(0).animate({'top':'-=61px'});
		compteur = compteur + 1 ;
	}
	
}

	


function nav_carnet_top()
{
	if(compteur > 0  )
	{
		$('#scroll').delay(0).animate({'top':'+=61px'});
		
		compteur = compteur - 1 ;
	}
}

var compteur_vins= 0;

function nav_carnet_bottom_vins()
{
	if(compteur_vins <= 11 )
	{
		$('#scroll').delay(0).animate({'top':'-=61px'});
		compteur_vins = compteur_vins + 1 ;
	}
	
}

	


function nav_carnet_top_vins()
{
	if(compteur_vins > 0  )
	{
		$('#scroll').delay(0).animate({'top':'+=61px'});
		
		compteur_vins = compteur_vins - 1 ;
	}
}

	






var i= 0;



function decrement()
{
	
	
	if(i < 10 )
	{
		
		i= i+1;
		$(".block").animate({"left": "+=960px"}, "slow");
		$("#right").show();
		
	}
	
	else
	{
		
  		$("#left").hide();
	
	}
		
	

}


function increment()
{
	
	if(i > -10 )
	{
		
		i= i-1;
		$(".block").animate({"left": "-=960px"}, "slow");
		$("#left").show();
	}
	
	else
	{
		
		$("#right").hide();
	}

}

