

// Image Fader



var slideShowSpeed1 = 4500

var slideShowSpeed2 = 5500

var slideShowSpeed3 = 5200

var slideShowSpeed4 = 5500

var slideShowSpeed5 = 5000

var slideShowSpeed6 = 4900

var slideShowSpeed7 = 5000

var slideShowSpeed8 = 5100



var crossFadeDuration = 3



var Pic1 = new Array()

Pic1[0] = '1.jpg'

Pic1[1] = '2.jpg'

Pic1[2] = '3.jpg'

Pic1[3] = '4.jpg'



var t1

var j1 = 0

var p1 = Pic1.length



var Pic2 = new Array()

Pic2[0] = '5.jpg'

Pic2[1] = '6.jpg'

Pic2[2] = '7.jpg'

Pic2[3] = '8.jpg'



var t2

var j2 = 0

var p2 = Pic2.length



var Pic3 = new Array()

Pic3[0] = '9.jpg'

Pic3[1] = '10.jpg'

Pic3[2] = '11.jpg'

Pic3[3] = '12.jpg'



var t3

var j3 = 0

var p3 = Pic3.length



var Pic4 = new Array()

Pic4[0] = '13.jpg'

Pic4[1] = '14.jpg'

Pic4[2] = '15.jpg'

Pic4[3] = '16.jpg'



var t4

var j4 = 0

var p4 = Pic4.length



var Pic5 = new Array()

Pic5[0] = '17.jpg'

Pic5[1] = '18.jpg'

Pic5[2] = '19.jpg'

Pic5[3] = '20.jpg'



var t5

var j5 = 0

var p5 = Pic5.length



var Pic6 = new Array()

Pic6[0] = '21.jpg'

Pic6[1] = '22.jpg'

Pic6[2] = '23.jpg'

Pic6[3] = '24.jpg'



var t6

var j6 = 0

var p6 = Pic6.length



var Pic7 = new Array()

Pic7[0] = '25.jpg'

Pic7[1] = '26.jpg'

Pic7[2] = '27.jpg'

Pic7[3] = '28.jpg'



var t7

var j7 = 0

var p7 = Pic7.length



var Pic8 = new Array()

Pic8[0] = '29.jpg'

Pic8[1] = '30.jpg'

Pic8[2] = '31.jpg'



var t8

var j8 = 0

var p8 = Pic8.length





var preLoad1 = new Array()

for (i1 = 0; i1 < p1; i1++){

   preLoad1[i1] = new Image()

   preLoad1[i1].src = Pic1[i1]

}

var preLoad2 = new Array()

for (i2 = 0; i2 < p2; i2++){

   preLoad2[i2] = new Image()

   preLoad2[i2].src = Pic2[i2]

}

var preLoad3 = new Array()

for (i3 = 0; i3 < p3; i3++){

   preLoad3[i3] = new Image()

   preLoad3[i3].src = Pic3[i3]

}

var preLoad4 = new Array()

for (i4 = 0; i4 < p4; i4++){

   preLoad4[i4] = new Image()

   preLoad4[i4].src = Pic4[i4]

}

var preLoad5 = new Array()

for (i5 = 0; i5 < p5; i5++){

   preLoad5[i5] = new Image()

   preLoad5[i5].src = Pic5[i5]

}

var preLoad6 = new Array()

for (i6 = 0; i6 < p6; i6++){

   preLoad6[i6] = new Image()

   preLoad6[i6].src = Pic6[i6]

}

var preLoad7 = new Array()

for (i7 = 0; i7 < p7; i7++){

   preLoad7[i7] = new Image()

   preLoad7[i7].src = Pic7[i7]

}

var preLoad8 = new Array()

for (i8 = 0; i8 < p8; i8++){

   preLoad8[i8] = new Image()

   preLoad8[i8].src = Pic8[i8]

}



function runSlideShow1(){

   if (document.all){

      document.images.SlideShow1.style.filter="blendTrans(duration=2)"

      document.images.SlideShow1.style.filter="blendTrans(duration=crossFadeDuration)"

      document.images.SlideShow1.filters.blendTrans.Apply()      

   }

   document.images.SlideShow1.src = preLoad1[j1].src

   if (document.all){

      document.images.SlideShow1.filters.blendTrans.Play()

   }

   j1 = j1 + 1

   if (j1 > (p1-1)) j1=0

   t1 = setTimeout('runSlideShow1()', slideShowSpeed1)

}

