// JavaScript Document

if (document.images){

  //Hébergement
  NormandiePhotoSrc01 = new Array();
  NormandiePhotoCaption01_FR = new Array();
  NormandiePhotoCaption01_EN = new Array();
    
  NormandiePhotoSrc01[0] = "images/photos_hotel/p013.jpg"
  NormandiePhotoCaption01_FR[0] = "La r&eacute;ception de l'h&ocirc;tel"
  NormandiePhotoCaption01_EN[0] = "The Normandie front desk"
  
  NormandiePhotoSrc01[1] = "images/photos_hotel/pSalon.jpg"
  NormandiePhotoCaption01_FR[1] = "Salon confortable et chaleureux où il fait bon s'arrêter pour une lecture, un brin de causette ou tout simplement pour admirer le paysage grandiose."
  NormandiePhotoCaption01_EN[1] = "Cosy living room, to relax, to chat, to read or simply to admire the gorgeous scenery."
  
  NormandiePhotoSrc01[2] = "images/photos_hotel/p06.jpg"
  NormandiePhotoCaption01_FR[2] = "Rocher vu &agrave; partir du petit bar-salon de l'h&ocirc;tel"
  NormandiePhotoCaption01_EN[2] = "The Perc&eacute; Rock from the little lounge of the hotel"
  
  NormandiePhotoSrc01[3] = "images/photos_hotel/p08.jpg"
  NormandiePhotoCaption01_FR[3] = "Chambre c&ocirc;t&eacute; mer, vue sur le Rocher, deux lits doubles, balcon, 3e &eacute;tage de l'h&ocirc;tel"
  NormandiePhotoCaption01_EN[3] = "Room with view on the Rock, two double beds, balcony, 3rd floor"

  NormandiePhotoSrc01[4] = "images/photos_hotel/p09.jpg"
  NormandiePhotoCaption01_FR[4] = "Chambre c&ocirc;t&eacute; mer, vue sur le Rocher, deux lits doubles, balcon, 3e &eacute;tage de l'h&ocirc;tel"
  NormandiePhotoCaption01_EN[4] = "Room with view on the Rock, two double beds, balcony, 3rd floor"
  
  NormandiePhotoSrc01[5] = "images/photos_hotel/p027.jpg"
  NormandiePhotoCaption01_FR[5] = "Chambre c&ocirc;t&eacute; mer, vue sur le Rocher, un lit queen, balcon, 3e &eacute;tage de l'h&ocirc;tel"
  NormandiePhotoCaption01_EN[5] = "Room with view on the Rock, one queen size bed, balcony, 3rd floor"
  
  NormandiePhotoSrc01[6] = "images/photos_hotel/p012.jpg"
  NormandiePhotoCaption01_FR[6] = "Chambre c&ocirc;t&eacute; mer, vue sur le Rocher, un lit queen, balcon, 3e &eacute;tage de l'h&ocirc;tel"
  NormandiePhotoCaption01_EN[6] = "Room with view on the Rock, one queen size bed, balcony, 3rd floor"

  NormandiePhotoSrc01[7] = "images/photos_hotel/p043.jpg"
  NormandiePhotoCaption01_FR[7] = "Chambre c&ocirc;t&eacute; mer, vue sur le Rocher, deux lits doubles ou un lit queen, balcon, 2e &eacute;tage de l'h&ocirc;tel"
  NormandiePhotoCaption01_EN[7] = "Room with view on the Rock, two double beds or one queen size bed, balcony, 2nd floor"

  NormandiePhotoSrc01[8] = "images/photos_hotel/p044.jpg"
  NormandiePhotoCaption01_FR[8] = "Chambre c&ocirc;t&eacute; mer, vue sur le Rocher, deux lits doubles ou un lit queen, balcon, 2e &eacute;tage de l'h&ocirc;tel"
  NormandiePhotoCaption01_EN[8] = "Room with view on the Rock, two double beds or one queen size bed, balcony, 2nd floor"

  NormandiePhotoSrc01[9] = "images/photos_hotel/p040.jpg"
  NormandiePhotoCaption01_FR[9] = "Chambre c&ocirc;t&eacute; mer, vue sur le Rocher, deux lits doubles ou un lit queen, niveau jardin"
  NormandiePhotoCaption01_EN[9] = "Room with view on the Rock, two double beds or one queen size bed, garden level"

  NormandiePhotoSrc01[10] = "images/photos_hotel/p041.jpg"
  NormandiePhotoCaption01_FR[10] = "Chambre c&ocirc;t&eacute; mer, vue sur le Rocher, deux lits doubles ou un lit queen, niveau jardin"
  NormandiePhotoCaption01_EN[10] = "Room with view on the Rock, two double beds or one queen size bed, garden level"

  NormandiePhotoSrc01[11] = "images/photos_hotel/p030.jpg"
  NormandiePhotoCaption01_FR[11] = "Suite junior, deux lits queen et un salon, vue sur la mer et le Rocher, balcon, 3e &eacute;tage de l'h&ocirc;tel"
  NormandiePhotoCaption01_EN[11] = "Junior Suite, two queen size beds, living room, view on the Rock, balcony, 3rd floor"

  NormandiePhotoSrc01[12] = "images/photos_hotel/p031.jpg"
  NormandiePhotoCaption01_FR[12] = "Suite junior, deux lits queen et un salon, vue sur la mer et le Rocher, balcon, 3e &eacute;tage de l'h&ocirc;tel "
  NormandiePhotoCaption01_EN[12] = "Junior Suite, two queen size beds, living room, view on the Rock, balcony, 3rd floor"

  NormandiePhotoSrc01[13] = "images/photos_hotel/p05.jpg"
  NormandiePhotoCaption01_FR[13] = "Chambre sans vue sur la mer, avec un ou deux lits queen"
  NormandiePhotoCaption01_EN[13] = "Room without view on the sea with one or two queen size beds"

  

  
  //panorama
  NormandiePhotoSrc02 = new Array();
  NormandiePhotoCaption02_FR = new Array();
  NormandiePhotoCaption02_EN = new Array();
  
  //ajouter le scan ici
  
  NormandiePhotoSrc02[0] = "images/photos_hotel/pRocher370.jpg"
  NormandiePhotoCaption02_FR[0] = "Le Rocher Percé vu de La Normandie"
  NormandiePhotoCaption02_EN[0] = "The Perc&eacute; Rock viewed from La Normandie"

  NormandiePhotoSrc02[1] = "images/photos_hotel/vue2.jpg"
  NormandiePhotoCaption02_FR[1] = "Le Rocher en plein brouillard"
  NormandiePhotoCaption02_EN[1] = "The Rock hiden by sea fog"	
  
  NormandiePhotoSrc02[2] = "images/photos_hotel/vue3.jpg"
  NormandiePhotoCaption02_FR[2] = "Arc-en-ciel dominant le ciel de Percé (été 1982)"
  NormandiePhotoCaption02_EN[2] = "Rainbow over the PercPerc&eacute; sky (summer 1982)"  

  NormandiePhotoSrc02[3] = "images/photos_hotel/vue4.jpg"
  NormandiePhotoCaption02_FR[3] = "En revenant du rang de l'Irlande"
  NormandiePhotoCaption02_EN[3] = "Back from Rang de l'Irlande"

  NormandiePhotoSrc02[4] = "images/photos_hotel/vue6.jpg"
  NormandiePhotoCaption02_FR[4] = "Le Rocher se libérant des glaces à la fin mars"
  NormandiePhotoCaption02_EN[4] = "Percé Rock in March"
  
  NormandiePhotoSrc02[5] = "images/photos_hotel/vue7.jpg"
  NormandiePhotoCaption02_FR[5] = "La pêche sur une mer d'huile par temps suspendu"
  NormandiePhotoCaption02_EN[5] = "Quiet moments"  

  NormandiePhotoSrc02[6] = "images/photos_hotel/vue8.jpg"
  NormandiePhotoCaption02_FR[6] = "Au détour de l'Île Bonaventure"
  NormandiePhotoCaption02_EN[6] = "Neighbouring Bonaventure Island"  

  NormandiePhotoSrc02[7] = "images/photos_hotel/vue9.jpg"
  NormandiePhotoCaption02_FR[7] = "Colonie de Fous de Bassan à l'Île Bonaventure"
  NormandiePhotoCaption02_EN[7] = "Guanet's settlement on Bonaventure Island"
  
  NormandiePhotoSrc02[8] = "images/photos_hotel/vue10.jpg"
  NormandiePhotoCaption02_FR[8] = "Lever de Soleil sur le Rocher Percé vu de La Normandie"
  NormandiePhotoCaption02_EN[8] = "Sunrise on Percé Rock viewed from La Normandie"
  
  NormandiePhotoSrc02[9] = "images/photos_hotel/vue11.jpg"
  NormandiePhotoCaption02_FR[9] = "Tour guidé en bateau autour du Rocher et de l'Île Bonaventure"
  NormandiePhotoCaption02_EN[9] = "Boat tour around Percé Rock and Bonaventure Island"
  
  NormandiePhotoSrc02[10] = "images/photos_hotel/vue13.jpg"
  NormandiePhotoCaption02_FR[10] = "Route sillonant la Gaspésie, vue du Mont Blanc à Percé"
  NormandiePhotoCaption02_EN[10] = "Road along the Gaspe Peninsula from MT Blanc in Percé"

  NormandiePhotoSrc02[11] = "images/photos_hotel/vue14.jpg"
  NormandiePhotoCaption02_FR[11] = "Touristes en croisière à Percé"
  NormandiePhotoCaption02_EN[11] = "Tourist luxury boat in Percé"
  
  NormandiePhotoSrc02[12] = "images/photos_hotel/vue15.jpg"
  NormandiePhotoCaption02_FR[12] = "L'Île Bonaventure vue de La Normandie"
  NormandiePhotoCaption02_EN[12] = "Bonaventure Island viewed from La Normandie"
  
  NormandiePhotoSrc02[13] = "images/photos_hotel/vue16.jpg"
  NormandiePhotoCaption02_FR[13] = "Percé, durant une chaude journée de juillet, vu du Pic de l'Aurore"
  NormandiePhotoCaption02_EN[13] = "Percé, on a warm day of July, from the Peak of Dawn"
  
  NormandiePhotoSrc02[14] = "images/photos_hotel/pLaNormandieExt1.jpg"
  NormandiePhotoCaption02_FR[14] = "Hôtel La Normandie (août 2005)"
  NormandiePhotoCaption02_EN[14] = "Hotel La Normandie (August 2005)"
 
    NormandiePhotoSrc02[15] = "images/photos_hotel/vue18.jpg"
  NormandiePhotoCaption02_FR[15] = "Dauphin batifolant entre La Normandie et l'Île Bonaventure (juin 1992)"
  NormandiePhotoCaption02_EN[15] = "Dolphin romping between La Normandie and Bonaventure Island (June 1992)"
  
  NormandiePhotoSrc02[16] = "images/photos_hotel/vue1.jpg"
  NormandiePhotoCaption02_FR[16] = "Coucher de soleil sur le Rocher après l'orage vu de La Normandie"
  NormandiePhotoCaption02_EN[16] = "Sunset on the Rock after rain viewed from La Normandie"
  
 //nouvelles photos 2008 12

  
  NormandiePhotoSrc02[17] = "images/photos_hotel/p028.jpg"
  NormandiePhotoCaption02_FR[17] = "Littoral de Perc&eacute; &agrave; vol d'oiseau, photo de Ron Garnett"
  NormandiePhotoCaption02_EN[17] = "Perce coastline from a bird eye, picture from Ron Garnett"
  
  NormandiePhotoSrc02[18] = "images/photos_hotel/p036.jpg"
  NormandiePhotoCaption02_FR[18] = "Rivi&egrave;re aux &Eacute;meraudes, &agrave; quelques minutes en voiture de Perc&eacute;"
  NormandiePhotoCaption02_EN[18] = "Emerald's River, few minutes drive from Perce"
  
  NormandiePhotoSrc02[19] = "images/photos_hotel/p039.jpg"
  NormandiePhotoCaption02_FR[19] = "Vue du Rocher &agrave; partir du jardin de l'h&ocirc;tel "
  NormandiePhotoCaption02_EN[19] = "Perce Rock view from the Normandie garden"
  
  NormandiePhotoSrc02[20] = "images/photos_hotel/p024.jpg"
  NormandiePhotoCaption02_FR[20] = "H&ocirc;tel La Normandie vu de la mer"
  NormandiePhotoCaption02_EN[20] = "The Normandie hotel from the sea"
  

  //La table

  NormandiePhotoSrc03 = new Array();
  NormandiePhotoCaption03_FR = new Array();
  NormandiePhotoCaption03_EN = new Array();
  
  NormandiePhotoSrc03[0] = "images/photos_hotel/pTable1.jpg"
  NormandiePhotoCaption03_FR[0] = ""
  NormandiePhotoCaption03_EN[0] = ""
  
  NormandiePhotoSrc03[1] = " images/photos_hotel/pSalleDiner315.jpg"  
  NormandiePhotoCaption03_FR[1] = ""
  NormandiePhotoCaption03_EN[1] = ""
  
}

