

//Doan script nay de thay anh trong thu vien anh
kind = 1;
<!---
function RunSlideShow(pictureName,pictureCaption,imageFiles,imageCaption,displaySecs)
{  
  var imageSeparator = imageFiles.indexOf(";");
  var captionSeparator= imageCaption.indexOf("|");
  var nextImage = imageFiles.substring(0,imageSeparator);
  var nextCaption = imageCaption.substring(0,captionSeparator);
  if (document.all)
  {
   document.getElementById(pictureName).style.filter="revealTrans(duration=0)";
   document.getElementById(pictureName).style.filter="revealTrans(transition=kind)";
   document.getElementById(pictureName).filters.revealTrans.Apply();
	
	//document.getElementById(pictureName).style.filter="blendTrans(duration=2)";
    //document.getElementById(pictureName).filters.blendTrans.Apply();
	
    //document.getElementById(pictureCaption).style.filter="blendTrans(duration=2)";
    //document.getElementById(pictureCaption).filters.blendTrans.Apply();
  }
  document.getElementById(pictureName).src = nextImage;
  document.getElementById(pictureCaption).innerHTML=nextCaption;
  if (document.all)
  {
    //document.getElementById(pictureName).filters.blendTrans.Play();
    document.getElementById(pictureName).filters.revealTrans.Play();
    //document.getElementById(pictureCaption).filters.blendTrans.Play();
  }
  var futureImages= imageFiles.substring(imageSeparator+1,imageFiles.length)
    + ';' + nextImage;
  var futureCaption= imageCaption.substring(captionSeparator+1,imageCaption.length)
    + '|' + nextCaption;
	
	kind++;
	if (kind > 22 ) kind = 0;
	
  setTimeout("RunSlideShow('"+pictureName+"','"+pictureCaption+"','"+futureImages+"','"+futureCaption+"',"+displaySecs+")",
    displaySecs*2000);
}
// --->