function switchimage(imgDocID, imgObjName) 
{
	var obj = document.getElementById(imgDocID);
	
	if ( obj.firstChild == null )
	{
		obj.src = imgObjName;
	}
	else
	{
		obj.firstChild.src = imgObjName;	// eg. hyperlink
	}
}

function roll(img_name1, img_src1)
{
   document[img_name1].src = img_src1;
}

// (C) 2002 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header.

// ==============================
// Set the following variables...
// ==============================

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 2000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 2;

var Picture = new Array(); // don't change this
var Delay = new Array(); // don't change this

Picture[1]  = 'images/FloorplanA.jpg';
Picture[2]  = 'images/FloorplanB.jpg';
Picture[3]  = 'images/FloorplanC.jpg';
Picture[4]  = 'images/OnSite1.jpg';
Picture[5]  = 'images/OnSite2.jpg';
Picture[6]  = 'images/RFTaggingTrials2.jpg';

// =====================================
// Do not edit anything below this line!
// =====================================

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++)
{
	preLoad[iss] = new Image();
	preLoad[iss].src = Picture[iss];
}

function runSlideShow()
{
	if (document.all)
	{
		img = document.getElementById("imgDisplay");
		img.style.filter="blendTrans(duration=2)";
		img.style.filter="blendTrans(duration=CrossFadeDuration)";
		img.filters.blendTrans.Apply();
	}
	img.src = preLoad[jss].src;
	if (document.all) 
		img.filters.blendTrans.Play();
	jss = jss + 1;
	if (jss > (pss))
		jss=1;
	tss = setTimeout('runSlideShow()', SlideShowSpeed);
}

