	//Nombre d'images par page d'index
	var NBIMAGESPARINDEX = 16;	   		

	/********** CALCULER LA VALEUR DE L'IMAGE COURANTE **********/
	imageURL = document.URL;
	//La page d'index retourne la valeur de la DERNIERE image de l'index. Ca peut poser pb, cf. plus bas.
	if(imageURL.indexOf("index")!=-1){
		sizeNumASCII = imageURL.indexOf(".htm") - imageURL.indexOf("index")-5;
		imageNum = (imageURL.substr(imageURL.indexOf("index")+5,sizeNumASCII))*NBIMAGESPARINDEX;
		if(imageNum <= 0)
			imageNum = NBIMAGESPARINDEX;
	}
	else
	{
		sizeNumASCII = imageURL.indexOf(".htm") - imageURL.indexOf("image")-5;
		imageNum = imageURL.substr(imageURL.indexOf("image")+5,sizeNumASCII);
	}
	
 
/**** On update la carte si nécessaire !  On positionne les bornes dans lesquelles afficher les commentaires et les cartes ******/
//[!!] PB si un commentaire est plus petit et tiens intégralement sur un index de photos !
//=> a cause du fait que imageNum est la dernière photo de l'index, on ne passera jamais dans le commentaire
//Ex: si ici je voulais commenter séparément les 2 photos dans l'avion.
	
	//--- LIMA
	if(imageNum <= 20 && parent._lastCommentairePage != 1)
	{
		parent._lastCommentairePage = 1;
		parent.Carte.location.href="cartes/carte1.htm"
		parent.Commentaires.location.href="commentaires/commentaires1.htm"
	}
	//--- NASCA
	if(imageNum >= 21 && imageNum <= 50 && parent._lastCommentairePage != 2)
	{
		parent._lastCommentairePage = 2;
		parent.Carte.location.href="cartes/carte2.htm"
		parent.Commentaires.location.href="commentaires/commentaires2.htm"
	}
	//--- AREQUIPA
	if(imageNum >= 51 &&  imageNum <= 64 && parent._lastCommentairePage != 3)
	{
		parent._lastCommentairePage = 3;
		parent.Carte.location.href="cartes/carte3.htm"
		parent.Commentaires.location.href="commentaires/commentaires3.htm"
	}
	//--- COLCA
	if(imageNum >= 65 &&  imageNum <= 99 && parent._lastCommentairePage != 4)
	{
		parent._lastCommentairePage = 4;
		parent.Carte.location.href="cartes/carte4.htm"
		parent.Commentaires.location.href="commentaires/commentaires4.htm"
	}
	//AREQUIPA 2
	if(imageNum >= 100 &&  imageNum <= 112 && parent._lastCommentairePage != 5)
	{
		parent._lastCommentairePage = 5;
		parent.Carte.location.href="cartes/carte5.htm"
		parent.Commentaires.location.href="commentaires/commentaires5.htm"
	}
	//--- PUNO & SULLISTANI
	if(imageNum >= 113 &&  imageNum <= 128 && parent._lastCommentairePage != 6)
	{
		parent._lastCommentairePage = 6;
		parent.Carte.location.href="cartes/carte6.htm"
		parent.Commentaires.location.href="commentaires/commentaires6.htm"
	}
	//--- LAC TITICACA
	if(imageNum >= 129 &&  imageNum <= 166 && parent._lastCommentairePage != 7)
	{
		parent._lastCommentairePage = 7;
		parent.Carte.location.href="cartes/carte7.htm"
		parent.Commentaires.location.href="commentaires/commentaires7.htm"
	}
	//--- CUSCO
	if(imageNum >= 167 &&  imageNum <= 196 && parent._lastCommentairePage != 8)
	{
		parent._lastCommentairePage = 8;
		parent.Carte.location.href="cartes/carte8.htm"
		parent.Commentaires.location.href="commentaires/commentaires8.htm"
	}
	//--- PISAC
	if(imageNum >= 197 &&  imageNum <= 215 && parent._lastCommentairePage != 9)
	{
		parent._lastCommentairePage = 9;
		parent.Carte.location.href="cartes/carte9.htm"
		parent.Commentaires.location.href="commentaires/commentaires9.htm"
	}
	//--- MACCHU PICHU
	if(imageNum >= 216 &&  imageNum <= 264 && parent._lastCommentairePage != 10)
	{
		parent._lastCommentairePage = 10;
		parent.Carte.location.href="cartes/carte10.htm"
		parent.Commentaires.location.href="commentaires/commentaires10.htm"
	}
	//--- FIN
	if(imageNum >= 265 && parent._lastCommentairePage != 11)
	{
		parent._lastCommentairePage = 11;
		parent.Carte.location.href="cartes/carte11.htm"
		parent.Commentaires.location.href="commentaires/commentaires11.htm"
	}

	
	
	
		


