<!--

//	*********************************************************************************************
//	| JPD | V0.16 | 02-11-2005 | Fichier JavaScript : "./include/photo.js"						|
//	*********************************************************************************************

	// Ici le nom de toutes les photos de la page d'accueil : "tblPhotoImage".
	// Ne pas oublier d'incrementer le nombre apres "tblPhotoImage[?]".
	tblPhotoImage=new Array();
	tblPhotoTexte=new Array();

	tblPhotoImage[0]="./photos/photo1.jpg";
	tblPhotoTexte[0]="Photo : 1."; // Ici : ne pas utiliser : "&acirc;" ni "&nbsp;"

	tblPhotoImage[1]="./photos/photo2.jpg";
	tblPhotoTexte[1]="Photo : 2."; // Ici : ne pas utiliser : "&nbsp;"

	tblPhotoImage[2]="./photos/photo3.jpg";
	tblPhotoTexte[2]="Photo : 3."; // Ici : ne pas utiliser : "&nbsp;"

	tblPhotoImage[3]="./photos/photo4.jpg";
	tblPhotoTexte[3]="Photo : 4."; // Ici : ne pas utiliser : "&nbsp;"

	tblPhotoImage[4]="./photos/photo5.jpg";
	tblPhotoTexte[4]="Photo : 5."; // Ici : ne pas utiliser : "&nbsp;"

	tblPhotoImage[5]="./photos/photo6.jpg";
	tblPhotoTexte[5]="Photo : 6."; // Ici : ne pas utiliser : "&nbsp;"

	tblPhotoImage[6]="./photos/photo7.jpg";
	tblPhotoTexte[6]="Photo : 7."; // Ici : ne pas utiliser : "&eacute;" ni "&nbsp;"

	tblPhotoImage[7]="./photos/photo8.jpg";
	tblPhotoTexte[7]="Photo : 8."; // Ici : ne pas utiliser : "&agrave;" ni "&nbsp;"

	tblPhotoImage[8]="./photos/photo9.jpg";
	tblPhotoTexte[8]="Photo : 9."; // Ici : ne pas utiliser : "&eacute;" ni "&nbsp;"

	tblPhotoImage[9]="./photos/photo10.jpg";
	tblPhotoTexte[9]="Photo : 10."; // Ici : ne pas utiliser : "&eacute;" ni "&nbsp;"


	// Ce tableau sert a garder les nombres aleatoires tires.
	tblPhotoTirage=new Array();

	// **********

	// Chercher si un nombre a deja ete tire
	function fctPhotoCherche(pValeur)
	{
		for (i=0; i<tblPhotoTirage.length; i++)
		{
			if (tblPhotoTirage[i] == pValeur)
			{
				return true;
			}
		}

		return false;
	}

	// **********

	// Cette fonction va renvoyer un nombre aleatoire
	function fctPhotoRandomize()
	{
		increment=Math.floor(Math.random() * tblPhotoImage.length);

		while (fctPhotoCherche(increment))
		{
			increment=Math.floor(Math.random() * tblPhotoImage.length);
		}

		max=(tblPhotoTirage.length == 0) ? 0 : tblPhotoTirage.length++;
		tblPhotoTirage[max]=increment;

		return increment;
	}

	// **********

	// Recopier la ligne "document.image0.src=tblPhotoImage[fctRandomize()];" autant de fois que de photo a afficher.
	// Ne pas oublier de changer le numero "document.image?.src".
	function fctPhotoInit(pType)
	{
		if (pType != "")
		{
			tblPhotoTirage.length=0;

			indice=fctPhotoRandomize();
			document.image0.src=tblPhotoImage[indice];
			document.image0.alt=tblPhotoTexte[indice];
			document.image0.title=tblPhotoTexte[indice];

		}

		return true;
	}

	// **********

	function fctPhotoAlerte(evt)
	{
		if (navigator.appName != "Microsoft Internet Explorer")
		{
			if (evt.which == 3)
			{
				alert("Cette photo est protégée.\n\nPour toutes utilisations en dehors du site : veuillez contacter l'équipe du site !");	// Ici : ne pas utiliser : "&eacute;" ni "&nbsp;"

				return false;
			}
		}
		else
		{
			if (event.button != 2)
			{
				alert("Cette photo est protégée.\n\nPour toutes utilisations en dehors du site : veuillez contacter l'équipe du site !");	// Ici : ne pas utiliser : "&eacute;" ni "&nbsp;"

				return false;
			}
		}

		return true;
	}

	// **********

	function fctPhotoProtection(vImg)
	{
		if (navigator.appName != "Microsoft Internet Explorer")
		{
			vImg.onmousedown=fctPhotoAlerte;
		}
		else
		{
			vImg.oncontextmenu=fctPhotoAlerte;
		}
	}

	// **********
	//	SCRIPT TROUVE SUR L'EDITEUR JAVASCRIPT : "http://www.editeurjavascript.com"
	// **********

	function fctPhotoEjsImgFxLoad(pImg)
	{
		if (pImg && pImg.filters && pImg.filters[0])
		{
			pImg.filters[0].apply();
			pImg.filters[0].play();
		}
	}

//-->