function nextPhoto01_FR(){
  if (document.images){
    for(var i=0; i<NormandiePhotoSrc01.length; i++){
      if(i == NormandiePhotoSrc01.length-1 && document.PhotoDisplayed01.id == NormandiePhotoSrc01[i]){
        document.PhotoDisplayed01.id = NormandiePhotoSrc01[0]
        document.PhotoDisplayed01.src = NormandiePhotoSrc01[0]
        document.getElementById('PhotoCaption01').innerHTML=NormandiePhotoCaption01_FR[0]
        break;
      }
      else if(document.PhotoDisplayed01.id == NormandiePhotoSrc01[i]){
        document.PhotoDisplayed01.id = NormandiePhotoSrc01[i+1]
        document.PhotoDisplayed01.src = NormandiePhotoSrc01[i+1]
        document.getElementById('PhotoCaption01').innerHTML=NormandiePhotoCaption01_FR[i+1]
        break;
      } 
    }
  }
}

function nextPhoto01_EN(){
  if (document.images){
    for(var i=0; i<NormandiePhotoSrc01.length; i++){
      if(i == NormandiePhotoSrc01.length-1 && document.PhotoDisplayed01.id == NormandiePhotoSrc01[i]){
        document.PhotoDisplayed01.id = NormandiePhotoSrc01[0]
        document.PhotoDisplayed01.src = NormandiePhotoSrc01[0]
        document.getElementById('PhotoCaption01').innerHTML=NormandiePhotoCaption01_EN[0]
        break;
      }
      else if(document.PhotoDisplayed01.id == NormandiePhotoSrc01[i]){
        document.PhotoDisplayed01.id = NormandiePhotoSrc01[i+1]
        document.PhotoDisplayed01.src = NormandiePhotoSrc01[i+1]
        document.getElementById('PhotoCaption01').innerHTML=NormandiePhotoCaption01_EN[i+1]
        break;
      } 
    }
  }
}

