function photoInit() { 
	if (randNum == "") { 
		randomPhotograph();
	} else {
		changePhotograph();
	}
	// playSlideshow();
} 
 
function prevPhotograph() { 
	randNum--; 
	if (randNum < 0) { randNum = totalNum-1 } 
	changePhotograph(); 
} 
 
function nextPhotograph() { 
	randNum++; 
	if (randNum > totalNum-1) { randNum = 0 } 
	changePhotograph(); 
}

function randomPhotograph() {
	randNum = rand();
	changePhotograph();
}
 
function changePhotograph() { 
	if (document.getElementById('photoIE').filters) {
		document.getElementById('photoIE').filters.blendTrans.Apply();
		document.getElementById('photoDescriptionIE').innerHTML = "<span style='color:#333300'>FEATURED PHOTOGRAPH.</span>&nbsp; " + featuredPhotographs[randNum][0] + "<br>"; 
		document.getElementById('photoCreditIE').innerHTML = featuredPhotographs[randNum][1];
		document.getElementById('photoLinkIE').href = featuredPhotographs[randNum][3];
		document.getElementById('photoIE').src = featuredPhotographs[randNum][2];
		document.getElementById('photoIE').filters.blendTrans.Play();
	} else {
		document.getElementById('photoDescriptionIE').innerHTML = "<span style='color:#333300'>FEATURED PHOTOGRAPH.</span>&nbsp; " + featuredPhotographs[randNum][0] + "<br>"; 
		document.getElementById('photoCreditIE').innerHTML = featuredPhotographs[randNum][1];
		document.getElementById('photoLinkIE').href = featuredPhotographs[randNum][3];
		document.getElementById('photoIE').src = featuredPhotographs[randNum][2];
	}
	if (document.images) {
		tempNum = randNum + 1;
		if (tempNum > totalNum - 1) { tempNum = 0 } 
		preload_image = new Image();
		preload_image.src = featuredPhotographs[tempNum][2];
	}
} 

/* function playSlideshow() {
	randomPhotograph();
	delay = setTimeout("playSlideshow()",6500);
} */
 
// The Central Randomizer 1.3 (C) 1997 by Paul Houle (houle@msc.cornell.edu) 
// See:  http://www.msc.cornell.edu/~houle/javascript/randomizer.html 
 
var randNum; 
 
rnd.today = new Date(); 
rnd.seed = rnd.today.getTime(); 
 
function rnd() { 
	rnd.seed = (rnd.seed*9301+49297) % 233280; 
	return rnd.seed/(233280.0); 
} 
 
function rand() { 
	var number = totalNum; 
	return Math.ceil(rnd()*number)-1; 
}
 
// end central randomizer. -->
