<!--
function SlideShow(imgName,speed,duration){	
	var p; //length of Pic array
	var j = 0;		
	var slide = imgName;
	// Set slideShowSpeed (milliseconds)
	var slideShowSpeed = speed;
	// Duration of crossfade (seconds)
	var crossFadeDuration = duration;
	var Pic = new Array();
	this.timer = null;
	this.setPics = function(){
		var preLoad = new Array();
		//set pics and preload
		for (var i=0;i<arguments.length;i++){
			Pic[i] = arguments[i];
			preLoad[i] = new Image();
			preLoad[i].src = Pic[i];
		}
		p = Pic.length;
	}
	this.runSlideShow = function(varName){
		var t;
		if (document.all) {
			document.images[slide].style.filter="blendTrans(duration=4)";
			document.images[slide].style.filter="blendTrans(duration=crossFadeDuration)";
			document.images[slide].filters.blendTrans.Apply();
		}
		document.images[slide].src = Pic[j];
		if (document.all) {
			document.images[slide].filters.blendTrans.Play();
		}
		j = j + 1;
		if (j > (p - 1)) j = 0;
		this.timer = setTimeout(varName+".runSlideShow('"+varName+"')", slideShowSpeed);
		
	}
	this.stopSlideShow = function(){
		if (this.timer) clearTimeout(this.timer);
	}
}


var slide1 = new SlideShow('SlideShow1', 6000, 4, true);
slide1.setPics("images/content/img01.jpg","images/content/img03.jpg","images/content/img05.jpg","images/content/img09.jpg");

var slide2 = new SlideShow('SlideShow2', 6000, 4, true);
slide2.setPics("images/content/img07.jpg","images/content/img10.jpg","images/content/img12.jpg");

var slide3 = new SlideShow('SlideShow3', 6000, 4, true);
slide3.setPics("images/content/img06.jpg","images/content/img11.jpg");

var slide4 = new SlideShow('SlideShow4', 6000, 4, true);
slide4.setPics("images/content/img02.jpg","images/content/img04.jpg","images/content/img08.jpg","images/content/img13.jpg");

//if you want to start slideshows onload
window.onload = function(){
slide1.runSlideShow();
slide2.runSlideShow();
slide3.runSlideShow();
slide4.runSlideShow();
}

//-->