ok. here’s another attempt. replace the LoadGallery function with the following:
<script type="text/javascript">
function LoadGallery(pictureName,imageFile,titleCaption,captionText)
{
var picture = document.getElementById(pictureName);
if (picture.filters)
{
picture.style.filter="blendTrans(duration=1)";
picture.filters.blendTrans.Apply();
}
var temp_img = new Image();
temp_img.src = imgFile;
picture.src = imageFile;
if(temp_img.width > temp_img.height)
{
picture.width = 470; //Replace "470" with the maximum width for a landscape
}
else
{
picture.height = 340; //Replace "340" with the maximum height for a portrait
}
if (picture.filters)
{
picture.filters.blendTrans.Play();
}
document.getElementById(titleCaption).innerHTML=captionText;
}
I think that should do it.