// fonction de creation de la gallerie
function CreerGallerie(limit){
  this.limit=limit;
  this.image=AddImage;
  this.nb=0;
}

// création des variables
function AddImage(nom, largPhoto, hautPhoto, largVign, hautVign, legende, pays, lieu, qui, date, photographe){
  var Img=new Object();
  Img.nom=nom;
  Img.legende=legende;
  Img.pays=pays;
  Img.lieu=lieu;
  Img.qui=qui;
  Img.date=date;
  Img.photographe=photographe;
 
 
// <object type='application/x-shockwave-flash' data='anim_art.swf' width='550' height='400'>
//		<param name='movie' value='anim_art.swf' />
//		<param name='wmode' value='transparent' />
//		</object>

//Img.photo='<object type ="video/quicktime" data="'+chemin+''+Img.nom+'.mov" width="'+largPhoto+'" height="'+hautPhoto+'">';
//Img.photo+=' <param name="movie" value="'+chemin+''+Img.nom+'.mov" /></object>  ';

//  Img.photo+=' <param name="wmode" value="transparent" /></object> ';
 
// Img.photo=' <object type="video/quicktime" data="../images/photos/bleau/apremont/anim1.mov" width="500" height="500">';
// Img.photo+='   <param name="movie" value="../images/photos/bleau/apremont/anim1.mov" />';
// Img.photo+='</object>';


  Img.photo='<embed src="'+chemin+''+Img.nom+'.mov" border="0" width="'+largPhoto+'" ';
  Img.photo+=' "pluginspage="http://www.apple.com/quicktime/download/" ';
  Img.photo+='height="'+hautPhoto+'" alt="#" title="'+Img.legende+'">';
  Img.vignette='<a href="#" onclick="affiche('+this.nb+');num=('+this.nb+');return false;">'; 
  Img.vignette+='<img src="../images/divers/video.gif" border="0" width="'+largVign+'" ';
  Img.vignette+='height="'+hautVign+'" hspace="5" alt="#" title="'+Img.legende+'" align="middle"></a>';
  this[this.nb]=Img;
  this.nb++;
}

// pour afficher les vidéos et leurs textes associés
function affiche(picture) 
{
  var img = gallerie[0]; 
//  var gene = "["+img.pays+"-"+img.lieu+"] [n°"+img.nom+"-"+img.date+"-"+img.photographe+"] "+img.legende;
//  var gene = "["+img.pays+"] [n°"+img.nom+" - "+img.date+" - "+img.photographe+"] "+img.legende+" ( "+img.qui+" )";
//  var gene = "<b>"+img.qui+"</b> dans <b>"+img.legende+"</b><br /> ["+img.pays+" - "+img.date+" - "+img.photographe+" (n°"+img.nom+")] ";
  var gene = "<b>"+img.qui+"</b> - <b>"+img.legende+"</b><br /> ["+img.pays+" - "+img.date+" - "+img.photographe+" (n°"+img.nom+")] ";
  document.getElementById("descriptif").innerHTML = gene;
}

