$(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 : '');
							}
						});	

						$('.lienHome1').hover(
						  function () {
							$(".imageHome1").attr({src : "images/puceB.png"});
							$(".FirstHomeTable").css({'border-left': 'thin dotted #89ACD6'});

						
						  }, 
						  
						  function () {
							 $(".imageHome1").attr({src : "images/puce.png"});
							 $(".FirstHomeTable").css({'border-left': 'thin dotted #F19300'});
						  }
						);
						
						$('.lienHome2').hover(
						  function () {
							$(".imageHome2").attr({src : "images/puceB.png"});
							$(".FirstHomeTable").css({'border-right': 'thin dotted #89ACD6'});
						  }, 
						  
						  function () {
							 $(".imageHome2").attr({src : "images/puce.png"});
							 $(".FirstHomeTable").css({'border-right': 'thin dotted #F19300'});
						  }
						);
						
						$('.lienHome3').hover(
						  function () {
							$(".imageHome3").attr({src : "images/puceB.png"});
							$(".homeTable").css({'border-right': 'thin dotted #89ACD6'});
						  }, 
						  
						  function () {
							 $(".imageHome3").attr({src : "images/puce.png"});
							 $(".homeTable").css({'border-right': 'thin dotted #F19300'});
						  }
						);
												 
						$(".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();
			}