// Configurable Variables
playspeed=5000;// The playspeed determines the delay for the "Play" button in ms
dotrans=1; // if value = 1 then there are transitions played in IE
transtype='blendTrans';// 'blendTrans' or 'revealtrans'
transattributes='duration=1,transition=23';// duration=seconds,transition=#<24
randomorder=0;
linksperline=4; // For the text links
playdiffernce=500; // The speed that the autplay speed is changed by
autostart=1;
preloadslides=0;

// Add extra functions between the brackets if you need other functions that require the onload
window.onload=function(){
    if(window.preloadslides)preloadSlide();if(window.autostart)slidePlay();
    }

// NS4 resize handler
window.onresize=function(){
    if(document.layers)this.location=this.location;
    }

function slideImage(num) {
// Required Script
i=num%til;if(i<0)i=til-1;
if(document.all&&dotrans==1)eval('di.slideimage.filters.'+transtype+'.apply()')
di.slideimage.src=theimage[i][1];
if(document.all&&dotrans==1)eval('di.slideimage.filters.'+transtype+'.play()')
// Plug-in handlers
if(form.theimages)form.theimages.selectedIndex = i;
if(form.slidebox)form.slidebox.value = theimage[i][0];
if(form.slidecount)form.slidecount.value = "Image "+(i+1)+" of "+til;
if(form.slidespeed)doSpeed(0);}

function slidePlay() {
if (!window.playing) {
slidePlaying(i+1);
if(form.play)form.play.value="   Stop   ";}
else {playing=clearTimeout(playing);
if(form.play)form.play.value="   Play   ";}
if(di.imgPlay){
    setTimeout('di.imgPlay.src="'+imgStop+'"',1);imgStop=di.imgPlay.src}
}

function slidePlaying(num) {
playing=setTimeout('slidePlaying(i+1);slideImage(i+1);', playspeed);}

