// JavaScript Document
$(function(){
	$(".shadow").dropShadow({
		left: 4,
		top: 4,
		blur: 6,
		opacity: 0.7,
		color: "black"
	});
	
	$(".shadowLight").dropShadow({
		left: 3,
		top: 3,
		blur: 4,
		opacity: 0.5,
		color: "black"
	});
	
	
		
	
	
	/*$('.legende .contenuLegende').css({marginTop: '90px'});
	$('.legende .contenuLegende').mouseenter(function(){
		$(this).animate({marginTop: '-=90px'});
	});
	$('.legende .contenuLegende').mouseleave(function(){
		$(this).animate({marginTop: '+=90px'});
	});*/
	
	
	// gestion des cartes de metéo
	$('.carte14h').hide();
	$('.btn8h').addClass('actif');
	$('.btn8h').mouseenter(function(){
		$(this).addClass('actif');
		$(this).parent().parent().find('.btn14h').removeClass('actif');
		$(this).parent().parent().parent().find('.carte14h').slideUp();
		$(this).parent().parent().parent().find('.carte8h').slideDown();
	});
	$('.btn14h').mouseenter(function(){
		$(this).addClass('actif');
		$(this).parent().parent().find('.btn8h').removeClass('actif');
		$(this).parent().parent().parent().find('.carte14h').slideDown();
		$(this).parent().parent().parent().find('.carte8h').slideUp();
	})
	$('.btn14h, .btn8h').click(function(){
		return false;									
	});
	
	// Gestion des messages d'erreur
	$('.notice-box').dialog({ title: 'Information', modal: true, closeText:'Fermer' });
	$('.error-box').dialog({title: 'Erreur', modal: true, closeText:'Fermer' });
	
		
});