function runSlideShow2(){

	 if (document.all){

      document.images.SlideShow2.style.filter="blendTrans(duration=2)"

      document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration)"

      document.images.SlideShow2.filters.blendTrans.Apply()      

   }

   document.images.SlideShow2.src = preLoad2[j2].src

   if (document.all){

      document.images.SlideShow2.filters.blendTrans.Play()

   }

   j2 = j2 + 1

   if (j2 > (p2-1)) j2=0

   t2 = setTimeout('runSlideShow2()', slideShowSpeed2)

}

function runSlideShow3(){

	 if (document.all){

      document.images.SlideShow3.style.filter="blendTrans(duration=2)"

      document.images.SlideShow3.style.filter="blendTrans(duration=crossFadeDuration)"

      document.images.SlideShow3.filters.blendTrans.Apply()      

   }

   document.images.SlideShow3.src = preLoad3[j3].src

   if (document.all){

      document.images.SlideShow3.filters.blendTrans.Play()

   }

   j3 = j3 + 1

   if (j3 > (p3-1)) j3=0

   t3 = setTimeout('runSlideShow3()', slideShowSpeed3)

}

function runSlideShow4(){

	 if (document.all){

      document.images.SlideShow4.style.filter="blendTrans(duration=2)"

      document.images.SlideShow4.style.filter="blendTrans(duration=crossFadeDuration)"

      document.images.SlideShow4.filters.blendTrans.Apply()      

   }

   document.images.SlideShow4.src = preLoad4[j4].src

   if (document.all){

      document.images.SlideShow4.filters.blendTrans.Play()

   }

   j4 = j4 + 1

   if (j4 > (p4-1)) j4=0

   t4 = setTimeout('runSlideShow4()', slideShowSpeed4)

}

function runSlideShow5(){

	 if (document.all){

      document.images.SlideShow5.style.filter="blendTrans(duration=2)"

      document.images.SlideShow5.style.filter="blendTrans(duration=crossFadeDuration)"

      document.images.SlideShow5.filters.blendTrans.Apply()      

   }

   document.images.SlideShow5.src = preLoad5[j5].src

   if (document.all){

      document.images.SlideShow5.filters.blendTrans.Play()

   }

   j5 = j5 + 1

   if (j5 > (p5-1)) j5=0

   t5 = setTimeout('runSlideShow5()', slideShowSpeed5)

}

function runSlideShow6(){

	 if (document.all){

      document.images.SlideShow6.style.filter="blendTrans(duration=2)"

      document.images.SlideShow6.style.filter="blendTrans(duration=crossFadeDuration)"

      document.images.SlideShow6.filters.blendTrans.Apply()      

   }

   document.images.SlideShow6.src = preLoad6[j6].src

   if (document.all){

      document.images.SlideShow6.filters.blendTrans.Play()

   }

   j6 = j6 + 1

   if (j6 > (p6-1)) j6=0

   t6 = setTimeout('runSlideShow6()', slideShowSpeed6)

}

function runSlideShow7(){

	 if (document.all){

      document.images.SlideShow7.style.filter="blendTrans(duration=2)"

      document.images.SlideShow7.style.filter="blendTrans(duration=crossFadeDuration)"

      document.images.SlideShow7.filters.blendTrans.Apply()      

   }

   document.images.SlideShow7.src = preLoad7[j7].src

   if (document.all){

      document.images.SlideShow7.filters.blendTrans.Play()

   }

   j7 = j7 + 1

   if (j7 > (p7-1)) j7=0

   t7 = setTimeout('runSlideShow7()', slideShowSpeed7)

}

function runSlideShow8(){

	 if (document.all){

      document.images.SlideShow8.style.filter="blendTrans(duration=2)"

      document.images.SlideShow8.style.filter="blendTrans(duration=crossFadeDuration)"

      document.images.SlideShow8.filters.blendTrans.Apply()      

   }

   document.images.SlideShow8.src = preLoad8[j8].src

   if (document.all){

      document.images.SlideShow8.filters.blendTrans.Play()

   }

   j8 = j8 + 1

   if (j8 > (p8-1)) j8=0

   t8 = setTimeout('runSlideShow8()', slideShowSpeed8)

}