function change_image(id, imgid, src_medium, src_normal, legende, height){
    
    
    
    // On récupère le nombre d'image en fonction du nombre d'élément dans le tableau url_images créé en page detail.php
    nbre_images = url_images.length-1;
    //alert(nbre_images);
    
    obj=document.getElementById("imag-container");
    
    myNewContent='';
    
    for(i=1; i<=nbre_images; i++) {
	
		if(i==id){
			
			myNewContent = myNewContent+'<div style="position:relative;display:block;width:235px;"><a rel="lightbox[galerie]" href="'+src_normal+'"'+(legende==""?"title='&nbsp;'":"title=\""+legende.replace("\'","'","gi")+"\"")+' ><img src="images/loupe.png" class="png" atl="" style="position:absolute;width:40px;height:40px;right:3px;bottom:3px;"  /><img src="' + src_medium + '" alt="" /></a></div>';
		
		}else{
		
			myNewContent= myNewContent+'<a rel="lightbox[galerie]"  href="'+url_images[i]+'" title="'+leg_images[i]+'"  style="display:none;">Link</a>';
			
		}
		
	}
    
    obj.innerHTML=myNewContent;
    
    //obj.innerHTML='<div style="position:relative;display:block;width:235px;height:176px;"><a rel="lightbox[galerie]" href="'+src_normal+'"'+(legende==""?"title='&nbsp;'":"title=\""+legende.replace("\'","'","gi")+"\"")+' ><img src="images/loupe.png" class="png" atl="" style="position:absolute;width:40px;height:40px;right:3px;bottom:3px;"  /><img src="' + src_medium + '" alt="" /></a></div>';

 while(transp_img=document.getElementById("plus-img-selected")){
        transp_img.id="img_plus_small" + transp_img.alt;
    }
    document.getElementById(imgid).id="plus-img-selected";
    document.getElementById("div-legende-image").innerHTML=(legende!=""?legende:"&nbsp;");
    
    
}
