// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully
// Random starting point added by Jamie, The HTML Goddess

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShow1Speed = 7000

// Duration of crossfade (seconds)
var crossFadeDuration1 = 3

// Specify the image files
var Pic1 = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

PicStart = '/images/slide0_new.jpg'
Pic1[0] = '/images/slide0_new.jpg'
Pic1[1] = '/images/slide1_new.jpg'
Pic1[2] = '/images/slide2_new.jpg'
Pic1[3] = '/images/slide3_new.jpg'
Pic1[4] = '/images/slide4_new.jpg'
Pic1[5] = '/images/slide5_new.jpg'
Pic1[6] = '/images/slide6_new.jpg'
Pic1[7] = '/images/slide7_new.jpg'
Pic1[8] = '/images/slide8_new.jpg'
Pic1[9] = '/images/slide9_new.jpg'
Pic1[10] = '/images/slide10_new.jpg'

// =======================================
// do not edit anything below this line
// =======================================
var t1
var j1 = 0
var p1 = Pic1.length

var preLoad1 = new Array()
for (i1 = 0; i1 < p1; i1++){
   preLoad1[i1] = new Image()
   preLoad1[i1].src = Pic1[i1]
}

function runSlideShow1(){
   slideShowObj = document.getElementById("slideshow1");
   slideShowTagName = document.getElementById("slideshow1").tagName;
   
   if (document.all){
      //slideShowObj.style.filter="blendTrans(duration=2)";
      slideShowObj.style.filter="blendTrans(duration=crossFadeDuration1)";
      slideShowObj.filters.blendTrans.duration = crossFadeDuration1;
      slideShowObj.filters.blendTrans.Apply();
      slideShowObj.filters.blendTrans.Play();     
   }
   
   if (slideShowTagName == "IMG") {
   
	   document.images.SlideShow1.src = preLoad1[j1].src
   } else //(slideShowTagName =="TD") {
   	    slideShowObj.style.backgroundImage = 'url(' + preLoad1[j1].src + ')';

   j1 = j1 + 1
   if (j1 > (p1-1)) j1=0
   t1 = setTimeout('runSlideShow1()', slideShow1Speed)
}

function stopSS(){
	if(t){
		t = clearTimeout(t);
	}
}