﻿
var preLoad = new Array();
var preLoadj = 0;
function PicPPT(picUrl)
{
var pre=picUrl;
var pic=pre.split(";");
for (i = 0; i < pic.length; i++) 
{
preLoad[i] = new Image();
preLoad[i].src = pic[i];
}
runSlideShow();
}
function runSlideShow()
{
var slideShowSpeed = 8000;
if (document.all) {
document.images.SlideShow.style.filter="revealTrans(duration=5,transition=23)";
document.images.SlideShow.style.filter="revealTrans(duration=crossFadeDuration,transition=23)";
document.images.SlideShow.filters.revealTrans.Apply();
}
if(preLoad[preLoadj]!=null)
document.images.SlideShow.src = preLoad[preLoadj].src;
if (document.all) {
document.images.SlideShow.filters.revealTrans.Play();
}
preLoadj = preLoadj + 1;
if (preLoadj > (preLoad.length - 1)) preLoadj = 0;
setTimeout("runSlideShow()", slideShowSpeed);
}


