$(document).ready(function()
                    {
						$('.eventslist').hide();
                        $('#contactLink').click(function()
                                                {
                                                    if ($('#contactForm').is(':hidden'))
                                                    {
														$('#myContent').hide();
														$('.remplaceCarrou').show();
                                                        $('#contactForm').slideDown('slow');
                                                    }
                                                    else
                                                    {
                                                        $('#contactForm').slideUp('slow');
														$('#myContent').show();
														$('.remplaceCarrou').hide();
                                                    }
                                                });
												
												
												
						$('input[type="text"], textarea').addClass("idleField");						
						$('input[type="text"], textarea').focus(function() {
							$(this).removeClass("idleField").addClass("focusField");
							if (this.value == this.defaultValue){ 
								this.value = '';
							}
							if(this.value != this.defaultValue){
								this.select();
							}
						});
						$('input[type="text"], textarea').blur(function() {
							$(this).removeClass("focusField").addClass("idleField");
							if ($.trim(this.value) == ''){
								this.value = (this.defaultValue ? this.defaultValue : '');
							}
						});	

						$('.firstHomeLien').hover(
							function () {
								$(".firstHomeImage").attr({src : "images/puceB.png"});
								$(".firstHomeTable").css({'border-left': 'thin dotted #8BAED8'});
							}, 

							function () {
								$(".firstHomeImage").attr({src : "images/puce.png"});
								$(".firstHomeTable").css({'border-left': 'thin dotted #F29400'});
							}
						);
						
						$('.homeLien').hover(
							function () {
								$(".homeImage").attr({src : "images/puceB.png"});
								$(".homeTable").css({'border-left': 'thin dotted #8BAED8'});
							}, 

							function () {
								$(".homeImage").attr({src : "images/puce.png"});
								$(".homeTable").css({'border-left': 'thin dotted #F29400'});
							}
						);
						
						$('.lastHomeLien').hover(
							function () {
								$(".lastHomeImage").attr({src : "images/puceB.png"});
								$(".lastHomeTable").css({'border-left': 'thin dotted #8BAED8'});
							}, 

							function () {
								$(".lastHomeImage").attr({src : "images/puce.png"});
								$(".lastHomeTable").css({'border-left': 'thin dotted #F29400'});
							}
						);
												 
						$(".eve").mouseover(function(){
							$(this).find(".eventslist").show("normal");
						});
						 
						$(".eve").mouseleave(function(){
							$(this).find(".eventslist").hide("normal");

						});

                    });

			function closeForm()
			{		
				setTimeout('$("#messageSent").hide(); $("#contactForm").slideUp("slow"); $("#myContent").show(); $(".remplaceCarrou").hide();', 2000);
			}
			
			function closeFormNatt()
			{
				
				$("#messageSent").hide(); $("#contactForm").slideUp("slow");
				$("#myContent").show(); $(".remplaceCarrou").hide();
			}
		
			function affiche_message()
			{
				$('#messageSent').show();
			}
