function DisplayPhoto(num) { lPhotoInfo = new Array; InitializePhotoList(); sCurrentPhoto = String(lPhotos[num]); iPos = sCurrentPhoto.lastIndexOf("."); sCurrentPhotoName = sCurrentPhoto; if (iPos != -1) sCurrentPhotoName = sCurrentPhotoName.substring(0, iPos); iPos1 = sCurrentPhoto.lastIndexOf("\\"); iPos = sCurrentPhoto.lastIndexOf("/"); if (iPos1 > iPos) iPos = iPos1; if (iPos != -1) sCurrentPhotoName = sCurrentPhotoName.substring(iPos + 1); lPhotoInfo = sCurrentPhotoName.split("_"); sPhotoNumber = ""; sPhotoTitle = ""; sPhotoComment = ""; if (lPhotoInfo.length > 0) sPhotoNumber = lPhotoInfo[0]; if (lPhotoInfo.length > 1) sPhotoTitle = lPhotoInfo[1]; else sPhotoTitle = lPhotoInfo[0]; if (lPhotoInfo.length > 2) sPhotoComment = lPhotoInfo[2]; if(document.getElementById) { sEnd = "
"; if(num!=0) sEnd += "< Précédent"; sEnd += " | "; if(lPhotos.length>1) sEnd += "Miniatures"; sEnd += " | "; if(num!=(lPhotos.length-1)) sEnd += "Suivant >"; sEnd += " |
";
sCorp +=" | ";
sCorp +="
"+ sPhotoTitle +"
" + sCorp + ""; sEnd += " | "; sEnd += " | "; sEnd += " |
"+ sPhotoTitle +"
" + sCorp + "