function nextPhoto02_FR(){
  if (document.images){
    for(var i=0; i<NormandiePhotoSrc02.length; i++){
      if(i == NormandiePhotoSrc02.length-1 && document.PhotoDisplayed02.id == NormandiePhotoSrc02[i]){
        document.PhotoDisplayed02.id = NormandiePhotoSrc02[0]
        document.PhotoDisplayed02.src = NormandiePhotoSrc02[0]
		document.getElementById('PhotoCaption02').innerHTML=NormandiePhotoCaption02_FR[0]
        break;
      }
      else if(document.PhotoDisplayed02.id == NormandiePhotoSrc02[i]){
        document.PhotoDisplayed02.id = NormandiePhotoSrc02[i+1]
        document.PhotoDisplayed02.src = NormandiePhotoSrc02[i+1]
		document.getElementById('PhotoCaption02').innerHTML=NormandiePhotoCaption02_FR[i+1]
        break;
      } 
    }
  }
}

function nextPhoto02_EN(){
  if (document.images){
    for(var i=0; i<NormandiePhotoSrc02.length; i++){
      if(i == NormandiePhotoSrc02.length-1 && document.PhotoDisplayed02.id == NormandiePhotoSrc02[i]){
        document.PhotoDisplayed02.id = NormandiePhotoSrc02[0]
        document.PhotoDisplayed02.src = NormandiePhotoSrc02[0]
		document.getElementById('PhotoCaption02').innerHTML=NormandiePhotoCaption02_EN[0]
        break;
      }
      else if(document.PhotoDisplayed02.id == NormandiePhotoSrc02[i]){
        document.PhotoDisplayed02.id = NormandiePhotoSrc02[i+1]
        document.PhotoDisplayed02.src = NormandiePhotoSrc02[i+1]
		document.getElementById('PhotoCaption02').innerHTML=NormandiePhotoCaption02_EN[i+1]
        break;
      } 
	  
    }
	mytime= setTimeout('nextPhoto02_EN()',3000)
  }
}

