// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();

// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'photos/homepage-photo1.jpg'
Pic[1] = 'photos/homepage-photo2.jpg'
Pic[2] = 'photos/homepage-photo3.jpg'
Pic[3] = 'photos/homepage-photo4.jpg'
Pic[4] = 'photos/homepage-photo5.jpg'
Pic[5] = 'photos/homepage-photo6.jpg'
Pic[6] = 'photos/homepage-photo7.jpg'
Pic[7] = 'photos/homepage-photo8.jpg'
Pic[8] = 'photos/homepage-photo9.jpg'
Pic[9] = 'photos/homepage-photo10.jpg'
Pic[10] = 'photos/homepage-photo11.jpg'
Pic[11] = 'photos/homepage-photo12.jpg'
Pic[12] = 'photos/homepage-photo13.jpg'
Pic[13] = 'photos/homepage-photo14.jpg'
Pic[14] = 'photos/homepage-photo15.jpg'
Pic[15] = 'photos/homepage-photo16.jpg'
Pic[16] = 'photos/homepage-photo17.jpg'
Pic[17] = 'photos/homepage-photo18.jpg'
Pic[18] = 'photos/homepage-photo19.jpg'
Pic[19] = 'photos/homepage-photo20.jpg'



// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();

for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}

function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}

document.images.SlideShow.src = preLoad[j].src;

if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();

}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}

function photopopup(page){
var w = 625; <!--window width-->
var h = 475; <!--window height-->
var winl = (screen.width - w)/2;
var wint = (screen.height - h)/2;
var option = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+w+",height="+h+",top="+wint+",left="+winl;
window.open(page,'',option);
}

function photopopup2(page){
var w = 365; <!--window width-->
var h = 490; <!--window height-->
var winl = (screen.width - w)/2;
var wint = (screen.height - h)/2;
var option = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+w+",height="+h+",top="+wint+",left="+winl;
window.open(page,'',option);
}
