// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 2000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();
var Pict = new Array();
var Picture = new Array();
// to add more images, just continue
// the pattern, adding to the array below
Pic[0] = 'gallery/img.jpg'
Pic[1] = 'gallery/img1.jpg'
Pic[2] = 'gallery/img2.jpg'
Pic[3] = 'gallery/img3.jpg'
Pic[4] = 'gallery/img4.jpg'
Pic[5] = 'gallery/img5.jpg'
Pic[6] = 'gallery/img6.jpg'
Pic[7] = 'gallery/img7.jpg'
Pic[8] = 'gallery/img8.jpg'
Pic[9] = 'gallery/img9.jpg'
Pic[10] = 'gallery/img10.jpg'
Pic[11] = 'gallery/img11.jpg'
Pic[12] = 'gallery/img12.jpg'
Pic[13] = 'gallery/img13.jpg'
Pic[14] = 'gallery/img14.jpg'
Pic[15] = 'gallery/img15.jpg'
Pic[16] = 'gallery/img16.jpg'
Pic[17] = 'gallery/img17.jpg'
Pic[18] = 'gallery/img18.jpg'
Pic[19] = 'gallery/img19.jpg'
Pic[20] = 'gallery/img20.jpg'
Pic[21] = 'gallery/img21.jpg'
Pic[22] = 'gallery/img22.jpg'
Pic[23] = 'gallery/img23.jpg'
Pic[24] = 'gallery/img24.jpg'
Pic[25] = 'gallery/img25.jpg'
Pic[26] = 'gallery/img26.jpg'
Pic[27] = 'gallery/img27.jpg'
Pic[28] = 'gallery/img28.jpg'
Pic[29] = 'gallery/img29.jpg'
Pic[30] = 'gallery/img30.jpg'
Pic[31] = 'gallery/img31.jpg'
Pic[32] = 'gallery/img32.jpg'
Pic[33] = 'gallery/img33.jpg'
Pic[34] = 'gallery/img34.jpg'
Pic[35] = 'gallery/img35.jpg'
Pic[36] = 'gallery/img36.jpg'
Pic[37] = 'gallery/img37.jpg'
Pic[38] = 'gallery/img38.jpg'
Pic[39] = 'gallery/img39.jpg'
Pic[40] = 'gallery/img40.jpg'
Pic[41] = 'gallery/img41.jpg'
Pic[42] = 'gallery/img42.jpg'
Pic[43] = 'gallery/img43.jpg'
Pic[44] = 'gallery/img45.jpg'


//Pict[1] = 'gifs/unique-hardware-b.jpg';
// do not edit anything below this line
var t;
var j = 0,k=0;
var p = Pic.length;
var q = Pict.length;


var preLoad = new Array();
var preLoad2 = new Array();


for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}

for (i = 0; i < q; i++) {
preLoad2[i] = new Image();
preLoad2[i].src = Pict[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.SlideShow1.style.filter="blendTrans(duration=2)";
//document.images.SlideShow1.style.filter="blendTrans(duration=crossFadeDuration)";
//document.images.SlideShow1.filters.blendTrans.Apply();



}
document.images.SlideShow.src = preLoad[k].src;
//document.images.SlideShow.src = preLoad2[j].src;


if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
//document.images.SlideShow.filters.blendTrans.Play();

}
j = j + 1;
k = k + 1;
if (j > (q - 1))j = 0;
if(k>(p-1)) k=0;
{
}
t = setTimeout('runSlideShow()', slideShowSpeed);
}
//  End -->