// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 2500;
// Duration of crossfade (seconds)
var crossFadeDuration = 2;
// Specify the image files
var Pic = new Array();
var Pict = new Array();
var Picture = new Array();
var Pictures = new Array();
//var Pictures1 = new Array();
// to add more images, just continue
// the pattern, adding to the array below


Pic[0] = 'gifs/s1.gif';
Pic[1] = 'gifs/ss1.gif';

Pict[0] = 'gifs/s2.gif';
Pict[1] = 'gifs/ss2.gif';

Picture[0] = 'gifs/s3.gif';
Picture[1] = 'gifs/ss3.gif';


Pictures[0] = 'gifs/s4.gif';
Pictures[1] = 'gifs/ss4.gif';


/*Pictures1[0] = 'gifs/accord-d.jpg';
Pictures1[1] = 'gifs/ambassdor-d.jpg';
Pictures1[2] = 'gifs/indigo-marina-d.jpg';
Pictures1[3] = 'gifs/ford-endeavor-d.jpg';
Pictures1[4] = 'gifs/chevrolet-tavera-d.jpg';
Pictures1[5] = 'gifs/vokswagen-car-d.jpg';
Pictures1[6] = 'gifs/index-coach-d.jpg';*/



// do not edit anything below this line

var t;
var j = 0,k=0;
var p = Pic.length;
var q = Pict.length;
var r = Picture.length;
var m = Pictures.length;
//var n = Pictures1.length;

var preLoad = new Array();
var preLoad2 = new Array();
var preLoad3 = new Array();
var preLoad4 = new Array();
var preLoad5 = 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];
}

for (i = 0; i < r; i++) {
preLoad3[i] = new Image();
preLoad3[i].src = Picture[i];
}

for (i = 0; i < m; i++) {
preLoad4[i] = new Image();
preLoad4[i].src = Pictures[i];
}

/*for (i = 0; i < n; i++) {
preLoad5[i] = new Image();
preLoad5[i].src = Pictures1[i];
}
*/
function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="revealTrans(duration=2)";
document.images.SlideShow.style.filter="revealTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.revealTrans.Apply();

document.images.SlideShow1.style.filter="revealTrans(duration=2)";
document.images.SlideShow1.style.filter="revealTrans(duration=crossFadeDuration)";
document.images.SlideShow1.filters.revealTrans.Apply();

document.images.SlideShow2.style.filter="revealTrans(duration=2)";
document.images.SlideShow2.style.filter="revealTrans(duration=crossFadeDuration)";
document.images.SlideShow2.filters.revealTrans.Apply();

document.images.SlideShow3.style.filter="revealTrans(duration=2)";
document.images.SlideShow3.style.filter="revealTrans(duration=crossFadeDuration)";
document.images.SlideShow3.filters.revealTrans.Apply();

/*document.images.SlideShow4.style.filter="revealTrans(duration=2)";
document.images.SlideShow4.style.filter="revealTrans(duration=crossFadeDuration)";
document.images.SlideShow4.filters.revealTrans.Apply();*/

}
document.images.SlideShow.src = preLoad[k].src;
document.images.SlideShow1.src = preLoad2[j].src;
document.images.SlideShow2.src = preLoad3[j].src;
document.images.SlideShow3.src = preLoad4[j].src;
//document.images.SlideShow4.src = preLoad5[j].src;

if (document.all) {
document.images.SlideShow.filters.revealTrans.Play();
document.images.SlideShow1.filters.revealTrans.Play();
document.images.SlideShow2.filters.revealTrans.Play();
document.images.SlideShow3.filters.revealTrans.Play();
//document.images.SlideShow4.filters.revealTrans.Play();
}
j = j + 1;
k = k + 1;
if (j > (q - 1))j = 0;
if(k>(p-1)) k=0;
{
}
t = setTimeout('runSlideShow()', slideShowSpeed);
}
//  End -->

