
src = ["http://wfwpi.whidbeyhost.com/wfwpi/resources/images/splash/2005Paraguay1.jpg"
, "http://wfwpi.whidbeyhost.com/wfwpi/resources/images/splash/2006Guinea-Bissau2-building.jpg"
, "http://wfwpi.whidbeyhost.com/wfwpi/resources/images/splash/2005Thailand1.jpg"
, "http://wfwpi.whidbeyhost.com/wfwpi/resources/images/splash/2005Thailand2.jpg"
, "http://wfwpi.whidbeyhost.com/wfwpi/resources/images/splash/2006Cambodia1.jpg"
, "http://wfwpi.whidbeyhost.com/wfwpi/resources/images/splash/2006India2.jpg"
, "http://wfwpi.whidbeyhost.com/wfwpi/resources/images/splash/2006Jordan-Bamboo.jpg"
, "http://wfwpi.whidbeyhost.com/wfwpi/resources/images/splash/2006Mongolia2.jpg"
, "http://wfwpi.whidbeyhost.com/wfwpi/resources/images/splash/2006Mongolia3.jpg"
, "http://wfwpi.whidbeyhost.com/wfwpi/resources/images/splash/2006RwandaBldg.jpg"
, "http://wfwpi.whidbeyhost.com/wfwpi/resources/images/splash/2006Senegal1.jpg"];

seconds = 8;

imageObj=[];

count=Math.floor(Math.random() * (src.length + 1) + 1);

function switchImg() {
	var i=(count+1) % src.length;
	if (imageObj[i] && (imageObj[i].complete || imageObj[i].complete==null)) {
		document.getElementById("splashImg").src = imageObj[count=i].src;
	}
	imageObj[i=(count+1)%src.length] = new Image;
	imageObj[i].src = src[i];
	setTimeout("switchImg()",seconds*1000);
}

onload = function(){
	if (document.images)switchImg();
}
