// JavaScript Document
var currentGalleryLink = new Array();
function LoadPicture(pictureName,imageFile,imageAlt)
{
  if (document.all)
  {
    document.getElementById(pictureName).style.filter="blendTrans(duration=2)";
    document.getElementById(pictureName).filters.blendTrans.Apply();
  }

	document.getElementById(pictureName).src = imageFile;
	if (document.all)
  {
    document.getElementById(pictureName).filters.blendTrans.Play();
  }

	// Which link is currently selected?
	for (i=0; i < document.links.length;i++)
	{

	   	var l=document.links[i];
	   	var n=l.getAttributeNode('onclick');
		if (n)
		{
			var onclick = n.value;
	   		if ((onclick) &&
	   			(onclick.indexOf(pictureName) > 0) &&
	   			(onclick.indexOf(imageFile) > 0))
	   		{
			    currentGalleryLink[pictureName] = i;
			    break;
			}
		}
	}
}