function nextPhoto03_FR(){
  if (document.images){
    for(var i=0; i<NormandiePhotoSrc03.length; i++){
      if(i == NormandiePhotoSrc03.length-1 && document.PhotoDisplayed03.id == NormandiePhotoSrc03[i]){
        document.PhotoDisplayed03.id = NormandiePhotoSrc03[0]
        document.PhotoDisplayed03.src = NormandiePhotoSrc03[0]
		document.getElementById('PhotoCaption03').innerHTML=NormandiePhotoCaption03_FR[0]
        break;
      }
      else if(document.PhotoDisplayed03.id == NormandiePhotoSrc03[i]){
        document.PhotoDisplayed03.id = NormandiePhotoSrc03[i+1]
        document.PhotoDisplayed03.src = NormandiePhotoSrc03[i+1]
		document.getElementById('PhotoCaption03').innerHTML=NormandiePhotoCaption03_FR[i+1]
        break;
      } 
    }
  }
}

function nextPhoto03_EN(){
  if (document.images){
    for(var i=0; i<NormandiePhotoSrc03.length; i++){
      if(i == NormandiePhotoSrc03.length-1 && document.PhotoDisplayed03.id == NormandiePhotoSrc03[i]){
        document.PhotoDisplayed03.id = NormandiePhotoSrc03[0]
        document.PhotoDisplayed03.src = NormandiePhotoSrc03[0]
		document.getElementById('PhotoCaption03').innerHTML=NormandiePhotoCaption03_EN[0]
        break;
      }
      else if(document.PhotoDisplayed03.id == NormandiePhotoSrc03[i]){
        document.PhotoDisplayed03.id = NormandiePhotoSrc03[i+1]
        document.PhotoDisplayed03.src = NormandiePhotoSrc03[i+1]
		document.getElementById('PhotoCaption03').innerHTML=NormandiePhotoCaption03_EN[i+1]
        break;
      } 
    }
  }
}



