﻿// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

function SwapImage(imageblockname, newImage)
{
     var imageEl = document.getElementById(imageblockname);
     if (document.all)
     {
        imageEl.style.filter="blendTrans(duration=2)"
        imageEl.style.filter="blendTrans(duration=crossFadeDuration)"
        imageEl.filters.blendTrans.Apply()      
     }
     
     imageEl.src = newImage;
     if (document.all)
     {      
        imageEl.filters.blendTrans.Play()
     }
   
}
