//fonction de vérification de l'email et des champs page contact.
function verif(email) 
{
	var arobase = email.indexOf("@")
	var point = email.lastIndexOf(".")
	if((arobase < 2)||(point + 2 > email.length)||(point < arobase+2)) 
	{ 
		alert("Cet Email est erroné !");
		return false; 
	}
	else 
	{ 
		if (document.contact.sender_name.value=="" || document.contact.sender_surname.value=="" || document.contact.message.value=="")
		{
			alert("Veuillez remplir tous les champs marqués d'une étoile");
			return false;
		}
		else
		{
			return true;
		}
	}
}

//fonction de vérification de la mailing liste.
function verifmailing(email) {
	var arobase = email.indexOf("@");
	var point = email.lastIndexOf(".");
	if((arobase < 2)||(point + 2 > email.length)||(point < arobase+2)) 
	{
		alert('Email Incorrect !');
		return false;
	}
	else
	{
		return true;
	}
}

// fonction pour agrandir les photos
function affichemaxi(chemin,popup_height,popup_width,titre)
{
	if (!titre) titre="Agrandissement photo";
	var html = '<HTML><HEAD><TITLE>'+titre+'</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><IMG SRC="'+chemin+'"></BODY></HTML>';
	popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,height='+popup_height+',width='+popup_width );
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close();
}

// Fonction qui ouvre une popup
function ouvre_popup(page)
{
	window.open(page,'info','top=200,left=200,width=350,height=450,resizable=no,scrollbars=yes,fullscreen=no');
}

function addFav()
{
	if (document.all)
	{
		window.external.AddFavorite(location.href, document.title);
	}
	else
	{
		alert('Vous pouvez faire CTRL + D pour ajouter cette page dans vos signets, ou favoris.')
	}
}

<!-- fonction pour verif moteur de recherche
function verif_moteur()
{
	if (document.moteurrecherche.moteur_recherche.value=="")
	{
		alert("Veuillez préciser votre recherche");
		return false;
	}
	else
	{
		return true;
	}
}
function verif3(email) 
	  {
         var arobase = email.indexOf("@")
         var point = email.lastIndexOf(".")
         if((arobase < 2)||(point + 2 > email.length)||(point < arobase+2)) 
		 { 
		 	alert("Cet Email est erroné !");
		 	return false 
		 }
         else 
		 { 
		 	if (contact.nom.value=="" || contact.prenom.value=="" || contact.adresse.value=="" || contact.code_postal.value=="" || contact.ville.value=="" || contact.tel.value=="")
			{
				alert("Veuillez remplir tous les champs marqués d'une étoile");
				return false;
			}
			else
			{
				return true 
			}
		 }
      }
	  
var slideShowSpeed = 5000

var crossFadeDuration = 3

var Pic = new Array()

Pic[0] = 'diapos/9.jpg'

Pic[1] = 'diapos/11.jpg'

Pic[2] = 'diapos/12.jpg'

Pic[3] = 'diapos/1.jpg'

Pic[4] = 'diapos/2.jpg'

Pic[5] = 'diapos/3.jpg'

Pic[6] = 'diapos/4.jpg'

Pic[7] = 'diapos/5.jpg'

Pic[8] = 'diapos/6.jpg'

Pic[9] = 'diapos/7.jpg'

Pic[10] = 'diapos/8.jpg'

Pic[11] = 'diapos/10.jpg'

var t

var j = 0

var p = Pic.length

var preLoad = new Array()

for (i = 0; i < p; i++){

preLoad[i] = new Image()

preLoad[i].src = Pic[i]

}

function runSlideShow(){

if (document.all){

document.images.SlideShow.style.filter="blendTrans(duration=2)"

document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"

document.images.SlideShow.filters.blendTrans.Apply() 

}

document.images.SlideShow.src = preLoad[j].src

if (document.all){

document.images.SlideShow.filters.blendTrans.Play()

}

j = j + 1

if (j > (p-1)) j=0

t = setTimeout('runSlideShow()', slideShowSpeed)

}

imgPath = new Array;
SiClickGoTo = new Array;
if (document.images)
	{
	i0 = new Image;
	i0.src = 'gifs/1.jpg';
	SiClickGoTo[0] = "";
	imgPath[0] = i0.src;
	i1 = new Image;
	i1.src = 'gifs/2.jpg';
	SiClickGoTo[1] = "";
	imgPath[1] = i1.src;
	i2 = new Image;
	i2.src = 'gifs/3.jpg';
	SiClickGoTo[2] = "";
	imgPath[2] = i2.src;
	i3 = new Image;
	i3.src = 'gifs/4.jpg';
	SiClickGoTo[3] = "";
	imgPath[3] = i3.src;
	i4 = new Image;
	i4.src = 'gifs/5.jpg';
	SiClickGoTo[4] = "";
	imgPath[4] = i4.src;
	i5 = new Image;
	i5.src = 'gifs/6.jpg';
	SiClickGoTo[5] = "";
	imgPath[5] = i5.src;
	i6 = new Image;
	i6.src = 'gifs/7.jpg';
	SiClickGoTo[6] = "";
	imgPath[6] = i6.src;
	i7 = new Image;
	i7.src = 'gifs/8.jpg';
	SiClickGoTo[7] = "";
	imgPath[7] = i7.src;
	i8 = new Image;
	i8.src = 'gifs/9.jpg';
	SiClickGoTo[8] = "";
	imgPath[8] = i8.src;
	i9 = new Image;
	i9.src = 'gifs/10.jpg';
	SiClickGoTo[9] = "";
	imgPath[9] = i9.src;
	i10 = new Image;
	i10.src = 'gifs/11.jpg';
	SiClickGoTo[10] = "";
	imgPath[10] = i10.src;
	i11 = new Image;
	i11.src = 'gifs/12.jpg';
	SiClickGoTo[11] = "";
	imgPath[11] = i11.src;
	i12 = new Image;
	i12.src = 'gifs/13.jpg';
	SiClickGoTo[12] = "";
	imgPath[12] = i12.src;
	i13 = new Image;
	i13.src = 'gifs/14.jpg';
	SiClickGoTo[13] = "";
	imgPath[13] = i13.src;
	i14 = new Image;
	i14.src = 'gifs/15.jpg';
	SiClickGoTo[14] = "";
	imgPath[14] = i14.src;
	i15 = new Image;
	i15.src = 'gifs/16.jpg';
	SiClickGoTo[15] = "";
	imgPath[15] = i15.src;
	i16 = new Image;
	i16.src = 'gifs/17.jpg';
	SiClickGoTo[16] = "";
	imgPath[16] = i16.src;
	}
a = 0;
function ejs_img_fx(img)
	{
	if(img && img.filters && img.filters[0])
		{
		img.filters[0].apply();
		img.filters[0].play();
		}
	}

function StartAnim()
	{
	if (document.images)
		{
		document.write('<A HREF="#" onClick="ImgDest();return(false)"><IMG SRC="gifs/1.jpg" BORDER=0 ALT=Diaporama NAME=defil style="filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=100,Duration=1)"></A>');
		defilimg()
		}
	else
		{
		document.write('<A HREF=""><IMG SRC="gifs/1.jpg" BORDER=0></A>')
		}
	}
function ImgDest()
	{
	//document.location.href = SiClickGoTo[a-1];
	}
function defilimg()
	{
	if (a == 17)
		{
		a = 0;
		}
	if (document.images)
		{
		ejs_img_fx(document.defil)
		document.defil.src = imgPath[a];
		tempo3 = setTimeout("defilimg()",3000);
		a++;
		}
	}