function verifier()
{
	var tab=new Array();

	var nom = document.getElementById("firstname").value;
	var email = document.getElementById("email").value;
	var tel = document.getElementById("tel").value;
	var sujet = document.getElementById("sujet").value;
	var mess = document.getElementById("mess").value;
	
	if(nom == "")
	{
		tab[0] = "Veuillez saisir votre nom";
	}
	else
	{
		tab[0] =null;
	}
	
	
	
	
	
	
	if(email == "")
	{
		tab[1] = "Veuillez saisir votre Email";
	}
	else
	{
		if(email.indexOf("@") == -1 || email.indexOf(".") == -1)
		{
			tab[1] = "Veuillez saisir une adresse mail correct";
		}
		else
		{
			tab[1] =null;
		}
	}
	

	if(mess == "")
	{
		tab[2] = "Veuillez saisir un message";
	}
	else
	{
		tab[2] =null;
	}
	
	
	if(((tab[0]==null) && (tab[1]==null)) && (tab[2]==null))
	{	
		return true;	
	}
	else
	{
		$("#status1").html(tab[0]);
		$("#status2").html(tab[1]);
		$("#status5").html(tab[2]);
		return false;
	}
}

$(document).ready(function(){
		$('#tabs #tab-123 div').hide();
		$('#tabs #tab-123 div:first').fadeIn(1000);
		$('#tabs ul li:first').addClass('active');
		$('#tabs ul li a').click(function(){ 
			$('#tabs ul li').removeClass('active');
			$(this).parent().addClass('active'); 
			var currentTab = $(this).attr('href'); 
			$('#tab-123 div').hide();
			//$(currentTab).show();
			$(currentTab).fadeIn(1000);
			return false;
			});
		}
		);
		
		
	$(function() {
        $('.rea2 a, .quatre a').lightBox();
    });







  /*code google analytics*/
   var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-18174794-4']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
