/*ROLL OVER*/


$(document).ready(function() 
						  
{

$(".orange").hover(
	function () {
	$ (".off").hide();
	$ (".on").show();
},
function () {
$ (".on").show();
$ (".on").hide();
$ (".off").show();
});
});
$(document).ready(function() 
{

$(".green").hover(
function () {
$ (".off1").hide();
$ (".on1").show();
},
function () {
$ (".on1").show();
$ (".on1").hide();
$ (".off1").show();
});
});
$(document).ready(function() 
{

$(".purple").hover(
function () {
$ (".off2").hide();
$ (".on2").show();
},
function () {
$ (".on2").show();
$ (".on2").hide();
$ (".off2").show();
});
});
$(document).ready(function() 
{

$(".blue").hover(
function () {
$ (".off3").hide();
$ (".on3").show();
},
function () {
$ (".on3").show();
$ (".on3").hide();
$ (".off3").show();
});
});

/*LOADING CONTENT*/

$(document).ready(function() 
	{
	$(".event").click(function () {
		$(".context").hide();
		$(".hidden01").hide();
		$(".hidden").show();
	}) 

	
	$(".event01").click(function () {
		$(".context").hide();
		$(".hidden").hide();
		$(".hidden01").show();
	}) 


	/*-----------------------------------------*/
	$(".parcours").click(function () {
		$(".bel").hide();
		$(".description").show();
	
	});

	
	$(".parcours").click(function () {
		$(".conseil").hide();
		$(".fierte").hide();
		$(".description").show();
	
	});

	$(".moi").click(function () {
		$(".description").hide();
		$(".bel").show();
	
	});
 $(".moi").click(function () {
		$(".conseil").hide();
		$(".fierte").hide();
		$(".bel").show();
	
	});

	$(".monconseil").click(function () {
		$(".bel").hide();
		$(".description").hide();
		$(".fierte").hide();
		$(".conseil").show();
	
	});

	
	$(".monconseil").click(function () {
		$(".description").hide();
		$(".conseil").show();
	
	});
	
	$(".mafierte").click(function () {
		$(".bel").hide();
		$(".description").hide();
		$(".conseil").hide();
		$(".fierte").show();
	
	});

	/*-----------------------------------------*/
	

	
	$(".parcours").click(function () {
		$(".bel").hide();
		$(".fierte01").hide();
		$(".description01").show();
	
	});

	
	$(".parcours").click(function () {
		$(".conseil01").hide();
		$(".bel01").hide();
		$(".fierte01").hide();
		$(".description01").show();
	
	});

	
	$(".moi").click(function () {
		$(".description01").hide();
		$(".conseil01").hide();
		$(".fierte01").hide();
		$(".bel01").show();
	
	});

	
	$(".monconseil").click(function () {
		$(".bel01").hide();
		$(".description01").hide();
		$(".fierte01").hide();
		$(".conseil01").show();
	
	});
	$(".mafierte").click(function () {
		$(".bel01").hide();
		$(".description01").hide();
		$(".conseil01").hide();
		$(".fierte01").show();
	
	});
});
$(document).ready(function() 
	{
// Carousel vertical 
	$('.carrousel .down').mousedown(function()
	{
			var heightContainer = $('.carrousel .wrapper').height();
			var heightList = $('.carrousel .contentWrapper').height();
			newHeight = (parseInt(heightContainer)-parseInt(heightList));
			alwaysMoveDown = setInterval
			(
				function()
				{
					if(parseInt($('.carrousel .contentWrapper').css('top'))>newHeight)
					{
						$('.carrousel .contentWrapper').css({'top':parseInt($('.carrousel .contentWrapper').css('top'))-5+'px'})
					}
				}
				,1
			);
	});
	$('.carrousel .down').mouseup
		(
			function()
			{
				clearInterval(alwaysMoveDown);
			}
		);
	$('.carrousel .up').mousedown(function()
	{
			alwaysMoveUp = setInterval
			(
				function()
				{
					if(parseInt($('.carrousel .contentWrapper').css('top'))<0)
					{
						$('.carrousel .contentWrapper').css({'top':parseInt($('.carrousel .contentWrapper').css('top'))+5+'px'})
					}
				}
				,1
			);
	});
	$('.carrousel .up').mouseup
		(
			function()
			{
				clearInterval(alwaysMoveUp);
			}
		);
// Gestion des layers
$('.layer, .layer01, .layer02, .layer03, .layer04').hide();
$('.circleMap').mouseover(function()
{
	currentId = $(this).attr('id');
	$('.'+currentId).show();
});
$('.circleMap').mouseout(function()
{
	currentId = $(this).attr('id');
	$('.'+currentId).hide();
});


});



