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 += "

"; sEnd += "" + sPhotoComment + ""; sCorp =""; sCorp +=""; sCorp +=""; sCorp +=""; sCorp +=""; sCorp +="
"; sCorp +="
"; sCorp +=""; sCorp +="
"; document.getElementById("PhotoBox").innerHTML = "

 "+ sPhotoTitle +" 

" + sCorp + "
" + sEnd + "
"; } } // window.onload = new Function("DisplayPhoto(0)"); function DisplayMini(num) { lPhotoInfo = new Array; InitializePhotoList(); sCurrentPhoto = String(lPhotos[num]); sPhotoTitle = "Miniatures"; sPhotoComment= ""; if(document.getElementById) { sEnd = ""; sEnd += "

"; sEnd += "

"; sEnd += "

"; sEnd += "

"; sEnd += "" + sPhotoComment + ""; sCorp =""; sCorp +="
"; sCorp += ""; document.getElementById("PhotoBox").innerHTML = "

"+ sPhotoTitle +"

" + sCorp + "
" + sEnd + "
"; } } function GetCurrentPhotoIndex() { return num; }