function swt(obj, newsrc)
{
  obj.src = newsrc;
}

// (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

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

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 2

// Specify the image files
var Pic1 = new Array()
Pic1[0] = 'images/home-slide0.jpg'
Pic1[1] = 'images/home-slide1.jpg'
Pic1[2] = 'images/home-slide2.jpg'
Pic1[3] = 'images/home-slide3.jpg'
Pic1[4] = 'images/home-slide4.jpg'
Pic1[5] = 'images/home-slide5.jpg'
Pic1[6] = 'images/home-slide6.jpg'
Pic1[7] = 'images/home-slide7.jpg'
Pic1[8] = 'images/home-slide8.jpg'
Pic1[9] = 'images/home-slide9.jpg'
Pic1[10] = 'images/home-slide10.jpg'

var t
var j = 0
var p = Pic1.length
var fr = 0

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic1[i]
}

function startHomeSlideShow()
{
	if(fr==1)
	{
	  crossfade(document.getElementById('homeSlideShow'), preLoad[j].src, crossFadeDuration, '')
	  //swapfade(document.getElementById('coll5'), preLoad[j].src, crossFadeDuration, '')
	}
	fr = 1
	j = j + 1
    if (j > (p-1)) j=0
	t = setTimeout('startHomeSlideShow()', slideShowSpeed)
}

