// JavaScript Document

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed1 = 5000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration1 = 3;

var Picture1 = new Array();
//var Caption = new Array();

// Specify the image files... ../images/headerscrollimage/

Picture1[1]  = 'images/p1.jpg';
Picture1[2]  = 'images/p4.jpg';
Picture1[3]  = 'images/p3.jpg';
Picture1[4]  = 'images/p8.jpg';
Picture1[5]  = 'images/p5.jpg';
Picture1[6]  = 'images/p2.jpg';
Picture1[7]  = 'images/p7.jpg';
Picture1[8]  = 'images/p10.jpg';
Picture1[9]  = 'images/p9.jpg';
Picture1[10]  = 'images/p6.jpg';

// Specify the Captions...
//Caption[1]  = "1";
//Caption[2]  = "2";
//Caption[3]  = "3";
//Caption[4]  = "4";
//Caption[5]  = "5";


var tss1;
var iss1;
var jss1 = 1;
var pss1 = Picture1.length-1;

var preLoad1 = new Array();
for (iss1 = 1; iss1 < pss1+1; iss1++){
preLoad1[iss1] = new Image();
preLoad1[iss1].src = Picture1[iss1];}

function runSlideShow1(){
if (document.all){
document.images.PictureBox1.style.filter="blendTrans(duration=CrossFadeDuration1)";
document.images.PictureBox1.filters.blendTrans.Apply();}
document.images.PictureBox1.src = preLoad1[jss1].src;
//if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox1.filters.blendTrans.Play();
jss1 = jss1 + 1;
if (jss1 > (pss1)) jss1=1;
tss1 = setTimeout('runSlideShow1()', SlideShowSpeed1);
}