// JavaScript Document
function LoadGallery(pictureName,imageFile,titleCaption,captionText)
{
  if (document.all)
  {
    document.getElementById(pictureName).style.filter="blendTrans(duration=1)";
    document.getElementById(pictureName).filters.blendTrans.Apply();
  }
  document.getElementById(pictureName).src = imageFile;
  if (document.all)
  {
    document.getElementById(pictureName).filters.blendTrans.Play();
  }
  document.getElementById(titleCaption).innerHTML=captionText;
}

function LoadGalleryPictures(pictureName,imageFile,descriptionCaption,captionDescription)
{
  if (document.all)
  {
    document.getElementById(pictureName).style.filter="blendTrans(duration=1)";
    document.getElementById(pictureName).filters.blendTrans.Apply();
  }
  document.getElementById(pictureName).src = imageFile;
  if (document.all)
  {
    document.getElementById(pictureName).filters.blendTrans.Play();
  }
  
//var obj = document.getElementById(descriptionCaption);
//obj.firstChild?obj.firstChild.data=captionDescription:obj.appendChild(document.createTextNode(captionDescription));

//var obj2 = document.getElementById(descriptionCaption);
//obj2.firstChild?obj2.firstChild.data=captionDescription:obj2.appendChild(document.createTextNode(captionDescription));

  //document.getElementById(titleCaption).innerHTML=captionText;
  document.getElementById(descriptionCaption).innerHTML=captionDescription;
 // document.getElementById(descriptionCaption).value=captionDescription;

}