// JavaScript Document
var timeDelay = 10;
var pix = new Array
(
"images/top.jpg"
,"images/top1.jpg" 
,"images/top3.jpg" 
,"images/top2.jpg" 
);
var num = pix.length;
timeDelay *= 500;
var picCurrentNum = 0;
var picCurrent = new Image();
picCurrent.src = pix[picCurrentNum];
function changePicture() {setInterval("slideshow()", timeDelay);}
function slideshow() {
picCurrentNum++;
if (picCurrentNum == num) {picCurrentNum = 0;}
picCurrent.src = pix[picCurrentNum];
applyeffect();
document["topPic"].src = picCurrent.src;
playeffect();
}
function applyeffect(){if (document.all && topPic.filters){topPic.filters.revealTrans.stop();topPic.filters.revealTrans.apply();}}
function playeffect(){if (document.all && topPic.filters)topPic.filters.revealTrans.play();}