// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header

// =======================================
// set the following variables
// =======================================

// Set speed (milliseconds)
var speed = 2000

// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = "images/picture11.jpg"
Pic[1] = "images/picture21.jpg"
Pic[2] = "images/picture31.jpg"
Pic[3] = "images/picture41.jpg"
Pic[4] = "images/picture71.jpg"
Pic[5] = "images/picture72.jpg"
Pic[6] = "images/picturea1.jpg"
Pic[7] = "images/pictureb1.jpg"
Pic[8] = "images/picturec1.jpg"
Pic[9] = "images/pictured1.jpg"
Pic[10] = "images/picturee1.jpg"
Pic[11] = "images/picture81.jpg"
Pic[12] = "images/picture82.jpg"
Pic[13] = "images/picture83.jpg"
Pic[14] = "images/picture84.jpg"

// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length
var jj = 1
var jjj = 2
var jjjj = 3
var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   j = j + 1
   jj = jj + 1
   jjj = jjj + 1
   jjjj = jjjj + 1
   if (j > (p-1)) j=0
   if (jj > (p-1)) jj=0
   if (jjj > (p-1)) jjj=0
   if (jjjj > (p-1)) jjjj=0
//   alert(j+" "+jj+" "+jjj+" "+jjjj)
   document.images.SlideShow.src = preLoad[j].src
   document.images.SlideShow2.src = preLoad[jj].src
   document.images.SlideShow3.src = preLoad[jjj].src
   document.images.SlideShow4.src = preLoad[jjjj].src
   t = setTimeout('runSlideShow()', speed)
}

  function now(what)
  {
    if (!document.getElementById) return null;
    current = document.getElementById(what);
    current.className = "now";
  }
  
  

