

//les événements du catalogue
function catal_liste(id_lien,titre,nlleimage,stylelong)
	{
		//alert(id_lien)
		//alert(titre)
		//alert(nlleimage)
		//alert(stylelong)

		//passer tous les liens en blanc sauf celui sélectionné
		for(i = 0; i < document.getElementById('liste_catal').getElementsByTagName('a').length; i++)
			{
			zorg=document.getElementById('liste_catal').getElementsByTagName('a').item(i)
			//alert(zorg.id +"-" + id_lien)

			if (zorg.id !=id_lien)
				{
				zorg.style.color = "#ffffff";
				}
			else
				{
				zorg.style.color = "#c51036";
				}
			}


		// changer le titre
		letitre = document.getElementById("nom");
		letitre.innerHTML = titre;

		// cacher calque flash
		leflash = document.getElementById("flash");
		leflash.style.visibility = "hidden";

		// changer source de l'image
		limage = document.getElementById("roll_image");
		limage.src = '../photo/'+ nlleimage;


		// cacher le calque de titre par defaut et montrer le calque titre spécifique
		pardefaut = document.getElementById("titre_roll_1_2");
		pardefaut.style.visibility = "hidden";

		specifique = document.getElementById("titre_roll_1");
		specifique.style.visibility = "visible";

		// afficher le calque qui contient la photo
		amodif = document.getElementById("titre_roll_2");
		amodif.style.visibility = "visible";

		// afficher le titre long
		style_long = document.getElementById("style_long_catal");
		style_long.innerHTML = stylelong;
	}




//pour montrer la grande photo dans le catalogue
function change_img(nlleimage,letexte)
	{

	//alert(nlleimage)

	// changer source de l'image
	limage = document.getElementById("gde_img");
	limage.src = '../photo/'+ nlleimage;

	// changer le texte
	nouv_texte = document.getElementById("descr");
	nouv_texte.innerHTML = letexte;
	}




// ***************************************pour entreprise
//changer les textes entreprise en fonction de la date
function change_date(annee,langue)
	{
		var lang = langue

		// le tableau des textes
		var tab_annee = new Array(3)
		tab_annee[0] = "1985";
		tab_annee[1] = "1991";
		tab_annee[2] = "1995";
		tab_annee[3] = "2001";
		tab_annee[4] = "2002";
		tab_annee[5] = "2004";
		tab_annee[6] = "2007";
		tab_annee[7] = "2008";
		tab_annee[8] = "2010";
		tab_annee[9] = "";
		tab_annee[10] = "";
		tab_annee[11] = "";
		tab_annee[12] = "";
		
		var tab_txt = new Array(3)

		if (lang=="fr")
			{
				tab_txt[0] = "Gilbert Fitan, le fabricant billard crée le billard table : billard français réversible.";

				tab_txt[1] = "Son fils, Philippe crée la marque Billards Plaisance, améliore la technique billard table avec l' arrivée du billard américain.";

				tab_txt[2] = "Apparition de l'ardoise qui favorise un meilleur rendement de chaque boule billard.";

				tab_txt[3] = "Mise en fabrication du billard pool et création du billard bandes interchangeable.";

				tab_txt[4] = "Création du billard en 2.40 m et developpement du concept billard table.";

				tab_txt[5] = "Création des billards multi-matériaux par association du bois avec : du verre, de l ' altuglass, de l'inox et du cuir.";

				tab_txt[6] = "Amélioration de nos chassis par adjonction de longerons metalliques. Création du billard table d' extérieur en aluminium.";

				tab_txt[7] = "Présence aux salons internationaux de Londres et Houston pour véhiculer les valeurs de la marque Billards Plaisance";

				tab_txt[8] = "Création d'une salle exposition décorée suivant le dernier concept.";
				
				tab_txt[9] = "";
				tab_txt[10] = "";
				tab_txt[11] = "";
				tab_txt[12] = "";

			}
			else
			{
				tab_txt[0] = "Gilbert fitan, the manufacturer creates the billiard billiard  : French reversible table billiards.";

				tab_txt[1] = "his son, Philip creates brand Billiards Plaisance, improves the technical billiard table with the arrival of American Billiards";

				tab_txt[2] = "Appearance of slate that promotes better performance of each ball billiards.";

				tab_txt[3] = "Getting manufacture of billiards and pool billiards establishment of interchangeable bands.";

				tab_txt[4] = "Building the pool 2.40 m and the concept development and billiard table.";

				tab_txt[5] = "Creation of multi-materials billiards by association with timber: glass, the altuglass, stainless steel and leather";

				tab_txt[6] = "Improving our frame by adding the metal rails. Creation of the snooker exterior aluminum table.";

				tab_txt[7] = "Attendance at international exhibitions in London and Houston to convey the brand values Billiards Plaisance.";

				tab_txt[8] = "Creating an exhibition hall decorated in the latter concept";

				tab_txt[9] = "";
				
				tab_txt[10] = "";
				tab_txt[11] = "";
				tab_txt[12] = "";
				}
			//initialisation de j
		j=-1

		// changer les dates et le texte
		for (i=annee;i<=annee+2;i++)
		{
			j++
			//chgt date
			ent_date = document.getElementById("date_"+j);
			ent_date.innerHTML = tab_annee[i];

			//chgt txt
			ent_texte = document.getElementById("ent_txt_"+j);
			ent_texte.innerHTML = tab_txt[i];
		}

		// flèche suivant
		var suivant = annee+3
		if (suivant>9)
			{
			suivant=0;
			}

			ent_img = document.getElementById("img1");
			ent_img.innerHTML = "<img src='../image/fleche_droite.gif'  onclick=\"change_date("+suivant+",lalangue)\" border='0'>";

	}





// passer le texte en gris foncé
function fonce_on(num)
	{
		ent_txt = document.getElementById("ent_txt_"+num);
		ent_txt.style.color = "#2d2d2d";
	}


function fonce_off(num)
	{
		ent_txt = document.getElementById("ent_txt_"+num);
		ent_txt.style.color = "#878787";
	}

// ***************************************FIN pour entreprise










//montrer cacher
function roll_over_out(montrer,cacher)
	{
		//alert(montrer)
		//alert(cacher)

		amodif = document.getElementById(montrer);
		//alert(amodif)
		amodif.style.visibility = "visible";

		amodif = document.getElementById(cacher);
		//alert(amodif)
		amodif.style.visibility = "hidden";
	}



