// MODIF DES DIMENSIONS IMAGES : modifier les HauteurxLargeur dans le script "photo.html"
// ---------------------------------------------
// -------  site  A.JACQUET  ----------

var photo = 1;

// nombre total d'images *
var total_img = 28;

// ------------ GRANDES IMAGES : nom du fichier sans extension *---------------------
// ------------IMPERATIF : saisir "empty" si pas d'image a un emplacement ---------------------

image = new Array(total_img)

image[1] = "1";

image[2] = "2";

image[3] = "3";

image[4] = "4";

image[5] = "5";

image[6] = "6";

image[7] = "7";

image[8] = "8";

image[9] = "9";

image[10] = "10";

image[11] = "11";

image[12] = "12";

image[13] = "13";

image[14] = "14";

image[15] = "15";

image[16] = "16";

image[17] = "17";

image[18] = "18";

image[19] = "19";

image[20] = "elle13";

image[21] = "elle14";

image[22] = "22";

image[23] = "23";

image[24] = "24";

image[25] = "25";

image[26] = "26";

image[27] = "27";

image[28] = "28";


// ------------ TITRES *---------------------

titre = new Array(total_img)

titre[1] = "ELLE";

titre[2] = "MARIE CLAIRE";

titre[3] = "MARIE CLAIRE";

titre[4] = "MARIE CLAIRE";

titre[5] = "MARIE CLAIRE";

titre[6] = "ELLE";

titre[7] = "ELLE";

titre[8] = "ELLE";

titre[9] = "ELLE";

titre[10] = "ELLE";

titre[11] = "ELLE";

titre[12] = "ELLE";

titre[13] = "MARIE CLAIRE";

titre[14] = "MARIE CLAIRE";

titre[15] = "TECKNIKART MADEMOISELLE";

titre[16] = "TECKNIKART MADEMOISELLE";

titre[17] = "MARIE CLAIRE";

titre[18] = "ELLE";

titre[19] = "ELLE";

titre[20] = "ELLE";

titre[21] = "ELLE";

titre[22] = "BLOOM";

titre[23] = "TECKNIKART MADEMOISELLE";

titre[24] = "TECKNIKART MADEMOISELLE";

titre[25] = "ELLE";

titre[26] = "ELLE";

titre[27] = "TECKNIKART MADEMOISELLE";

titre[28] = "TECKNIKART MADEMOISELLE";



// ------------------------- lˇgendes FRANCAISE  ----------
			
legende = new Array(total_img)

legende[1] = "";

legende[2] = "";

legende[3] = "";


// --------------------------- lˇgendes ANGLAISES  ---------


legend = new Array(total_img)

legend[1] = "";

legend[2] = "";

legend[3] = "";


// -----------------------Fonction "OUVRE" -----------------

function ouvre(id) {
	var photo=id;

//	window.open("diaporama.html?photo=" + id,"mainFrame");

		}



function suivant() {

	photo += 1;

	if ( photo == (total_img + 1) ) {

		photo = 1;

		}
		
		if (image[photo] != "empty") {

		document.location="photo.html?photo=" + photo; }
		
		else suivant();

	}



function precedent() {

	photo += -1;

	if ( photo <= 0 ) {

		photo = total_img;

		}
		
		if (image[photo] != "empty") {

		document.location="photo.html?photo=" + photo; }
		
		else precedent();
		

	}


// --------------------remise a zero------------------------

function zero() {

	document.grdeimage.src = "0.jpg";

	}