function previousPhoto01_FR(){
  if (document.images){
    for(var i=0; i<NormandiePhotoSrc01.length; i++){
      if(i == 0 && document.PhotoDisplayed01.id == NormandiePhotoSrc01[i]){
        document.PhotoDisplayed01.id = NormandiePhotoSrc01[NormandiePhotoSrc01.length-1]
        document.PhotoDisplayed01.src = NormandiePhotoSrc01[NormandiePhotoSrc01.length-1]
        document.getElementById('PhotoCaption01').innerHTML=NormandiePhotoCaption01_FR[NormandiePhotoSrc01.length-1]
        break;
      }
      else if(document.PhotoDisplayed01.id == NormandiePhotoSrc01[i]){
        document.PhotoDisplayed01.id = NormandiePhotoSrc01[i-1]
        document.PhotoDisplayed01.src = NormandiePhotoSrc01[i-1]
        document.getElementById('PhotoCaption01').innerHTML=NormandiePhotoCaption01_FR[i-1]
        break;
      } 
    }
  }
}

function previousPhoto01_EN(){
  if (document.images){
    for(var i=0; i<NormandiePhotoSrc01.length; i++){
      if(i == 0 && document.PhotoDisplayed01.id == NormandiePhotoSrc01[i]){
        document.PhotoDisplayed01.id = NormandiePhotoSrc01[NormandiePhotoSrc01.length-1]
        document.PhotoDisplayed01.src = NormandiePhotoSrc01[NormandiePhotoSrc01.length-1]
        document.getElementById('PhotoCaption01').innerHTML=NormandiePhotoCaption01_EN[NormandiePhotoSrc01.length-1]
        break;
      }
      else if(document.PhotoDisplayed01.id == NormandiePhotoSrc01[i]){
        document.PhotoDisplayed01.id = NormandiePhotoSrc01[i-1]
        document.PhotoDisplayed01.src = NormandiePhotoSrc01[i-1]
        document.getElementById('PhotoCaption01').innerHTML=NormandiePhotoCaption01_EN[i-1]
        break;
      } 
    }
  }
}

