// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 10000;
// Duration of crossfade (seconds)
var crossFadeDuration = 10;
// Specify the image files
var Pic = new Array();
var PicLink = new Array();
var t = 0;
var j = 0;
var timerID;
var subFile = '';
var tagstr = '';
var oldFile = '/images/spacer.gif';
function runSlideShow(Idx)
{
t = Pic.length - 1;
if ((Idx != null) && (Idx != '')) {
if (Idx > t) return;
j = Idx;
}
if (document.all) {
var _BigBannerArea = document.getElementById('BigBannerArea');
var picFile = Pic[j];
subFile = picFile.substring(picFile.length-3);
tagstr = '';
if (subFile == 'swf') {
//設定Flash語法
tagstr = '';
oldFile = '/images/spacer.gif';
}
else {
//設定其他圖檔格式語法
tagstr = '';
oldFile = Pic[j];
}
_BigBannerArea.innerHTML = tagstr;
var _BigBannerShow = document.getElementById('BigBannerShow');
if (subFile == 'gif') {
var _BigBannerLink = document.getElementById('BigBannerLink');
_BigBannerShow.style.filter='blendTrans(duration=2)';
_BigBannerShow.style.filter='blendTrans(duration=crossFadeDuration)';
_BigBannerShow.filters.blendTrans.Apply();
_BigBannerShow.src = Pic[j];
_BigBannerShow.filters.blendTrans.Play();
_BigBannerLink.href = PicLink[j];
}
j = j + 1;
if (j > t) j = 0;
}
clearTimeout(timerID);
TimerID = setTimeout('runSlideShow()', slideShowSpeed);
}