// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;
// Duration of crossfade (seconds)
var crossFadeDuration = 2000;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[16] = 'images/exact_or_real_1_sm.jpg'
Pic[1] = 'images/location_1.jpg'
Pic[7] = 'Gallery/DSC_0001.jpg'
Pic[3] = 'Gallery/DSC_0042-2.jpg'
Pic[2] = 'Gallery/DSC_0044-2.jpg'
Pic[5] = 'Gallery/DSC_0046-2.jpg'
Pic[6] = 'Gallery/DSC_0052-2-3.jpg'
Pic[11] = 'Gallery/DSC_0059.jpg'
Pic[8] = 'Gallery/DSC_0072-2.jpg'
Pic[15] = 'Gallery/DSC_0084-2.jpg'
Pic[10] = 'Gallery/DSC_0091-2.jpg'
Pic[13] = 'Gallery/DSC_0116-2.jpg'
Pic[4] = 'Gallery/DSC_0120.jpg'
Pic[9] = 'Gallery/DSC_0137.jpg'
Pic[14] = 'Gallery/DSC_0142.jpg'
Pic[7] = 'Gallery/DSC_0148.jpg'
Pic[12] = 'Gallery/DSC_0151.jpg'
Pic[0] = 'Gallery/DSC_0157.jpg'

var Pic2 = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic2[0] = 'images/about_gallery/1.jpg'
Pic2[1] = 'images/about_gallery/2.gif'
Pic2[2] = 'images/about_gallery/7.gif'
Pic2[3] = 'images/about_gallery/10.gif'
Pic2[4] = 'images/about_gallery/3.gif'
Pic2[5] = 'images/about_gallery/5.gif'
Pic2[6] = 'images/about_gallery/6.gif'
Pic2[7] = 'images/about_gallery/4.jpg'
Pic2[8] = 'images/about_gallery/8.gif'
Pic2[9] = 'images/about_gallery/9.gif'


// 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() {

var p = Pic.length;
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}

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 runSlideShow2() {

var p = Pic2.length;
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic2[i];
}

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('runSlideShow2()', slideShowSpeed);
}