function previousPhoto02_FR(){
  if (document.images){
    for(var i=0; i<NormandiePhotoSrc02.length; i++){
      if(i == 0 && document.PhotoDisplayed02.id == NormandiePhotoSrc02[i]){
        document.PhotoDisplayed02.id = NormandiePhotoSrc02[NormandiePhotoSrc02.length-1]
        document.PhotoDisplayed02.src = NormandiePhotoSrc02[NormandiePhotoSrc02.length-1]
        document.getElementById('PhotoCaption02').innerHTML=NormandiePhotoCaption02_FR[NormandiePhotoSrc02.length-1]
        break;
      }
      else if(document.PhotoDisplayed02.id == NormandiePhotoSrc02[i]){
        document.PhotoDisplayed02.id = NormandiePhotoSrc02[i-1]
        document.PhotoDisplayed02.src = NormandiePhotoSrc02[i-1]
        document.getElementById('PhotoCaption02').innerHTML=NormandiePhotoCaption02_FR[i-1]
        break;
      } 
    }
  }
}

function previousPhoto02_EN(){
  if (document.images){
    for(var i=0; i<NormandiePhotoSrc02.length; i++){
      if(i == 0 && document.PhotoDisplayed02.id == NormandiePhotoSrc02[i]){
        document.PhotoDisplayed02.id = NormandiePhotoSrc02[NormandiePhotoSrc02.length-1]
        document.PhotoDisplayed02.src = NormandiePhotoSrc02[NormandiePhotoSrc02.length-1]
        document.getElementById('PhotoCaption02').innerHTML=NormandiePhotoCaption02_EN[NormandiePhotoSrc02.length-1]
        break;
      }
      else if(document.PhotoDisplayed02.id == NormandiePhotoSrc02[i]){
        document.PhotoDisplayed02.id = NormandiePhotoSrc02[i-1]
        document.PhotoDisplayed02.src = NormandiePhotoSrc02[i-1]
        document.getElementById('PhotoCaption02').innerHTML=NormandiePhotoCaption02_EN[i-1]
        break;
      } 
    }
  }
}

function previousPhoto03_FR(){
  if (document.images){
    for(var i=0; i<NormandiePhotoSrc03.length; i++){
      if(i == 0 && document.PhotoDisplayed03.id == NormandiePhotoSrc03[i]){
        document.PhotoDisplayed03.id = NormandiePhotoSrc03[NormandiePhotoSrc03.length-1]
        document.PhotoDisplayed03.src = NormandiePhotoSrc03[NormandiePhotoSrc03.length-1]
		document.getElementById('PhotoCaption03').innerHTML=NormandiePhotoCaption03_FR[NormandiePhotoSrc03.length-1]
        break;
      }
      else if(document.PhotoDisplayed03.id == NormandiePhotoSrc03[i]){
        document.PhotoDisplayed03.id = NormandiePhotoSrc03[i-1]
        document.PhotoDisplayed03.src = NormandiePhotoSrc03[i-1]
		document.getElementById('PhotoCaption03').innerHTML=NormandiePhotoCaption03_FR[i-1]
        break;
      } 
    }
  }
}

function previousPhoto03_EN(){
  if (document.images){
    for(var i=0; i<NormandiePhotoSrc03.length; i++){
      if(i == 0 && document.PhotoDisplayed03.id == NormandiePhotoSrc03[i]){
        document.PhotoDisplayed03.id = NormandiePhotoSrc03[NormandiePhotoSrc03.length-1]
        document.PhotoDisplayed03.src = NormandiePhotoSrc03[NormandiePhotoSrc03.length-1]
		document.getElementById('PhotoCaption03').innerHTML=NormandiePhotoCaption03_EN[NormandiePhotoSrc03.length-1]
        break;
      }
      else if(document.PhotoDisplayed03.id == NormandiePhotoSrc03[i]){
        document.PhotoDisplayed03.id = NormandiePhotoSrc03[i-1]
        document.PhotoDisplayed03.src = NormandiePhotoSrc03[i-1]
		document.getElementById('PhotoCaption03').innerHTML=NormandiePhotoCaption03_EN[i-1]
        break;
      } 
    }
  }
}
