	///////////////////////////////////////
	///////////////////////////////////////
	// custom here the script 

	var URLofThisPage = "page_popup.htm?image=";

	var myImages = new Array();

	myImages[1] = "../photos/grandes/photo01.jpg";
	myImages[2] = "../photos/grandes/photo02.jpg";
	myImages[3] = "../photos/grandes/photo03.jpg";
	myImages[4] = "../photos/grandes/photo04.jpg";
	myImages[5] = "../photos/grandes/photo05.jpg";
	myImages[6] = "../photos/grandes/photo06.jpg";
	myImages[7] = "../photos/grandes/photo07.jpg";
	myImages[8] = "../photos/grandes/photo08.jpg";
	myImages[9] = "../photos/grandes/photo09.jpg";
	myImages[10] = "../photos/grandes/photo010.jpg";
	myImages[11] = "../photos/grandes/photo011.jpg";
	myImages[12] = "../photos/grandes/photo012.jpg";
	myImages[13] = "../photos/grandes/photo013.jpg";
	myImages[14] = "../photos/grandes/photo014.jpg";
	myImages[15] = "../photos/grandes/photo015.jpg";
	myImages[16] = "../photos/grandes/photo016.jpg";
	myImages[17] = "../photos/grandes/photo017.jpg";
	myImages[18] = "../photos/grandes/photo018.jpg";
	myImages[19] = "../photos/grandes/photo019.jpg";
	myImages[20] = "../photos/grandes/photo020.jpg";
	myImages[21] = "../photos/grandes/photo021.jpg";
	myImages[22] = "../photos/grandes/photo022.jpg";
	myImages[23] = "../photos/grandes/photo023.jpg";
	myImages[24] = "../photos/grandes/photo024.jpg";
	myImages[25] = "../photos/grandes/photo025.jpg";
	myImages[26] = "../photos/grandes/photo026.jpg";
	myImages[27] = "../photos/grandes/photo027.jpg";
	myImages[28] = "../photos/grandes/photo028.jpg";
	myImages[29] = "../photos/grandes/photo029.jpg";
	myImages[30] = "../photos/grandes/photo030.jpg";
	myImages[31] = "../photos/grandes/photo031.jpg";
	myImages[32] = "../photos/grandes/photo032.jpg";
	myImages[33] = "../photos/grandes/photo033.jpg";
	myImages[34] = "../photos/grandes/photo034.jpg";
	myImages[35] = "../photos/grandes/photo035.jpg";
	myImages[36] = "../photos/2006_05_23_big/SGP1.jpg";
	myImages[37] = "../photos/2006_05_23_big/SGP2.jpg";
	myImages[38] = "../photos/2006_05_23_big/SGP3.jpg";
	myImages[39] = "../photos/2006_05_23_big/SGP4.jpg";
	myImages[40] = "../photos/2006_05_23_big/SGP5.jpg";
	


	var myImagesNames = new Array();

	myImagesNames[1] = "photo01.jpg";
	myImagesNames[2] = "photo02.jpg";
	myImagesNames[3] = "photo03.jpg";
	myImagesNames[4] = "photo04.jpg";
	myImagesNames[5] = "photo05.jpg";
	myImagesNames[6] = "photo06.jpg";
	myImagesNames[7] = "photo07.jpg";
	myImagesNames[8] = "photo08.jpg";
	myImagesNames[9] = "photo09.jpg";
	myImagesNames[10] = "photo010.jpg";
	myImagesNames[11] = "photo011.jpg";
	myImagesNames[12] = "photo012.jpg";
	myImagesNames[13] = "photo013.jpg";
	myImagesNames[14] = "photo014.jpg";
	myImagesNames[15] = "photo015.jpg";
	myImagesNames[16] = "photo016.jpg";
	myImagesNames[17] = "photo017.jpg";
	myImagesNames[18] = "photo018.jpg";
	myImagesNames[19] = "photo019.jpg";
	myImagesNames[20] = "photo020.jpg";
	myImagesNames[21] = "photo021.jpg";
	myImagesNames[22] = "photo022.jpg";
	myImagesNames[23] = "photo023.jpg";
	myImagesNames[24] = "photo024.jpg";
	myImagesNames[25] = "photo025.jpg";
	myImagesNames[26] = "photo026.jpg";
	myImagesNames[27] = "photo027.jpg";
	myImagesNames[28] = "photo028.jpg";
	myImagesNames[29] = "photo029.jpg";
	myImagesNames[30] = "photo030.jpg";
	myImagesNames[31] = "photo031.jpg";
	myImagesNames[32] = "photo032.jpg";
	myImagesNames[33] = "photo033.jpg";
	myImagesNames[34] = "photo034.jpg";
	myImagesNames[35] = "photo035.jpg";
	myImagesNames[36] = "2006_05_23/SGP1.jpg";
	myImagesNames[37] = "2006_05_23/SGP2.jpg";
	myImagesNames[38] = "2006_05_23/SGP3.jpg";
	myImagesNames[39] = "2006_05_23/SGP4.jpg";
	myImagesNames[40] = "2006_05_23/SGP5.jpg";
	

	
	var myImagesOrientation = new Array();

	myImagesOrientation[1] = "L";
	myImagesOrientation[2] = "L";
	myImagesOrientation[3] = "L";
	myImagesOrientation[4] = "L";
	myImagesOrientation[5] = "L";
	myImagesOrientation[6] = "L";
	myImagesOrientation[7] = "L";
	myImagesOrientation[8] = "L";
	myImagesOrientation[9] = "L";
	myImagesOrientation[10] = "L";
	myImagesOrientation[11] = "P";
	myImagesOrientation[12] = "P";
	myImagesOrientation[13] = "P";
	myImagesOrientation[14] = "P";
	myImagesOrientation[15] = "P";
	myImagesOrientation[16] = "L";
	myImagesOrientation[17] = "L";
	myImagesOrientation[18] = "L";
	myImagesOrientation[19] = "L";
	myImagesOrientation[20] = "L";
	myImagesOrientation[21] = "L";
	myImagesOrientation[22] = "L";
	myImagesOrientation[23] = "L";
	myImagesOrientation[24] = "L";
	myImagesOrientation[25] = "L";
	myImagesOrientation[26] = "L";
	myImagesOrientation[27] = "L";
	myImagesOrientation[28] = "L";
	myImagesOrientation[29] = "L";
	myImagesOrientation[30] = "L";
	myImagesOrientation[31] = "L";
	myImagesOrientation[32] = "L";
	myImagesOrientation[33] = "L";
	myImagesOrientation[34] = "L";
	myImagesOrientation[35] = "L";
	myImagesOrientation[36] = "L";
	myImagesOrientation[37] = "L";
	myImagesOrientation[38] = "L";
	myImagesOrientation[39] = "L";
	myImagesOrientation[40] = "L";
	
	
	
	// End of customisation
	///////////////////////////////////////
	///////////////////////////////////////
	
	
	function getURLParam(strParamName){
		var strReturn = "";
		var strHref = window.location.href;
		if ( strHref.indexOf("?") > -1 ){
			var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase();
			var aQueryString = strQueryString.split("&");
			for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
				if (aQueryString[iParam].indexOf(strParamName + "=") > -1 ){
					var aParam = aQueryString[iParam].split("=");
					strReturn = aParam[1];
					break;
				}
			}
		}
		return strReturn;
	} 



	var myCurrentImage = getURLParam("image");
	var myPreviousImage = "";
	var myNextImage = "";

	if (myCurrentImage == "") {
		myCurrentImage = 1;
	} else {
		myCurrentImage = Number(myCurrentImage);
	}

	myPreviousImage	= myCurrentImage - 1;
	myNextImage		= myCurrentImage + 1;

	if(myPreviousImage == 0) {
		myPreviousImage = myImages.length - 1;
	}
	
	if(myNextImage >= myImages.length) {
		myNextImage = 1;
	}

	function InitImageAndName(myNumImage){
		document.getElementById('DHTML_image').src = myImages[myNumImage];
		document.getElementById('DHTML_nom').innerHTML = "Image " + myNumImage + " : " + myImagesNames[myNumImage];
		document.title = myImagesNames[myNumImage];

		if (myImagesOrientation[myNumImage] == "P"){
//			document.getElementById('DHTML_image').width = 283;
//			document.getElementById('DHTML_image').height = 392;
			window.resizeTo(350,480);
		} else {
//			document.getElementById('DHTML_image').width = 358;
//			document.getElementById('DHTML_image').height = 283;
			window.resizeTo(510,400);
		}
	}


                     function popUp(page)
                      {
                      var largeur =350
                      var hauteur =510
                      var top=((screen.height-hauteur)/2) -13;
                      var left=((screen.width-largeur)/2) - 13;
                      window.open(page,"Bidon" ,"top="+top+",left="+left+",width="+largeur+",height="+hauteur+",'menubar=no,status=no,resize=no'");
                      }

                     function popUp2(page2)
                      {
                      var largeur =510
                      var hauteur =350
                      var top=((screen.height-hauteur)/2) -13;
                      var left=((screen.width-largeur)/2) - 13;
                      window.open(page2,"Bidon2","top="+top+",left="+left+",width="+largeur+",height="+hauteur+",'menubar=no,status=no,resize=no'");
                      }
                    
