/*
 * Animations du menu central	
 */
$(document).ready(function(){
	$('.menuGrid.animDisco').hover(function(){
		$(".typo", this).stop().animate({top:'0px'},{queue:false,duration:250});
	}, function() {
		$(".typo", this).stop().animate({top:'252px'},{queue:false,duration:250});
	});
	$('.menuGrid.animBio').hover(function(){
		$(".typo", this).stop().animate({left:'0px', top:'0px'},{queue:false,duration:250});
	}, function() {
		$(".typo", this).stop().animate({left:'-460px', top:'0px'},{queue:false,duration:250});
	});
	$('.menuGrid.animPro').hover(function(){
		$(".typo", this).stop().animate({left:'0px', bottom: '0px'},{queue:false,duration:250});
	}, function() {
		$(".typo", this).stop().animate({left:'460px', bottom: '0px'},{queue:false,duration:160});
	});
	$('.menuGrid.animPhotos').hover(function(){
		$(".typo", this).stop().animate({bottom:'0px'},{queue:false,duration:250});
	}, function() {
		$(".typo", this).stop().animate({bottom:'252px'},{queue:false,duration:250});
	});
});

/*
 * Réinitialisation du menu du footer
 */
function initMenu() {
	var $eMenuFoot = $('#menuFoot').children();
	$eMenuFoot.removeClass('menuFootActif');
	$eMenuFoot.addClass('menuFootInactif');
}
/*
 * Contrôles et actions sur le menu du footer 
 */
$(document).ready(function() {
	$('#menuFootHome').click(function() {
		if ($('#menuFootHome').not(':active')) {
			initMenu();
			$(this).removeClass('menuFootInactif');
			$(this).addClass('menuFootActif');
		}
	});
	$('#menuFootDisco').click(function() {
		if ($('#menuFootDisco').not(':active')) {
			initMenu();
			$(this).removeClass('menuFootInactif');
			$(this).addClass('menuFootActif');
		}
	});
	$('#menuFootBio').click(function() {
		if ($('#menuFootBio').not(':active')) {
			initMenu();
			$(this).removeClass('menuFootInactif');
			$(this).addClass('menuFootActif');
		}
	});
	$('#menuFootPro').click(function() {
		if ($('#menuFootPro').not(':active')) {
			initMenu();
			$(this).removeClass('menuFootInactif');
			$(this).addClass('menuFootActif');
		}
	});
	$('#menuFootPhotos').click(function() {
		if ($('#menuFootPhotos').not(':active')) {
			initMenu();
			$(this).removeClass('menuFootInactif');
			$(this).addClass('menuFootActif');
		}
	});
});

/*
 * Contrôles et actions sur le menu central
 */
$(document).ready(function() {
	$('#menuCentreDisco').click(function() {
		if($('#menuFootDisco').not(':active')) {
			initMenu();
			$('#menuFootDisco').removeClass('menuFootInactif');
			$('#menuFootDisco').addClass('menuFootActif');
		}
	});
	$('#menuCentreBio').click(function() {
		if($('#menuFootBio').not(':active')) {
			initMenu();
			$('#menuFootBio').removeClass('menuFootInactif');
			$('#menuFootBio').addClass('menuFootActif');
		}
	})
	$('#menuCentrePro').click(function() {
		if($('#menuFootPro').not(':active')) {
			initMenu();
			$('#menuFootPro').removeClass('menuFootInactif');
			$('#menuFootPro').addClass('menuFootActif');
		}
	})
	$('#menuCentrePhotos').click(function() {
		if($('#menuFootPhotos').not(':active')) {
			initMenu();
			$('#menuFootPhotos').removeClass('menuFootInactif');
			$('#menuFootPhotos').addClass('menuFootActif');
		}
	})	
});

