var speed = 3950
var speed1= 5000
var speed2= 3820
var speed3= 6190
var speed4= 2430
var speed5= 5660
var speed6= 3210
var speed7= 4440
var foto = new Array() 
foto[0] = 'images/1a.jpg'
foto[1] = 'images/1b.jpg'
foto[2] = 'images/1c.jpg'
foto[3] = 'images/1d.jpg'
foto[4] = 'images/1e.jpg'
foto[5] = 'images/1f.jpg'
foto[6] = 'images/1g.jpg'
foto[7] = 'images/1h.jpg'
foto[8] = 'images/1i.jpg'
foto[9] = 'images/1j.jpg'
foto[10] = 'images/1k.jpg'
foto[11] = 'images/1l.jpg'
foto[12] = 'images/1m.jpg'
foto[13] = 'images/1n.jpg'
foto[14] = 'images/1o.jpg'
foto[15] = 'images/1p.jpg'
var t
var t1
var j = 0
var p = foto.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = foto[i]
}
function runSlideShow(){
   document.images.SlideShow.src = preLoad[j].src
   j = j + 1
   if (j> (p-1)) j=0
   t = setTimeout('runSlideShow()', speed)
}

function runSlideShow1(){
   document.images.SlideShow1.src = preLoad[j].src
   j = j + 1
   if (j> (p-1)) j=0
   t1 = setTimeout('runSlideShow1()', speed1)
}
function runSlideShow2(){
   document.images.SlideShow2.src = preLoad[j].src
   j = j + 1
   if (j> (p-1)) j=0
   t = setTimeout('runSlideShow2()', speed2)
}
function runSlideShow3(){
   document.images.SlideShow3.src = preLoad[j].src
   j = j + 1
   if (j> (p-1)) j=0
   t = setTimeout('runSlideShow3()', speed3)
}
function runSlideShow4(){
   document.images.SlideShow4.src = preLoad[j].src
   j = j + 1
   if (j> (p-1)) j=0
   t = setTimeout('runSlideShow4()', speed4)
}

function runSlideShow5(){
   document.images.SlideShow5.src = preLoad[j].src
   j = j + 1
   if (j> (p-1)) j=0
   t = setTimeout('runSlideShow5()', speed5)
}
function runSlideShow6(){
   document.images.SlideShow6.src = preLoad[j].src
   j = j + 1
   if (j> (p-1)) j=0
   t = setTimeout('runSlideShow6()', speed6)
}
function runSlideShow7(){
   document.images.SlideShow7.src = preLoad[j].src
   j = j + 1
   if (j> (p-1)) j=0
   t = setTimeout('runSlideShow7()', speed7)
}

